@connextable/popbill 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -16
- package/dist/index.d.mts +2835 -270
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4145 -1001
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,225 @@
|
|
|
1
1
|
import { PopbillApiError, PopbillErrorStage, PopbillErrorType } from "@connextable/popbill-compat/errors";
|
|
2
|
+
import { ProviderBoolean, ProviderNumericCode } from "@connextable/popbill-utils";
|
|
3
|
+
import { MessageType } from "@connextable/popbill-spec";
|
|
4
|
+
interface CommonBusinessInput {
|
|
5
|
+
businessNumber: string;
|
|
6
|
+
}
|
|
7
|
+
interface CommonPageInput extends CommonBusinessInput {
|
|
8
|
+
/** @default 1 */
|
|
9
|
+
pageNumber?: number;
|
|
10
|
+
/** @default 500 */
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
}
|
|
13
|
+
interface CommonCompanyInfo {
|
|
14
|
+
companyName: string;
|
|
15
|
+
chiefExecutiveOfficerName: string;
|
|
16
|
+
address: string;
|
|
17
|
+
businessType: string;
|
|
18
|
+
businessClass: string;
|
|
19
|
+
}
|
|
20
|
+
interface CommonContactInput {
|
|
21
|
+
userId: string;
|
|
22
|
+
personName: string;
|
|
23
|
+
phoneNumber: string;
|
|
24
|
+
emailAddress: string;
|
|
25
|
+
searchRole?: number;
|
|
26
|
+
}
|
|
27
|
+
interface RegisterMemberInput extends CommonBusinessInput {
|
|
28
|
+
userId: string;
|
|
29
|
+
password: string;
|
|
30
|
+
company: CommonCompanyInfo;
|
|
31
|
+
contactName: string;
|
|
32
|
+
contactPhoneNumber: string;
|
|
33
|
+
contactEmailAddress: string;
|
|
34
|
+
}
|
|
35
|
+
interface QuitMemberInput extends CommonBusinessInput {
|
|
36
|
+
reason: string;
|
|
37
|
+
}
|
|
38
|
+
interface UpdateCommonCompanyInput extends CommonBusinessInput {
|
|
39
|
+
company: CommonCompanyInfo;
|
|
40
|
+
}
|
|
41
|
+
interface RegisterCommonContactInput extends CommonBusinessInput {
|
|
42
|
+
contact: CommonContactInput & {
|
|
43
|
+
password: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
interface CommonContactQueryInput extends CommonBusinessInput {
|
|
47
|
+
contactUserId: string;
|
|
48
|
+
}
|
|
49
|
+
interface UpdateCommonContactInput extends CommonBusinessInput {
|
|
50
|
+
contact: CommonContactInput;
|
|
51
|
+
}
|
|
52
|
+
interface CommonPaymentInput extends CommonBusinessInput {
|
|
53
|
+
paymentName: string;
|
|
54
|
+
paymentAmount: string;
|
|
55
|
+
contactName?: string;
|
|
56
|
+
contactEmailAddress?: string;
|
|
57
|
+
notificationPhoneNumber?: string;
|
|
58
|
+
}
|
|
59
|
+
interface CommonSettlementQueryInput extends CommonBusinessInput {
|
|
60
|
+
settlementCode: string;
|
|
61
|
+
}
|
|
62
|
+
interface CommonHistoryInput extends CommonBusinessInput {
|
|
63
|
+
startDate: string;
|
|
64
|
+
endDate: string;
|
|
65
|
+
/** @default 1 */
|
|
66
|
+
pageNumber?: number;
|
|
67
|
+
/** @default 500 */
|
|
68
|
+
pageSize?: number;
|
|
69
|
+
}
|
|
70
|
+
interface CommonUseHistoryInput extends CommonBusinessInput {
|
|
71
|
+
startDate: string;
|
|
72
|
+
endDate: string;
|
|
73
|
+
sortOrder?: 'A' | 'D';
|
|
74
|
+
/** @default 1 */
|
|
75
|
+
pageNumber?: number;
|
|
76
|
+
/** @default 500 */
|
|
77
|
+
pageSize?: number;
|
|
78
|
+
}
|
|
79
|
+
interface CommonRefundInput extends CommonBusinessInput {
|
|
80
|
+
bankName: string;
|
|
81
|
+
accountNumber: string;
|
|
82
|
+
accountHolderName: string;
|
|
83
|
+
requestedPoints: string;
|
|
84
|
+
contactName: string;
|
|
85
|
+
phoneNumber: string;
|
|
86
|
+
reason?: string;
|
|
87
|
+
}
|
|
88
|
+
interface CommonRefundQueryInput extends CommonBusinessInput {
|
|
89
|
+
refundCode: string;
|
|
90
|
+
}
|
|
91
|
+
interface CommonOperationResult {
|
|
92
|
+
resultCode: number | string | null;
|
|
93
|
+
resultMessage: string;
|
|
94
|
+
}
|
|
95
|
+
interface CommonHistoryResult<T> {
|
|
96
|
+
resultCode: number | string | null;
|
|
97
|
+
resultMessage?: string;
|
|
98
|
+
pageNumber: number;
|
|
99
|
+
pageSize: number;
|
|
100
|
+
pageCount: number;
|
|
101
|
+
totalCount: number;
|
|
102
|
+
items: T[];
|
|
103
|
+
}
|
|
104
|
+
interface CommonMembershipStatus extends CommonOperationResult {
|
|
105
|
+
isMember: boolean;
|
|
106
|
+
}
|
|
107
|
+
interface CommonUserIdUsage extends CommonOperationResult {
|
|
108
|
+
isInUse: boolean;
|
|
109
|
+
}
|
|
110
|
+
type CommonCompany = CommonCompanyInfo;
|
|
111
|
+
interface CommonContact extends CommonContactInput {
|
|
112
|
+
isManager?: boolean;
|
|
113
|
+
stateCode?: number;
|
|
114
|
+
registeredAt?: string;
|
|
115
|
+
}
|
|
116
|
+
interface CommonAccessURL {
|
|
117
|
+
accessUrl: string;
|
|
118
|
+
}
|
|
119
|
+
interface CommonPointBalance {
|
|
120
|
+
remainingPoints: string;
|
|
121
|
+
}
|
|
122
|
+
interface CommonPaymentReceipt {
|
|
123
|
+
settlementCode: string;
|
|
124
|
+
resultCode: number | string | null;
|
|
125
|
+
resultMessage: string;
|
|
126
|
+
}
|
|
127
|
+
interface CommonPaymentHistory {
|
|
128
|
+
productType?: string;
|
|
129
|
+
productName?: string;
|
|
130
|
+
paymentType?: string;
|
|
131
|
+
contactName?: string;
|
|
132
|
+
contactEmailAddress?: string;
|
|
133
|
+
paymentAmount?: string;
|
|
134
|
+
chargedPoints?: string;
|
|
135
|
+
stateCode?: number;
|
|
136
|
+
registeredAt?: string;
|
|
137
|
+
stateChangedAt?: string;
|
|
138
|
+
}
|
|
139
|
+
interface CommonPointUseHistory {
|
|
140
|
+
serviceCode?: number;
|
|
141
|
+
serviceUserId?: string;
|
|
142
|
+
userId?: string;
|
|
143
|
+
userName?: string;
|
|
144
|
+
transactionPoints?: string;
|
|
145
|
+
remainingPoints?: string;
|
|
146
|
+
transactionTypeCode?: number;
|
|
147
|
+
transactedAt?: string;
|
|
148
|
+
}
|
|
149
|
+
interface CommonRefundableBalance {
|
|
150
|
+
refundablePoints: string;
|
|
151
|
+
}
|
|
152
|
+
interface CommonRefundReceipt {
|
|
153
|
+
refundCode: string;
|
|
154
|
+
resultCode: number | string | null;
|
|
155
|
+
resultMessage: string;
|
|
156
|
+
}
|
|
157
|
+
interface CommonRefundHistory {
|
|
158
|
+
bankName?: string;
|
|
159
|
+
accountNumber?: string;
|
|
160
|
+
accountHolderName?: string;
|
|
161
|
+
requestedPoints?: string;
|
|
162
|
+
reason?: string;
|
|
163
|
+
stateCode?: number;
|
|
164
|
+
requestedAt?: string;
|
|
165
|
+
}
|
|
166
|
+
/** 회원·담당자·포인트 API입니다. 사용자 ID는 client 설정을 사용합니다. */
|
|
167
|
+
interface CommonService {
|
|
168
|
+
/** Compat: `checkIsMember` */
|
|
169
|
+
checkMemberRegistration(input: CommonBusinessInput): Promise<CommonMembershipStatus>;
|
|
170
|
+
/** Compat: `checkID` */
|
|
171
|
+
checkUserIdUsage(input: {
|
|
172
|
+
userId: string;
|
|
173
|
+
}): Promise<CommonUserIdUsage>;
|
|
174
|
+
/** Compat: `joinMember` */
|
|
175
|
+
registerMember(input: RegisterMemberInput): Promise<CommonOperationResult>;
|
|
176
|
+
/** Compat: `quitMember` */
|
|
177
|
+
quitMember(input: QuitMemberInput): Promise<CommonOperationResult>;
|
|
178
|
+
/** Compat: `getCorpInfo` */
|
|
179
|
+
getCompanyInfo(input: CommonBusinessInput): Promise<CommonCompany>;
|
|
180
|
+
/** Compat: `updateCorpInfo` */
|
|
181
|
+
updateCompanyInfo(input: UpdateCommonCompanyInput): Promise<CommonOperationResult>;
|
|
182
|
+
/** Compat: `registContact` */
|
|
183
|
+
registerContact(input: RegisterCommonContactInput): Promise<CommonOperationResult>;
|
|
184
|
+
/** Compat: `getContactInfo` */
|
|
185
|
+
getContactInfo(input: CommonContactQueryInput): Promise<CommonContact>;
|
|
186
|
+
/** Compat: `listContact` */
|
|
187
|
+
listContacts(input: CommonBusinessInput): Promise<CommonContact[]>;
|
|
188
|
+
/** Compat: `updateContact` */
|
|
189
|
+
updateContact(input: UpdateCommonContactInput): Promise<CommonOperationResult>;
|
|
190
|
+
/** Compat: `deleteContact` */
|
|
191
|
+
deleteContact(input: CommonContactQueryInput): Promise<CommonOperationResult>;
|
|
192
|
+
/** Compat: `getAccessURL` */
|
|
193
|
+
getLoginURL(input: CommonBusinessInput): Promise<CommonAccessURL>;
|
|
194
|
+
/** Compat: `getBalance` */
|
|
195
|
+
getMemberPointBalance(input: CommonBusinessInput): Promise<CommonPointBalance>;
|
|
196
|
+
/** Compat: `getPartnerBalance` */
|
|
197
|
+
getPartnerPointBalance(input: CommonBusinessInput): Promise<CommonPointBalance>;
|
|
198
|
+
/** Compat: `getChargeURL` */
|
|
199
|
+
getMemberPointChargeURL(input: CommonBusinessInput): Promise<CommonAccessURL>;
|
|
200
|
+
/** Compat: `getPartnerURL` */
|
|
201
|
+
getPartnerPointChargeURL(input: CommonBusinessInput): Promise<CommonAccessURL>;
|
|
202
|
+
/** Compat: `paymentRequest` */
|
|
203
|
+
requestPointPayment(input: CommonPaymentInput): Promise<CommonPaymentReceipt>;
|
|
204
|
+
/** Compat: `getSettleResult` */
|
|
205
|
+
getPointPaymentInfo(input: CommonSettlementQueryInput): Promise<CommonPaymentHistory>;
|
|
206
|
+
/** Compat: `getPaymentHistory` */
|
|
207
|
+
getPointPaymentHistory(input: CommonHistoryInput): Promise<CommonHistoryResult<CommonPaymentHistory>>;
|
|
208
|
+
/** Compat: `getPaymentURL` */
|
|
209
|
+
getPointPaymentHistoryURL(input: CommonBusinessInput): Promise<CommonAccessURL>;
|
|
210
|
+
/** Compat: `getUseHistory` */
|
|
211
|
+
getPointUseHistory(input: CommonUseHistoryInput): Promise<CommonHistoryResult<CommonPointUseHistory>>;
|
|
212
|
+
/** Compat: `getUseHistoryURL` */
|
|
213
|
+
getPointUseHistoryURL(input: CommonBusinessInput): Promise<CommonAccessURL>;
|
|
214
|
+
/** Compat: `getRefundableBalance` */
|
|
215
|
+
getRefundablePointBalance(input: CommonBusinessInput): Promise<CommonRefundableBalance>;
|
|
216
|
+
/** Compat: `refund` */
|
|
217
|
+
requestPointRefund(input: CommonRefundInput): Promise<CommonRefundReceipt>;
|
|
218
|
+
/** Compat: `getRefundInfo` */
|
|
219
|
+
getPointRefundInfo(input: CommonRefundQueryInput): Promise<CommonRefundHistory>;
|
|
220
|
+
/** Compat: `getRefundHistory` */
|
|
221
|
+
getPointRefundHistory(input: CommonPageInput): Promise<CommonHistoryResult<CommonRefundHistory>>;
|
|
222
|
+
}
|
|
2
223
|
/**
|
|
3
224
|
* 작성일/일시 문자열 타입입니다.
|
|
4
225
|
*/
|
|
@@ -244,6 +465,26 @@ interface TaxInvoicePartyInput {
|
|
|
244
465
|
* 종사업장 식별번호입니다.
|
|
245
466
|
*/
|
|
246
467
|
taxRegistrationIdentifier?: string;
|
|
468
|
+
/**
|
|
469
|
+
* 주민등록번호입니다.
|
|
470
|
+
*/
|
|
471
|
+
residentRegistrationNumber?: string;
|
|
472
|
+
/**
|
|
473
|
+
* 외국인 등록번호입니다.
|
|
474
|
+
*/
|
|
475
|
+
foreignerRegistrationNumber?: string;
|
|
476
|
+
/**
|
|
477
|
+
* 종사업자번호입니다.
|
|
478
|
+
*/
|
|
479
|
+
branchBusinessNumber?: string;
|
|
480
|
+
/**
|
|
481
|
+
* 종사업자 일련번호입니다.
|
|
482
|
+
*/
|
|
483
|
+
branchSerialNumber?: string;
|
|
484
|
+
/**
|
|
485
|
+
* 법인 구분값입니다.
|
|
486
|
+
*/
|
|
487
|
+
corporationClassification?: string;
|
|
247
488
|
/**
|
|
248
489
|
* 상호입니다.
|
|
249
490
|
*/
|
|
@@ -256,14 +497,18 @@ interface TaxInvoicePartyInput {
|
|
|
256
497
|
* 주소입니다.
|
|
257
498
|
*/
|
|
258
499
|
address?: string;
|
|
500
|
+
/**
|
|
501
|
+
* 종목입니다.
|
|
502
|
+
*/
|
|
503
|
+
businessType?: string;
|
|
259
504
|
/**
|
|
260
505
|
* 업태입니다.
|
|
261
506
|
*/
|
|
262
507
|
businessClass?: string;
|
|
263
508
|
/**
|
|
264
|
-
*
|
|
509
|
+
* 부서명입니다.
|
|
265
510
|
*/
|
|
266
|
-
|
|
511
|
+
departmentName?: string;
|
|
267
512
|
/**
|
|
268
513
|
* 담당자 이름입니다.
|
|
269
514
|
*/
|
|
@@ -288,30 +533,6 @@ interface TaxInvoicePartyInput {
|
|
|
288
533
|
* 인쇄 여부입니다.
|
|
289
534
|
*/
|
|
290
535
|
printEnabled?: boolean;
|
|
291
|
-
/**
|
|
292
|
-
* 주민등록번호입니다.
|
|
293
|
-
*/
|
|
294
|
-
residentRegistrationNumber?: string;
|
|
295
|
-
/**
|
|
296
|
-
* 외국인 등록번호입니다.
|
|
297
|
-
*/
|
|
298
|
-
foreignerRegistrationNumber?: string;
|
|
299
|
-
/**
|
|
300
|
-
* 종사업자번호입니다.
|
|
301
|
-
*/
|
|
302
|
-
branchBusinessNumber?: string;
|
|
303
|
-
/**
|
|
304
|
-
* 종사업자 일련번호입니다.
|
|
305
|
-
*/
|
|
306
|
-
branchSerialNumber?: string;
|
|
307
|
-
/**
|
|
308
|
-
* 법인 구분값입니다.
|
|
309
|
-
*/
|
|
310
|
-
corporationClassification?: string;
|
|
311
|
-
/**
|
|
312
|
-
* 부서명입니다.
|
|
313
|
-
*/
|
|
314
|
-
departmentName?: string;
|
|
315
536
|
}
|
|
316
537
|
/**
|
|
317
538
|
* 세금계산서 공급받는자 입력입니다.
|
|
@@ -321,6 +542,14 @@ interface TaxInvoiceBuyerInput extends TaxInvoicePartyInput {
|
|
|
321
542
|
* 공급받는자 구분입니다.
|
|
322
543
|
*/
|
|
323
544
|
recipientType?: TaxInvoiceRecipientType;
|
|
545
|
+
/**
|
|
546
|
+
* 주 담당 부서명입니다.
|
|
547
|
+
*/
|
|
548
|
+
primaryDepartmentName?: string;
|
|
549
|
+
/**
|
|
550
|
+
* 예비 담당 부서명입니다.
|
|
551
|
+
*/
|
|
552
|
+
secondaryDepartmentName?: string;
|
|
324
553
|
/**
|
|
325
554
|
* 예비 담당자 이름입니다.
|
|
326
555
|
*/
|
|
@@ -337,14 +566,6 @@ interface TaxInvoiceBuyerInput extends TaxInvoicePartyInput {
|
|
|
337
566
|
* 예비 담당자 이메일 주소입니다.
|
|
338
567
|
*/
|
|
339
568
|
secondaryEmailAddress?: string;
|
|
340
|
-
/**
|
|
341
|
-
* 주 담당 부서명입니다.
|
|
342
|
-
*/
|
|
343
|
-
primaryDepartmentName?: string;
|
|
344
|
-
/**
|
|
345
|
-
* 예비 담당 부서명입니다.
|
|
346
|
-
*/
|
|
347
|
-
secondaryDepartmentName?: string;
|
|
348
569
|
/**
|
|
349
570
|
* 휴폐업 상태입니다.
|
|
350
571
|
*/
|
|
@@ -358,14 +579,14 @@ interface TaxInvoiceBuyerInput extends TaxInvoicePartyInput {
|
|
|
358
579
|
* 세금계산서 결제/합계 금액 입력입니다.
|
|
359
580
|
*/
|
|
360
581
|
interface TaxInvoicePaymentSummaryInput {
|
|
361
|
-
/**
|
|
362
|
-
* 세액 합계입니다.
|
|
363
|
-
*/
|
|
364
|
-
totalTaxAmount?: string;
|
|
365
582
|
/**
|
|
366
583
|
* 공급가액 합계입니다.
|
|
367
584
|
*/
|
|
368
585
|
totalSupplyCostAmount?: string;
|
|
586
|
+
/**
|
|
587
|
+
* 세액 합계입니다.
|
|
588
|
+
*/
|
|
589
|
+
totalTaxAmount?: string;
|
|
369
590
|
/**
|
|
370
591
|
* 합계 금액입니다.
|
|
371
592
|
*/
|
|
@@ -405,25 +626,25 @@ interface TaxInvoiceModificationInput {
|
|
|
405
626
|
*/
|
|
406
627
|
interface TaxInvoiceDocumentInput {
|
|
407
628
|
/**
|
|
408
|
-
*
|
|
629
|
+
* 기재상 일련번호입니다.
|
|
409
630
|
*/
|
|
410
|
-
|
|
631
|
+
taxInvoiceSerialNumber?: string;
|
|
411
632
|
/**
|
|
412
|
-
*
|
|
633
|
+
* 책번호 권 항목입니다.
|
|
413
634
|
*/
|
|
414
|
-
|
|
635
|
+
bookVolumeNumber?: number | string;
|
|
415
636
|
/**
|
|
416
|
-
*
|
|
637
|
+
* 책번호 호 항목입니다.
|
|
417
638
|
*/
|
|
418
|
-
|
|
639
|
+
bookIssueNumber?: number | string;
|
|
419
640
|
/**
|
|
420
|
-
*
|
|
641
|
+
* 작성일자(yyyyMMdd)입니다.
|
|
421
642
|
*/
|
|
422
|
-
|
|
643
|
+
writtenDate?: TaxInvoiceDateString;
|
|
423
644
|
/**
|
|
424
|
-
*
|
|
645
|
+
* 발행 형태입니다.
|
|
425
646
|
*/
|
|
426
|
-
|
|
647
|
+
issueType?: TaxInvoiceIssueType;
|
|
427
648
|
/**
|
|
428
649
|
* 발행시기 코드입니다.
|
|
429
650
|
*/
|
|
@@ -432,6 +653,14 @@ interface TaxInvoiceDocumentInput {
|
|
|
432
653
|
* 과세 유형입니다.
|
|
433
654
|
*/
|
|
434
655
|
taxType?: TaxInvoiceTaxationType;
|
|
656
|
+
/**
|
|
657
|
+
* 영수/청구 구분입니다.
|
|
658
|
+
*/
|
|
659
|
+
purposeType?: TaxInvoicePurposeType;
|
|
660
|
+
/**
|
|
661
|
+
* 과금 방향입니다.
|
|
662
|
+
*/
|
|
663
|
+
chargeDirection?: TaxInvoiceChargeDirection;
|
|
435
664
|
/**
|
|
436
665
|
* 공급자 정보입니다.
|
|
437
666
|
*/
|
|
@@ -453,9 +682,13 @@ interface TaxInvoiceDocumentInput {
|
|
|
453
682
|
*/
|
|
454
683
|
modification?: TaxInvoiceModificationInput;
|
|
455
684
|
/**
|
|
456
|
-
*
|
|
685
|
+
* 상세 품목 목록입니다.
|
|
457
686
|
*/
|
|
458
|
-
|
|
687
|
+
lineItems?: TaxInvoiceLineItemInput[];
|
|
688
|
+
/**
|
|
689
|
+
* 추가 담당자 목록입니다.
|
|
690
|
+
*/
|
|
691
|
+
additionalContacts?: TaxInvoiceAdditionalContactInput[];
|
|
459
692
|
/**
|
|
460
693
|
* 비고1입니다.
|
|
461
694
|
*/
|
|
@@ -469,13 +702,9 @@ interface TaxInvoiceDocumentInput {
|
|
|
469
702
|
*/
|
|
470
703
|
remarkThree?: string;
|
|
471
704
|
/**
|
|
472
|
-
*
|
|
473
|
-
*/
|
|
474
|
-
bookVolumeNumber?: number | string;
|
|
475
|
-
/**
|
|
476
|
-
* 책번호 호 항목입니다.
|
|
705
|
+
* 거래명세서 동시작성 여부입니다.
|
|
477
706
|
*/
|
|
478
|
-
|
|
707
|
+
writeSpecificationEnabled?: boolean;
|
|
479
708
|
/**
|
|
480
709
|
* 사업자등록증 이미지 첨부 여부입니다.
|
|
481
710
|
*/
|
|
@@ -484,14 +713,6 @@ interface TaxInvoiceDocumentInput {
|
|
|
484
713
|
* 통장사본 이미지 첨부 여부입니다.
|
|
485
714
|
*/
|
|
486
715
|
includeBankBookImage?: boolean;
|
|
487
|
-
/**
|
|
488
|
-
* 상세 품목 목록입니다.
|
|
489
|
-
*/
|
|
490
|
-
lineItems?: TaxInvoiceLineItemInput[];
|
|
491
|
-
/**
|
|
492
|
-
* 추가 담당자 목록입니다.
|
|
493
|
-
*/
|
|
494
|
-
additionalContacts?: TaxInvoiceAdditionalContactInput[];
|
|
495
716
|
}
|
|
496
717
|
/**
|
|
497
718
|
* 세금계산서 공통 처리 결과입니다.
|
|
@@ -500,7 +721,7 @@ export interface TaxInvoiceOperationResult {
|
|
|
500
721
|
/**
|
|
501
722
|
* 처리 결과 코드입니다.
|
|
502
723
|
*/
|
|
503
|
-
resultCode:
|
|
724
|
+
resultCode: ProviderNumericCode | undefined;
|
|
504
725
|
/**
|
|
505
726
|
* 처리 결과 메시지입니다.
|
|
506
727
|
*/
|
|
@@ -548,7 +769,7 @@ export declare const TaxInvoiceBulkIssueSubmissionTransactionStates: {
|
|
|
548
769
|
/**
|
|
549
770
|
* 초대량 처리 상태 타입입니다.
|
|
550
771
|
*/
|
|
551
|
-
export type TaxInvoiceBulkIssueSubmissionTransactionState =
|
|
772
|
+
export type TaxInvoiceBulkIssueSubmissionTransactionState = ProviderNumericCode;
|
|
552
773
|
/**
|
|
553
774
|
* 초대량 발행 개별 처리 결과입니다.
|
|
554
775
|
*/
|
|
@@ -568,7 +789,7 @@ export interface TaxInvoiceBulkIssueSubmissionResultItem {
|
|
|
568
789
|
/**
|
|
569
790
|
* 개별 처리 결과 코드입니다.
|
|
570
791
|
*/
|
|
571
|
-
resultCode?:
|
|
792
|
+
resultCode?: ProviderNumericCode;
|
|
572
793
|
/**
|
|
573
794
|
* 개별 처리 결과 메시지입니다.
|
|
574
795
|
*/
|
|
@@ -590,18 +811,14 @@ export interface TaxInvoiceBulkIssueSubmissionResultItem {
|
|
|
590
811
|
* 초대량 접수결과 조회 결과입니다.
|
|
591
812
|
*/
|
|
592
813
|
export interface TaxInvoiceBulkIssueSubmissionResult extends TaxInvoiceOperationResult {
|
|
593
|
-
/**
|
|
594
|
-
* 접수 식별자입니다.
|
|
595
|
-
*/
|
|
596
|
-
receiptIdentifier?: string;
|
|
597
|
-
/**
|
|
598
|
-
* 접수일시(yyyyMMddHHmmss)입니다.
|
|
599
|
-
*/
|
|
600
|
-
receivedAt?: string;
|
|
601
814
|
/**
|
|
602
815
|
* 제출 식별자입니다.
|
|
603
816
|
*/
|
|
604
817
|
submissionIdentifier?: string;
|
|
818
|
+
/**
|
|
819
|
+
* 접수 식별자입니다.
|
|
820
|
+
*/
|
|
821
|
+
receiptIdentifier?: string;
|
|
605
822
|
/**
|
|
606
823
|
* 제출 건수입니다.
|
|
607
824
|
*/
|
|
@@ -619,21 +836,25 @@ export interface TaxInvoiceBulkIssueSubmissionResult extends TaxInvoiceOperation
|
|
|
619
836
|
*/
|
|
620
837
|
transactionState?: TaxInvoiceBulkIssueSubmissionTransactionState;
|
|
621
838
|
/**
|
|
622
|
-
* 처리
|
|
839
|
+
* 처리 결과 코드입니다.
|
|
623
840
|
*/
|
|
624
|
-
|
|
841
|
+
transactionResultCode?: ProviderNumericCode;
|
|
625
842
|
/**
|
|
626
|
-
* 처리
|
|
843
|
+
* 개별 처리 결과 목록입니다.
|
|
627
844
|
*/
|
|
628
|
-
|
|
845
|
+
issueResults?: TaxInvoiceBulkIssueSubmissionResultItem[];
|
|
629
846
|
/**
|
|
630
|
-
*
|
|
847
|
+
* 접수일시(yyyyMMddHHmmss)입니다.
|
|
631
848
|
*/
|
|
632
|
-
|
|
849
|
+
receivedAt?: string;
|
|
633
850
|
/**
|
|
634
|
-
*
|
|
851
|
+
* 처리 시작일시(yyyyMMddHHmmss)입니다.
|
|
635
852
|
*/
|
|
636
|
-
|
|
853
|
+
transactionStartedAt?: string;
|
|
854
|
+
/**
|
|
855
|
+
* 처리 완료일시(yyyyMMddHHmmss)입니다.
|
|
856
|
+
*/
|
|
857
|
+
transactionCompletedAt?: string;
|
|
637
858
|
}
|
|
638
859
|
/**
|
|
639
860
|
* 문서 요약정보 조회 결과입니다.
|
|
@@ -644,182 +865,217 @@ export interface TaxInvoiceInfo {
|
|
|
644
865
|
*/
|
|
645
866
|
itemKey: string;
|
|
646
867
|
/**
|
|
647
|
-
*
|
|
868
|
+
* 국세청 승인번호입니다.
|
|
648
869
|
*/
|
|
649
|
-
|
|
870
|
+
nationalTaxServiceConfirmationNumber?: string;
|
|
650
871
|
/**
|
|
651
|
-
*
|
|
872
|
+
* 공급자 사업자번호입니다.
|
|
652
873
|
*/
|
|
653
|
-
|
|
874
|
+
supplierBusinessNumber: string;
|
|
654
875
|
/**
|
|
655
|
-
*
|
|
876
|
+
* 공급자 문서번호입니다.
|
|
656
877
|
*/
|
|
657
|
-
|
|
878
|
+
supplierManagementKey?: string;
|
|
658
879
|
/**
|
|
659
|
-
*
|
|
880
|
+
* 공급받는자 사업자번호입니다.
|
|
660
881
|
*/
|
|
661
|
-
|
|
882
|
+
buyerBusinessNumber: string;
|
|
662
883
|
/**
|
|
663
|
-
*
|
|
884
|
+
* 공급받는자 문서번호입니다.
|
|
664
885
|
*/
|
|
665
|
-
|
|
886
|
+
buyerManagementKey?: string;
|
|
666
887
|
/**
|
|
667
|
-
*
|
|
888
|
+
* 수탁자 사업자번호입니다.
|
|
668
889
|
*/
|
|
669
|
-
|
|
890
|
+
trusteeBusinessNumber?: string;
|
|
670
891
|
/**
|
|
671
|
-
*
|
|
892
|
+
* 수탁자 문서번호입니다.
|
|
672
893
|
*/
|
|
673
|
-
|
|
894
|
+
trusteeManagementKey?: string;
|
|
674
895
|
/**
|
|
675
|
-
*
|
|
896
|
+
* 과세유형입니다.
|
|
676
897
|
*/
|
|
677
|
-
|
|
898
|
+
taxType: string | null;
|
|
678
899
|
/**
|
|
679
|
-
*
|
|
900
|
+
* 발행유형입니다.
|
|
680
901
|
*/
|
|
681
|
-
|
|
902
|
+
issueType: string | null;
|
|
682
903
|
/**
|
|
683
|
-
*
|
|
904
|
+
* 영수/청구 구분입니다.
|
|
684
905
|
*/
|
|
685
|
-
|
|
906
|
+
purposeType: string | null;
|
|
686
907
|
/**
|
|
687
|
-
*
|
|
908
|
+
* 공급가액 합계입니다.
|
|
688
909
|
*/
|
|
689
|
-
|
|
910
|
+
totalSupplyCost: string;
|
|
690
911
|
/**
|
|
691
|
-
*
|
|
912
|
+
* 세액 합계입니다.
|
|
692
913
|
*/
|
|
693
|
-
|
|
914
|
+
totalTax: string;
|
|
694
915
|
/**
|
|
695
|
-
*
|
|
916
|
+
* 수정사유코드입니다.
|
|
696
917
|
*/
|
|
697
|
-
|
|
918
|
+
modificationCode?: ProviderNumericCode;
|
|
698
919
|
/**
|
|
699
|
-
*
|
|
920
|
+
* 공급자 상호입니다.
|
|
700
921
|
*/
|
|
701
|
-
|
|
922
|
+
supplierCompanyName: string;
|
|
702
923
|
/**
|
|
703
|
-
*
|
|
924
|
+
* 공급받는자 상호입니다.
|
|
704
925
|
*/
|
|
705
|
-
|
|
926
|
+
buyerCompanyName: string;
|
|
706
927
|
/**
|
|
707
|
-
*
|
|
928
|
+
* 수탁자 상호입니다.
|
|
708
929
|
*/
|
|
709
|
-
|
|
930
|
+
trusteeCompanyName?: string;
|
|
710
931
|
/**
|
|
711
|
-
*
|
|
932
|
+
* 상태 코드입니다.
|
|
712
933
|
*/
|
|
713
|
-
|
|
934
|
+
stateCode?: ProviderNumericCode;
|
|
714
935
|
/**
|
|
715
|
-
*
|
|
936
|
+
* 상태 메모입니다.
|
|
716
937
|
*/
|
|
717
|
-
|
|
938
|
+
stateMemo?: string;
|
|
718
939
|
/**
|
|
719
|
-
* 국세청 전송
|
|
940
|
+
* 국세청 전송 결과 코드입니다.
|
|
720
941
|
*/
|
|
721
|
-
|
|
942
|
+
nationalTaxServiceResult?: ProviderNumericCode;
|
|
722
943
|
/**
|
|
723
|
-
*
|
|
944
|
+
* 국세청 전송 오류 코드입니다.
|
|
724
945
|
*/
|
|
725
|
-
|
|
946
|
+
nationalTaxServiceSendErrorCode?: ProviderNumericCode;
|
|
726
947
|
/**
|
|
727
|
-
*
|
|
948
|
+
* 지연발행 여부입니다.
|
|
728
949
|
*/
|
|
729
|
-
|
|
950
|
+
isLateIssued?: ProviderBoolean;
|
|
730
951
|
/**
|
|
731
|
-
*
|
|
952
|
+
* 개봉 여부입니다.
|
|
732
953
|
*/
|
|
733
|
-
|
|
954
|
+
isOpen?: ProviderBoolean;
|
|
734
955
|
/**
|
|
735
|
-
*
|
|
956
|
+
* 연동 문서 여부입니다.
|
|
736
957
|
*/
|
|
737
|
-
|
|
958
|
+
isApiLinkedDocument?: ProviderBoolean;
|
|
738
959
|
/**
|
|
739
|
-
* 공급자
|
|
960
|
+
* 공급자 인쇄 여부입니다.
|
|
740
961
|
*/
|
|
741
|
-
|
|
962
|
+
isSupplierPrinted?: ProviderBoolean;
|
|
742
963
|
/**
|
|
743
|
-
*
|
|
964
|
+
* 공급받는자 인쇄 여부입니다.
|
|
744
965
|
*/
|
|
745
|
-
|
|
966
|
+
isBuyerPrinted?: ProviderBoolean;
|
|
746
967
|
/**
|
|
747
|
-
*
|
|
968
|
+
* 수탁자 인쇄 여부입니다.
|
|
748
969
|
*/
|
|
749
|
-
|
|
970
|
+
isTrusteePrinted?: ProviderBoolean;
|
|
750
971
|
/**
|
|
751
|
-
* 공급받는자
|
|
972
|
+
* 공급받는자 휴폐업 상태입니다.
|
|
752
973
|
*/
|
|
753
|
-
|
|
974
|
+
buyerBusinessStatus?: ProviderNumericCode;
|
|
754
975
|
/**
|
|
755
|
-
*
|
|
976
|
+
* 작성일자(yyyyMMdd)입니다.
|
|
756
977
|
*/
|
|
757
|
-
|
|
978
|
+
writtenDate: string;
|
|
758
979
|
/**
|
|
759
|
-
*
|
|
980
|
+
* 등록일시(yyyyMMddHHmmss)입니다.
|
|
760
981
|
*/
|
|
761
|
-
|
|
982
|
+
registeredAt: string;
|
|
762
983
|
/**
|
|
763
|
-
*
|
|
984
|
+
* 발행일시(yyyyMMddHHmmss)입니다.
|
|
764
985
|
*/
|
|
765
|
-
|
|
986
|
+
issuedAt?: string;
|
|
766
987
|
/**
|
|
767
|
-
*
|
|
988
|
+
* 상태 변경일시(yyyyMMddHHmmss)입니다.
|
|
768
989
|
*/
|
|
769
|
-
|
|
990
|
+
stateChangedAt: string;
|
|
770
991
|
/**
|
|
771
|
-
*
|
|
992
|
+
* 개봉일시(yyyyMMddHHmmss)입니다.
|
|
772
993
|
*/
|
|
773
|
-
|
|
994
|
+
openedAt?: string;
|
|
774
995
|
/**
|
|
775
|
-
*
|
|
996
|
+
* 국세청 전송일시(yyyyMMddHHmmss)입니다.
|
|
776
997
|
*/
|
|
777
|
-
|
|
998
|
+
nationalTaxServiceSentAt?: string;
|
|
778
999
|
/**
|
|
779
|
-
*
|
|
1000
|
+
* 국세청 결과 수신일시(yyyyMMddHHmmss)입니다.
|
|
780
1001
|
*/
|
|
781
|
-
|
|
1002
|
+
nationalTaxServiceResultReceivedAt?: string;
|
|
782
1003
|
/**
|
|
783
|
-
*
|
|
1004
|
+
* 공급받는자 휴폐업일자(yyyyMMdd)입니다.
|
|
784
1005
|
*/
|
|
785
|
-
|
|
1006
|
+
buyerBusinessStatusDate?: string;
|
|
786
1007
|
}
|
|
787
1008
|
/**
|
|
788
|
-
*
|
|
1009
|
+
* 서버가 반환한 공급자·수탁자 플래그를 보존하는 정보입니다.
|
|
789
1010
|
*/
|
|
790
|
-
export interface
|
|
1011
|
+
export interface TaxInvoicePartyOutput extends Omit<TaxInvoicePartyInput, 'sendTextMessage' | 'printEnabled'> {
|
|
1012
|
+
sendTextMessage?: ProviderBoolean;
|
|
1013
|
+
printEnabled?: ProviderBoolean;
|
|
1014
|
+
}
|
|
1015
|
+
/** 공급받는자 분류와 플래그는 새로운 서버 값도 보존합니다. */
|
|
1016
|
+
export interface TaxInvoiceBuyerOutput extends Omit<TaxInvoiceBuyerInput, 'sendTextMessage' | 'printEnabled' | 'recipientType' | 'businessStatus'> {
|
|
1017
|
+
sendTextMessage?: ProviderBoolean;
|
|
1018
|
+
printEnabled?: ProviderBoolean;
|
|
1019
|
+
recipientType?: string | null;
|
|
1020
|
+
businessStatus?: ProviderNumericCode;
|
|
1021
|
+
}
|
|
1022
|
+
/** 서버가 반환한 수정사유 코드를 보존합니다. */
|
|
1023
|
+
export interface TaxInvoiceModificationOutput extends Omit<TaxInvoiceModificationInput, 'modificationReasonCode'> {
|
|
1024
|
+
modificationReasonCode?: ProviderNumericCode;
|
|
1025
|
+
}
|
|
1026
|
+
/** 문서 상세조회 결과입니다. 입력 enum과 별도로 서버의 새 분류값을 보존합니다. */
|
|
1027
|
+
export interface TaxInvoiceDocumentOutput extends Omit<TaxInvoiceDocumentInput, 'issueType' | 'taxType' | 'purposeType' | 'chargeDirection' | 'supplier' | 'buyer' | 'trustee' | 'modification' | 'writeSpecificationEnabled' | 'includeBusinessLicenseImage' | 'includeBankBookImage'> {
|
|
1028
|
+
issueType?: string | null;
|
|
1029
|
+
taxType?: string | null;
|
|
1030
|
+
purposeType?: string | null;
|
|
1031
|
+
chargeDirection?: string | null;
|
|
1032
|
+
supplier?: TaxInvoicePartyOutput;
|
|
1033
|
+
buyer?: TaxInvoiceBuyerOutput;
|
|
1034
|
+
trustee?: TaxInvoicePartyOutput;
|
|
1035
|
+
modification?: TaxInvoiceModificationOutput;
|
|
1036
|
+
writeSpecificationEnabled?: ProviderBoolean;
|
|
1037
|
+
includeBusinessLicenseImage?: ProviderBoolean;
|
|
1038
|
+
includeBankBookImage?: ProviderBoolean;
|
|
791
1039
|
/**
|
|
792
|
-
*
|
|
1040
|
+
* 국세청 승인번호입니다.
|
|
793
1041
|
*/
|
|
794
|
-
|
|
1042
|
+
nationalTaxServiceConfirmationNumber?: string;
|
|
795
1043
|
/**
|
|
796
1044
|
* 상태 코드입니다.
|
|
797
1045
|
*/
|
|
798
|
-
stateCode?:
|
|
1046
|
+
stateCode?: ProviderNumericCode;
|
|
799
1047
|
/**
|
|
800
|
-
*
|
|
1048
|
+
* 국세청 전송 결과 코드입니다.
|
|
801
1049
|
*/
|
|
802
|
-
|
|
1050
|
+
nationalTaxServiceResultCode?: ProviderNumericCode;
|
|
1051
|
+
/**
|
|
1052
|
+
* 국세청 전송 오류 코드입니다.
|
|
1053
|
+
*/
|
|
1054
|
+
nationalTaxServiceSendErrorCode?: ProviderNumericCode;
|
|
803
1055
|
/**
|
|
804
1056
|
* 지연발행 여부입니다.
|
|
805
1057
|
*/
|
|
806
|
-
isLateIssued?:
|
|
1058
|
+
isLateIssued?: ProviderBoolean;
|
|
807
1059
|
/**
|
|
808
1060
|
* 개봉 여부입니다.
|
|
809
1061
|
*/
|
|
810
|
-
isOpen?:
|
|
1062
|
+
isOpen?: ProviderBoolean;
|
|
811
1063
|
/**
|
|
812
|
-
*
|
|
1064
|
+
* API 연동 문서 여부입니다.
|
|
813
1065
|
*/
|
|
814
|
-
|
|
1066
|
+
isApiLinkedDocument?: ProviderBoolean;
|
|
815
1067
|
/**
|
|
816
|
-
*
|
|
1068
|
+
* 발행일시(yyyyMMddHHmmss)입니다.
|
|
817
1069
|
*/
|
|
818
|
-
|
|
1070
|
+
issuedAt?: string;
|
|
819
1071
|
/**
|
|
820
|
-
*
|
|
1072
|
+
* 상태 변경일시(yyyyMMddHHmmss)입니다.
|
|
1073
|
+
*/
|
|
1074
|
+
stateChangedAt?: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* 개봉일시(yyyyMMddHHmmss)입니다.
|
|
821
1077
|
*/
|
|
822
|
-
|
|
1078
|
+
openedAt?: string;
|
|
823
1079
|
/**
|
|
824
1080
|
* 국세청 전송일시(yyyyMMddHHmmss)입니다.
|
|
825
1081
|
*/
|
|
@@ -828,14 +1084,6 @@ export interface TaxInvoiceDocumentOutput extends TaxInvoiceDocumentInput {
|
|
|
828
1084
|
* 국세청 결과 수신일시(yyyyMMddHHmmss)입니다.
|
|
829
1085
|
*/
|
|
830
1086
|
nationalTaxServiceResultReceivedAt?: string;
|
|
831
|
-
/**
|
|
832
|
-
* 국세청 전송 오류 코드입니다.
|
|
833
|
-
*/
|
|
834
|
-
nationalTaxServiceSendErrorCode?: string;
|
|
835
|
-
/**
|
|
836
|
-
* API 연동 문서 여부입니다.
|
|
837
|
-
*/
|
|
838
|
-
isApiLinkedDocument?: boolean;
|
|
839
1087
|
}
|
|
840
1088
|
/**
|
|
841
1089
|
* 문서번호 사용 여부 조회 결과입니다.
|
|
@@ -871,6 +1119,10 @@ export interface TaxInvoiceXmlResult {
|
|
|
871
1119
|
*/
|
|
872
1120
|
xmlContent?: string;
|
|
873
1121
|
}
|
|
1122
|
+
export interface TaxInvoicePdfDocument {
|
|
1123
|
+
/** PDF 원본 바이트. */
|
|
1124
|
+
fileData: Uint8Array;
|
|
1125
|
+
}
|
|
874
1126
|
/**
|
|
875
1127
|
* 검색 조회 결과입니다.
|
|
876
1128
|
*/
|
|
@@ -880,21 +1132,21 @@ export interface TaxInvoiceSearchResult {
|
|
|
880
1132
|
*/
|
|
881
1133
|
operationResult: TaxInvoiceOperationResult;
|
|
882
1134
|
/**
|
|
883
|
-
*
|
|
1135
|
+
* 현재 페이지 번호입니다.
|
|
884
1136
|
*/
|
|
885
|
-
|
|
1137
|
+
pageNumber?: number;
|
|
886
1138
|
/**
|
|
887
1139
|
* 페이지당 건수입니다.
|
|
888
1140
|
*/
|
|
889
1141
|
pageSize?: number;
|
|
890
|
-
/**
|
|
891
|
-
* 현재 페이지 번호입니다.
|
|
892
|
-
*/
|
|
893
|
-
pageNumber?: number;
|
|
894
1142
|
/**
|
|
895
1143
|
* 전체 페이지 수입니다.
|
|
896
1144
|
*/
|
|
897
1145
|
pageCount?: number;
|
|
1146
|
+
/**
|
|
1147
|
+
* 총 검색 건수입니다.
|
|
1148
|
+
*/
|
|
1149
|
+
totalCount?: number;
|
|
898
1150
|
/**
|
|
899
1151
|
* 문서 요약 목록입니다.
|
|
900
1152
|
*/
|
|
@@ -907,7 +1159,7 @@ export interface TaxInvoiceLogEntry {
|
|
|
907
1159
|
/**
|
|
908
1160
|
* 문서 이력 유형 코드입니다.
|
|
909
1161
|
*/
|
|
910
|
-
documentLogTypeCode?:
|
|
1162
|
+
documentLogTypeCode?: ProviderNumericCode;
|
|
911
1163
|
/**
|
|
912
1164
|
* 로그 메시지입니다.
|
|
913
1165
|
*/
|
|
@@ -915,7 +1167,7 @@ export interface TaxInvoiceLogEntry {
|
|
|
915
1167
|
/**
|
|
916
1168
|
* 처리 유형 코드입니다.
|
|
917
1169
|
*/
|
|
918
|
-
processTypeCode?: string;
|
|
1170
|
+
processTypeCode?: string | null;
|
|
919
1171
|
/**
|
|
920
1172
|
* 처리 회사명입니다.
|
|
921
1173
|
*/
|
|
@@ -974,11 +1226,11 @@ export interface TaxInvoiceEmailSendSetting {
|
|
|
974
1226
|
/**
|
|
975
1227
|
* 메일 유형 코드입니다.
|
|
976
1228
|
*/
|
|
977
|
-
emailTypeCode?: string;
|
|
1229
|
+
emailTypeCode?: string | null;
|
|
978
1230
|
/**
|
|
979
1231
|
* 전송 활성화 여부입니다.
|
|
980
1232
|
*/
|
|
981
|
-
sendEnabled?:
|
|
1233
|
+
sendEnabled?: ProviderBoolean;
|
|
982
1234
|
}
|
|
983
1235
|
/**
|
|
984
1236
|
* 국세청 전송 설정입니다.
|
|
@@ -987,7 +1239,12 @@ export interface TaxInvoiceSendToNationalTaxServiceSetting {
|
|
|
987
1239
|
/**
|
|
988
1240
|
* 즉시 전송 여부입니다.
|
|
989
1241
|
*/
|
|
990
|
-
sendToNationalTaxServiceEnabled
|
|
1242
|
+
sendToNationalTaxServiceEnabled?: ProviderBoolean;
|
|
1243
|
+
}
|
|
1244
|
+
/** ASP사업자 유통메일 공개키 조회 결과입니다. */
|
|
1245
|
+
export interface TaxInvoiceEmailPublicKeys {
|
|
1246
|
+
/** 공식 SDK의 원본 응답입니다. 공개된 필드 계약이 없어 사용 전에 구조를 확인해야 합니다. */
|
|
1247
|
+
publicKeys: unknown;
|
|
991
1248
|
}
|
|
992
1249
|
/**
|
|
993
1250
|
* 인증서 만료일 조회 결과입니다.
|
|
@@ -1002,14 +1259,6 @@ export interface TaxInvoiceTaxCertificateExpiration {
|
|
|
1002
1259
|
* 인증서 정보 조회 결과입니다.
|
|
1003
1260
|
*/
|
|
1004
1261
|
export interface TaxInvoiceTaxCertificateInfo {
|
|
1005
|
-
/**
|
|
1006
|
-
* 등록일시(yyyyMMddHHmmss)입니다.
|
|
1007
|
-
*/
|
|
1008
|
-
registeredAt?: string;
|
|
1009
|
-
/**
|
|
1010
|
-
* 만료일시(yyyyMMddHHmmss)입니다.
|
|
1011
|
-
*/
|
|
1012
|
-
expiredAt?: string;
|
|
1013
1262
|
/**
|
|
1014
1263
|
* 발급자 DN입니다.
|
|
1015
1264
|
*/
|
|
@@ -1026,14 +1275,32 @@ export interface TaxInvoiceTaxCertificateInfo {
|
|
|
1026
1275
|
* 인증서 정책 OID입니다.
|
|
1027
1276
|
*/
|
|
1028
1277
|
policyObjectIdentifier?: string;
|
|
1278
|
+
/**
|
|
1279
|
+
* 등록 담당자 아이디입니다.
|
|
1280
|
+
*/
|
|
1281
|
+
registeredContactIdentifier?: string;
|
|
1029
1282
|
/**
|
|
1030
1283
|
* 등록 담당자 이름입니다.
|
|
1031
1284
|
*/
|
|
1032
1285
|
registeredContactName?: string;
|
|
1033
1286
|
/**
|
|
1034
|
-
*
|
|
1287
|
+
* 등록일시(yyyyMMddHHmmss)입니다.
|
|
1035
1288
|
*/
|
|
1036
|
-
|
|
1289
|
+
registeredAt?: string;
|
|
1290
|
+
/**
|
|
1291
|
+
* 만료일시(yyyyMMddHHmmss)입니다.
|
|
1292
|
+
*/
|
|
1293
|
+
expiredAt?: string;
|
|
1294
|
+
}
|
|
1295
|
+
/** 전자세금계산서 과금정보. */
|
|
1296
|
+
export interface TaxInvoiceChargeInfo {
|
|
1297
|
+
/** 정밀도 손실 없는 단가 문자열. */
|
|
1298
|
+
unitCost: string;
|
|
1299
|
+
chargeMethod: string | null;
|
|
1300
|
+
rateSystem: string | null;
|
|
1301
|
+
}
|
|
1302
|
+
export interface TaxInvoiceUnitCost {
|
|
1303
|
+
unitCost: string;
|
|
1037
1304
|
}
|
|
1038
1305
|
/**
|
|
1039
1306
|
* 세금계산서 문서번호 유형 상수입니다.
|
|
@@ -1623,6 +1890,28 @@ export interface RefuseReverseIssueRequestInput extends TaxInvoiceDocumentReques
|
|
|
1623
1890
|
*/
|
|
1624
1891
|
historyMemo: string;
|
|
1625
1892
|
}
|
|
1893
|
+
/** 공식 SDK의 발행예정 전송 요청입니다. 현재 공개 HTTP 문서에는 설명되지 않은 레거시 동작입니다. */
|
|
1894
|
+
export interface SendInvoiceInput extends TaxInvoiceDocumentRequest {
|
|
1895
|
+
/** 상태 이력에 남길 메모입니다. */
|
|
1896
|
+
historyMemo?: string;
|
|
1897
|
+
/** 전송 안내 메일 제목입니다. */
|
|
1898
|
+
emailSubject?: string;
|
|
1899
|
+
}
|
|
1900
|
+
/** 공식 SDK의 발행예정 전송 취소 요청입니다. */
|
|
1901
|
+
export interface CancelInvoiceSendInput extends TaxInvoiceDocumentRequest {
|
|
1902
|
+
/** 상태 이력에 남길 메모입니다. */
|
|
1903
|
+
historyMemo?: string;
|
|
1904
|
+
}
|
|
1905
|
+
/** 공식 SDK의 세금계산서 승인 요청입니다. */
|
|
1906
|
+
export interface AcceptInvoiceInput extends TaxInvoiceDocumentRequest {
|
|
1907
|
+
/** 상태 이력에 남길 메모입니다. */
|
|
1908
|
+
historyMemo?: string;
|
|
1909
|
+
}
|
|
1910
|
+
/** 공식 SDK의 세금계산서 거부 요청입니다. */
|
|
1911
|
+
export interface DenyInvoiceInput extends TaxInvoiceDocumentRequest {
|
|
1912
|
+
/** 상태 이력에 남길 메모입니다. */
|
|
1913
|
+
historyMemo?: string;
|
|
1914
|
+
}
|
|
1626
1915
|
/**
|
|
1627
1916
|
* 국세청 즉시 전송 입력입니다.
|
|
1628
1917
|
*/
|
|
@@ -1645,6 +1934,11 @@ export interface GetInvoicesInfoInput extends TaxInvoiceBusinessRequest {
|
|
|
1645
1934
|
*/
|
|
1646
1935
|
invoiceManagementKeys: string[];
|
|
1647
1936
|
}
|
|
1937
|
+
/** 세금계산서 PDF 원본 다운로드 입력입니다. */
|
|
1938
|
+
export interface DownloadInvoicePdfInput extends TaxInvoiceDocumentRequest {
|
|
1939
|
+
/** 출력할 사본. 생략하면 공급자용과 공급받는자용을 모두 출력합니다. */
|
|
1940
|
+
printCopy?: 'supplier' | 'buyer';
|
|
1941
|
+
}
|
|
1648
1942
|
/**
|
|
1649
1943
|
* 검색 요청 입력입니다.
|
|
1650
1944
|
*/
|
|
@@ -1681,18 +1975,6 @@ export interface SearchInvoicesInput extends TaxInvoiceBusinessRequest {
|
|
|
1681
1975
|
* 지연발행 문서만 조회할지 여부입니다.
|
|
1682
1976
|
*/
|
|
1683
1977
|
lateIssueOnly: boolean | null;
|
|
1684
|
-
/**
|
|
1685
|
-
* 정렬 방향입니다.
|
|
1686
|
-
*/
|
|
1687
|
-
sortOrder: TaxInvoiceSortOrder;
|
|
1688
|
-
/**
|
|
1689
|
-
* 조회할 페이지 번호입니다.
|
|
1690
|
-
*/
|
|
1691
|
-
pageNumber: number;
|
|
1692
|
-
/**
|
|
1693
|
-
* 페이지당 조회 건수입니다.
|
|
1694
|
-
*/
|
|
1695
|
-
pageSize: number;
|
|
1696
1978
|
/**
|
|
1697
1979
|
* 종사업장번호 주체 필터입니다.
|
|
1698
1980
|
*/
|
|
@@ -1705,10 +1987,6 @@ export interface SearchInvoicesInput extends TaxInvoiceBusinessRequest {
|
|
|
1705
1987
|
* 종사업장번호 필터입니다.
|
|
1706
1988
|
*/
|
|
1707
1989
|
taxRegistrationIdentifier?: string;
|
|
1708
|
-
/**
|
|
1709
|
-
* 검색어(상호/사업자번호/문서번호 등)입니다.
|
|
1710
|
-
*/
|
|
1711
|
-
queryText?: string;
|
|
1712
1990
|
/**
|
|
1713
1991
|
* 작성유형(연동/API) 필터입니다.
|
|
1714
1992
|
*/
|
|
@@ -1729,6 +2007,22 @@ export interface SearchInvoicesInput extends TaxInvoiceBusinessRequest {
|
|
|
1729
2007
|
* 문서번호 또는 국세청승인번호 필터입니다.
|
|
1730
2008
|
*/
|
|
1731
2009
|
invoiceManagementKeyOrNationalTaxServiceConfirmationNumber?: string;
|
|
2010
|
+
/**
|
|
2011
|
+
* 검색어(상호/사업자번호/문서번호 등)입니다.
|
|
2012
|
+
*/
|
|
2013
|
+
queryText?: string;
|
|
2014
|
+
/**
|
|
2015
|
+
* 정렬 방향입니다.
|
|
2016
|
+
*/
|
|
2017
|
+
sortOrder: TaxInvoiceSortOrder;
|
|
2018
|
+
/**
|
|
2019
|
+
* 조회할 페이지 번호입니다.
|
|
2020
|
+
*/
|
|
2021
|
+
pageNumber: number;
|
|
2022
|
+
/**
|
|
2023
|
+
* 페이지당 조회 건수입니다.
|
|
2024
|
+
*/
|
|
2025
|
+
pageSize: number;
|
|
1732
2026
|
}
|
|
1733
2027
|
/**
|
|
1734
2028
|
* 문서함 URL 조회 요청 입력입니다.
|
|
@@ -1760,14 +2054,14 @@ export type GetSealAndAttachmentRegistrationURLInput = TaxInvoiceBusinessRequest
|
|
|
1760
2054
|
* 파일 경로 기반 첨부 요청 입력입니다.
|
|
1761
2055
|
*/
|
|
1762
2056
|
export interface AttachFileFromPathInput extends TaxInvoiceDocumentRequest {
|
|
1763
|
-
/**
|
|
1764
|
-
* 팝빌에 표시할 첨부파일명입니다.
|
|
1765
|
-
*/
|
|
1766
|
-
displayName: string;
|
|
1767
2057
|
/**
|
|
1768
2058
|
* 업로드할 파일의 로컬 경로입니다.
|
|
1769
2059
|
*/
|
|
1770
2060
|
filePath: string;
|
|
2061
|
+
/**
|
|
2062
|
+
* 팝빌에 표시할 첨부파일명입니다.
|
|
2063
|
+
*/
|
|
2064
|
+
displayName: string;
|
|
1771
2065
|
}
|
|
1772
2066
|
/**
|
|
1773
2067
|
* 바이너리 기반 첨부 요청 입력입니다.
|
|
@@ -1888,9 +2182,7 @@ export interface UpdateEmailSendSettingsInput extends TaxInvoiceBusinessRequest
|
|
|
1888
2182
|
}
|
|
1889
2183
|
/**
|
|
1890
2184
|
* TaxInvoice modern facade 서비스 인터페이스입니다.
|
|
1891
|
-
*
|
|
1892
|
-
* 모든 메서드는 `input`만 받으며,
|
|
1893
|
-
* 실패 시 `PopbillApiError`를 throw 합니다.
|
|
2185
|
+
* 모든 메서드는 `input`만 받으며 실패 시 `PopbillApiError`를 throw 합니다.
|
|
1894
2186
|
*/
|
|
1895
2187
|
export interface TaxInvoiceService {
|
|
1896
2188
|
/**
|
|
@@ -1959,6 +2251,30 @@ export interface TaxInvoiceService {
|
|
|
1959
2251
|
* Compat: `refuse`
|
|
1960
2252
|
*/
|
|
1961
2253
|
refuseReverseIssueRequest(input: RefuseReverseIssueRequestInput): Promise<TaxInvoiceOperationResult>;
|
|
2254
|
+
/**
|
|
2255
|
+
* 발행예정 문서를 전송합니다. 공식 SDK에 남아 있는 레거시 동작입니다.
|
|
2256
|
+
*
|
|
2257
|
+
* Compat: `send`
|
|
2258
|
+
*/
|
|
2259
|
+
sendInvoice(input: SendInvoiceInput): Promise<TaxInvoiceOperationResult>;
|
|
2260
|
+
/**
|
|
2261
|
+
* 발행예정 전송을 취소합니다.
|
|
2262
|
+
*
|
|
2263
|
+
* Compat: `cancelSend`
|
|
2264
|
+
*/
|
|
2265
|
+
cancelInvoiceSend(input: CancelInvoiceSendInput): Promise<TaxInvoiceOperationResult>;
|
|
2266
|
+
/**
|
|
2267
|
+
* 공식 SDK의 레거시 승인 동작을 요청합니다. 처리 가능한 문서 상태는 서버가 판단합니다.
|
|
2268
|
+
*
|
|
2269
|
+
* Compat: `accept`
|
|
2270
|
+
*/
|
|
2271
|
+
acceptInvoice(input: AcceptInvoiceInput): Promise<TaxInvoiceOperationResult>;
|
|
2272
|
+
/**
|
|
2273
|
+
* 공식 SDK의 레거시 거부 동작을 요청합니다. 처리 가능한 문서 상태는 서버가 판단합니다.
|
|
2274
|
+
*
|
|
2275
|
+
* Compat: `deny`
|
|
2276
|
+
*/
|
|
2277
|
+
denyInvoice(input: DenyInvoiceInput): Promise<TaxInvoiceOperationResult>;
|
|
1962
2278
|
/**
|
|
1963
2279
|
* 문서를 삭제합니다.
|
|
1964
2280
|
*
|
|
@@ -2001,6 +2317,8 @@ export interface TaxInvoiceService {
|
|
|
2001
2317
|
* Compat: `getXML`
|
|
2002
2318
|
*/
|
|
2003
2319
|
getInvoiceXML(input: TaxInvoiceDocumentRequest): Promise<TaxInvoiceXmlResult>;
|
|
2320
|
+
/** 세금계산서 PDF 원본을 다운로드합니다. Compat: `getPDF` */
|
|
2321
|
+
downloadInvoicePDF(input: DownloadInvoicePdfInput): Promise<TaxInvoicePdfDocument>;
|
|
2004
2322
|
/**
|
|
2005
2323
|
* 검색조건으로 문서를 조회합니다.
|
|
2006
2324
|
*
|
|
@@ -2043,6 +2361,12 @@ export interface TaxInvoiceService {
|
|
|
2043
2361
|
* Compat: `getEPrintURL`
|
|
2044
2362
|
*/
|
|
2045
2363
|
getBuyerInvoicePrintURL(input: TaxInvoiceDocumentRequest): Promise<TaxInvoiceAccessUrl>;
|
|
2364
|
+
/**
|
|
2365
|
+
* 구형 인쇄 팝업 URL을 조회합니다.
|
|
2366
|
+
*
|
|
2367
|
+
* Compat: `getOldPrintURL`
|
|
2368
|
+
*/
|
|
2369
|
+
getLegacyInvoicePrintURL(input: TaxInvoiceDocumentRequest): Promise<TaxInvoiceAccessUrl>;
|
|
2046
2370
|
/**
|
|
2047
2371
|
* 다건 인쇄 팝업 URL을 조회합니다.
|
|
2048
2372
|
*
|
|
@@ -2145,6 +2469,12 @@ export interface TaxInvoiceService {
|
|
|
2145
2469
|
* Compat: `getSendToNTSConfig`
|
|
2146
2470
|
*/
|
|
2147
2471
|
getSendToNTSSettings(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceSendToNationalTaxServiceSetting>;
|
|
2472
|
+
/**
|
|
2473
|
+
* ASP사업자 유통메일 공개키 응답을 조회합니다. 공개되지 않은 응답 구조는 원문으로 보존합니다.
|
|
2474
|
+
*
|
|
2475
|
+
* Compat: `getEmailPublicKeys`
|
|
2476
|
+
*/
|
|
2477
|
+
getEmailPublicKeys(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceEmailPublicKeys>;
|
|
2148
2478
|
/**
|
|
2149
2479
|
* 인증서 등록 URL을 조회합니다.
|
|
2150
2480
|
*
|
|
@@ -2169,51 +2499,2266 @@ export interface TaxInvoiceService {
|
|
|
2169
2499
|
* Compat: `getTaxCertInfo`
|
|
2170
2500
|
*/
|
|
2171
2501
|
getTaxCertificateInfo(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceTaxCertificateInfo>;
|
|
2502
|
+
/** 세금계산서 서비스 과금정보를 조회합니다. Compat: `getChargeInfo` */
|
|
2503
|
+
getChargeInfo(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceChargeInfo>;
|
|
2504
|
+
/** 세금계산서 발행단가를 문자열로 조회합니다. Compat: `getUnitCost` */
|
|
2505
|
+
getUnitCost(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceUnitCost>;
|
|
2172
2506
|
}
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2507
|
+
export declare const CashbillTransactionTypes: {
|
|
2508
|
+
readonly Approval: '승인거래';
|
|
2509
|
+
readonly Cancellation: '취소거래';
|
|
2510
|
+
};
|
|
2511
|
+
export type CashbillTransactionType = (typeof CashbillTransactionTypes)[keyof typeof CashbillTransactionTypes];
|
|
2512
|
+
export declare const CashbillUsageTypes: {
|
|
2513
|
+
readonly IncomeDeduction: '소득공제용';
|
|
2514
|
+
readonly ProofOfPurchase: '지출증빙용';
|
|
2515
|
+
};
|
|
2516
|
+
export type CashbillUsageType = (typeof CashbillUsageTypes)[keyof typeof CashbillUsageTypes];
|
|
2517
|
+
export declare const CashbillTradeOptions: {
|
|
2518
|
+
readonly General: '일반';
|
|
2519
|
+
readonly Culture: '도서공연';
|
|
2520
|
+
readonly PublicTransportation: '대중교통';
|
|
2521
|
+
};
|
|
2522
|
+
export type CashbillTradeOption = (typeof CashbillTradeOptions)[keyof typeof CashbillTradeOptions];
|
|
2523
|
+
export declare const CashbillTaxTypes: {
|
|
2524
|
+
readonly Taxable: '과세';
|
|
2525
|
+
readonly Exempt: '비과세';
|
|
2526
|
+
};
|
|
2527
|
+
export type CashbillTaxType = (typeof CashbillTaxTypes)[keyof typeof CashbillTaxTypes];
|
|
2528
|
+
export declare const CashbillCancellationReasons: {
|
|
2529
|
+
readonly TransactionCancelled: 1;
|
|
2530
|
+
readonly IssuedInError: 2;
|
|
2531
|
+
readonly Other: 3;
|
|
2532
|
+
};
|
|
2533
|
+
export type CashbillCancellationReason = (typeof CashbillCancellationReasons)[keyof typeof CashbillCancellationReasons];
|
|
2534
|
+
export interface CashbillMerchantInput {
|
|
2535
|
+
businessNumber: string;
|
|
2536
|
+
taxRegistrationIdentifier?: string;
|
|
2537
|
+
companyName?: string;
|
|
2538
|
+
chiefExecutiveOfficerName?: string;
|
|
2539
|
+
address?: string;
|
|
2540
|
+
telephoneNumber?: string;
|
|
2541
|
+
}
|
|
2542
|
+
export interface CashbillBuyerInput {
|
|
2543
|
+
/** 휴대폰·주민등록·사업자·현금영수증 카드 식별번호입니다. */
|
|
2544
|
+
identificationNumber: string;
|
|
2545
|
+
customerName?: string;
|
|
2546
|
+
emailAddress?: string;
|
|
2547
|
+
mobilePhoneNumber?: string;
|
|
2548
|
+
}
|
|
2549
|
+
/** 금액을 반올림하거나 숫자로 변환하지 않습니다. */
|
|
2550
|
+
export interface CashbillPaymentInput {
|
|
2551
|
+
totalAmount: string;
|
|
2552
|
+
supplyCostAmount: string;
|
|
2553
|
+
taxAmount: string;
|
|
2554
|
+
serviceFeeAmount: string;
|
|
2555
|
+
}
|
|
2556
|
+
export interface CashbillDocumentInput {
|
|
2557
|
+
managementKey: string;
|
|
2558
|
+
transactionType: CashbillTransactionType;
|
|
2559
|
+
usageType: CashbillUsageType;
|
|
2560
|
+
tradeOption?: CashbillTradeOption;
|
|
2561
|
+
taxType: CashbillTaxType;
|
|
2562
|
+
merchant: CashbillMerchantInput;
|
|
2563
|
+
buyer: CashbillBuyerInput;
|
|
2564
|
+
payment: CashbillPaymentInput;
|
|
2565
|
+
itemName?: string;
|
|
2566
|
+
orderNumber?: string;
|
|
2567
|
+
originalConfirmationNumber?: string;
|
|
2568
|
+
originalTransactionDate?: string;
|
|
2569
|
+
cancellationReason?: CashbillCancellationReason;
|
|
2570
|
+
/** yyyyMMddHHmmss. 생략 시 서버의 발행일시를 사용합니다. */
|
|
2571
|
+
transactedAt?: string;
|
|
2572
|
+
sendTextMessage?: boolean;
|
|
2573
|
+
}
|
|
2574
|
+
/** 승인 즉시발행과 초대량 발행은 승인거래 문서만 받습니다. */
|
|
2575
|
+
export interface CashbillApprovalDocumentInput extends CashbillDocumentInput {
|
|
2576
|
+
transactionType: '승인거래';
|
|
2577
|
+
}
|
|
2578
|
+
interface CashbillOperationResult {
|
|
2579
|
+
resultCode: ProviderNumericCode | undefined;
|
|
2580
|
+
resultMessage: string;
|
|
2581
|
+
}
|
|
2582
|
+
interface CashbillIssueResult extends CashbillOperationResult {
|
|
2583
|
+
confirmationNumber?: string;
|
|
2584
|
+
transactionDate?: string;
|
|
2585
|
+
transactedAt?: string;
|
|
2586
|
+
issuedAt?: string;
|
|
2587
|
+
}
|
|
2588
|
+
interface CashbillBulkSubmissionResult extends CashbillOperationResult {
|
|
2589
|
+
receiptIdentifier?: string;
|
|
2590
|
+
}
|
|
2591
|
+
interface CashbillBulkIssueResult extends CashbillIssueResult {
|
|
2592
|
+
managementKey?: string;
|
|
2593
|
+
}
|
|
2594
|
+
interface CashbillBulkResult extends CashbillOperationResult {
|
|
2595
|
+
submissionIdentifier?: string;
|
|
2596
|
+
receiptIdentifier?: string;
|
|
2597
|
+
submittedCount?: number;
|
|
2598
|
+
successCount?: number;
|
|
2599
|
+
failureCount?: number;
|
|
2600
|
+
processingStateCode?: ProviderNumericCode;
|
|
2601
|
+
processingResultCode?: ProviderNumericCode;
|
|
2602
|
+
issueResults: CashbillBulkIssueResult[];
|
|
2603
|
+
receivedAt?: string;
|
|
2604
|
+
processingStartedAt?: string;
|
|
2605
|
+
processingCompletedAt?: string;
|
|
2606
|
+
}
|
|
2607
|
+
interface CashbillInfo extends CashbillDocumentOutput {
|
|
2608
|
+
itemKey?: string;
|
|
2609
|
+
stateCode?: ProviderNumericCode;
|
|
2610
|
+
stateMemo?: string;
|
|
2611
|
+
nationalTaxServiceResultCode?: ProviderNumericCode;
|
|
2612
|
+
nationalTaxServiceResultMessage?: string;
|
|
2613
|
+
isPrinted?: ProviderBoolean;
|
|
2614
|
+
isIssuedThroughAPI?: ProviderBoolean;
|
|
2615
|
+
registeredAt?: string;
|
|
2616
|
+
issuedAt?: string;
|
|
2617
|
+
stateChangedAt?: string;
|
|
2618
|
+
nationalTaxServiceSentAt?: string;
|
|
2619
|
+
nationalTaxServiceResultReceivedAt?: string;
|
|
2620
|
+
}
|
|
2621
|
+
interface CashbillDocumentOutput extends Partial<Omit<CashbillDocumentInput, 'transactionType' | 'usageType' | 'tradeOption' | 'taxType' | 'merchant' | 'buyer' | 'payment' | 'cancellationReason' | 'sendTextMessage'>> {
|
|
2622
|
+
transactionType?: string | null;
|
|
2623
|
+
usageType?: string | null;
|
|
2624
|
+
tradeOption?: string | null;
|
|
2625
|
+
taxType?: string | null;
|
|
2626
|
+
merchant?: Partial<CashbillMerchantInput>;
|
|
2627
|
+
buyer?: Partial<CashbillBuyerInput>;
|
|
2628
|
+
payment?: Partial<CashbillPaymentInput>;
|
|
2629
|
+
cancellationReason?: ProviderNumericCode;
|
|
2630
|
+
sendTextMessage?: ProviderBoolean;
|
|
2631
|
+
confirmationNumber?: string;
|
|
2632
|
+
transactionDate?: string;
|
|
2633
|
+
historyMemo?: string;
|
|
2634
|
+
emailSubject?: string;
|
|
2635
|
+
}
|
|
2636
|
+
interface CashbillManagementKeyUsage {
|
|
2637
|
+
isInUse: boolean;
|
|
2638
|
+
}
|
|
2639
|
+
interface CashbillSearchResult {
|
|
2640
|
+
operationResult: CashbillOperationResult;
|
|
2641
|
+
pageNumber?: number;
|
|
2642
|
+
pageSize?: number;
|
|
2643
|
+
pageCount?: number;
|
|
2644
|
+
totalCount?: number;
|
|
2645
|
+
cashbillSummaries: CashbillInfo[];
|
|
2646
|
+
}
|
|
2647
|
+
interface CashbillLogEntry {
|
|
2648
|
+
documentLogTypeCode?: ProviderNumericCode;
|
|
2649
|
+
logMessage?: string;
|
|
2650
|
+
processTypeCode?: ProviderNumericCode;
|
|
2651
|
+
processCompanyName?: string;
|
|
2652
|
+
processContactName?: string;
|
|
2653
|
+
processDescription?: string;
|
|
2654
|
+
registeredAt?: string;
|
|
2655
|
+
ipAddress?: string;
|
|
2656
|
+
}
|
|
2657
|
+
interface CashbillAccessUrl {
|
|
2658
|
+
accessUrl: string;
|
|
2659
|
+
}
|
|
2660
|
+
interface CashbillEmailSendSetting {
|
|
2661
|
+
emailTypeCode?: ProviderNumericCode;
|
|
2662
|
+
sendEnabled?: ProviderBoolean;
|
|
2663
|
+
}
|
|
2664
|
+
interface CashbillChargeInfo {
|
|
2665
|
+
unitCost?: string;
|
|
2666
|
+
chargeMethod?: string | null;
|
|
2667
|
+
rateSystem?: string | null;
|
|
2668
|
+
}
|
|
2669
|
+
interface CashbillUnitCost {
|
|
2670
|
+
unitCost: string;
|
|
2671
|
+
}
|
|
2672
|
+
export declare const CashbillDateType: {
|
|
2673
|
+
readonly Registered: 'R';
|
|
2674
|
+
readonly Transacted: 'T';
|
|
2675
|
+
readonly Issued: 'I';
|
|
2676
|
+
};
|
|
2677
|
+
export type CashbillDateType = (typeof CashbillDateType)[keyof typeof CashbillDateType];
|
|
2678
|
+
export declare const CashbillSortOrder: {
|
|
2679
|
+
readonly Ascending: 'A';
|
|
2680
|
+
readonly Descending: 'D';
|
|
2681
|
+
};
|
|
2682
|
+
export type CashbillSortOrder = (typeof CashbillSortOrder)[keyof typeof CashbillSortOrder];
|
|
2683
|
+
export declare const CashbillBoxScopes: {
|
|
2684
|
+
readonly TemporaryDocumentBox: 'TBOX';
|
|
2685
|
+
readonly IssuedDocumentBox: 'PBOX';
|
|
2686
|
+
readonly CreateDocument: 'WRITE';
|
|
2687
|
+
};
|
|
2688
|
+
export type CashbillBoxScope = (typeof CashbillBoxScopes)[keyof typeof CashbillBoxScopes];
|
|
2689
|
+
export interface CashbillBusinessRequest {
|
|
2690
|
+
businessNumber: string;
|
|
2691
|
+
}
|
|
2692
|
+
export interface CashbillDocumentRequest extends CashbillBusinessRequest {
|
|
2693
|
+
managementKey: string;
|
|
2694
|
+
}
|
|
2695
|
+
export type CashbillCancellationAmounts = {
|
|
2696
|
+
partialCancellation?: false;
|
|
2697
|
+
payment?: never;
|
|
2698
|
+
} | {
|
|
2699
|
+
partialCancellation: true;
|
|
2700
|
+
payment: CashbillPaymentInput;
|
|
2701
|
+
};
|
|
2702
|
+
export interface IssueCashbillImmediatelyInput extends RegisterCashbillInput {
|
|
2703
|
+
document: CashbillApprovalDocumentInput;
|
|
2704
|
+
historyMemo?: string;
|
|
2705
|
+
emailSubject?: string;
|
|
2706
|
+
}
|
|
2707
|
+
export type RevokeCashbillInput = CashbillDocumentRequest & CashbillCancellationAmounts & {
|
|
2708
|
+
originalConfirmationNumber: string;
|
|
2709
|
+
originalTransactionDate: string;
|
|
2710
|
+
sendTextMessage?: boolean;
|
|
2711
|
+
historyMemo?: string;
|
|
2712
|
+
emailSubject?: string;
|
|
2713
|
+
transactedAt?: string;
|
|
2714
|
+
cancellationReason?: CashbillCancellationReason;
|
|
2715
|
+
};
|
|
2716
|
+
export interface SubmitCashbillsInput extends CashbillBusinessRequest {
|
|
2717
|
+
submissionIdentifier: string;
|
|
2718
|
+
documents: CashbillApprovalDocumentInput[];
|
|
2719
|
+
historyMemo?: string;
|
|
2720
|
+
emailSubject?: string;
|
|
2721
|
+
}
|
|
2722
|
+
export interface GetCashbillBulkResultInput extends CashbillBusinessRequest {
|
|
2723
|
+
submissionIdentifier: string;
|
|
2724
|
+
}
|
|
2725
|
+
export interface RegisterCashbillInput extends CashbillBusinessRequest {
|
|
2726
|
+
document: CashbillDocumentInput;
|
|
2727
|
+
}
|
|
2728
|
+
export type RegisterCashbillRevocationInput = CashbillDocumentRequest & CashbillCancellationAmounts & {
|
|
2729
|
+
originalConfirmationNumber: string;
|
|
2730
|
+
originalTransactionDate: string;
|
|
2731
|
+
sendTextMessage?: boolean;
|
|
2732
|
+
cancellationReason?: CashbillCancellationReason;
|
|
2733
|
+
};
|
|
2734
|
+
export interface UpdateCashbillInput extends RegisterCashbillInput {
|
|
2735
|
+
managementKey: string;
|
|
2736
|
+
}
|
|
2737
|
+
export interface IssueCashbillInput extends CashbillDocumentRequest {
|
|
2738
|
+
historyMemo?: string;
|
|
2739
|
+
}
|
|
2740
|
+
export type CancelIssuedCashbillInput = IssueCashbillInput;
|
|
2741
|
+
export type DeleteCashbillInput = CashbillDocumentRequest;
|
|
2742
|
+
export type GetCashbillInfoInput = CashbillDocumentRequest;
|
|
2743
|
+
export interface GetCashbillsInfoInput extends CashbillBusinessRequest {
|
|
2744
|
+
managementKeys: string[];
|
|
2745
|
+
}
|
|
2746
|
+
export type GetCashbillDetailInfoInput = CashbillDocumentRequest;
|
|
2747
|
+
export type CheckCashbillManagementKeyInUseInput = CashbillDocumentRequest;
|
|
2748
|
+
export interface SearchCashbillsInput extends CashbillBusinessRequest {
|
|
2749
|
+
searchDateType: CashbillDateType;
|
|
2750
|
+
startDate: string;
|
|
2751
|
+
endDate: string;
|
|
2752
|
+
stateCodes?: string[];
|
|
2753
|
+
transactionTypes?: ('N' | 'C')[];
|
|
2754
|
+
usageTypes?: ('P' | 'C')[];
|
|
2755
|
+
tradeOptions?: ('N' | 'B' | 'T')[];
|
|
2756
|
+
taxTypes?: ('T' | 'N')[];
|
|
2757
|
+
merchantTaxRegistrationIdentifiers?: string[];
|
|
2758
|
+
queryText?: string;
|
|
2759
|
+
sortOrder?: CashbillSortOrder;
|
|
2760
|
+
pageNumber?: number;
|
|
2761
|
+
pageSize?: number;
|
|
2762
|
+
}
|
|
2763
|
+
export type GetCashbillLogsInput = CashbillDocumentRequest;
|
|
2764
|
+
export interface GetCashbillBoxURLInput extends CashbillBusinessRequest {
|
|
2765
|
+
cashbillBoxScope: CashbillBoxScope;
|
|
2766
|
+
}
|
|
2767
|
+
export type GetCashbillPopupURLInput = CashbillDocumentRequest;
|
|
2768
|
+
export type GetCashbillViewURLInput = CashbillDocumentRequest;
|
|
2769
|
+
export type GetCashbillPrintURLInput = CashbillDocumentRequest;
|
|
2770
|
+
export type GetReceiverCashbillPrintURLInput = CashbillDocumentRequest;
|
|
2771
|
+
export type GetBulkCashbillPrintURLInput = GetCashbillsInfoInput;
|
|
2772
|
+
export type GetCashbillMailURLInput = CashbillDocumentRequest;
|
|
2773
|
+
export type GetCashbillPDFURLInput = CashbillDocumentRequest;
|
|
2774
|
+
export type DownloadCashbillPDFInput = CashbillDocumentRequest;
|
|
2775
|
+
export interface ResendCashbillEmailInput extends CashbillDocumentRequest {
|
|
2776
|
+
receiverEmailAddress: string;
|
|
2777
|
+
}
|
|
2778
|
+
export interface ResendCashbillSMSInput extends ResendCashbillFAXInput {
|
|
2779
|
+
messageBody: string;
|
|
2780
|
+
}
|
|
2781
|
+
export interface ResendCashbillFAXInput extends CashbillDocumentRequest {
|
|
2782
|
+
senderPhoneNumber: string;
|
|
2783
|
+
receiverPhoneNumber: string;
|
|
2784
|
+
}
|
|
2785
|
+
export interface AssignCashbillManagementKeyInput extends CashbillDocumentRequest {
|
|
2786
|
+
itemKey: string;
|
|
2787
|
+
}
|
|
2788
|
+
export type GetCashbillEmailSendSettingsInput = CashbillBusinessRequest;
|
|
2789
|
+
export interface UpdateCashbillEmailSendSettingsInput extends CashbillBusinessRequest {
|
|
2790
|
+
emailTypeCode: 'CSH_ISSUE';
|
|
2791
|
+
sendEnabled: boolean;
|
|
2792
|
+
}
|
|
2793
|
+
export type GetCashbillChargeInfoInput = CashbillBusinessRequest;
|
|
2794
|
+
export type GetCashbillUnitCostInput = CashbillBusinessRequest;
|
|
2795
|
+
/** 사용자 ID는 client 생성 시 지정하며, compatibility 별칭을 제공하지 않습니다. */
|
|
2796
|
+
export interface CashbillService {
|
|
2797
|
+
/** Compat: `registIssue` */
|
|
2798
|
+
issueCashbillImmediately(input: IssueCashbillImmediatelyInput): Promise<CashbillIssueResult>;
|
|
2799
|
+
/** Compat: `revokeRegistIssue` */
|
|
2800
|
+
revokeCashbill(input: RevokeCashbillInput): Promise<CashbillIssueResult>;
|
|
2801
|
+
/** Compat: `bulkSubmit` */
|
|
2802
|
+
submitCashbills(input: SubmitCashbillsInput): Promise<CashbillBulkSubmissionResult>;
|
|
2803
|
+
/** Compat: `getBulkResult` */
|
|
2804
|
+
getCashbillBulkResult(input: GetCashbillBulkResultInput): Promise<CashbillBulkResult>;
|
|
2805
|
+
/** Compat: `register` */
|
|
2806
|
+
registerCashbill(input: RegisterCashbillInput): Promise<CashbillOperationResult>;
|
|
2807
|
+
/** Compat: `revokeRegister` */
|
|
2808
|
+
registerCashbillRevocation(input: RegisterCashbillRevocationInput): Promise<CashbillOperationResult>;
|
|
2809
|
+
/** Compat: `update` */
|
|
2810
|
+
updateCashbill(input: UpdateCashbillInput): Promise<CashbillOperationResult>;
|
|
2811
|
+
/** Compat: `issue` */
|
|
2812
|
+
issueCashbill(input: IssueCashbillInput): Promise<CashbillIssueResult>;
|
|
2813
|
+
/** Compat: `cancelIssue` */
|
|
2814
|
+
cancelIssuedCashbill(input: CancelIssuedCashbillInput): Promise<CashbillOperationResult>;
|
|
2815
|
+
/** Compat: `delete` */
|
|
2816
|
+
deleteCashbill(input: DeleteCashbillInput): Promise<CashbillOperationResult>;
|
|
2817
|
+
/** Compat: `getInfo` */
|
|
2818
|
+
getCashbillInfo(input: GetCashbillInfoInput): Promise<CashbillInfo>;
|
|
2819
|
+
/** Compat: `getInfos` */
|
|
2820
|
+
getCashbillsInfo(input: GetCashbillsInfoInput): Promise<CashbillInfo[]>;
|
|
2821
|
+
/** Compat: `getDetailInfo` */
|
|
2822
|
+
getCashbillDetailInfo(input: GetCashbillDetailInfoInput): Promise<CashbillDocumentOutput>;
|
|
2823
|
+
/** Compat: `checkMgtKeyInUse` */
|
|
2824
|
+
checkCashbillManagementKeyInUse(input: CheckCashbillManagementKeyInUseInput): Promise<CashbillManagementKeyUsage>;
|
|
2825
|
+
/** Compat: `search` */
|
|
2826
|
+
searchCashbills(input: SearchCashbillsInput): Promise<CashbillSearchResult>;
|
|
2827
|
+
/** Compat: `getLogs` */
|
|
2828
|
+
getCashbillLogs(input: GetCashbillLogsInput): Promise<CashbillLogEntry[]>;
|
|
2829
|
+
/** Compat: `getURL` */
|
|
2830
|
+
getCashbillBoxURL(input: GetCashbillBoxURLInput): Promise<CashbillAccessUrl>;
|
|
2831
|
+
/** Compat: `getPopUpURL` */
|
|
2832
|
+
getCashbillPopupURL(input: GetCashbillPopupURLInput): Promise<CashbillAccessUrl>;
|
|
2833
|
+
/** Compat: `getViewURL` */
|
|
2834
|
+
getCashbillViewURL(input: GetCashbillViewURLInput): Promise<CashbillAccessUrl>;
|
|
2835
|
+
/** Compat: `getPrintURL` */
|
|
2836
|
+
getCashbillPrintURL(input: GetCashbillPrintURLInput): Promise<CashbillAccessUrl>;
|
|
2837
|
+
/** Compat: `getEPrintURL` */
|
|
2838
|
+
getReceiverCashbillPrintURL(input: GetReceiverCashbillPrintURLInput): Promise<CashbillAccessUrl>;
|
|
2839
|
+
/** Compat: `getMassPrintURL` */
|
|
2840
|
+
getBulkCashbillPrintURL(input: GetBulkCashbillPrintURLInput): Promise<CashbillAccessUrl>;
|
|
2841
|
+
/** Compat: `getMailURL` */
|
|
2842
|
+
getCashbillMailURL(input: GetCashbillMailURLInput): Promise<CashbillAccessUrl>;
|
|
2843
|
+
/** Compat: `getPDFURL` */
|
|
2844
|
+
getCashbillPDFURL(input: GetCashbillPDFURLInput): Promise<CashbillAccessUrl>;
|
|
2845
|
+
/** Compat: `getPDF` */
|
|
2846
|
+
downloadCashbillPDF(input: DownloadCashbillPDFInput): Promise<Buffer>;
|
|
2847
|
+
/** Compat: `sendEmail` */
|
|
2848
|
+
resendCashbillEmail(input: ResendCashbillEmailInput): Promise<CashbillOperationResult>;
|
|
2849
|
+
/** Compat: `sendSMS` */
|
|
2850
|
+
resendCashbillSMS(input: ResendCashbillSMSInput): Promise<CashbillOperationResult>;
|
|
2851
|
+
/** Compat: `sendFAX` */
|
|
2852
|
+
resendCashbillFAX(input: ResendCashbillFAXInput): Promise<CashbillOperationResult>;
|
|
2853
|
+
/** Compat: `assignMgtKey` */
|
|
2854
|
+
assignCashbillManagementKey(input: AssignCashbillManagementKeyInput): Promise<CashbillOperationResult>;
|
|
2855
|
+
/** Compat: `listEmailConfig` */
|
|
2856
|
+
getEmailSendSettings(input: GetCashbillEmailSendSettingsInput): Promise<CashbillEmailSendSetting[]>;
|
|
2857
|
+
/** Compat: `updateEmailConfig` */
|
|
2858
|
+
updateEmailSendSettings(input: UpdateCashbillEmailSendSettingsInput): Promise<CashbillOperationResult>;
|
|
2859
|
+
/** Compat: `getChargeInfo` */
|
|
2860
|
+
getChargeInfo(input: GetCashbillChargeInfoInput): Promise<CashbillChargeInfo>;
|
|
2861
|
+
/** Compat: `getUnitCost` */
|
|
2862
|
+
getUnitCost(input: GetCashbillUnitCostInput): Promise<CashbillUnitCost>;
|
|
2863
|
+
}
|
|
2864
|
+
/** 전자명세서 문서유형 코드입니다. */
|
|
2865
|
+
export declare const StatementItemCodes: {
|
|
2866
|
+
readonly TradeStatement: 121;
|
|
2867
|
+
readonly Invoice: 122;
|
|
2868
|
+
readonly Estimate: 123;
|
|
2869
|
+
readonly PurchaseOrder: 124;
|
|
2870
|
+
readonly Deposit: 125;
|
|
2871
|
+
readonly Receipt: 126;
|
|
2872
|
+
};
|
|
2873
|
+
export type StatementItemCode = (typeof StatementItemCodes)[keyof typeof StatementItemCodes];
|
|
2874
|
+
/** 전자명세서 영수/청구 구분입니다. */
|
|
2875
|
+
export declare const StatementPurposeTypes: {
|
|
2876
|
+
readonly Receipt: '영수';
|
|
2877
|
+
readonly Claim: '청구';
|
|
2878
|
+
readonly None: '없음';
|
|
2879
|
+
};
|
|
2880
|
+
export type StatementPurposeType = (typeof StatementPurposeTypes)[keyof typeof StatementPurposeTypes];
|
|
2881
|
+
/** 전자명세서 과세 유형입니다. */
|
|
2882
|
+
export declare const StatementTaxationTypes: {
|
|
2883
|
+
readonly Taxable: '과세';
|
|
2884
|
+
readonly ZeroRated: '영세';
|
|
2885
|
+
readonly Exempt: '면세';
|
|
2886
|
+
};
|
|
2887
|
+
export type StatementTaxationType = (typeof StatementTaxationTypes)[keyof typeof StatementTaxationTypes];
|
|
2888
|
+
/** 발신자 또는 수신자 정보입니다. 금액과 식별번호는 문자열 그대로 전송합니다. */
|
|
2889
|
+
export interface StatementPartyInput {
|
|
2890
|
+
businessNumber?: string;
|
|
2891
|
+
taxRegistrationIdentifier?: string;
|
|
2892
|
+
companyName?: string;
|
|
2893
|
+
chiefExecutiveOfficerName?: string;
|
|
2894
|
+
address?: string;
|
|
2895
|
+
businessType?: string;
|
|
2896
|
+
businessClass?: string;
|
|
2897
|
+
departmentName?: string;
|
|
2898
|
+
contactName?: string;
|
|
2899
|
+
telephoneNumber?: string;
|
|
2900
|
+
mobilePhoneNumber?: string;
|
|
2901
|
+
emailAddress?: string;
|
|
2902
|
+
faxNumber?: string;
|
|
2903
|
+
}
|
|
2904
|
+
export interface StatementPaymentSummaryInput {
|
|
2905
|
+
totalSupplyCostAmount?: string;
|
|
2906
|
+
totalTaxAmount?: string;
|
|
2907
|
+
totalAmount?: string;
|
|
2908
|
+
}
|
|
2909
|
+
/** 맞춤양식 품목 추가필드 번호(spare1~spare20)입니다. */
|
|
2910
|
+
export type StatementAdditionalFieldNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
|
|
2911
|
+
export interface StatementLineItemInput {
|
|
2912
|
+
lineNumber: number;
|
|
2913
|
+
transactionDate?: string;
|
|
2914
|
+
itemName?: string;
|
|
2915
|
+
specification?: string;
|
|
2916
|
+
quantity?: string;
|
|
2917
|
+
unitCostAmount?: string;
|
|
2918
|
+
supplyCostAmount?: string;
|
|
2919
|
+
taxAmount?: string;
|
|
2920
|
+
remark?: string;
|
|
2921
|
+
additionalFields?: Partial<Record<StatementAdditionalFieldNumber, string>>;
|
|
2922
|
+
}
|
|
2923
|
+
/** 6종 전자명세서의 공통 입력 문서입니다. */
|
|
2924
|
+
export interface StatementDocumentInput {
|
|
2925
|
+
documentTypeCode: StatementItemCode;
|
|
2926
|
+
managementKey?: string;
|
|
2927
|
+
documentSerialNumber?: string;
|
|
2928
|
+
formCode?: string;
|
|
2929
|
+
writtenDate?: string;
|
|
2930
|
+
taxType?: StatementTaxationType;
|
|
2931
|
+
purposeType?: StatementPurposeType;
|
|
2932
|
+
sender?: StatementPartyInput;
|
|
2933
|
+
receiver?: StatementPartyInput;
|
|
2934
|
+
paymentSummary?: StatementPaymentSummaryInput;
|
|
2935
|
+
lineItems?: StatementLineItemInput[];
|
|
2936
|
+
remarkOne?: string;
|
|
2937
|
+
remarkTwo?: string;
|
|
2938
|
+
remarkThree?: string;
|
|
2939
|
+
/** 문서 양식별 추가 속성입니다. 키와 값을 변경 없이 보존합니다. */
|
|
2940
|
+
propertyBag?: Record<string, string>;
|
|
2941
|
+
includeBusinessLicenseImage?: boolean;
|
|
2942
|
+
includeBankBookImage?: boolean;
|
|
2943
|
+
sendTextMessage?: boolean;
|
|
2944
|
+
}
|
|
2945
|
+
interface StatementOperationResult {
|
|
2946
|
+
resultCode: ProviderNumericCode | undefined;
|
|
2947
|
+
resultMessage: string;
|
|
2948
|
+
}
|
|
2949
|
+
interface StatementIssueResult extends StatementOperationResult {
|
|
2950
|
+
documentNumber?: string;
|
|
2951
|
+
issuedAt?: string;
|
|
2952
|
+
}
|
|
2953
|
+
interface StatementPartySummary {
|
|
2954
|
+
businessNumber?: string;
|
|
2955
|
+
companyName?: string;
|
|
2956
|
+
printEnabled?: ProviderBoolean;
|
|
2957
|
+
}
|
|
2958
|
+
/** 저장·발행 상태를 포함한 전자명세서 요약입니다. */
|
|
2959
|
+
interface StatementInfo {
|
|
2960
|
+
documentTypeCode?: ProviderNumericCode;
|
|
2961
|
+
itemKey?: string;
|
|
2962
|
+
documentNumber?: string;
|
|
2963
|
+
managementKey?: string;
|
|
2964
|
+
taxType?: string | null;
|
|
2965
|
+
purposeType?: string | null;
|
|
2966
|
+
sender?: StatementPartySummary;
|
|
2967
|
+
receiver?: StatementPartySummary;
|
|
2968
|
+
totalSupplyCostAmount?: string;
|
|
2969
|
+
totalTaxAmount?: string;
|
|
2970
|
+
stateCode?: ProviderNumericCode;
|
|
2971
|
+
stateMemo?: string;
|
|
2972
|
+
isOpen?: ProviderBoolean;
|
|
2973
|
+
writtenDate?: string;
|
|
2974
|
+
registeredAt?: string;
|
|
2975
|
+
issuedAt?: string;
|
|
2976
|
+
stateChangedAt?: string;
|
|
2977
|
+
openedAt?: string;
|
|
2978
|
+
}
|
|
2979
|
+
interface StatementLineItemOutput extends Omit<StatementLineItemInput, 'lineNumber'> {
|
|
2980
|
+
lineNumber?: number;
|
|
2981
|
+
}
|
|
2982
|
+
/** 서버가 생략한 필드는 생략하고, 알 수 없는 분류와 플래그 값은 보존합니다. */
|
|
2983
|
+
interface StatementDocumentOutput extends Partial<Omit<StatementDocumentInput, 'documentTypeCode' | 'taxType' | 'purposeType' | 'lineItems' | 'includeBusinessLicenseImage' | 'includeBankBookImage' | 'sendTextMessage'>> {
|
|
2984
|
+
documentTypeCode?: ProviderNumericCode;
|
|
2985
|
+
documentNumber?: string;
|
|
2986
|
+
taxType?: string | null;
|
|
2987
|
+
purposeType?: string | null;
|
|
2988
|
+
lineItems?: StatementLineItemOutput[];
|
|
2989
|
+
includeBusinessLicenseImage?: ProviderBoolean;
|
|
2990
|
+
includeBankBookImage?: ProviderBoolean;
|
|
2991
|
+
sendTextMessage?: ProviderBoolean;
|
|
2992
|
+
autoAcceptEnabled?: ProviderBoolean;
|
|
2993
|
+
sendFAXEnabled?: ProviderBoolean;
|
|
2994
|
+
}
|
|
2995
|
+
interface StatementManagementKeyUsage {
|
|
2996
|
+
isInUse: boolean;
|
|
2997
|
+
}
|
|
2998
|
+
interface StatementSearchResult {
|
|
2999
|
+
operationResult: StatementOperationResult;
|
|
3000
|
+
pageNumber?: number;
|
|
3001
|
+
pageSize?: number;
|
|
3002
|
+
pageCount?: number;
|
|
3003
|
+
totalCount?: number;
|
|
3004
|
+
statementSummaries: StatementInfo[];
|
|
3005
|
+
}
|
|
3006
|
+
interface StatementLogEntry {
|
|
3007
|
+
documentLogTypeCode?: ProviderNumericCode;
|
|
3008
|
+
logMessage?: string;
|
|
3009
|
+
processTypeCode?: string | null;
|
|
3010
|
+
processCompanyName?: string;
|
|
3011
|
+
processContactName?: string;
|
|
3012
|
+
processDescription?: string;
|
|
3013
|
+
registeredAt?: string;
|
|
3014
|
+
ipAddress?: string;
|
|
3015
|
+
}
|
|
3016
|
+
interface StatementAccessUrl {
|
|
3017
|
+
accessUrl: string;
|
|
3018
|
+
}
|
|
3019
|
+
interface StatementAttachedFile {
|
|
3020
|
+
sequenceNumber?: number;
|
|
3021
|
+
fileIdentifier?: string;
|
|
3022
|
+
fileSize?: number;
|
|
3023
|
+
displayName?: string;
|
|
3024
|
+
registeredAt?: string;
|
|
3025
|
+
}
|
|
3026
|
+
interface StatementFAXReceipt {
|
|
3027
|
+
receiptNumber: string;
|
|
3028
|
+
}
|
|
3029
|
+
interface StatementEmailSendSetting {
|
|
3030
|
+
emailTypeCode?: string | null;
|
|
3031
|
+
sendEnabled?: ProviderBoolean;
|
|
3032
|
+
}
|
|
3033
|
+
interface StatementChargeInfo {
|
|
3034
|
+
unitCost?: string;
|
|
3035
|
+
chargeMethod?: string | null;
|
|
3036
|
+
rateSystem?: string | null;
|
|
3037
|
+
}
|
|
3038
|
+
interface StatementUnitCost {
|
|
3039
|
+
unitCost: string;
|
|
3040
|
+
}
|
|
3041
|
+
export declare const StatementDateType: {
|
|
3042
|
+
readonly Registered: 'R';
|
|
3043
|
+
readonly Written: 'W';
|
|
3044
|
+
readonly Issued: 'I';
|
|
3045
|
+
};
|
|
3046
|
+
export type StatementDateType = (typeof StatementDateType)[keyof typeof StatementDateType];
|
|
3047
|
+
export declare const StatementSortOrder: {
|
|
3048
|
+
readonly Descending: 'D';
|
|
3049
|
+
readonly Ascending: 'A';
|
|
3050
|
+
};
|
|
3051
|
+
export type StatementSortOrder = (typeof StatementSortOrder)[keyof typeof StatementSortOrder];
|
|
3052
|
+
/** 전자명세서 문서함입니다. SWBOX는 발행 문서함입니다. */
|
|
3053
|
+
export declare const StatementBoxScopes: {
|
|
3054
|
+
readonly TemporaryDocumentBox: 'TBOX';
|
|
3055
|
+
readonly IssuedDocumentBox: 'SWBOX';
|
|
3056
|
+
};
|
|
3057
|
+
export type StatementBoxScope = (typeof StatementBoxScopes)[keyof typeof StatementBoxScopes];
|
|
3058
|
+
export declare const StatementStateCodes: {
|
|
3059
|
+
readonly Registered: 100;
|
|
3060
|
+
readonly Issued: 300;
|
|
3061
|
+
readonly Cancelled: 500;
|
|
3062
|
+
};
|
|
3063
|
+
export declare const StatementEmailTypes: {
|
|
3064
|
+
readonly Issue: 'SMT_ISSUE';
|
|
3065
|
+
readonly Accept: 'SMT_ACCEPT';
|
|
3066
|
+
readonly Deny: 'SMT_DENY';
|
|
3067
|
+
readonly Cancel: 'SMT_CANCEL';
|
|
3068
|
+
readonly CancelIssue: 'SMT_CANCEL_ISSUE';
|
|
3069
|
+
};
|
|
3070
|
+
export type StatementEmailType = (typeof StatementEmailTypes)[keyof typeof StatementEmailTypes];
|
|
3071
|
+
export interface StatementBusinessRequest {
|
|
3072
|
+
businessNumber: string;
|
|
3073
|
+
}
|
|
3074
|
+
export interface StatementTypeRequest extends StatementBusinessRequest {
|
|
3075
|
+
documentTypeCode: StatementItemCode;
|
|
3076
|
+
}
|
|
3077
|
+
export interface StatementDocumentRequest extends StatementTypeRequest {
|
|
3078
|
+
managementKey: string;
|
|
3079
|
+
}
|
|
3080
|
+
export interface IssueStatementImmediatelyInput extends RegisterStatementInput {
|
|
3081
|
+
historyMemo?: string;
|
|
3082
|
+
emailSubject?: string;
|
|
3083
|
+
}
|
|
3084
|
+
export interface RegisterStatementInput extends StatementBusinessRequest {
|
|
3085
|
+
document: StatementDocumentInput;
|
|
3086
|
+
}
|
|
3087
|
+
export interface UpdateStatementInput extends StatementDocumentRequest {
|
|
3088
|
+
document: StatementDocumentInput;
|
|
3089
|
+
}
|
|
3090
|
+
export interface IssueStatementInput extends StatementDocumentRequest {
|
|
3091
|
+
historyMemo?: string;
|
|
3092
|
+
emailSubject?: string;
|
|
3093
|
+
}
|
|
3094
|
+
export interface CancelIssuedStatementInput extends StatementDocumentRequest {
|
|
3095
|
+
historyMemo?: string;
|
|
3096
|
+
}
|
|
3097
|
+
export type DeleteStatementInput = StatementDocumentRequest;
|
|
3098
|
+
export type GetStatementInfoInput = StatementDocumentRequest;
|
|
3099
|
+
export interface GetStatementsInfoInput extends StatementTypeRequest {
|
|
3100
|
+
managementKeys: string[];
|
|
3101
|
+
}
|
|
3102
|
+
export type GetStatementDetailInfoInput = StatementDocumentRequest;
|
|
3103
|
+
export type CheckStatementManagementKeyInUseInput = StatementDocumentRequest;
|
|
3104
|
+
export interface SearchStatementsInput extends StatementBusinessRequest {
|
|
3105
|
+
searchDateType: StatementDateType;
|
|
3106
|
+
/** 검색일자는 yyyyMMdd 형식입니다. 조회 기간은 최대 6개월입니다. */
|
|
3107
|
+
startDate: string;
|
|
3108
|
+
endDate: string;
|
|
3109
|
+
stateCodes?: string[];
|
|
3110
|
+
documentTypeCodes?: StatementItemCode[];
|
|
3111
|
+
queryText?: string;
|
|
3112
|
+
sortOrder?: StatementSortOrder;
|
|
3113
|
+
/** @default 1 */
|
|
3114
|
+
pageNumber?: number;
|
|
3115
|
+
/** @default 100 */
|
|
3116
|
+
pageSize?: number;
|
|
3117
|
+
}
|
|
3118
|
+
export type GetStatementLogsInput = StatementDocumentRequest;
|
|
3119
|
+
export interface GetStatementBoxURLInput extends StatementBusinessRequest {
|
|
3120
|
+
statementBoxScope: StatementBoxScope;
|
|
3121
|
+
}
|
|
3122
|
+
export type GetStatementPopupURLInput = StatementDocumentRequest;
|
|
3123
|
+
export type GetStatementViewURLInput = StatementDocumentRequest;
|
|
3124
|
+
export type GetSenderStatementPrintURLInput = StatementDocumentRequest;
|
|
3125
|
+
export type GetReceiverStatementPrintURLInput = StatementDocumentRequest;
|
|
3126
|
+
export type GetBulkStatementPrintURLInput = GetStatementsInfoInput;
|
|
3127
|
+
export type GetStatementMailURLInput = StatementDocumentRequest;
|
|
3128
|
+
export type GetStatementSealAndAttachmentRegistrationURLInput = StatementBusinessRequest;
|
|
3129
|
+
export interface AttachStatementFileFromPathInput extends StatementDocumentRequest {
|
|
3130
|
+
filePath: string;
|
|
3131
|
+
displayName: string;
|
|
3132
|
+
}
|
|
3133
|
+
export interface AttachStatementFileFromBinaryInput extends StatementDocumentRequest {
|
|
3134
|
+
fileName: string;
|
|
3135
|
+
fileData: Buffer;
|
|
3136
|
+
}
|
|
3137
|
+
export interface DeleteStatementAttachedFileInput extends StatementDocumentRequest {
|
|
3138
|
+
fileIdentifier: string;
|
|
3139
|
+
}
|
|
3140
|
+
export type GetStatementAttachedFilesInput = StatementDocumentRequest;
|
|
3141
|
+
export interface ResendStatementEmailInput extends StatementDocumentRequest {
|
|
3142
|
+
receiverEmailAddress: string;
|
|
3143
|
+
}
|
|
3144
|
+
export interface ResendStatementSMSInput extends ResendStatementFAXInput {
|
|
3145
|
+
/** 필수 문자 본문입니다. 90바이트를 초과하는 부분은 팝빌에서 삭제합니다. */
|
|
3146
|
+
messageBody: string;
|
|
3147
|
+
}
|
|
3148
|
+
export interface ResendStatementFAXInput extends StatementDocumentRequest {
|
|
3149
|
+
senderPhoneNumber: string;
|
|
3150
|
+
receiverPhoneNumber: string;
|
|
3151
|
+
}
|
|
3152
|
+
/** 저장 없이 문서 내용을 팩스로 전송합니다. */
|
|
3153
|
+
export interface SendStatementFAXInput extends RegisterStatementInput {
|
|
3154
|
+
senderPhoneNumber: string;
|
|
3155
|
+
receiverPhoneNumber: string;
|
|
3156
|
+
}
|
|
3157
|
+
export interface AttachStatementInput extends StatementDocumentRequest {
|
|
3158
|
+
attachedDocumentTypeCode: StatementItemCode;
|
|
3159
|
+
attachedManagementKey: string;
|
|
3160
|
+
}
|
|
3161
|
+
export type DetachStatementInput = AttachStatementInput;
|
|
3162
|
+
export type GetStatementEmailSendSettingsInput = StatementBusinessRequest;
|
|
3163
|
+
export interface UpdateStatementEmailSendSettingsInput extends StatementBusinessRequest {
|
|
3164
|
+
emailTypeCode: StatementEmailType;
|
|
3165
|
+
sendEnabled: boolean;
|
|
3166
|
+
}
|
|
3167
|
+
export type GetStatementChargeInfoInput = StatementTypeRequest;
|
|
3168
|
+
export type GetStatementUnitCostInput = StatementTypeRequest;
|
|
3169
|
+
/** 전자명세서 modern API입니다. 사용자 ID는 client 생성 시 지정합니다. */
|
|
3170
|
+
export interface StatementService {
|
|
3171
|
+
/** 즉시발행합니다. Compat: `registIssue` */
|
|
3172
|
+
issueStatementImmediately(input: IssueStatementImmediatelyInput): Promise<StatementIssueResult>;
|
|
3173
|
+
/** 임시저장합니다. Compat: `register` */
|
|
3174
|
+
registerStatement(input: RegisterStatementInput): Promise<StatementOperationResult>;
|
|
3175
|
+
/** 임시저장 문서를 수정합니다. Compat: `update` */
|
|
3176
|
+
updateStatement(input: UpdateStatementInput): Promise<StatementOperationResult>;
|
|
3177
|
+
/** 저장 문서를 발행합니다. Compat: `issue` */
|
|
3178
|
+
issueStatement(input: IssueStatementInput): Promise<StatementOperationResult>;
|
|
3179
|
+
/** 발행을 취소합니다. Compat: `cancel` */
|
|
3180
|
+
cancelIssuedStatement(input: CancelIssuedStatementInput): Promise<StatementOperationResult>;
|
|
3181
|
+
/** 문서를 삭제합니다. Compat: `delete` */
|
|
3182
|
+
deleteStatement(input: DeleteStatementInput): Promise<StatementOperationResult>;
|
|
3183
|
+
/** 요약과 상태를 조회합니다. Compat: `getInfo` */
|
|
3184
|
+
getStatementInfo(input: GetStatementInfoInput): Promise<StatementInfo>;
|
|
3185
|
+
/** 여러 문서의 상태를 조회합니다. Compat: `getInfos` */
|
|
3186
|
+
getStatementsInfo(input: GetStatementsInfoInput): Promise<StatementInfo[]>;
|
|
3187
|
+
/** 문서 상세를 조회합니다. Compat: `getDetailInfo` */
|
|
3188
|
+
getStatementDetailInfo(input: GetStatementDetailInfoInput): Promise<StatementDocumentOutput>;
|
|
3189
|
+
/** 관리번호 사용 여부를 조회합니다. Compat: `checkMgtKeyInUse` */
|
|
3190
|
+
checkStatementManagementKeyInUse(input: CheckStatementManagementKeyInUseInput): Promise<StatementManagementKeyUsage>;
|
|
3191
|
+
/** 조건에 맞는 문서를 검색합니다. Compat: `search` */
|
|
3192
|
+
searchStatements(input: SearchStatementsInput): Promise<StatementSearchResult>;
|
|
3193
|
+
/** 처리 이력을 조회합니다. Compat: `getLogs` */
|
|
3194
|
+
getStatementLogs(input: GetStatementLogsInput): Promise<StatementLogEntry[]>;
|
|
3195
|
+
/** 문서함 URL을 조회합니다. Compat: `getURL` */
|
|
3196
|
+
getStatementBoxURL(input: GetStatementBoxURLInput): Promise<StatementAccessUrl>;
|
|
3197
|
+
/** 문서 팝업 URL을 조회합니다. Compat: `getPopUpURL` */
|
|
3198
|
+
getStatementPopupURL(input: GetStatementPopupURLInput): Promise<StatementAccessUrl>;
|
|
3199
|
+
/** 문서 보기 URL을 조회합니다. Compat: `getViewURL` */
|
|
3200
|
+
getStatementViewURL(input: GetStatementViewURLInput): Promise<StatementAccessUrl>;
|
|
3201
|
+
/** 발신자용 인쇄 URL을 조회합니다. Compat: `getPrintURL` */
|
|
3202
|
+
getSenderStatementPrintURL(input: GetSenderStatementPrintURLInput): Promise<StatementAccessUrl>;
|
|
3203
|
+
/** 수신자용 인쇄 URL을 조회합니다. Compat: `getEPrintURL` */
|
|
3204
|
+
getReceiverStatementPrintURL(input: GetReceiverStatementPrintURLInput): Promise<StatementAccessUrl>;
|
|
3205
|
+
/** 여러 문서의 인쇄 URL을 조회합니다. Compat: `getMassPrintURL` */
|
|
3206
|
+
getBulkStatementPrintURL(input: GetBulkStatementPrintURLInput): Promise<StatementAccessUrl>;
|
|
3207
|
+
/** 안내메일 링크 URL을 조회합니다. Compat: `getMailURL` */
|
|
3208
|
+
getStatementMailURL(input: GetStatementMailURLInput): Promise<StatementAccessUrl>;
|
|
3209
|
+
/** 인감 및 첨부서류 등록 URL을 조회합니다. Compat: `getSealURL` */
|
|
3210
|
+
getSealAndAttachmentRegistrationURL(input: GetStatementSealAndAttachmentRegistrationURLInput): Promise<StatementAccessUrl>;
|
|
3211
|
+
/** 경로의 파일을 첨부합니다. Compat: `attachFile` */
|
|
3212
|
+
attachFileFromPath(input: AttachStatementFileFromPathInput): Promise<StatementOperationResult>;
|
|
3213
|
+
/** 바이너리 파일을 첨부합니다. Compat: `attachFileBinary` */
|
|
3214
|
+
attachFileFromBinary(input: AttachStatementFileFromBinaryInput): Promise<StatementOperationResult>;
|
|
3215
|
+
/** 첨부파일을 삭제합니다. Compat: `deleteFile` */
|
|
3216
|
+
deleteAttachedFile(input: DeleteStatementAttachedFileInput): Promise<StatementOperationResult>;
|
|
3217
|
+
/** 첨부파일을 조회합니다. Compat: `getFiles` */
|
|
3218
|
+
getAttachedFiles(input: GetStatementAttachedFilesInput): Promise<StatementAttachedFile[]>;
|
|
3219
|
+
/** 안내메일을 재전송합니다. Compat: `sendEmail` */
|
|
3220
|
+
resendStatementEmail(input: ResendStatementEmailInput): Promise<StatementOperationResult>;
|
|
3221
|
+
/** 문자를 재전송합니다. Compat: `sendSMS` */
|
|
3222
|
+
resendStatementSMS(input: ResendStatementSMSInput): Promise<StatementOperationResult>;
|
|
3223
|
+
/** 팩스를 재전송합니다. Compat: `sendFAX` */
|
|
3224
|
+
resendStatementFAX(input: ResendStatementFAXInput): Promise<StatementOperationResult>;
|
|
3225
|
+
/** 문서를 선팩스로 전송합니다. Compat: `FAXSend` */
|
|
3226
|
+
sendStatementFAX(input: SendStatementFAXInput): Promise<StatementFAXReceipt>;
|
|
3227
|
+
/** 다른 전자명세서를 첨부합니다. Compat: `attachStatement` */
|
|
3228
|
+
attachStatement(input: AttachStatementInput): Promise<StatementOperationResult>;
|
|
3229
|
+
/** 전자명세서 첨부를 해제합니다. Compat: `detachStatement` */
|
|
3230
|
+
detachStatement(input: DetachStatementInput): Promise<StatementOperationResult>;
|
|
3231
|
+
/** 이메일 전송 설정을 조회합니다. Compat: `listEmailConfig` */
|
|
3232
|
+
getEmailSendSettings(input: GetStatementEmailSendSettingsInput): Promise<StatementEmailSendSetting[]>;
|
|
3233
|
+
/** 이메일 전송 설정을 수정합니다. Compat: `updateEmailConfig` */
|
|
3234
|
+
updateEmailSendSettings(input: UpdateStatementEmailSendSettingsInput): Promise<StatementOperationResult>;
|
|
3235
|
+
/** 과금 정보를 조회합니다. Compat: `getChargeInfo` */
|
|
3236
|
+
getChargeInfo(input: GetStatementChargeInfoInput): Promise<StatementChargeInfo>;
|
|
3237
|
+
/** 발행 단가를 조회합니다. Compat: `getUnitCost` */
|
|
3238
|
+
getUnitCost(input: GetStatementUnitCostInput): Promise<StatementUnitCost>;
|
|
3239
|
+
}
|
|
3240
|
+
interface HomeTaxTaxInvoiceOperationResult {
|
|
3241
|
+
resultCode: number;
|
|
3242
|
+
resultMessage: string;
|
|
3243
|
+
}
|
|
3244
|
+
interface HomeTaxTaxInvoiceAccessUrl {
|
|
3245
|
+
accessUrl: string;
|
|
3246
|
+
}
|
|
3247
|
+
interface HomeTaxTaxInvoiceJobReceipt {
|
|
3248
|
+
/** 요청 시점부터 1시간 유효합니다. 만료 후에는 새 수집 작업이 필요합니다. */
|
|
3249
|
+
jobId: string;
|
|
3250
|
+
}
|
|
3251
|
+
interface HomeTaxTaxInvoiceJobState {
|
|
3252
|
+
jobId?: string;
|
|
3253
|
+
invoiceDirection?: string;
|
|
3254
|
+
searchDateType?: string;
|
|
3255
|
+
startDate?: string;
|
|
3256
|
+
endDate?: string;
|
|
3257
|
+
stateCode?: number | string | null;
|
|
3258
|
+
resultCode?: number | string | null;
|
|
3259
|
+
resultMessage?: string;
|
|
3260
|
+
collectedCount?: number;
|
|
3261
|
+
/** stateCode가 3이고 resultCode를 안전한 정수로 해석한 값이 1인 경우에만 true입니다. */
|
|
3262
|
+
isSearchable: boolean;
|
|
3263
|
+
requestedAt?: string;
|
|
3264
|
+
startedAt?: string;
|
|
3265
|
+
completedAt?: string;
|
|
3266
|
+
}
|
|
3267
|
+
interface HomeTaxTaxInvoiceParty {
|
|
3268
|
+
businessNumber?: string;
|
|
3269
|
+
managementKey?: string;
|
|
3270
|
+
taxRegistrationId?: string;
|
|
3271
|
+
companyName?: string;
|
|
3272
|
+
representativeName?: string;
|
|
3273
|
+
address?: string;
|
|
3274
|
+
businessType?: string;
|
|
3275
|
+
businessCategory?: string;
|
|
3276
|
+
partyType?: string;
|
|
3277
|
+
contactName?: string;
|
|
3278
|
+
departmentName?: string;
|
|
3279
|
+
phoneNumber?: string;
|
|
3280
|
+
emailAddress?: string;
|
|
3281
|
+
secondaryContactName?: string;
|
|
3282
|
+
secondaryDepartmentName?: string;
|
|
3283
|
+
secondaryPhoneNumber?: string;
|
|
3284
|
+
secondaryEmailAddress?: string;
|
|
3285
|
+
}
|
|
3286
|
+
interface HomeTaxTaxInvoiceLineItem {
|
|
3287
|
+
sequenceNumber?: number;
|
|
3288
|
+
itemName?: string;
|
|
3289
|
+
specification?: string;
|
|
3290
|
+
quantity?: string;
|
|
3291
|
+
unitCost?: string;
|
|
3292
|
+
supplyCostAmount?: string;
|
|
3293
|
+
taxAmount?: string;
|
|
3294
|
+
remark?: string;
|
|
3295
|
+
transactionDate?: string;
|
|
3296
|
+
}
|
|
3297
|
+
interface HomeTaxTaxInvoiceSummary {
|
|
3298
|
+
confirmationNumber?: string;
|
|
3299
|
+
originalConfirmationNumber?: string;
|
|
3300
|
+
invoiceDirection?: string;
|
|
3301
|
+
taxType?: string;
|
|
3302
|
+
purposeType?: string;
|
|
3303
|
+
isModified?: boolean;
|
|
3304
|
+
supplier: HomeTaxTaxInvoiceParty;
|
|
3305
|
+
recipient: HomeTaxTaxInvoiceParty;
|
|
3306
|
+
trustee: HomeTaxTaxInvoiceParty;
|
|
3307
|
+
totalSupplyCostAmount?: string;
|
|
3308
|
+
totalTaxAmount?: string;
|
|
3309
|
+
totalAmount?: string;
|
|
3310
|
+
firstLineItem: HomeTaxTaxInvoiceLineItem;
|
|
3311
|
+
remark?: string;
|
|
3312
|
+
writtenDate?: string;
|
|
3313
|
+
issuedDate?: string;
|
|
3314
|
+
sentDate?: string;
|
|
3315
|
+
}
|
|
3316
|
+
interface HomeTaxTaxInvoiceDocument {
|
|
3317
|
+
confirmationNumber?: string;
|
|
3318
|
+
originalConfirmationNumber?: string;
|
|
3319
|
+
serialNumber?: string;
|
|
3320
|
+
invoiceTypeCode?: number;
|
|
3321
|
+
taxType?: string;
|
|
3322
|
+
purposeType?: string;
|
|
3323
|
+
modificationReasonCode?: number;
|
|
3324
|
+
supplier: HomeTaxTaxInvoiceParty;
|
|
3325
|
+
recipient: HomeTaxTaxInvoiceParty;
|
|
3326
|
+
trustee: HomeTaxTaxInvoiceParty;
|
|
3327
|
+
totalSupplyCostAmount?: string;
|
|
3328
|
+
totalTaxAmount?: string;
|
|
3329
|
+
totalAmount?: string;
|
|
3330
|
+
cashAmount?: string;
|
|
3331
|
+
checkAmount?: string;
|
|
3332
|
+
creditAmount?: string;
|
|
3333
|
+
noteAmount?: string;
|
|
3334
|
+
lineItems: HomeTaxTaxInvoiceLineItem[];
|
|
3335
|
+
remark1?: string;
|
|
3336
|
+
remark2?: string;
|
|
3337
|
+
remark3?: string;
|
|
3338
|
+
writtenDate?: string;
|
|
3339
|
+
issuedAt?: string;
|
|
3340
|
+
}
|
|
3341
|
+
interface HomeTaxTaxInvoiceSearchResult {
|
|
3342
|
+
resultCode: number;
|
|
3343
|
+
pageNumber?: number;
|
|
3344
|
+
pageSize?: number;
|
|
3345
|
+
pageCount?: number;
|
|
3346
|
+
totalCount?: number;
|
|
3347
|
+
invoices: HomeTaxTaxInvoiceSummary[];
|
|
3348
|
+
}
|
|
3349
|
+
interface HomeTaxTaxInvoiceTotals {
|
|
3350
|
+
count?: number;
|
|
3351
|
+
/** 합계 API는 공식 계약에 따라 숫자로 반환합니다. */
|
|
3352
|
+
totalSupplyCostAmount?: number;
|
|
3353
|
+
totalTaxAmount?: number;
|
|
3354
|
+
totalAmount?: number;
|
|
3355
|
+
}
|
|
3356
|
+
interface HomeTaxTaxInvoiceXmlResult extends HomeTaxTaxInvoiceOperationResult {
|
|
3357
|
+
xml: string;
|
|
3358
|
+
}
|
|
3359
|
+
interface HomeTaxTaxInvoiceCertificateExpiration {
|
|
3360
|
+
expiresAt: string;
|
|
3361
|
+
}
|
|
3362
|
+
interface HomeTaxTaxInvoiceFlatRateState {
|
|
3363
|
+
businessNumber?: string;
|
|
3364
|
+
stateCode?: number;
|
|
3365
|
+
terminationRequested?: boolean;
|
|
3366
|
+
usageRestricted?: boolean;
|
|
3367
|
+
terminateOnExpiration?: boolean;
|
|
3368
|
+
hasUnpaidBalance?: boolean;
|
|
3369
|
+
billingDay?: number;
|
|
3370
|
+
contractedAt?: string;
|
|
3371
|
+
expiresOn?: string;
|
|
3372
|
+
}
|
|
3373
|
+
interface HomeTaxTaxInvoiceChargeInfo {
|
|
3374
|
+
unitCost?: string;
|
|
3375
|
+
chargeMethod?: string;
|
|
3376
|
+
rateSystem?: string;
|
|
3377
|
+
}
|
|
3378
|
+
export declare const HomeTaxTaxInvoiceDirection: {
|
|
3379
|
+
readonly Sales: 'SELL';
|
|
3380
|
+
readonly Purchases: 'BUY';
|
|
3381
|
+
readonly Trustee: 'TRUSTEE';
|
|
3382
|
+
};
|
|
3383
|
+
export type HomeTaxTaxInvoiceDirection = (typeof HomeTaxTaxInvoiceDirection)[keyof typeof HomeTaxTaxInvoiceDirection] | (string & {});
|
|
3384
|
+
export declare const HomeTaxTaxInvoiceSearchDateType: {
|
|
3385
|
+
readonly Written: 'W';
|
|
3386
|
+
readonly Issued: 'I';
|
|
3387
|
+
readonly Sent: 'S';
|
|
3388
|
+
};
|
|
3389
|
+
export type HomeTaxTaxInvoiceSearchDateType = (typeof HomeTaxTaxInvoiceSearchDateType)[keyof typeof HomeTaxTaxInvoiceSearchDateType] | (string & {});
|
|
3390
|
+
export declare const HomeTaxTaxInvoiceJobStateCodes: {
|
|
3391
|
+
readonly Waiting: 1;
|
|
3392
|
+
readonly Processing: 2;
|
|
3393
|
+
readonly Completed: 3;
|
|
3394
|
+
};
|
|
3395
|
+
export interface HomeTaxTaxInvoiceBusinessInput {
|
|
3396
|
+
businessNumber: string;
|
|
3397
|
+
}
|
|
3398
|
+
export interface RequestHomeTaxTaxInvoiceCollectionInput extends HomeTaxTaxInvoiceBusinessInput {
|
|
3399
|
+
/** yyyyMMdd 형식, 최대 3개월 단위로 요청합니다. */
|
|
3400
|
+
startDate: string;
|
|
3401
|
+
endDate: string;
|
|
3402
|
+
invoiceDirection: HomeTaxTaxInvoiceDirection;
|
|
3403
|
+
searchDateType: HomeTaxTaxInvoiceSearchDateType;
|
|
3404
|
+
}
|
|
3405
|
+
export interface HomeTaxTaxInvoiceJobInput extends HomeTaxTaxInvoiceBusinessInput {
|
|
3406
|
+
jobId: string;
|
|
3407
|
+
}
|
|
3408
|
+
export interface HomeTaxTaxInvoiceFiltersInput extends HomeTaxTaxInvoiceJobInput {
|
|
3409
|
+
documentTypes?: ('N' | 'M' | (string & {}))[];
|
|
3410
|
+
taxTypes?: ('T' | 'N' | 'Z' | (string & {}))[];
|
|
3411
|
+
purposeTypes?: ('R' | 'C' | 'N' | (string & {}))[];
|
|
3412
|
+
taxRegistrationParty?: 'S' | 'B' | 'T' | (string & {});
|
|
3413
|
+
hasTaxRegistrationId?: boolean;
|
|
3414
|
+
/** 여러 종사업장번호는 쉼표로 구분합니다. 선행 0을 보존합니다. */
|
|
3415
|
+
taxRegistrationIds?: string[];
|
|
3416
|
+
queryText?: string;
|
|
3417
|
+
}
|
|
3418
|
+
export interface SearchHomeTaxTaxInvoicesInput extends HomeTaxTaxInvoiceFiltersInput {
|
|
3419
|
+
sortOrder?: 'D' | 'A' | (string & {});
|
|
3420
|
+
/** 기본값 1 */
|
|
3421
|
+
pageNumber?: number;
|
|
3422
|
+
/** 기본값 500. 페이지당 상한은 팝빌 서버에서 검증합니다. */
|
|
3423
|
+
pageSize?: number;
|
|
3424
|
+
}
|
|
3425
|
+
export interface HomeTaxTaxInvoiceDocumentInput extends HomeTaxTaxInvoiceBusinessInput {
|
|
3426
|
+
confirmationNumber: string;
|
|
3427
|
+
}
|
|
3428
|
+
export interface RegisterHomeTaxTaxInvoiceDepartmentUserInput extends HomeTaxTaxInvoiceBusinessInput {
|
|
3429
|
+
departmentUserId: string;
|
|
3430
|
+
departmentPassword: string;
|
|
3431
|
+
/** 대표자 주민번호 앞 7자리. 홈택스 2차인증 해제 시 생략합니다. */
|
|
3432
|
+
identityNumber?: string | null;
|
|
3433
|
+
}
|
|
3434
|
+
/** 명시적으로 수집을 요청하고 상태를 확인합니다. 자동 재요청이나 polling은 수행하지 않습니다. */
|
|
3435
|
+
export interface HomeTaxTaxInvoiceService {
|
|
3436
|
+
/** 인증정보 등록 URL. Compat: `getCertificatePopUpURL` */
|
|
3437
|
+
getAuthenticationRegistrationUrl(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceAccessUrl>;
|
|
3438
|
+
/** 인증서 만료일시. Compat: `getCertificateExpireDate` */
|
|
3439
|
+
getCertificateExpiration(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceCertificateExpiration>;
|
|
3440
|
+
/** 인증서 검증. Compat: `checkCertValidation` */
|
|
3441
|
+
validateCertificate(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceOperationResult>;
|
|
3442
|
+
/** 부서사용자 등록. Compat: `registDeptUser` */
|
|
3443
|
+
registerDepartmentUser(input: RegisterHomeTaxTaxInvoiceDepartmentUserInput): Promise<HomeTaxTaxInvoiceOperationResult>;
|
|
3444
|
+
/** 부서사용자 등록 여부. Compat: `checkDeptUser` */
|
|
3445
|
+
checkDepartmentUserRegistration(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceOperationResult>;
|
|
3446
|
+
/** 부서사용자 로그인 검증. Compat: `checkLoginDeptUser` */
|
|
3447
|
+
validateDepartmentUserLogin(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceOperationResult>;
|
|
3448
|
+
/** 부서사용자 삭제. Compat: `deleteDeptUser` */
|
|
3449
|
+
deleteDepartmentUser(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceOperationResult>;
|
|
3450
|
+
/** 수집 요청. Compat: `requestJob` */
|
|
3451
|
+
requestCollection(input: RequestHomeTaxTaxInvoiceCollectionInput): Promise<HomeTaxTaxInvoiceJobReceipt>;
|
|
3452
|
+
/** 수집 상태 확인. Compat: `getJobState` */
|
|
3453
|
+
getCollectionState(input: HomeTaxTaxInvoiceJobInput): Promise<HomeTaxTaxInvoiceJobState>;
|
|
3454
|
+
/** 활성 수집 목록. Compat: `listActiveJob` */
|
|
3455
|
+
listActiveCollections(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceJobState[]>;
|
|
3456
|
+
/** 수집 내역 검색. Compat: `search` */
|
|
3457
|
+
searchTaxInvoices(input: SearchHomeTaxTaxInvoicesInput): Promise<HomeTaxTaxInvoiceSearchResult>;
|
|
3458
|
+
/** 수집 내역 합계. Compat: `summary` */
|
|
3459
|
+
getTaxInvoiceTotals(input: HomeTaxTaxInvoiceFiltersInput): Promise<HomeTaxTaxInvoiceTotals>;
|
|
3460
|
+
/** 수집 상세 조회. Compat: `getTaxinvoice` */
|
|
3461
|
+
getTaxInvoice(input: HomeTaxTaxInvoiceDocumentInput): Promise<HomeTaxTaxInvoiceDocument>;
|
|
3462
|
+
/** 수집 XML 조회. Compat: `getXML` */
|
|
3463
|
+
getTaxInvoiceXml(input: HomeTaxTaxInvoiceDocumentInput): Promise<HomeTaxTaxInvoiceXmlResult>;
|
|
3464
|
+
/** 팝업 URL. Compat: `getPopUpURL` */
|
|
3465
|
+
getTaxInvoicePopupUrl(input: HomeTaxTaxInvoiceDocumentInput): Promise<HomeTaxTaxInvoiceAccessUrl>;
|
|
3466
|
+
/** 인쇄 URL. Compat: `getPrintURL` */
|
|
3467
|
+
getTaxInvoicePrintUrl(input: HomeTaxTaxInvoiceDocumentInput): Promise<HomeTaxTaxInvoiceAccessUrl>;
|
|
3468
|
+
/** 정액제 신청 URL. Compat: `getFlatRatePopUpURL` */
|
|
3469
|
+
getFlatRateApplicationUrl(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceAccessUrl>;
|
|
3470
|
+
/** 정액제 상태. Compat: `getFlatRateState` */
|
|
3471
|
+
getFlatRateState(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceFlatRateState>;
|
|
3472
|
+
/** 과금정보. Compat: `getChargeInfo` */
|
|
3473
|
+
getChargeInfo(input: HomeTaxTaxInvoiceBusinessInput): Promise<HomeTaxTaxInvoiceChargeInfo>;
|
|
3474
|
+
}
|
|
3475
|
+
interface HomeTaxCashbillOperationResult {
|
|
3476
|
+
code: number;
|
|
3477
|
+
message: string;
|
|
3478
|
+
}
|
|
3479
|
+
interface HomeTaxCashbillCollectionJob {
|
|
3480
|
+
jobId: string;
|
|
3481
|
+
}
|
|
3482
|
+
interface HomeTaxCashbillCollectionJobState extends HomeTaxCashbillCollectionJob {
|
|
3483
|
+
receiptDirection?: string;
|
|
3484
|
+
dateType?: string;
|
|
3485
|
+
startDate?: string;
|
|
3486
|
+
endDate?: string;
|
|
3487
|
+
/** 1: 대기, 2: 진행, 3: 완료. 완료와 성공은 별개입니다. */
|
|
3488
|
+
stateCode: number | string | null;
|
|
3489
|
+
resultCode?: number | string | null;
|
|
3490
|
+
resultMessage?: string;
|
|
3491
|
+
collectedCount?: number;
|
|
3492
|
+
/** stateCode가 3이고 resultCode를 안전한 정수로 해석한 값이 1인 경우에만 true입니다. */
|
|
3493
|
+
collectionSucceeded: boolean;
|
|
3494
|
+
requestedAt?: string;
|
|
3495
|
+
startedAt?: string;
|
|
3496
|
+
completedAt?: string;
|
|
3497
|
+
}
|
|
3498
|
+
interface HomeTaxCashbillReceipt {
|
|
3499
|
+
ntsConfirmationNumber?: string;
|
|
3500
|
+
receiptDirection?: string;
|
|
3501
|
+
tradeType?: string;
|
|
3502
|
+
tradeUsage?: string;
|
|
3503
|
+
franchiseBusinessNumber?: string;
|
|
3504
|
+
franchiseBusinessName?: string;
|
|
3505
|
+
franchiseBusinessTypeCode?: number | string | null;
|
|
3506
|
+
/** 원본에서 마스킹한 식별번호 마지막 4자리입니다. */
|
|
3507
|
+
maskedIdentityNumber?: string;
|
|
3508
|
+
identityNumberTypeCode?: number | string | null;
|
|
3509
|
+
customerName?: string;
|
|
3510
|
+
cardOwnerName?: string;
|
|
3511
|
+
deductionTypeCode?: number | string | null;
|
|
3512
|
+
supplyAmount?: string;
|
|
3513
|
+
taxAmount?: string;
|
|
3514
|
+
serviceFeeAmount?: string;
|
|
3515
|
+
totalAmount?: string;
|
|
3516
|
+
tradeDate?: string;
|
|
3517
|
+
tradedAt?: string;
|
|
3518
|
+
}
|
|
3519
|
+
interface HomeTaxCashbillSearchResult {
|
|
3520
|
+
code: number;
|
|
3521
|
+
message?: string;
|
|
3522
|
+
pageNumber?: number;
|
|
3523
|
+
pageSize?: number;
|
|
3524
|
+
pageCount?: number;
|
|
3525
|
+
totalCount?: number;
|
|
3526
|
+
receipts: HomeTaxCashbillReceipt[];
|
|
3527
|
+
}
|
|
3528
|
+
interface HomeTaxCashbillSummary {
|
|
3529
|
+
receiptCount: number;
|
|
3530
|
+
supplyAmountTotal: number;
|
|
3531
|
+
taxAmountTotal: number;
|
|
3532
|
+
serviceFeeAmountTotal: number;
|
|
3533
|
+
totalAmount: number;
|
|
3534
|
+
}
|
|
3535
|
+
interface HomeTaxCashbillAccessUrl {
|
|
3536
|
+
url: string;
|
|
3537
|
+
}
|
|
3538
|
+
interface HomeTaxCashbillCertificateExpiration {
|
|
3539
|
+
/** 원본 yyyyMMddHHmmss를 보존합니다. */
|
|
3540
|
+
expiresAt: string;
|
|
3541
|
+
}
|
|
3542
|
+
interface HomeTaxCashbillFlatRateState {
|
|
3543
|
+
businessNumber?: string;
|
|
3544
|
+
stateCode?: number;
|
|
3545
|
+
cancellationRequested?: boolean;
|
|
3546
|
+
useRestricted?: boolean;
|
|
3547
|
+
cancelOnExpiration?: boolean;
|
|
3548
|
+
hasUnpaidBalance?: boolean;
|
|
3549
|
+
renewalPaymentDay?: number;
|
|
3550
|
+
contractStartedAt?: string;
|
|
3551
|
+
expiresOn?: string;
|
|
3552
|
+
}
|
|
3553
|
+
interface HomeTaxCashbillChargeInfo {
|
|
3554
|
+
unitCost?: string;
|
|
3555
|
+
chargeMethod?: '연동' | '파트너' | (string & {});
|
|
3556
|
+
rateSystem?: '정액제' | '종량제' | (string & {});
|
|
3557
|
+
}
|
|
3558
|
+
export declare const HomeTaxCashbillDirection: {
|
|
3559
|
+
readonly Sales: 'SELL';
|
|
3560
|
+
readonly Purchases: 'BUY';
|
|
3561
|
+
};
|
|
3562
|
+
export type HomeTaxCashbillDirection = (typeof HomeTaxCashbillDirection)[keyof typeof HomeTaxCashbillDirection] | (string & {});
|
|
3563
|
+
export declare const HomeTaxCashbillTradeType: {
|
|
3564
|
+
readonly Approved: 'N';
|
|
3565
|
+
readonly Cancelled: 'C';
|
|
3566
|
+
};
|
|
3567
|
+
export type HomeTaxCashbillTradeType = (typeof HomeTaxCashbillTradeType)[keyof typeof HomeTaxCashbillTradeType] | (string & {});
|
|
3568
|
+
export declare const HomeTaxCashbillTradeUsage: {
|
|
3569
|
+
readonly IncomeDeduction: 'P';
|
|
3570
|
+
readonly ExpenseProof: 'C';
|
|
3571
|
+
};
|
|
3572
|
+
export type HomeTaxCashbillTradeUsage = (typeof HomeTaxCashbillTradeUsage)[keyof typeof HomeTaxCashbillTradeUsage] | (string & {});
|
|
3573
|
+
export declare const HomeTaxCashbillSortOrder: {
|
|
3574
|
+
readonly Ascending: 'A';
|
|
3575
|
+
readonly Descending: 'D';
|
|
3576
|
+
};
|
|
3577
|
+
export type HomeTaxCashbillSortOrder = (typeof HomeTaxCashbillSortOrder)[keyof typeof HomeTaxCashbillSortOrder] | (string & {});
|
|
3578
|
+
export interface HomeTaxCashbillBusinessInput {
|
|
3579
|
+
businessNumber: string;
|
|
3580
|
+
}
|
|
3581
|
+
export interface RequestHomeTaxCashbillCollectionInput extends HomeTaxCashbillBusinessInput {
|
|
3582
|
+
/** yyyyMMdd, 한 번에 최대 3개월. JobID는 요청 시점부터 1시간 유효합니다. */
|
|
3583
|
+
startDate: string;
|
|
3584
|
+
endDate: string;
|
|
3585
|
+
receiptDirection: HomeTaxCashbillDirection;
|
|
3586
|
+
}
|
|
3587
|
+
export interface HomeTaxCashbillJobInput extends HomeTaxCashbillBusinessInput {
|
|
3588
|
+
jobId: string;
|
|
3589
|
+
}
|
|
3590
|
+
export interface HomeTaxCashbillFilterInput extends HomeTaxCashbillJobInput {
|
|
3591
|
+
tradeTypes?: HomeTaxCashbillTradeType[];
|
|
3592
|
+
tradeUsages?: HomeTaxCashbillTradeUsage[];
|
|
3593
|
+
}
|
|
3594
|
+
export interface SearchHomeTaxCashbillsInput extends HomeTaxCashbillFilterInput {
|
|
3595
|
+
/** @default D */
|
|
3596
|
+
sortOrder?: HomeTaxCashbillSortOrder;
|
|
3597
|
+
/** @default 1 */
|
|
3598
|
+
pageNumber?: number;
|
|
3599
|
+
/** @default 500 */
|
|
3600
|
+
pageSize?: number;
|
|
3601
|
+
}
|
|
3602
|
+
export interface RegisterHomeTaxCashbillDepartmentUserInput extends HomeTaxCashbillBusinessInput {
|
|
3603
|
+
departmentUserId: string;
|
|
3604
|
+
departmentUserPassword: string;
|
|
3605
|
+
/** 홈택스 2차인증 설정 시 대표자 주민번호 앞 7자리, 해제된 경우 생략합니다. */
|
|
3606
|
+
representativeIdentityPrefix?: string | null;
|
|
3607
|
+
}
|
|
3608
|
+
/** 홈택스 현금영수증 수집 modern API. 자동 폴링 없이 작업아이디를 반환합니다. */
|
|
3609
|
+
export interface HomeTaxCashbillService {
|
|
3610
|
+
/** Compat: `getCertificatePopUpURL` */
|
|
3611
|
+
getAuthenticationRegistrationUrl(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillAccessUrl>;
|
|
3612
|
+
/** Compat: `getCertificateExpireDate` */
|
|
3613
|
+
getCertificateExpiration(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillCertificateExpiration>;
|
|
3614
|
+
/** Compat: `checkCertValidation` */
|
|
3615
|
+
validateCertificate(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillOperationResult>;
|
|
3616
|
+
/** Compat: `registDeptUser` */
|
|
3617
|
+
registerDepartmentUser(input: RegisterHomeTaxCashbillDepartmentUserInput): Promise<HomeTaxCashbillOperationResult>;
|
|
3618
|
+
/** Compat: `checkDeptUser` */
|
|
3619
|
+
checkDepartmentUserRegistration(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillOperationResult>;
|
|
3620
|
+
/** Compat: `checkLoginDeptUser` */
|
|
3621
|
+
validateDepartmentUser(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillOperationResult>;
|
|
3622
|
+
/** Compat: `deleteDeptUser` */
|
|
3623
|
+
deleteDepartmentUser(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillOperationResult>;
|
|
3624
|
+
/** Compat: `requestJob` */
|
|
3625
|
+
requestCollection(input: RequestHomeTaxCashbillCollectionInput): Promise<HomeTaxCashbillCollectionJob>;
|
|
3626
|
+
/** Compat: `getJobState` */
|
|
3627
|
+
getCollectionJobState(input: HomeTaxCashbillJobInput): Promise<HomeTaxCashbillCollectionJobState>;
|
|
3628
|
+
/** Compat: `listActiveJob` */
|
|
3629
|
+
listActiveCollectionJobs(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillCollectionJobState[]>;
|
|
3630
|
+
/** Compat: `search` */
|
|
3631
|
+
searchCashbills(input: SearchHomeTaxCashbillsInput): Promise<HomeTaxCashbillSearchResult>;
|
|
3632
|
+
/** Compat: `summary` */
|
|
3633
|
+
getCashbillSummary(input: HomeTaxCashbillFilterInput): Promise<HomeTaxCashbillSummary>;
|
|
3634
|
+
/** Compat: `getFlatRatePopUpURL` */
|
|
3635
|
+
getFlatRateRegistrationUrl(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillAccessUrl>;
|
|
3636
|
+
/** Compat: `getFlatRateState` */
|
|
3637
|
+
getFlatRateState(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillFlatRateState>;
|
|
3638
|
+
/** Compat: `getChargeInfo` */
|
|
3639
|
+
getChargeInfo(input: HomeTaxCashbillBusinessInput): Promise<HomeTaxCashbillChargeInfo>;
|
|
3640
|
+
}
|
|
3641
|
+
interface BusinessStatusInput {
|
|
3642
|
+
businessNumber: string;
|
|
3643
|
+
targetBusinessNumber: string;
|
|
3644
|
+
}
|
|
3645
|
+
interface BusinessStatusesInput {
|
|
3646
|
+
businessNumber: string;
|
|
3647
|
+
targetBusinessNumbers: string[];
|
|
3648
|
+
}
|
|
3649
|
+
interface ClosedownChargeInput {
|
|
3650
|
+
businessNumber: string;
|
|
3651
|
+
}
|
|
3652
|
+
/** 날짜와 상태코드는 공급자가 반환한 표현을 보존한다. */
|
|
3653
|
+
interface BusinessStatus {
|
|
3654
|
+
businessNumber: string;
|
|
3655
|
+
businessStateCode: string | null;
|
|
3656
|
+
taxTypeCode: string | null;
|
|
3657
|
+
businessStateChangedDate: string | null;
|
|
3658
|
+
taxTypeChangedDate: string | null;
|
|
3659
|
+
checkedDate: string;
|
|
3660
|
+
}
|
|
3661
|
+
interface ClosedownChargeInfo {
|
|
3662
|
+
unitCost: string;
|
|
3663
|
+
chargeMethod: string;
|
|
3664
|
+
rateSystem: string;
|
|
3665
|
+
}
|
|
3666
|
+
interface ClosedownUnitCost {
|
|
3667
|
+
unitCost: string;
|
|
3668
|
+
}
|
|
3669
|
+
interface ClosedownService {
|
|
3670
|
+
/** 사업자등록상태 단건 조회. Compat: `checkCorpNum` */
|
|
3671
|
+
checkBusinessStatus(request: BusinessStatusInput): Promise<BusinessStatus>;
|
|
3672
|
+
/** 사업자등록상태 대량 조회. Compat: `checkCorpNums` */
|
|
3673
|
+
checkBusinessStatuses(request: BusinessStatusesInput): Promise<BusinessStatus[]>;
|
|
3674
|
+
/** 과금정보 조회. Compat: `getChargeInfo` */
|
|
3675
|
+
getChargeInfo(request: ClosedownChargeInput): Promise<ClosedownChargeInfo>;
|
|
3676
|
+
/** 단가 조회. Compat: `getUnitCost` */
|
|
3677
|
+
getUnitCost(request: ClosedownChargeInput): Promise<ClosedownUnitCost>;
|
|
3678
|
+
}
|
|
3679
|
+
interface CompanyInfoInput {
|
|
3680
|
+
businessNumber: string;
|
|
3681
|
+
targetBusinessNumber: string;
|
|
3682
|
+
}
|
|
3683
|
+
interface BizInfoCheckChargeInput {
|
|
3684
|
+
businessNumber: string;
|
|
3685
|
+
}
|
|
3686
|
+
interface CompanyInfo {
|
|
3687
|
+
businessNumber: string;
|
|
3688
|
+
corporateRegistrationNumber: string;
|
|
3689
|
+
companyName: string;
|
|
3690
|
+
chiefExecutiveOfficerName: string;
|
|
3691
|
+
corporateTypeCode: number;
|
|
3692
|
+
companyScaleCode: number;
|
|
3693
|
+
personOrCorporationCode: number;
|
|
3694
|
+
headOfficeCode: number;
|
|
3695
|
+
establishmentTypeCode: number;
|
|
3696
|
+
workplaceTypeCode: number;
|
|
3697
|
+
addressTypeCode: number;
|
|
3698
|
+
industryCode: string;
|
|
3699
|
+
postalCode: string;
|
|
3700
|
+
address: string;
|
|
3701
|
+
addressDetail: string;
|
|
3702
|
+
englishAddress: string;
|
|
3703
|
+
businessType: string;
|
|
3704
|
+
businessClass: string;
|
|
3705
|
+
resultCode: number;
|
|
3706
|
+
resultMessage: string;
|
|
3707
|
+
businessStateCode: number;
|
|
3708
|
+
taxTypeCode: number | null;
|
|
3709
|
+
establishedDate: string;
|
|
3710
|
+
businessStateChangedDate: string | null;
|
|
3711
|
+
taxTypeChangedDate: string | null;
|
|
3712
|
+
checkedAt: string;
|
|
3713
|
+
}
|
|
3714
|
+
interface BizInfoCheckChargeInfo {
|
|
3715
|
+
unitCost: string;
|
|
3716
|
+
chargeMethod: string;
|
|
3717
|
+
rateSystem: string;
|
|
3718
|
+
}
|
|
3719
|
+
interface BizInfoCheckUnitCost {
|
|
3720
|
+
unitCost: string;
|
|
3721
|
+
}
|
|
3722
|
+
interface BizInfoCheckService {
|
|
3723
|
+
/** 기업정보 조회. Compat: `checkBizInfo` */
|
|
3724
|
+
getCompanyInfo(request: CompanyInfoInput): Promise<CompanyInfo>;
|
|
3725
|
+
/** 과금정보 조회. Compat: `getChargeInfo` */
|
|
3726
|
+
getChargeInfo(request: BizInfoCheckChargeInput): Promise<BizInfoCheckChargeInfo>;
|
|
3727
|
+
/** 단가 조회. Compat: `getUnitCost` */
|
|
3728
|
+
getUnitCost(request: BizInfoCheckChargeInput): Promise<BizInfoCheckUnitCost>;
|
|
3729
|
+
}
|
|
3730
|
+
interface EasyFinBankBusinessInput {
|
|
3731
|
+
businessNumber: string;
|
|
3732
|
+
}
|
|
3733
|
+
interface EasyFinBankAccountReference extends EasyFinBankBusinessInput {
|
|
3734
|
+
bankCode: string;
|
|
3735
|
+
accountNumber: string;
|
|
3736
|
+
}
|
|
3737
|
+
interface EasyFinBankAccountChanges {
|
|
3738
|
+
accountPassword: string;
|
|
3739
|
+
accountName?: string;
|
|
3740
|
+
internetBankingId?: string;
|
|
3741
|
+
inquiryId?: string;
|
|
3742
|
+
inquiryPassword?: string;
|
|
3743
|
+
memo?: string;
|
|
3744
|
+
}
|
|
3745
|
+
interface EasyFinBankAccountRegistration extends EasyFinBankAccountChanges {
|
|
3746
|
+
bankCode: string;
|
|
3747
|
+
accountNumber: string;
|
|
3748
|
+
accountType: '법인' | '개인' | (string & {});
|
|
3749
|
+
identityNumber: string;
|
|
3750
|
+
}
|
|
3751
|
+
interface EasyFinBankRegisterAccountInput extends EasyFinBankBusinessInput {
|
|
3752
|
+
account: EasyFinBankAccountRegistration;
|
|
3753
|
+
subscriptionMonths?: number;
|
|
3754
|
+
}
|
|
3755
|
+
interface EasyFinBankUpdateAccountInput extends EasyFinBankAccountReference {
|
|
3756
|
+
account: EasyFinBankAccountChanges;
|
|
3757
|
+
}
|
|
3758
|
+
interface EasyFinBankRequestCollectionInput extends EasyFinBankAccountReference {
|
|
3759
|
+
/** yyyyMMdd. Maximum one month per collection, within the preceding three months. */
|
|
3760
|
+
startDate: string;
|
|
3761
|
+
endDate: string;
|
|
3762
|
+
}
|
|
3763
|
+
interface EasyFinBankCollectionReference extends EasyFinBankBusinessInput {
|
|
3764
|
+
/** Expires one hour after the collection request. */
|
|
3765
|
+
collectionId: string;
|
|
3766
|
+
}
|
|
3767
|
+
interface EasyFinBankTransactionFilterInput extends EasyFinBankCollectionReference {
|
|
3768
|
+
transactionTypes?: ('I' | 'O' | (string & {}))[];
|
|
3769
|
+
queryText?: string;
|
|
3770
|
+
}
|
|
3771
|
+
interface EasyFinBankSearchTransactionsInput extends EasyFinBankTransactionFilterInput {
|
|
3772
|
+
sortOrder?: 'A' | 'D' | (string & {});
|
|
3773
|
+
pageNumber?: number;
|
|
3774
|
+
pageSize?: number;
|
|
3775
|
+
}
|
|
3776
|
+
interface EasyFinBankSaveMemoInput extends EasyFinBankBusinessInput {
|
|
3777
|
+
transactionId: string;
|
|
3778
|
+
memo: string;
|
|
3779
|
+
}
|
|
3780
|
+
interface EasyFinBankOperationResult {
|
|
3781
|
+
code: number;
|
|
3782
|
+
message: string;
|
|
3783
|
+
}
|
|
3784
|
+
interface EasyFinBankAccessURL {
|
|
3785
|
+
url: string;
|
|
3786
|
+
}
|
|
3787
|
+
interface EasyFinBankChargeInfo {
|
|
3788
|
+
unitCost: string;
|
|
3789
|
+
chargeMethod: string;
|
|
3790
|
+
rateSystem: string;
|
|
3791
|
+
}
|
|
3792
|
+
interface EasyFinBankSubscription {
|
|
3793
|
+
accountReferenceId: string;
|
|
3794
|
+
stateCode: number;
|
|
3795
|
+
isClosureRequested: boolean;
|
|
3796
|
+
isUseRestricted: boolean;
|
|
3797
|
+
closesOnExpiration: boolean;
|
|
3798
|
+
hasUnpaidBalance: boolean;
|
|
3799
|
+
renewalDay: number;
|
|
3800
|
+
startedAt: string;
|
|
3801
|
+
expiresOn: string;
|
|
3802
|
+
}
|
|
3803
|
+
interface EasyFinBankAccount {
|
|
3804
|
+
bankCode: string;
|
|
3805
|
+
accountNumber: string;
|
|
3806
|
+
accountName: string;
|
|
3807
|
+
accountType: '법인' | '개인' | (string & {});
|
|
3808
|
+
memo: string;
|
|
3809
|
+
accountStateCode: number;
|
|
3810
|
+
subscriptionStateCode: number;
|
|
3811
|
+
isClosureRequested: boolean;
|
|
3812
|
+
isUseRestricted: boolean;
|
|
3813
|
+
closesOnExpiration: boolean;
|
|
3814
|
+
hasUnpaidBalance: boolean;
|
|
3815
|
+
subscriptionRenewalDay: number;
|
|
3816
|
+
registeredAt: string;
|
|
3817
|
+
subscriptionStartedAt: string;
|
|
3818
|
+
subscriptionExpiresOn: string;
|
|
3819
|
+
}
|
|
3820
|
+
interface EasyFinBankCollectionReceipt {
|
|
3821
|
+
collectionId: string;
|
|
3822
|
+
}
|
|
3823
|
+
interface EasyFinBankCollectionStatus {
|
|
3824
|
+
collectionId: string;
|
|
3825
|
+
startDate: string;
|
|
3826
|
+
endDate: string;
|
|
3827
|
+
/** 0 received, 1 waiting, 2 collecting, 3 completed (including failure). */
|
|
3828
|
+
stateCode: number | string | null;
|
|
3829
|
+
resultCode: number | string | null;
|
|
3830
|
+
resultMessage: string;
|
|
3831
|
+
/** Search only when stateCode is 3 and resultCode represents the safe integer 1. */
|
|
3832
|
+
isSuccessful: boolean;
|
|
3833
|
+
requestedAt: string;
|
|
3834
|
+
startedAt: string;
|
|
3835
|
+
completedAt: string;
|
|
3836
|
+
}
|
|
3837
|
+
interface EasyFinBankTransaction {
|
|
3838
|
+
transactionId: string;
|
|
3839
|
+
transactionSequence: number;
|
|
3840
|
+
depositAmount: string;
|
|
3841
|
+
withdrawalAmount: string;
|
|
3842
|
+
balance: string;
|
|
3843
|
+
remark1: string;
|
|
3844
|
+
remark2: string;
|
|
3845
|
+
remark3: string;
|
|
3846
|
+
remark4: string;
|
|
3847
|
+
memo: string;
|
|
3848
|
+
transactionDate: string;
|
|
3849
|
+
transactedAt: string;
|
|
3850
|
+
registeredAt: string;
|
|
3851
|
+
}
|
|
3852
|
+
interface EasyFinBankTransactionSearchResult extends EasyFinBankOperationResult {
|
|
3853
|
+
balance: string;
|
|
3854
|
+
pageNumber: number;
|
|
3855
|
+
pageSize: number;
|
|
3856
|
+
pageCount: number;
|
|
3857
|
+
totalCount: number;
|
|
3858
|
+
transactions: EasyFinBankTransaction[];
|
|
3859
|
+
lastCollectedAt: string;
|
|
3860
|
+
}
|
|
3861
|
+
interface EasyFinBankTransactionSummary {
|
|
3862
|
+
transactionCount: number;
|
|
3863
|
+
depositCount: number;
|
|
3864
|
+
withdrawalCount: number;
|
|
3865
|
+
totalDepositAmount: number;
|
|
3866
|
+
totalWithdrawalAmount: number;
|
|
3867
|
+
}
|
|
3868
|
+
interface EasyFinBankService {
|
|
3869
|
+
/** Compat: `getBankAccountMgtURL` */
|
|
3870
|
+
getBankAccountManagementURL(request: EasyFinBankBusinessInput): Promise<EasyFinBankAccessURL>;
|
|
3871
|
+
/** Compat: `registBankAccount` */
|
|
3872
|
+
registerBankAccount(request: EasyFinBankRegisterAccountInput): Promise<EasyFinBankOperationResult>;
|
|
3873
|
+
/** Compat: `updateBankAccount` */
|
|
3874
|
+
updateBankAccount(request: EasyFinBankUpdateAccountInput): Promise<EasyFinBankOperationResult>;
|
|
3875
|
+
/** Compat: `getBankAccountInfo` */
|
|
3876
|
+
getBankAccount(request: EasyFinBankAccountReference): Promise<EasyFinBankAccount>;
|
|
3877
|
+
/** Compat: `listBankAccount` */
|
|
3878
|
+
listBankAccounts(request: EasyFinBankBusinessInput): Promise<EasyFinBankAccount[]>;
|
|
3879
|
+
/** Requests closure when the current paid subscription expires. Compat: `closeBankAccount` */
|
|
3880
|
+
requestBankAccountClosure(request: EasyFinBankAccountReference): Promise<EasyFinBankOperationResult>;
|
|
3881
|
+
/** Compat: `revokeCloseBankAccount` */
|
|
3882
|
+
cancelBankAccountClosure(request: EasyFinBankAccountReference): Promise<EasyFinBankOperationResult>;
|
|
3883
|
+
/** Compat: `deleteBankAccount` */
|
|
3884
|
+
deleteBankAccount(request: EasyFinBankAccountReference): Promise<EasyFinBankOperationResult>;
|
|
3885
|
+
/** Compat: `requestJob` */
|
|
3886
|
+
requestCollection(request: EasyFinBankRequestCollectionInput): Promise<EasyFinBankCollectionReceipt>;
|
|
3887
|
+
/** Compat: `getJobState` */
|
|
3888
|
+
getCollectionStatus(request: EasyFinBankCollectionReference): Promise<EasyFinBankCollectionStatus>;
|
|
3889
|
+
/** Compat: `listActiveJob` */
|
|
3890
|
+
listCollectionStatuses(request: EasyFinBankBusinessInput): Promise<EasyFinBankCollectionStatus[]>;
|
|
3891
|
+
/** Compat: `search` */
|
|
3892
|
+
searchTransactions(request: EasyFinBankSearchTransactionsInput): Promise<EasyFinBankTransactionSearchResult>;
|
|
3893
|
+
/** Compat: `summary` */
|
|
3894
|
+
summarizeTransactions(request: EasyFinBankTransactionFilterInput): Promise<EasyFinBankTransactionSummary>;
|
|
3895
|
+
/** Compat: `saveMemo` */
|
|
3896
|
+
saveTransactionMemo(request: EasyFinBankSaveMemoInput): Promise<EasyFinBankOperationResult>;
|
|
3897
|
+
/** Compat: `getFlatRatePopUpURL` */
|
|
3898
|
+
getSubscriptionRegistrationURL(request: EasyFinBankBusinessInput): Promise<EasyFinBankAccessURL>;
|
|
3899
|
+
/** Compat: `getFlatRateState` */
|
|
3900
|
+
getSubscriptionStatus(request: EasyFinBankAccountReference): Promise<EasyFinBankSubscription>;
|
|
3901
|
+
/** Compat: `getChargeInfo` */
|
|
3902
|
+
getChargeInfo(request: EasyFinBankBusinessInput): Promise<EasyFinBankChargeInfo>;
|
|
3903
|
+
}
|
|
3904
|
+
type AccountCheckServiceType = '성명' | '실명';
|
|
3905
|
+
type AccountIdentityNumberType = 'P' | 'B';
|
|
3906
|
+
interface AccountHolderNameInput {
|
|
3907
|
+
businessNumber: string;
|
|
3908
|
+
bankCode: string;
|
|
3909
|
+
accountNumber: string;
|
|
3910
|
+
}
|
|
3911
|
+
interface AccountHolderIdentityInput extends AccountHolderNameInput {
|
|
3912
|
+
identityNumberType: AccountIdentityNumberType;
|
|
3913
|
+
identityNumber: string;
|
|
3914
|
+
}
|
|
3915
|
+
interface AccountCheckChargeInput {
|
|
3916
|
+
businessNumber: string;
|
|
3917
|
+
serviceType?: AccountCheckServiceType;
|
|
3918
|
+
}
|
|
3919
|
+
interface AccountHolderInfo {
|
|
3920
|
+
bankCode: string;
|
|
3921
|
+
accountNumber: string;
|
|
3922
|
+
accountHolderName: string;
|
|
3923
|
+
resultCode: number;
|
|
3924
|
+
resultMessage: string;
|
|
3925
|
+
checkedAt: string;
|
|
3926
|
+
}
|
|
3927
|
+
interface AccountHolderIdentityInfo {
|
|
3928
|
+
bankCode: string;
|
|
3929
|
+
accountNumber: string;
|
|
3930
|
+
identityNumberType: AccountIdentityNumberType;
|
|
3931
|
+
identityNumber: string;
|
|
3932
|
+
accountHolderName: string;
|
|
3933
|
+
resultCode: number;
|
|
3934
|
+
resultMessage: string;
|
|
3935
|
+
checkedAt: string;
|
|
3936
|
+
}
|
|
3937
|
+
interface AccountCheckChargeInfo {
|
|
3938
|
+
unitCost: string;
|
|
3939
|
+
chargeMethod: string;
|
|
3940
|
+
rateSystem: string;
|
|
3941
|
+
}
|
|
3942
|
+
interface AccountCheckUnitCost {
|
|
3943
|
+
unitCost: string;
|
|
3944
|
+
}
|
|
3945
|
+
interface AccountCheckService {
|
|
3946
|
+
/** 예금주 성명 조회. Compat: `checkAccountInfo` */
|
|
3947
|
+
checkAccountHolderName(request: AccountHolderNameInput): Promise<AccountHolderInfo>;
|
|
3948
|
+
/** 실명번호를 이용한 예금주 조회. Compat: `checkDepositorInfo` */
|
|
3949
|
+
verifyAccountHolderIdentity(request: AccountHolderIdentityInput): Promise<AccountHolderIdentityInfo>;
|
|
3950
|
+
/** 과금정보 조회. Compat: `getChargeInfo` */
|
|
3951
|
+
getChargeInfo(request: AccountCheckChargeInput): Promise<AccountCheckChargeInfo>;
|
|
3952
|
+
/** 단가 조회. Compat: `getUnitCost` */
|
|
3953
|
+
getUnitCost(request: AccountCheckChargeInput): Promise<AccountCheckUnitCost>;
|
|
3954
|
+
}
|
|
3955
|
+
interface KakaoBusinessRequest {
|
|
3956
|
+
businessNumber: string;
|
|
3957
|
+
}
|
|
3958
|
+
interface KakaoTemplateRequest extends KakaoBusinessRequest {
|
|
3959
|
+
templateCode: string;
|
|
3960
|
+
}
|
|
3961
|
+
interface KakaoReceiptRequest extends KakaoBusinessRequest {
|
|
3962
|
+
receiptNumber: string;
|
|
3963
|
+
}
|
|
3964
|
+
interface KakaoRequestNumberRequest extends KakaoBusinessRequest {
|
|
3965
|
+
requestNumber: string;
|
|
3966
|
+
}
|
|
3967
|
+
interface KakaoReceiptRecipientRequest extends KakaoReceiptRequest {
|
|
3968
|
+
receiverPhoneNumber: string;
|
|
3969
|
+
}
|
|
3970
|
+
interface KakaoRequestNumberRecipientRequest extends KakaoRequestNumberRequest {
|
|
3971
|
+
receiverPhoneNumber: string;
|
|
3972
|
+
}
|
|
3973
|
+
interface KakaoButton {
|
|
3974
|
+
label: string;
|
|
3975
|
+
typeCode: string;
|
|
3976
|
+
firstLink?: string;
|
|
3977
|
+
secondLink?: string;
|
|
3978
|
+
browserTarget?: string;
|
|
3979
|
+
phoneNumber?: string;
|
|
3980
|
+
}
|
|
3981
|
+
interface KakaoCoupon {
|
|
3982
|
+
title: string;
|
|
3983
|
+
description: string;
|
|
3984
|
+
mobileUrl?: string;
|
|
3985
|
+
desktopUrl?: string;
|
|
3986
|
+
androidUrl?: string;
|
|
3987
|
+
iosUrl?: string;
|
|
3988
|
+
}
|
|
3989
|
+
interface KakaoCommerce {
|
|
3990
|
+
title: string;
|
|
3991
|
+
regularPrice: number;
|
|
3992
|
+
discountPrice?: number;
|
|
3993
|
+
discountType?: 'R' | 'F';
|
|
3994
|
+
discount?: number;
|
|
3995
|
+
}
|
|
3996
|
+
interface KakaoListItem {
|
|
3997
|
+
title: string;
|
|
3998
|
+
imageUrl: string;
|
|
3999
|
+
mobileUrl: string;
|
|
4000
|
+
desktopUrl?: string;
|
|
4001
|
+
androidUrl?: string;
|
|
4002
|
+
iosUrl?: string;
|
|
4003
|
+
}
|
|
4004
|
+
interface KakaoCarouselItem {
|
|
4005
|
+
heading?: string;
|
|
4006
|
+
messageBody?: string;
|
|
4007
|
+
imageUrl: string;
|
|
4008
|
+
imageLink?: string;
|
|
4009
|
+
buttons?: KakaoButton[];
|
|
4010
|
+
coupon?: KakaoCoupon;
|
|
4011
|
+
commerce?: KakaoCommerce;
|
|
4012
|
+
additionalContent?: string;
|
|
4013
|
+
}
|
|
4014
|
+
interface KakaoCarouselHead {
|
|
4015
|
+
heading: string;
|
|
4016
|
+
messageBody: string;
|
|
4017
|
+
imageUrl: string;
|
|
4018
|
+
mobileUrl?: string;
|
|
4019
|
+
desktopUrl?: string;
|
|
4020
|
+
androidUrl?: string;
|
|
4021
|
+
iosUrl?: string;
|
|
4022
|
+
}
|
|
4023
|
+
interface KakaoCarouselTail {
|
|
4024
|
+
mobileUrl: string;
|
|
4025
|
+
desktopUrl?: string;
|
|
4026
|
+
androidUrl?: string;
|
|
4027
|
+
iosUrl?: string;
|
|
4028
|
+
}
|
|
4029
|
+
interface KakaoCarouselVariables {
|
|
4030
|
+
content?: Record<string, string>;
|
|
4031
|
+
buttons?: Record<string, string>;
|
|
4032
|
+
coupon?: Record<string, string>;
|
|
4033
|
+
commerce?: Record<string, string>;
|
|
4034
|
+
}
|
|
4035
|
+
interface KakaoTemplateVariables extends KakaoCarouselVariables {
|
|
4036
|
+
carousel?: KakaoCarouselVariables[];
|
|
4037
|
+
}
|
|
4038
|
+
/** Visual content shared by send inputs, templates, and delivery results. */
|
|
4039
|
+
interface KakaoContent {
|
|
4040
|
+
heading?: string;
|
|
4041
|
+
messageBody?: string;
|
|
4042
|
+
imageUrl?: string;
|
|
4043
|
+
imageLink?: string;
|
|
4044
|
+
listItems?: KakaoListItem[];
|
|
4045
|
+
commerce?: KakaoCommerce;
|
|
4046
|
+
carouselHead?: KakaoCarouselHead;
|
|
4047
|
+
carouselItems?: KakaoCarouselItem[];
|
|
4048
|
+
carouselTail?: KakaoCarouselTail;
|
|
4049
|
+
buttons?: KakaoButton[];
|
|
4050
|
+
coupon?: KakaoCoupon;
|
|
4051
|
+
additionalContent?: string;
|
|
4052
|
+
adultOnly?: boolean;
|
|
4053
|
+
}
|
|
4054
|
+
interface KakaoMessageContent extends KakaoContent {
|
|
4055
|
+
templateVariables?: KakaoTemplateVariables;
|
|
4056
|
+
fallbackSubject?: string;
|
|
4057
|
+
fallbackBody?: string;
|
|
4058
|
+
}
|
|
4059
|
+
interface KakaoRecipient extends KakaoMessageContent {
|
|
4060
|
+
receiverPhoneNumber: string;
|
|
4061
|
+
receiverName?: string;
|
|
4062
|
+
referenceKey?: string;
|
|
4063
|
+
emphasizedTitle?: string;
|
|
4064
|
+
}
|
|
4065
|
+
interface KakaoNotificationRequest extends KakaoBusinessRequest {
|
|
4066
|
+
requestNumber?: string;
|
|
4067
|
+
templateCode: string;
|
|
4068
|
+
senderPhoneNumber?: string;
|
|
4069
|
+
fallbackType?: 'C' | 'A';
|
|
4070
|
+
reserveDateTime?: string;
|
|
4071
|
+
}
|
|
4072
|
+
interface SendNotificationMessageRequest extends KakaoNotificationRequest, KakaoRecipient {
|
|
4073
|
+
messageBody: string;
|
|
4074
|
+
}
|
|
4075
|
+
interface SendNotificationMessagesRequest extends KakaoNotificationRequest {
|
|
4076
|
+
recipients: KakaoRecipient[];
|
|
4077
|
+
buttons?: KakaoButton[];
|
|
4078
|
+
}
|
|
4079
|
+
interface SendIdenticalNotificationMessagesRequest extends SendNotificationMessagesRequest {
|
|
4080
|
+
messageBody: string;
|
|
4081
|
+
fallbackSubject?: string;
|
|
4082
|
+
fallbackBody?: string;
|
|
4083
|
+
emphasizedTitle?: string;
|
|
4084
|
+
}
|
|
4085
|
+
type KakaoFriendRecipient = Pick<KakaoRecipient, 'receiverPhoneNumber' | 'receiverName' | 'referenceKey' | 'messageBody' | 'fallbackSubject' | 'fallbackBody' | 'buttons'>;
|
|
4086
|
+
interface KakaoFriendMessageRecipient extends KakaoFriendRecipient {
|
|
4087
|
+
messageBody: string;
|
|
4088
|
+
}
|
|
4089
|
+
/** Legacy friendtalk transport; delivery availability is determined by Popbill. */
|
|
4090
|
+
interface KakaoFriendRequest extends KakaoBusinessRequest {
|
|
4091
|
+
requestNumber?: string;
|
|
4092
|
+
channelSearchId: string;
|
|
4093
|
+
senderPhoneNumber?: string;
|
|
4094
|
+
fallbackType?: 'C' | 'A';
|
|
4095
|
+
reserveDateTime?: string;
|
|
4096
|
+
advertising?: boolean;
|
|
4097
|
+
}
|
|
4098
|
+
interface SendFriendTextMessageRequest extends KakaoFriendRequest, KakaoFriendMessageRecipient {}
|
|
4099
|
+
interface SendFriendTextMessagesRequest extends KakaoFriendRequest {
|
|
4100
|
+
recipients: KakaoFriendMessageRecipient[];
|
|
4101
|
+
buttons?: KakaoButton[];
|
|
4102
|
+
}
|
|
4103
|
+
interface SendIdenticalFriendTextMessagesRequest extends KakaoFriendRequest {
|
|
4104
|
+
messageBody: string;
|
|
4105
|
+
fallbackSubject?: string;
|
|
4106
|
+
fallbackBody?: string;
|
|
4107
|
+
recipients: KakaoFriendRecipient[];
|
|
4108
|
+
buttons?: KakaoButton[];
|
|
4109
|
+
}
|
|
4110
|
+
interface KakaoFriendImage {
|
|
4111
|
+
/** Local image uploaded as the FMS multipart file. */
|
|
4112
|
+
filePath: string;
|
|
4113
|
+
/** Destination opened when the recipient selects the image. */
|
|
4114
|
+
imageLink?: string;
|
|
4115
|
+
}
|
|
4116
|
+
interface SendFriendImageMessageRequest extends SendFriendTextMessageRequest, KakaoFriendImage {}
|
|
4117
|
+
interface SendFriendImageMessagesRequest extends SendFriendTextMessagesRequest, KakaoFriendImage {}
|
|
4118
|
+
interface SendIdenticalFriendImageMessagesRequest extends SendIdenticalFriendTextMessagesRequest, KakaoFriendImage {}
|
|
4119
|
+
/** I/O/N/M follows the HTTP reference; business eligibility remains a server decision. */
|
|
4120
|
+
type KakaoBrandTarget = 'I' | 'O' | 'N' | 'M' | (string & {});
|
|
4121
|
+
interface SendBrandMessageRequest extends KakaoBusinessRequest, KakaoMessageContent {
|
|
4122
|
+
requestNumber?: string;
|
|
4123
|
+
channelSearchId?: string;
|
|
4124
|
+
templateCode?: string;
|
|
4125
|
+
target: KakaoBrandTarget;
|
|
4126
|
+
senderPhoneNumber?: string;
|
|
4127
|
+
recipients: KakaoRecipient[];
|
|
4128
|
+
unsubscribePhoneNumber?: string;
|
|
4129
|
+
fallbackEnabled?: boolean;
|
|
4130
|
+
fallbackUnsubscribePhoneNumber?: string;
|
|
4131
|
+
reserveDateTime?: string;
|
|
4132
|
+
}
|
|
4133
|
+
interface SendBrandChannelMessagesRequest extends SendBrandMessageRequest {
|
|
4134
|
+
channelSearchId: string;
|
|
4135
|
+
}
|
|
4136
|
+
interface SendBrandTemplateMessagesRequest extends SendBrandMessageRequest {
|
|
4137
|
+
templateCode: string;
|
|
4138
|
+
}
|
|
4139
|
+
interface KakaoImagePathRequest extends KakaoBusinessRequest {
|
|
4140
|
+
filePath: string;
|
|
4141
|
+
}
|
|
4142
|
+
interface KakaoImagePathsRequest extends KakaoBusinessRequest {
|
|
4143
|
+
filePaths: string[];
|
|
4144
|
+
}
|
|
4145
|
+
interface KakaoBinaryFile {
|
|
4146
|
+
fileName: string;
|
|
4147
|
+
fileData: Buffer;
|
|
4148
|
+
}
|
|
4149
|
+
interface KakaoImageBinaryRequest extends KakaoBusinessRequest, KakaoBinaryFile {}
|
|
4150
|
+
interface KakaoImagesBinaryRequest extends KakaoBusinessRequest {
|
|
4151
|
+
files: KakaoBinaryFile[];
|
|
4152
|
+
}
|
|
4153
|
+
interface SearchKakaoMessagesRequest extends KakaoBusinessRequest {
|
|
4154
|
+
startDate: string;
|
|
4155
|
+
endDate: string;
|
|
4156
|
+
stateCodes?: string[];
|
|
4157
|
+
messageTypes?: string[];
|
|
4158
|
+
reservedOnly?: boolean;
|
|
4159
|
+
senderOnly?: boolean;
|
|
4160
|
+
channelSearchId?: string;
|
|
4161
|
+
contentTypeCodes?: string[];
|
|
4162
|
+
queryText?: string;
|
|
4163
|
+
sortOrder?: 'D' | 'A';
|
|
4164
|
+
pageNumber?: number;
|
|
4165
|
+
pageSize?: number;
|
|
4166
|
+
}
|
|
4167
|
+
interface KakaoChargeRequest extends KakaoBusinessRequest {
|
|
4168
|
+
messageType: string;
|
|
4169
|
+
}
|
|
4170
|
+
interface KakaoOperationResult {
|
|
4171
|
+
resultCode: number;
|
|
4172
|
+
resultMessage: string;
|
|
4173
|
+
}
|
|
4174
|
+
interface KakaoReceipt {
|
|
4175
|
+
receiptNumber: string;
|
|
4176
|
+
}
|
|
4177
|
+
interface KakaoAccessUrl {
|
|
4178
|
+
accessUrl: string;
|
|
4179
|
+
}
|
|
4180
|
+
interface KakaoUnitCost {
|
|
4181
|
+
unitCostAmount: string;
|
|
4182
|
+
}
|
|
4183
|
+
interface KakaoChargeInfo extends KakaoUnitCost {
|
|
4184
|
+
chargeMethod: string;
|
|
4185
|
+
rateSystem: string;
|
|
4186
|
+
}
|
|
4187
|
+
interface KakaoBusinessChannel {
|
|
4188
|
+
channelSearchId: string;
|
|
4189
|
+
channelName?: string;
|
|
4190
|
+
stateCode?: string;
|
|
4191
|
+
brandMessagingStateCode?: number;
|
|
4192
|
+
registeredAt?: string;
|
|
4193
|
+
stateChangedAt?: string;
|
|
4194
|
+
brandMessagingStateChangedAt?: string;
|
|
4195
|
+
}
|
|
4196
|
+
interface KakaoSenderNumber {
|
|
4197
|
+
phoneNumber: string;
|
|
4198
|
+
representative?: boolean;
|
|
4199
|
+
stateCode?: number;
|
|
4200
|
+
memo?: string | null;
|
|
4201
|
+
}
|
|
4202
|
+
interface KakaoNotificationTemplate {
|
|
4203
|
+
channelSearchId?: string;
|
|
4204
|
+
templateCode: string;
|
|
4205
|
+
templateName?: string;
|
|
4206
|
+
messageBody?: string;
|
|
4207
|
+
advertisingText?: string;
|
|
4208
|
+
appendix?: string;
|
|
4209
|
+
buttons?: KakaoButton[];
|
|
4210
|
+
secure?: boolean;
|
|
4211
|
+
emphasisType?: string;
|
|
4212
|
+
emphasizedTitle?: string;
|
|
4213
|
+
emphasizedSubtitle?: string;
|
|
4214
|
+
stateCode?: string;
|
|
4215
|
+
stateChangedAt?: string;
|
|
4216
|
+
}
|
|
4217
|
+
interface KakaoBrandTemplate extends KakaoContent {
|
|
4218
|
+
templateCode: string;
|
|
4219
|
+
templateName?: string;
|
|
4220
|
+
channelSearchId?: string;
|
|
4221
|
+
templateType?: string;
|
|
4222
|
+
stateCode?: number;
|
|
4223
|
+
stateChangedAt?: string;
|
|
4224
|
+
}
|
|
4225
|
+
interface KakaoMessage extends KakaoContent {
|
|
4226
|
+
receiptNumber?: string;
|
|
4227
|
+
requestNumber?: string;
|
|
4228
|
+
referenceKey?: string;
|
|
4229
|
+
channelSearchId?: string;
|
|
4230
|
+
templateCode?: string;
|
|
4231
|
+
messageType?: string;
|
|
4232
|
+
contentTypeCode?: number | string;
|
|
4233
|
+
senderPhoneNumber?: string;
|
|
4234
|
+
receiverPhoneNumber?: string;
|
|
4235
|
+
receiverName?: string;
|
|
4236
|
+
subject?: string;
|
|
4237
|
+
emphasizedTitle?: string;
|
|
4238
|
+
stateCode?: number;
|
|
4239
|
+
resultCode?: number;
|
|
4240
|
+
receivedAt?: string;
|
|
4241
|
+
reserveDateTime?: string;
|
|
4242
|
+
sentAt?: string;
|
|
4243
|
+
resultAt?: string;
|
|
4244
|
+
fallbackSubject?: string;
|
|
4245
|
+
fallbackBody?: string;
|
|
4246
|
+
fallbackContentTypeCode?: number;
|
|
4247
|
+
fallbackResultCode?: number | string;
|
|
4248
|
+
fallbackSentAt?: string;
|
|
4249
|
+
fallbackResultAt?: string;
|
|
4250
|
+
}
|
|
4251
|
+
interface KakaoMessages {
|
|
4252
|
+
receiptNumber?: string;
|
|
4253
|
+
requestNumber?: string;
|
|
4254
|
+
channelSearchId?: string;
|
|
4255
|
+
templateCode?: string;
|
|
4256
|
+
brandTemplateCode?: string;
|
|
4257
|
+
contentTypeCode?: number | string;
|
|
4258
|
+
target?: string;
|
|
4259
|
+
senderPhoneNumber?: string;
|
|
4260
|
+
messageBody?: string;
|
|
4261
|
+
buttons?: KakaoButton[];
|
|
4262
|
+
messages: KakaoMessage[];
|
|
4263
|
+
advertising?: boolean;
|
|
4264
|
+
unsubscribePhoneNumber?: string;
|
|
4265
|
+
sentCount?: string;
|
|
4266
|
+
successCount?: string;
|
|
4267
|
+
failureCount?: string;
|
|
4268
|
+
canceledCount?: string;
|
|
4269
|
+
sendDateTime?: string;
|
|
4270
|
+
reserveDateTime?: string;
|
|
4271
|
+
fallbackSubject?: string;
|
|
4272
|
+
fallbackBody?: string;
|
|
4273
|
+
fallbackType?: string | null;
|
|
4274
|
+
fallbackUnsubscribePhoneNumber?: string;
|
|
4275
|
+
fallbackCount?: string;
|
|
4276
|
+
}
|
|
4277
|
+
interface KakaoSearchResult {
|
|
4278
|
+
operationResult: KakaoOperationResult;
|
|
4279
|
+
pageNumber: number;
|
|
4280
|
+
pageSize: number;
|
|
4281
|
+
pageCount: number;
|
|
4282
|
+
totalCount: number;
|
|
4283
|
+
messages: KakaoMessage[];
|
|
4284
|
+
}
|
|
4285
|
+
interface KakaoImage {
|
|
4286
|
+
imageUrl: string;
|
|
4287
|
+
formField?: string;
|
|
4288
|
+
}
|
|
4289
|
+
interface KakaoService {
|
|
4290
|
+
/** Compat: `getPlusFriendMgtURL` */
|
|
4291
|
+
getBusinessChannelManagementURL(request: KakaoBusinessRequest): Promise<KakaoAccessUrl>;
|
|
4292
|
+
/** Compat: `listPlusFriendID` */
|
|
4293
|
+
listBusinessChannels(request: KakaoBusinessRequest): Promise<KakaoBusinessChannel[]>;
|
|
4294
|
+
/** Compat: `getSenderNumberMgtURL` */
|
|
4295
|
+
getSenderNumberManagementURL(request: KakaoBusinessRequest): Promise<KakaoAccessUrl>;
|
|
4296
|
+
/** Compat: `getSenderNumberList` */
|
|
4297
|
+
listSenderNumbers(request: KakaoBusinessRequest): Promise<KakaoSenderNumber[]>;
|
|
4298
|
+
/** Compat: `checkSenderNumber` */
|
|
4299
|
+
checkSenderNumberRegistration(request: KakaoBusinessRequest & {
|
|
4300
|
+
senderPhoneNumber: string;
|
|
4301
|
+
}): Promise<KakaoOperationResult>;
|
|
4302
|
+
/** Compat: `getATSTemplateMgtURL` */
|
|
4303
|
+
getNotificationTemplateManagementURL(request: KakaoBusinessRequest): Promise<KakaoAccessUrl>;
|
|
4304
|
+
/** Compat: `getATSTemplate` */
|
|
4305
|
+
getNotificationTemplate(request: KakaoTemplateRequest): Promise<KakaoNotificationTemplate>;
|
|
4306
|
+
/** Compat: `listATSTemplate` */
|
|
4307
|
+
listNotificationTemplates(request: KakaoBusinessRequest): Promise<KakaoNotificationTemplate[]>;
|
|
4308
|
+
/** Compat: `getBMSTemplateMgtURL` */
|
|
4309
|
+
getBrandTemplateManagementURL(request: KakaoBusinessRequest): Promise<KakaoAccessUrl>;
|
|
4310
|
+
/** Compat: `getBMSTemplate` */
|
|
4311
|
+
getBrandTemplate(request: KakaoTemplateRequest): Promise<KakaoBrandTemplate>;
|
|
4312
|
+
/** Compat: `listBMSTemplate` */
|
|
4313
|
+
listBrandTemplates(request: KakaoBusinessRequest): Promise<KakaoBrandTemplate[]>;
|
|
4314
|
+
/** Compat: `uploadImage` */
|
|
4315
|
+
uploadBrandImageFromPath(request: KakaoImagePathRequest): Promise<KakaoImage>;
|
|
4316
|
+
/** Compat: `uploadImageBinary` */
|
|
4317
|
+
uploadBrandImageFromBinary(request: KakaoImageBinaryRequest): Promise<KakaoImage>;
|
|
4318
|
+
/** Compat: `uploadWideImage` */
|
|
4319
|
+
uploadBrandWideImageFromPath(request: KakaoImagePathRequest): Promise<KakaoImage>;
|
|
4320
|
+
/** Compat: `uploadWideImageBinary` */
|
|
4321
|
+
uploadBrandWideImageFromBinary(request: KakaoImageBinaryRequest): Promise<KakaoImage>;
|
|
4322
|
+
/** Compat: `uploadWideListMainImage` */
|
|
4323
|
+
uploadBrandWideListMainImageFromPath(request: KakaoImagePathRequest): Promise<KakaoImage>;
|
|
4324
|
+
/** Compat: `uploadWideListMainImageBinary` */
|
|
4325
|
+
uploadBrandWideListMainImageFromBinary(request: KakaoImageBinaryRequest): Promise<KakaoImage>;
|
|
4326
|
+
/** Compat: `uploadWideListImage` */
|
|
4327
|
+
uploadBrandWideListImageFromPath(request: KakaoImagePathsRequest): Promise<KakaoImage[]>;
|
|
4328
|
+
/** Compat: `uploadWideListImageBinary` */
|
|
4329
|
+
uploadBrandWideListImageFromBinary(request: KakaoImagesBinaryRequest): Promise<KakaoImage[]>;
|
|
4330
|
+
/** Compat: `uploadCarouselFeedImage` */
|
|
4331
|
+
uploadBrandCarouselFeedImageFromPath(request: KakaoImagePathsRequest): Promise<KakaoImage[]>;
|
|
4332
|
+
/** Compat: `uploadCarouselFeedImageBinary` */
|
|
4333
|
+
uploadBrandCarouselFeedImageFromBinary(request: KakaoImagesBinaryRequest): Promise<KakaoImage[]>;
|
|
4334
|
+
/** Compat: `uploadCommerceImage` */
|
|
4335
|
+
uploadBrandCommerceImageFromPath(request: KakaoImagePathRequest): Promise<KakaoImage>;
|
|
4336
|
+
/** Compat: `uploadCommerceImageBinary` */
|
|
4337
|
+
uploadBrandCommerceImageFromBinary(request: KakaoImageBinaryRequest): Promise<KakaoImage>;
|
|
4338
|
+
/** Compat: `uploadCarouselCommerceImage` */
|
|
4339
|
+
uploadBrandCarouselCommerceImageFromPath(request: KakaoImagePathsRequest): Promise<KakaoImage[]>;
|
|
4340
|
+
/** Compat: `uploadCarouselCommerceImageBinary` */
|
|
4341
|
+
uploadBrandCarouselCommerceImageFromBinary(request: KakaoImagesBinaryRequest): Promise<KakaoImage[]>;
|
|
4342
|
+
/** Compat: `sendATS_same` */
|
|
4343
|
+
sendNotificationMessage(request: SendNotificationMessageRequest): Promise<KakaoReceipt>;
|
|
4344
|
+
/** Compat: `sendATS_multi` */
|
|
4345
|
+
sendNotificationMessages(request: SendNotificationMessagesRequest): Promise<KakaoReceipt>;
|
|
4346
|
+
/** Compat: `sendATS_same` */
|
|
4347
|
+
sendIdenticalNotificationMessages(request: SendIdenticalNotificationMessagesRequest): Promise<KakaoReceipt>;
|
|
4348
|
+
/** 단건 친구톡 텍스트를 전송하며 수신자의 참조 키를 유지합니다. Compat: `sendFTS_same` */
|
|
4349
|
+
sendFriendTextMessage(request: SendFriendTextMessageRequest): Promise<KakaoReceipt>;
|
|
4350
|
+
/** Compat: `sendFTS_multi` */
|
|
4351
|
+
sendFriendTextMessages(request: SendFriendTextMessagesRequest): Promise<KakaoReceipt>;
|
|
4352
|
+
/** Compat: `sendFTS_same` */
|
|
4353
|
+
sendIdenticalFriendTextMessages(request: SendIdenticalFriendTextMessagesRequest): Promise<KakaoReceipt>;
|
|
4354
|
+
/** 단건 친구톡 이미지를 전송하며 수신자의 참조 키를 유지합니다. Compat: `sendFMS_same` */
|
|
4355
|
+
sendFriendImageMessage(request: SendFriendImageMessageRequest): Promise<KakaoReceipt>;
|
|
4356
|
+
/** Compat: `sendFMS_multi` */
|
|
4357
|
+
sendFriendImageMessages(request: SendFriendImageMessagesRequest): Promise<KakaoReceipt>;
|
|
4358
|
+
/** Compat: `sendFMS_same` */
|
|
4359
|
+
sendIdenticalFriendImageMessages(request: SendIdenticalFriendImageMessagesRequest): Promise<KakaoReceipt>;
|
|
4360
|
+
/** Compat: `sendBMSText` */
|
|
4361
|
+
sendBrandTextMessages(request: SendBrandChannelMessagesRequest): Promise<KakaoReceipt>;
|
|
4362
|
+
/** Compat: `sendBMSImage` */
|
|
4363
|
+
sendBrandImageMessages(request: SendBrandChannelMessagesRequest): Promise<KakaoReceipt>;
|
|
4364
|
+
/** Compat: `sendBMSWideImage` */
|
|
4365
|
+
sendBrandWideImageMessages(request: SendBrandChannelMessagesRequest): Promise<KakaoReceipt>;
|
|
4366
|
+
/** Compat: `sendBMSWideList` */
|
|
4367
|
+
sendBrandWideListMessages(request: SendBrandChannelMessagesRequest): Promise<KakaoReceipt>;
|
|
4368
|
+
/** Compat: `sendBMSCarouselFeed` */
|
|
4369
|
+
sendBrandCarouselFeedMessages(request: SendBrandChannelMessagesRequest): Promise<KakaoReceipt>;
|
|
4370
|
+
/** Compat: `sendBMSCommerce` */
|
|
4371
|
+
sendBrandCommerceMessages(request: SendBrandChannelMessagesRequest): Promise<KakaoReceipt>;
|
|
4372
|
+
/** Compat: `sendBMSCarouselCommerce` */
|
|
4373
|
+
sendBrandCarouselCommerceMessages(request: SendBrandChannelMessagesRequest): Promise<KakaoReceipt>;
|
|
4374
|
+
/** Compat: `sendBMSVariable` */
|
|
4375
|
+
sendBrandTemplateMessages(request: SendBrandTemplateMessagesRequest): Promise<KakaoReceipt>;
|
|
4376
|
+
/** Compat: `cancelReserve` */
|
|
4377
|
+
cancelReservedMessagesByReceiptNumber(request: KakaoReceiptRequest): Promise<KakaoOperationResult>;
|
|
4378
|
+
/** Compat: `cancelReserveRN` */
|
|
4379
|
+
cancelReservedMessagesByRequestNumber(request: KakaoRequestNumberRequest): Promise<KakaoOperationResult>;
|
|
4380
|
+
/** Compat: `cancelReservebyRCV` */
|
|
4381
|
+
cancelReservedRecipientByReceiptNumber(request: KakaoReceiptRecipientRequest): Promise<KakaoOperationResult>;
|
|
4382
|
+
/** Compat: `cancelReserveRNbyRCV` */
|
|
4383
|
+
cancelReservedRecipientByRequestNumber(request: KakaoRequestNumberRecipientRequest): Promise<KakaoOperationResult>;
|
|
4384
|
+
/** Compat: `getMessages` */
|
|
4385
|
+
getMessagesByReceiptNumber(request: KakaoReceiptRequest): Promise<KakaoMessages>;
|
|
4386
|
+
/** Compat: `getMessagesRN` */
|
|
4387
|
+
getMessagesByRequestNumber(request: KakaoRequestNumberRequest): Promise<KakaoMessages>;
|
|
4388
|
+
/** Compat: `search` */
|
|
4389
|
+
searchMessages(request: SearchKakaoMessagesRequest): Promise<KakaoSearchResult>;
|
|
4390
|
+
/** Compat: `getSentListURL` */
|
|
4391
|
+
getMessageHistoryURL(request: KakaoBusinessRequest): Promise<KakaoAccessUrl>;
|
|
4392
|
+
/** Compat: `getUnitCost` */
|
|
4393
|
+
getMessageUnitCost(request: KakaoChargeRequest): Promise<KakaoUnitCost>;
|
|
4394
|
+
/** Compat: `getChargeInfo` */
|
|
4395
|
+
getMessageChargeInfo(request: KakaoChargeRequest): Promise<KakaoChargeInfo>;
|
|
4396
|
+
}
|
|
4397
|
+
interface MessageBusinessRequest {
|
|
4398
|
+
businessNumber: string;
|
|
4399
|
+
}
|
|
4400
|
+
interface MessageRecipientInput {
|
|
4401
|
+
receiverNumber: string;
|
|
4402
|
+
receiverName?: string;
|
|
4403
|
+
senderNumber?: string;
|
|
4404
|
+
senderName?: string;
|
|
4405
|
+
subject?: string;
|
|
4406
|
+
body?: string;
|
|
4407
|
+
referenceKey?: string;
|
|
4408
|
+
}
|
|
4409
|
+
interface SendMessageRequest extends MessageBusinessRequest {
|
|
4410
|
+
requestNumber?: string;
|
|
4411
|
+
senderNumber: string;
|
|
4412
|
+
senderName?: string;
|
|
4413
|
+
recipients: readonly MessageRecipientInput[];
|
|
4414
|
+
subject?: string;
|
|
4415
|
+
body: string;
|
|
4416
|
+
isAdvertisement?: boolean;
|
|
4417
|
+
reservedAt?: string;
|
|
4418
|
+
}
|
|
4419
|
+
type MessageImageInput = {
|
|
4420
|
+
filePath: string;
|
|
4421
|
+
fileName?: never;
|
|
4422
|
+
fileData?: never;
|
|
4423
|
+
} | {
|
|
4424
|
+
filePath?: never;
|
|
4425
|
+
fileName: string;
|
|
4426
|
+
fileData: Buffer;
|
|
4427
|
+
};
|
|
4428
|
+
interface SendImageMessageRequest extends SendMessageRequest {
|
|
4429
|
+
image: MessageImageInput;
|
|
4430
|
+
}
|
|
4431
|
+
interface MessageReceiptRequest extends MessageBusinessRequest {
|
|
4432
|
+
receiptNumber: string;
|
|
4433
|
+
}
|
|
4434
|
+
interface MessageRequestNumberRequest extends MessageBusinessRequest {
|
|
4435
|
+
requestNumber: string;
|
|
4436
|
+
}
|
|
4437
|
+
interface MessageReceiptNumbersRequest extends MessageBusinessRequest {
|
|
4438
|
+
receiptNumbers: readonly string[];
|
|
4439
|
+
}
|
|
4440
|
+
interface MessageReceiptRecipientRequest extends MessageReceiptRequest {
|
|
4441
|
+
receiverNumber: string;
|
|
4442
|
+
}
|
|
4443
|
+
interface MessageRequestRecipientRequest extends MessageRequestNumberRequest {
|
|
4444
|
+
receiverNumber: string;
|
|
4445
|
+
}
|
|
4446
|
+
interface MessageChargeRequest extends MessageBusinessRequest {
|
|
4447
|
+
messageType: MessageType;
|
|
4448
|
+
}
|
|
4449
|
+
interface MessageSearchRequest extends MessageBusinessRequest {
|
|
4450
|
+
startDate: string;
|
|
4451
|
+
endDate: string;
|
|
4452
|
+
stateCodes: readonly string[];
|
|
4453
|
+
messageTypes?: readonly MessageType[];
|
|
4454
|
+
isReserved?: boolean;
|
|
4455
|
+
sentByCurrentUserOnly?: boolean;
|
|
4456
|
+
queryText?: string;
|
|
4457
|
+
sortOrder?: 'A' | 'D';
|
|
4458
|
+
pageNumber?: number;
|
|
4459
|
+
pageSize?: number;
|
|
4460
|
+
}
|
|
4461
|
+
interface MessageOperationResult {
|
|
4462
|
+
code: number;
|
|
4463
|
+
message: string;
|
|
4464
|
+
}
|
|
4465
|
+
interface MessageAccessURL {
|
|
4466
|
+
url: string;
|
|
4467
|
+
}
|
|
4468
|
+
interface MessageReceiptResult {
|
|
4469
|
+
receiptNumber: string;
|
|
4470
|
+
}
|
|
4471
|
+
interface SentMessage {
|
|
4472
|
+
receiptNumber?: string;
|
|
4473
|
+
requestNumber?: string;
|
|
4474
|
+
referenceKey?: string;
|
|
4475
|
+
messageType?: MessageType;
|
|
4476
|
+
senderNumber?: string;
|
|
4477
|
+
senderName?: string;
|
|
4478
|
+
receiverNumber?: string;
|
|
4479
|
+
receiverName?: string;
|
|
4480
|
+
subject?: string;
|
|
4481
|
+
body?: string;
|
|
4482
|
+
carrierName?: string;
|
|
4483
|
+
stateCode?: string | null;
|
|
4484
|
+
resultCode?: string | null;
|
|
4485
|
+
receivedAt?: string;
|
|
4486
|
+
reservedAt?: string;
|
|
4487
|
+
sentAt?: string;
|
|
4488
|
+
resultReceivedAt?: string;
|
|
4489
|
+
}
|
|
4490
|
+
interface MessageSearchResult extends MessageOperationResult {
|
|
4491
|
+
pageNumber: number;
|
|
4492
|
+
pageSize: number;
|
|
4493
|
+
pageCount: number;
|
|
4494
|
+
totalCount: number;
|
|
4495
|
+
items: SentMessage[];
|
|
4496
|
+
}
|
|
4497
|
+
interface MessageSenderNumber {
|
|
4498
|
+
number: string;
|
|
4499
|
+
isRepresentative?: boolean;
|
|
4500
|
+
stateCode?: number;
|
|
4501
|
+
memo?: string;
|
|
4502
|
+
}
|
|
4503
|
+
interface MessageDeniedNumber {
|
|
4504
|
+
number: string;
|
|
4505
|
+
registeredAt?: string;
|
|
4506
|
+
}
|
|
4507
|
+
interface MessageDenyNumberInfo {
|
|
4508
|
+
number?: string;
|
|
4509
|
+
registeredAt?: string;
|
|
4510
|
+
}
|
|
4511
|
+
interface MessageChargeInfo {
|
|
4512
|
+
unitCost?: string;
|
|
4513
|
+
chargeMethod?: '연동' | '파트너';
|
|
4514
|
+
rateSystem?: string;
|
|
4515
|
+
}
|
|
4516
|
+
interface MessageUnitCost {
|
|
4517
|
+
unitCost: string;
|
|
4518
|
+
}
|
|
4519
|
+
interface MessageService {
|
|
4520
|
+
/** Compat: `getSenderNumberMgtURL` */
|
|
4521
|
+
getSenderNumberRegistrationURL(request: MessageBusinessRequest): Promise<MessageAccessURL>;
|
|
4522
|
+
/** Compat: `getSenderNumberList` */
|
|
4523
|
+
getSenderNumbers(request: MessageBusinessRequest): Promise<MessageSenderNumber[]>;
|
|
4524
|
+
/** Compat: `checkSenderNumber` */
|
|
4525
|
+
checkSenderNumber(request: MessageBusinessRequest & {
|
|
4526
|
+
senderNumber: string;
|
|
4527
|
+
}): Promise<MessageOperationResult>;
|
|
4528
|
+
/** Compat: `checkAutoDenyNumber` */
|
|
4529
|
+
getDenyNumberInfo(request: MessageBusinessRequest): Promise<MessageDenyNumberInfo>;
|
|
4530
|
+
/** Compat: `getAutoDenyList` */
|
|
4531
|
+
getDeniedNumbers(request: MessageBusinessRequest): Promise<MessageDeniedNumber[]>;
|
|
4532
|
+
/** Compat: `sendMessage` */
|
|
4533
|
+
sendShortMessage(request: SendMessageRequest): Promise<MessageReceiptResult>;
|
|
4534
|
+
/** Compat: `sendMessage` */
|
|
4535
|
+
sendLongMessage(request: SendMessageRequest): Promise<MessageReceiptResult>;
|
|
4536
|
+
/** Compat: `sendMessage` */
|
|
4537
|
+
sendAutoLengthMessage(request: SendMessageRequest): Promise<MessageReceiptResult>;
|
|
4538
|
+
/** Compat: `sendMMS_multi` */
|
|
4539
|
+
sendImageMessage(request: SendImageMessageRequest): Promise<MessageReceiptResult>;
|
|
4540
|
+
/** Compat: `cancelReserve` */
|
|
4541
|
+
cancelScheduledMessagesByReceiptNumber(request: MessageReceiptRequest): Promise<MessageOperationResult>;
|
|
4542
|
+
/** Compat: `cancelReserveRN` */
|
|
4543
|
+
cancelScheduledMessagesByRequestNumber(request: MessageRequestNumberRequest): Promise<MessageOperationResult>;
|
|
4544
|
+
/** Compat: `cancelReservebyRCV` */
|
|
4545
|
+
cancelScheduledRecipientByReceiptNumber(request: MessageReceiptRecipientRequest): Promise<MessageOperationResult>;
|
|
4546
|
+
/** Compat: `cancelReserveRNbyRCV` */
|
|
4547
|
+
cancelScheduledRecipientByRequestNumber(request: MessageRequestRecipientRequest): Promise<MessageOperationResult>;
|
|
4548
|
+
/** Compat: `getMessages` */
|
|
4549
|
+
getMessagesByReceiptNumber(request: MessageReceiptRequest): Promise<SentMessage[]>;
|
|
4550
|
+
/** Compat: `getMessagesRN` */
|
|
4551
|
+
getMessagesByRequestNumber(request: MessageRequestNumberRequest): Promise<SentMessage[]>;
|
|
4552
|
+
/** Compat: `getStates`. The provider response is undocumented and returned unchanged. */
|
|
4553
|
+
getMessageStatesByReceiptNumbers(request: MessageReceiptNumbersRequest): Promise<unknown>;
|
|
4554
|
+
/** Compat: `search` */
|
|
4555
|
+
searchMessages(request: MessageSearchRequest): Promise<MessageSearchResult>;
|
|
4556
|
+
/** Compat: `getSentListURL` */
|
|
4557
|
+
getSentMessageListURL(request: MessageBusinessRequest): Promise<MessageAccessURL>;
|
|
4558
|
+
/** Compat: `getUnitCost` */
|
|
4559
|
+
getUnitCost(request: MessageChargeRequest): Promise<MessageUnitCost>;
|
|
4560
|
+
/** Compat: `getChargeInfo` */
|
|
4561
|
+
getChargeInfo(request: MessageChargeRequest): Promise<MessageChargeInfo>;
|
|
4562
|
+
}
|
|
4563
|
+
type FaxReceiveNumberType = '일반' | '지능';
|
|
4564
|
+
interface FaxBusinessInput {
|
|
4565
|
+
businessNumber: string;
|
|
4566
|
+
}
|
|
4567
|
+
interface FaxRecipient {
|
|
4568
|
+
phoneNumber: string;
|
|
4569
|
+
name?: string;
|
|
4570
|
+
partnerReferenceKey?: string;
|
|
4571
|
+
}
|
|
4572
|
+
interface FaxSendInput extends FaxBusinessInput {
|
|
4573
|
+
/** Caller-assigned identifier. Retain it to query a lost receipt response. */
|
|
4574
|
+
requestNumber?: string;
|
|
4575
|
+
senderPhoneNumber: string;
|
|
4576
|
+
senderName?: string;
|
|
4577
|
+
recipients: readonly FaxRecipient[];
|
|
4578
|
+
title?: string;
|
|
4579
|
+
isAdvertisement?: boolean;
|
|
4580
|
+
/** yyyyMMddHHmmss, omitted for immediate sending. */
|
|
4581
|
+
scheduledAt?: string;
|
|
4582
|
+
}
|
|
4583
|
+
interface SendFaxFromPathsInput extends FaxSendInput {
|
|
4584
|
+
filePaths: readonly string[];
|
|
4585
|
+
}
|
|
4586
|
+
interface SendFaxFromBinaryInput extends FaxSendInput {
|
|
4587
|
+
files: readonly {
|
|
4588
|
+
fileName: string;
|
|
4589
|
+
fileData: Buffer;
|
|
4590
|
+
}[];
|
|
4591
|
+
}
|
|
4592
|
+
interface FaxReceiptInput extends FaxBusinessInput {
|
|
4593
|
+
receiptNumber: string;
|
|
4594
|
+
}
|
|
4595
|
+
interface FaxRequestInput extends FaxBusinessInput {
|
|
4596
|
+
requestNumber: string;
|
|
4597
|
+
}
|
|
4598
|
+
interface FaxResendOverrides {
|
|
4599
|
+
newRequestNumber?: string;
|
|
4600
|
+
senderPhoneNumber?: string;
|
|
4601
|
+
senderName?: string;
|
|
4602
|
+
/** Omitted recipients retain the original recipients. */
|
|
4603
|
+
recipients?: readonly FaxRecipient[];
|
|
4604
|
+
title?: string;
|
|
4605
|
+
scheduledAt?: string;
|
|
4606
|
+
}
|
|
4607
|
+
interface ResendFaxByReceiptInput extends FaxReceiptInput, FaxResendOverrides {}
|
|
4608
|
+
interface ResendFaxByRequestInput extends FaxRequestInput, FaxResendOverrides {}
|
|
4609
|
+
interface CheckFaxSenderInput extends FaxBusinessInput {
|
|
4610
|
+
senderPhoneNumber: string;
|
|
4611
|
+
}
|
|
4612
|
+
interface FaxPricingInput extends FaxBusinessInput {
|
|
4613
|
+
receiveNumberType?: FaxReceiveNumberType;
|
|
4614
|
+
}
|
|
4615
|
+
interface SearchFaxesInput extends FaxBusinessInput {
|
|
4616
|
+
/** yyyyMMdd; provider accepts a maximum two-month search interval. */
|
|
4617
|
+
startDate: string;
|
|
4618
|
+
endDate: string;
|
|
4619
|
+
/** Known codes: 1 (pending), 2 (sending), 3 (complete), 4 (cancelled). New provider codes are forwarded. */
|
|
4620
|
+
stateCodes?: readonly string[];
|
|
4621
|
+
scheduledOnly?: boolean;
|
|
4622
|
+
currentUserOnly?: boolean;
|
|
4623
|
+
queryText?: string;
|
|
4624
|
+
sortOrder?: 'A' | 'D';
|
|
4625
|
+
pageNumber?: number;
|
|
4626
|
+
pageSize?: number;
|
|
4627
|
+
}
|
|
4628
|
+
interface FaxOperationResult {
|
|
4629
|
+
code: number;
|
|
4630
|
+
message: string;
|
|
4631
|
+
}
|
|
4632
|
+
interface FaxAccessURL {
|
|
4633
|
+
url: string;
|
|
4634
|
+
}
|
|
4635
|
+
interface FaxReceipt {
|
|
4636
|
+
receiptNumber: string;
|
|
4637
|
+
}
|
|
4638
|
+
interface FaxResult {
|
|
4639
|
+
receiptNumber?: string;
|
|
4640
|
+
requestNumber?: string;
|
|
4641
|
+
partnerReferenceKey?: string;
|
|
4642
|
+
senderPhoneNumber?: string;
|
|
4643
|
+
senderName?: string;
|
|
4644
|
+
recipientPhoneNumber?: string;
|
|
4645
|
+
recipientName?: string;
|
|
4646
|
+
recipientNumberType?: FaxReceiveNumberType;
|
|
4647
|
+
title?: string;
|
|
4648
|
+
fileNames?: string[];
|
|
4649
|
+
convertedFileSize?: string;
|
|
4650
|
+
stateCode: number;
|
|
4651
|
+
resultCode?: number;
|
|
4652
|
+
sentPageCount?: number;
|
|
4653
|
+
successfulPageCount?: number;
|
|
4654
|
+
failedPageCount?: number;
|
|
4655
|
+
cancelledPageCount?: number;
|
|
4656
|
+
chargedPageCount?: number;
|
|
4657
|
+
refundedPageCount?: number;
|
|
4658
|
+
receivedAt?: string;
|
|
4659
|
+
scheduledAt?: string;
|
|
4660
|
+
sentAt?: string;
|
|
4661
|
+
resultReceivedAt?: string;
|
|
4662
|
+
}
|
|
4663
|
+
interface FaxSearchResult extends FaxOperationResult {
|
|
4664
|
+
pageNumber: number;
|
|
4665
|
+
pageSize: number;
|
|
4666
|
+
pageCount: number;
|
|
4667
|
+
totalCount: number;
|
|
4668
|
+
items: FaxResult[];
|
|
4669
|
+
}
|
|
4670
|
+
interface FaxSenderNumber {
|
|
4671
|
+
phoneNumber: string;
|
|
4672
|
+
isRepresentative: boolean;
|
|
4673
|
+
stateCode: number;
|
|
4674
|
+
memo?: string;
|
|
4675
|
+
}
|
|
4676
|
+
interface FaxChargeInfo {
|
|
4677
|
+
unitCost: string;
|
|
4678
|
+
chargeMethod: string;
|
|
4679
|
+
rateSystem: string;
|
|
4680
|
+
}
|
|
4681
|
+
interface FaxUnitCost {
|
|
4682
|
+
unitCost: string;
|
|
4683
|
+
}
|
|
4684
|
+
interface FaxService {
|
|
4685
|
+
/** Compat: `getSenderNumberMgtURL` */
|
|
4686
|
+
getFaxSenderRegistrationURL(input: FaxBusinessInput): Promise<FaxAccessURL>;
|
|
4687
|
+
/** Compat: `getSenderNumberList` */
|
|
4688
|
+
getSenderNumbers(input: FaxBusinessInput): Promise<FaxSenderNumber[]>;
|
|
4689
|
+
/** Compat: `checkSenderNumber` */
|
|
4690
|
+
checkSenderNumber(input: CheckFaxSenderInput): Promise<FaxOperationResult>;
|
|
4691
|
+
/** Compat: `sendFax` */
|
|
4692
|
+
sendFaxFromPaths(input: SendFaxFromPathsInput): Promise<FaxReceipt>;
|
|
4693
|
+
/** Compat: `sendFaxBinary` */
|
|
4694
|
+
sendFaxFromBinary(input: SendFaxFromBinaryInput): Promise<FaxReceipt>;
|
|
4695
|
+
/** Compat: `resendFax` */
|
|
4696
|
+
resendFaxByReceipt(input: ResendFaxByReceiptInput): Promise<FaxReceipt>;
|
|
4697
|
+
/** Compat: `resendFaxRN` */
|
|
4698
|
+
resendFaxByRequest(input: ResendFaxByRequestInput): Promise<FaxReceipt>;
|
|
4699
|
+
/** Compat: `cancelReserve` */
|
|
4700
|
+
cancelScheduledFaxByReceipt(input: FaxReceiptInput): Promise<FaxOperationResult>;
|
|
4701
|
+
/** Compat: `cancelReserveRN` */
|
|
4702
|
+
cancelScheduledFaxByRequest(input: FaxRequestInput): Promise<FaxOperationResult>;
|
|
4703
|
+
/** Compat: `getFaxResult` */
|
|
4704
|
+
getFaxResultsByReceipt(input: FaxReceiptInput): Promise<FaxResult[]>;
|
|
4705
|
+
/** Compat: `getFaxResultRN` */
|
|
4706
|
+
getFaxResultsByRequest(input: FaxRequestInput): Promise<FaxResult[]>;
|
|
4707
|
+
/** Compat: `search` */
|
|
4708
|
+
searchFaxes(input: SearchFaxesInput): Promise<FaxSearchResult>;
|
|
4709
|
+
/** Compat: `getSentListURL` */
|
|
4710
|
+
getSentFaxListURL(input: FaxBusinessInput): Promise<FaxAccessURL>;
|
|
4711
|
+
/** Compat: `getPreviewURL` */
|
|
4712
|
+
getFaxPreviewURL(input: FaxReceiptInput): Promise<FaxAccessURL>;
|
|
4713
|
+
/** Compat: `getUnitCost` */
|
|
4714
|
+
getUnitCost(input: FaxPricingInput): Promise<FaxUnitCost>;
|
|
4715
|
+
/** Compat: `getChargeInfo` */
|
|
4716
|
+
getChargeInfo(input: FaxPricingInput): Promise<FaxChargeInfo>;
|
|
4717
|
+
}
|
|
4718
|
+
interface PopbillClientConfig {
|
|
4719
|
+
linkId: string;
|
|
4720
|
+
secretKey: string;
|
|
4721
|
+
userId: string;
|
|
4722
|
+
/**
|
|
4723
|
+
* 팝빌 테스트 연동 여부입니다.
|
|
4724
|
+
*
|
|
4725
|
+
* @default false
|
|
4726
|
+
*/
|
|
4727
|
+
isTest?: boolean;
|
|
4728
|
+
/**
|
|
4729
|
+
* 스태틱 IP 사용 여부입니다.
|
|
4730
|
+
*
|
|
4731
|
+
* @default false
|
|
4732
|
+
*/
|
|
4733
|
+
useStaticIp?: boolean;
|
|
4734
|
+
/**
|
|
4735
|
+
* GA IP 사용 여부입니다.
|
|
4736
|
+
*
|
|
4737
|
+
* @default false
|
|
4738
|
+
*/
|
|
4739
|
+
useGaIp?: boolean;
|
|
4740
|
+
/**
|
|
4741
|
+
* 로컬 시간 사용 여부입니다.
|
|
4742
|
+
*
|
|
4743
|
+
* @default true
|
|
4744
|
+
*/
|
|
4745
|
+
useLocalTime?: boolean;
|
|
4746
|
+
/**
|
|
4747
|
+
* IP 제한 사용 여부입니다.
|
|
4748
|
+
*
|
|
4749
|
+
* @default true
|
|
4750
|
+
*/
|
|
4751
|
+
ipRestrictOnOff?: boolean;
|
|
4752
|
+
/**
|
|
4753
|
+
* 요청 `Accept-Encoding` 헤더 값입니다.
|
|
4754
|
+
*
|
|
4755
|
+
* @default 'gzip'
|
|
4756
|
+
*/
|
|
4757
|
+
acceptEncoding?: string | null;
|
|
4758
|
+
/**
|
|
4759
|
+
* 요청 `Accept-Language` 헤더 값입니다.
|
|
4760
|
+
*
|
|
4761
|
+
* 생략하면 해당 헤더를 보내지 않습니다.
|
|
2217
4762
|
*/
|
|
2218
4763
|
acceptLanguage?: string;
|
|
2219
4764
|
/**
|
|
@@ -2232,17 +4777,37 @@ interface PopbillClientConfig {
|
|
|
2232
4777
|
*/
|
|
2233
4778
|
interface PopbillClient {
|
|
2234
4779
|
services: {
|
|
4780
|
+
common: CommonService;
|
|
2235
4781
|
taxInvoice: TaxInvoiceService;
|
|
4782
|
+
cashbill: CashbillService;
|
|
4783
|
+
statement: StatementService;
|
|
4784
|
+
homeTaxTaxInvoice: HomeTaxTaxInvoiceService;
|
|
4785
|
+
homeTaxCashbill: HomeTaxCashbillService;
|
|
4786
|
+
closedown: ClosedownService;
|
|
4787
|
+
bizInfoCheck: BizInfoCheckService;
|
|
4788
|
+
easyFinBank: EasyFinBankService;
|
|
4789
|
+
accountCheck: AccountCheckService;
|
|
4790
|
+
kakao: KakaoService;
|
|
4791
|
+
message: MessageService;
|
|
4792
|
+
fax: FaxService;
|
|
2236
4793
|
};
|
|
2237
4794
|
}
|
|
2238
4795
|
/**
|
|
2239
4796
|
* modern Popbill client를 생성합니다.
|
|
2240
4797
|
*/
|
|
2241
4798
|
export declare function createPopbillClient(config: PopbillClientConfig): PopbillClient;
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
export declare const
|
|
2247
|
-
export
|
|
4799
|
+
export declare const COMMON_METHODS: readonly ["checkMemberRegistration", "checkUserIdUsage", "registerMember", "quitMember", "getCompanyInfo", "updateCompanyInfo", "registerContact", "getContactInfo", "listContacts", "updateContact", "deleteContact", "getLoginURL", "getMemberPointBalance", "getPartnerPointBalance", "getMemberPointChargeURL", "getPartnerPointChargeURL", "requestPointPayment", "getPointPaymentInfo", "getPointPaymentHistory", "getPointPaymentHistoryURL", "getPointUseHistory", "getPointUseHistoryURL", "getRefundablePointBalance", "requestPointRefund", "getPointRefundInfo", "getPointRefundHistory"];
|
|
4800
|
+
export declare const TAX_INVOICE_METHODS: readonly ["issueInvoiceImmediately", "submitBulkIssue", "getBulkIssueSubmissionResult", "registerInvoice", "updateInvoice", "issueInvoice", "cancelIssuedInvoice", "requestReverseIssueImmediately", "requestReverseIssue", "cancelReverseIssueRequest", "refuseReverseIssueRequest", "sendInvoice", "cancelInvoiceSend", "acceptInvoice", "denyInvoice", "deleteInvoice", "sendInvoiceToNTS", "getInvoiceInfo", "getInvoicesInfo", "getInvoiceDetailInfo", "checkInvoiceManagementKeyInUse", "getInvoiceXML", "downloadInvoicePDF", "searchInvoices", "getInvoiceLogs", "getTaxInvoiceBoxURL", "getInvoicePopupURL", "getInvoiceViewURL", "getSupplierInvoicePrintURL", "getBuyerInvoicePrintURL", "getLegacyInvoicePrintURL", "getBulkInvoicePrintURL", "getInvoiceMailURL", "getInvoicePDFURL", "getSealAndAttachmentRegistrationURL", "attachFileFromPath", "attachFileFromBinary", "deleteAttachedFile", "getAttachedFiles", "resendInvoiceEmail", "resendInvoiceSMS", "resendInvoiceFAX", "attachInvoiceStatement", "detachInvoiceStatement", "assignInvoiceManagementKey", "getEmailSendSettings", "updateEmailSendSettings", "getSendToNTSSettings", "getEmailPublicKeys", "getTaxCertificateRegistrationURL", "getTaxCertificateExpirationDate", "checkTaxCertificateValidation", "getTaxCertificateInfo", "getChargeInfo", "getUnitCost"];
|
|
4801
|
+
export declare const CASHBILL_METHODS: readonly ["issueCashbillImmediately", "revokeCashbill", "submitCashbills", "getCashbillBulkResult", "registerCashbill", "registerCashbillRevocation", "updateCashbill", "issueCashbill", "cancelIssuedCashbill", "deleteCashbill", "getCashbillInfo", "getCashbillsInfo", "getCashbillDetailInfo", "checkCashbillManagementKeyInUse", "searchCashbills", "getCashbillLogs", "getCashbillBoxURL", "getCashbillPopupURL", "getCashbillViewURL", "getCashbillPrintURL", "getReceiverCashbillPrintURL", "getBulkCashbillPrintURL", "getCashbillMailURL", "getCashbillPDFURL", "downloadCashbillPDF", "resendCashbillEmail", "resendCashbillSMS", "resendCashbillFAX", "assignCashbillManagementKey", "getEmailSendSettings", "updateEmailSendSettings", "getChargeInfo", "getUnitCost"];
|
|
4802
|
+
export declare const STATEMENT_METHODS: readonly ["issueStatementImmediately", "registerStatement", "updateStatement", "issueStatement", "cancelIssuedStatement", "deleteStatement", "getStatementInfo", "getStatementsInfo", "getStatementDetailInfo", "checkStatementManagementKeyInUse", "searchStatements", "getStatementLogs", "getStatementBoxURL", "getStatementPopupURL", "getStatementViewURL", "getSenderStatementPrintURL", "getReceiverStatementPrintURL", "getBulkStatementPrintURL", "getStatementMailURL", "getSealAndAttachmentRegistrationURL", "attachFileFromPath", "attachFileFromBinary", "deleteAttachedFile", "getAttachedFiles", "resendStatementEmail", "resendStatementSMS", "resendStatementFAX", "sendStatementFAX", "attachStatement", "detachStatement", "getEmailSendSettings", "updateEmailSendSettings", "getChargeInfo", "getUnitCost"];
|
|
4803
|
+
export declare const HOME_TAX_TAX_INVOICE_METHODS: readonly ["getAuthenticationRegistrationUrl", "getCertificateExpiration", "validateCertificate", "registerDepartmentUser", "checkDepartmentUserRegistration", "validateDepartmentUserLogin", "deleteDepartmentUser", "requestCollection", "getCollectionState", "listActiveCollections", "searchTaxInvoices", "getTaxInvoiceTotals", "getTaxInvoice", "getTaxInvoiceXml", "getTaxInvoicePopupUrl", "getTaxInvoicePrintUrl", "getFlatRateApplicationUrl", "getFlatRateState", "getChargeInfo"];
|
|
4804
|
+
export declare const HOME_TAX_CASHBILL_METHODS: readonly ["getAuthenticationRegistrationUrl", "getCertificateExpiration", "validateCertificate", "registerDepartmentUser", "checkDepartmentUserRegistration", "validateDepartmentUser", "deleteDepartmentUser", "requestCollection", "getCollectionJobState", "listActiveCollectionJobs", "searchCashbills", "getCashbillSummary", "getFlatRateRegistrationUrl", "getFlatRateState", "getChargeInfo"];
|
|
4805
|
+
export declare const CLOSEDOWN_METHODS: readonly ['checkBusinessStatus', 'checkBusinessStatuses', 'getChargeInfo', 'getUnitCost'];
|
|
4806
|
+
export declare const BIZ_INFO_CHECK_METHODS: readonly ['getCompanyInfo', 'getChargeInfo', 'getUnitCost'];
|
|
4807
|
+
export declare const EASY_FIN_BANK_METHODS: readonly ["getBankAccountManagementURL", "registerBankAccount", "updateBankAccount", "getBankAccount", "listBankAccounts", "requestBankAccountClosure", "cancelBankAccountClosure", "deleteBankAccount", "requestCollection", "getCollectionStatus", "listCollectionStatuses", "searchTransactions", "summarizeTransactions", "saveTransactionMemo", "getSubscriptionRegistrationURL", "getSubscriptionStatus", "getChargeInfo"];
|
|
4808
|
+
export declare const ACCOUNT_CHECK_METHODS: readonly ['checkAccountHolderName', 'verifyAccountHolderIdentity', 'getChargeInfo', 'getUnitCost'];
|
|
4809
|
+
export declare const KAKAO_METHODS: readonly ["getBusinessChannelManagementURL", "listBusinessChannels", "getSenderNumberManagementURL", "listSenderNumbers", "checkSenderNumberRegistration", "getNotificationTemplateManagementURL", "getNotificationTemplate", "listNotificationTemplates", "getBrandTemplateManagementURL", "getBrandTemplate", "listBrandTemplates", "uploadBrandImageFromPath", "uploadBrandImageFromBinary", "uploadBrandWideImageFromPath", "uploadBrandWideImageFromBinary", "uploadBrandWideListMainImageFromPath", "uploadBrandWideListMainImageFromBinary", "uploadBrandWideListImageFromPath", "uploadBrandWideListImageFromBinary", "uploadBrandCarouselFeedImageFromPath", "uploadBrandCarouselFeedImageFromBinary", "uploadBrandCommerceImageFromPath", "uploadBrandCommerceImageFromBinary", "uploadBrandCarouselCommerceImageFromPath", "uploadBrandCarouselCommerceImageFromBinary", "sendNotificationMessage", "sendNotificationMessages", "sendIdenticalNotificationMessages", "sendFriendTextMessage", "sendFriendTextMessages", "sendIdenticalFriendTextMessages", "sendFriendImageMessage", "sendFriendImageMessages", "sendIdenticalFriendImageMessages", "sendBrandTextMessages", "sendBrandImageMessages", "sendBrandWideImageMessages", "sendBrandWideListMessages", "sendBrandCarouselFeedMessages", "sendBrandCommerceMessages", "sendBrandCarouselCommerceMessages", "sendBrandTemplateMessages", "cancelReservedMessagesByReceiptNumber", "cancelReservedMessagesByRequestNumber", "cancelReservedRecipientByReceiptNumber", "cancelReservedRecipientByRequestNumber", "getMessagesByReceiptNumber", "getMessagesByRequestNumber", "searchMessages", "getMessageHistoryURL", "getMessageUnitCost", "getMessageChargeInfo"];
|
|
4810
|
+
export declare const MESSAGE_METHODS: readonly ["getSenderNumberRegistrationURL", "getSenderNumbers", "checkSenderNumber", "getDenyNumberInfo", "getDeniedNumbers", "sendShortMessage", "sendLongMessage", "sendAutoLengthMessage", "sendImageMessage", "cancelScheduledMessagesByReceiptNumber", "cancelScheduledMessagesByRequestNumber", "cancelScheduledRecipientByReceiptNumber", "cancelScheduledRecipientByRequestNumber", "getMessagesByReceiptNumber", "getMessagesByRequestNumber", "getMessageStatesByReceiptNumbers", "searchMessages", "getSentMessageListURL", "getUnitCost", "getChargeInfo"];
|
|
4811
|
+
export declare const FAX_METHODS: readonly ["getFaxSenderRegistrationURL", "getSenderNumbers", "checkSenderNumber", "sendFaxFromPaths", "sendFaxFromBinary", "resendFaxByReceipt", "resendFaxByRequest", "cancelScheduledFaxByReceipt", "cancelScheduledFaxByRequest", "getFaxResultsByReceipt", "getFaxResultsByRequest", "searchFaxes", "getSentFaxListURL", "getFaxPreviewURL", "getUnitCost", "getChargeInfo"];
|
|
4812
|
+
export { type AccountCheckChargeInfo, type AccountCheckChargeInput, type AccountCheckService, type AccountCheckServiceType, type AccountCheckUnitCost, type AccountHolderIdentityInfo, type AccountHolderIdentityInput, type AccountHolderInfo, type AccountHolderNameInput, type AccountIdentityNumberType, type BizInfoCheckChargeInfo, type BizInfoCheckChargeInput, type BizInfoCheckService, type BizInfoCheckUnitCost, type BusinessStatus, type BusinessStatusInput, type BusinessStatusesInput, type CashbillAccessUrl, type CashbillBulkIssueResult, type CashbillBulkResult, type CashbillBulkSubmissionResult, type CashbillChargeInfo, type CashbillDocumentOutput, type CashbillEmailSendSetting, type CashbillInfo, type CashbillIssueResult, type CashbillLogEntry, type CashbillManagementKeyUsage, type CashbillOperationResult, type CashbillSearchResult, type CashbillUnitCost, type CheckFaxSenderInput, type ClosedownChargeInfo, type ClosedownChargeInput, type ClosedownService, type ClosedownUnitCost, type CommonAccessURL, type CommonBusinessInput, type CommonCompany, type CommonCompanyInfo, type CommonContact, type CommonContactInput, type CommonContactQueryInput, type CommonHistoryInput, type CommonHistoryResult, type CommonMembershipStatus, type CommonOperationResult, type CommonPageInput, type CommonPaymentHistory, type CommonPaymentInput, type CommonPaymentReceipt, type CommonPointBalance, type CommonPointUseHistory, type CommonRefundHistory, type CommonRefundInput, type CommonRefundQueryInput, type CommonRefundReceipt, type CommonRefundableBalance, type CommonService, type CommonSettlementQueryInput, type CommonUseHistoryInput, type CommonUserIdUsage, type CompanyInfo, type CompanyInfoInput, type EasyFinBankAccessURL, type EasyFinBankAccount, type EasyFinBankAccountChanges, type EasyFinBankAccountReference, type EasyFinBankAccountRegistration, type EasyFinBankBusinessInput, type EasyFinBankChargeInfo, type EasyFinBankCollectionReceipt, type EasyFinBankCollectionReference, type EasyFinBankCollectionStatus, type EasyFinBankOperationResult, type EasyFinBankRegisterAccountInput, type EasyFinBankRequestCollectionInput, type EasyFinBankSaveMemoInput, type EasyFinBankSearchTransactionsInput, type EasyFinBankService, type EasyFinBankSubscription, type EasyFinBankTransaction, type EasyFinBankTransactionFilterInput, type EasyFinBankTransactionSearchResult, type EasyFinBankTransactionSummary, type EasyFinBankUpdateAccountInput, type FaxAccessURL, type FaxBusinessInput, type FaxChargeInfo, type FaxOperationResult, type FaxPricingInput, type FaxReceipt, type FaxReceiptInput, type FaxReceiveNumberType, type FaxRecipient, type FaxRequestInput, type FaxResendOverrides, type FaxResult, type FaxSearchResult, type FaxSendInput, type FaxSenderNumber, type FaxService, type FaxUnitCost, type HomeTaxCashbillAccessUrl, type HomeTaxCashbillCertificateExpiration, type HomeTaxCashbillChargeInfo, type HomeTaxCashbillCollectionJob, type HomeTaxCashbillCollectionJobState, type HomeTaxCashbillFlatRateState, type HomeTaxCashbillOperationResult, type HomeTaxCashbillReceipt, type HomeTaxCashbillSearchResult, type HomeTaxCashbillSummary, type HomeTaxTaxInvoiceAccessUrl, type HomeTaxTaxInvoiceCertificateExpiration, type HomeTaxTaxInvoiceChargeInfo, type HomeTaxTaxInvoiceDocument, type HomeTaxTaxInvoiceFlatRateState, type HomeTaxTaxInvoiceJobReceipt, type HomeTaxTaxInvoiceJobState, type HomeTaxTaxInvoiceLineItem, type HomeTaxTaxInvoiceOperationResult, type HomeTaxTaxInvoiceParty, type HomeTaxTaxInvoiceSearchResult, type HomeTaxTaxInvoiceSummary, type HomeTaxTaxInvoiceTotals, type HomeTaxTaxInvoiceXmlResult, type KakaoAccessUrl, type KakaoBinaryFile, type KakaoBrandTarget, type KakaoBrandTemplate, type KakaoBusinessChannel, type KakaoBusinessRequest, type KakaoButton, type KakaoCarouselHead, type KakaoCarouselItem, type KakaoCarouselTail, type KakaoCarouselVariables, type KakaoChargeInfo, type KakaoChargeRequest, type KakaoCommerce, type KakaoContent, type KakaoCoupon, type KakaoFriendImage, type KakaoFriendMessageRecipient, type KakaoFriendRecipient, type KakaoFriendRequest, type KakaoImage, type KakaoImageBinaryRequest, type KakaoImagePathRequest, type KakaoImagePathsRequest, type KakaoImagesBinaryRequest, type KakaoListItem, type KakaoMessage, type KakaoMessageContent, type KakaoMessages, type KakaoNotificationRequest, type KakaoNotificationTemplate, type KakaoOperationResult, type KakaoReceipt, type KakaoReceiptRecipientRequest, type KakaoReceiptRequest, type KakaoRecipient, type KakaoRequestNumberRecipientRequest, type KakaoRequestNumberRequest, type KakaoSearchResult, type KakaoSenderNumber, type KakaoService, type KakaoTemplateRequest, type KakaoTemplateVariables, type KakaoUnitCost, type MessageAccessURL, type MessageBusinessRequest, type MessageChargeInfo, type MessageChargeRequest, type MessageDeniedNumber, type MessageDenyNumberInfo, type MessageImageInput, type MessageOperationResult, type MessageReceiptNumbersRequest, type MessageReceiptRecipientRequest, type MessageReceiptRequest, type MessageReceiptResult, type MessageRecipientInput, type MessageRequestNumberRequest, type MessageRequestRecipientRequest, type MessageSearchRequest, type MessageSearchResult, type MessageSenderNumber, type MessageService, type MessageUnitCost, type PopbillApiError, type PopbillClient, type PopbillClientConfig, PopbillErrorStage, PopbillErrorType, type QuitMemberInput, type RegisterCommonContactInput, type RegisterMemberInput, type ResendFaxByReceiptInput, type ResendFaxByRequestInput, type SearchFaxesInput, type SearchKakaoMessagesRequest, type SendBrandChannelMessagesRequest, type SendBrandMessageRequest, type SendBrandTemplateMessagesRequest, type SendFaxFromBinaryInput, type SendFaxFromPathsInput, type SendFriendImageMessageRequest, type SendFriendImageMessagesRequest, type SendFriendTextMessageRequest, type SendFriendTextMessagesRequest, type SendIdenticalFriendImageMessagesRequest, type SendIdenticalFriendTextMessagesRequest, type SendIdenticalNotificationMessagesRequest, type SendImageMessageRequest, type SendMessageRequest, type SendNotificationMessageRequest, type SendNotificationMessagesRequest, type SentMessage, type StatementAccessUrl, type StatementAttachedFile, type StatementChargeInfo, type StatementDocumentOutput, type StatementEmailSendSetting, type StatementFAXReceipt, type StatementInfo, type StatementIssueResult, type StatementLineItemOutput, type StatementLogEntry, type StatementManagementKeyUsage, type StatementOperationResult, type StatementPartySummary, type StatementSearchResult, type StatementUnitCost, type TaxInvoiceAdditionalContactInput, type TaxInvoiceBusinessStatus, type TaxInvoiceBuyerInput, type TaxInvoiceChargeDirection, type TaxInvoiceDateString, type TaxInvoiceDocumentInput, type TaxInvoiceIssueType, type TaxInvoiceLineItemInput, type TaxInvoiceModificationReasonCode, type TaxInvoicePartyInput, type TaxInvoicePurposeType, type TaxInvoiceRecipientType, type TaxInvoiceTaxationType, type UpdateCommonCompanyInput, type UpdateCommonContactInput };
|
|
2248
4813
|
//# sourceMappingURL=index.d.mts.map
|