Skip to content

Commit 90ea4b1

Browse files
committed
searchPaymentHistory 의 인자로 searchOptions 추가
1 parent 893400e commit 90ea4b1

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/app/naver/scraper.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,20 @@ export class NaverScraper {
1414

1515
searchPaymentHistoryURL =
1616
"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> {
1825
const data = {
19-
keyword: null,
26+
keyword: searchOptions?.keyword || null,
2027
startDate: "2000-01-01",
2128
endDate: await this.getTodayString(),
22-
serviceGroup: null,
23-
statusGroup: null,
29+
serviceGroup: searchOptions?.serviceGroup || null,
30+
statusGroup: searchOptions?.statusGroup || null,
2431
};
2532
const options = {
2633
headers: {

0 commit comments

Comments
 (0)