File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,20 @@ export class NaverScraper {
14
14
15
15
searchPaymentHistoryURL =
16
16
"https://new-m.pay.naver.com/api/timeline/searchPaymentHistory" ;
17
- async searchPaymentHistory ( cookie : string ) : Promise < CommonResponse > {
17
+ async searchPaymentHistory (
18
+ cookie : string ,
19
+ searchOptions ?: {
20
+ keyword : string ;
21
+ serviceGroup : ServiceGroup ;
22
+ statusGroup : StatusGroup ;
23
+ }
24
+ ) : Promise < CommonResponse > {
18
25
const data = {
19
- keyword : null ,
26
+ keyword : searchOptions ?. keyword || null ,
20
27
startDate : "2000-01-01" ,
21
28
endDate : await this . getTodayString ( ) ,
22
- serviceGroup : null ,
23
- statusGroup : null ,
29
+ serviceGroup : searchOptions ?. serviceGroup || null ,
30
+ statusGroup : searchOptions ?. statusGroup || null ,
24
31
} ;
25
32
const options = {
26
33
headers : {
You can’t perform that action at this time.
0 commit comments