@connextable/popbill 1.0.1 → 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 +3004 -447
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4161 -1016
- package/dist/index.mjs.map +1 -0
- package/package.json +10 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,225 @@
|
|
|
1
1
|
import { PopbillApiError, PopbillErrorStage, PopbillErrorType } from "@connextable/popbill-compat/errors";
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
}
|
|
4
223
|
/**
|
|
5
224
|
* 작성일/일시 문자열 타입입니다.
|
|
6
225
|
*/
|
|
@@ -8,15 +227,15 @@ type TaxInvoiceDateString = string;
|
|
|
8
227
|
/**
|
|
9
228
|
* 세금계산서 과금 방향 값입니다.
|
|
10
229
|
*/
|
|
11
|
-
declare const TaxInvoiceChargeDirectionValues: {
|
|
230
|
+
export declare const TaxInvoiceChargeDirectionValues: {
|
|
12
231
|
/**
|
|
13
232
|
* 값: `정과금`, 의미: 공급자에게 과금되는 일반 방향
|
|
14
233
|
*/
|
|
15
|
-
readonly NormalCharge:
|
|
234
|
+
readonly NormalCharge: '정과금';
|
|
16
235
|
/**
|
|
17
236
|
* 값: `역과금`, 의미: 공급받는자에게 과금되는 역방향
|
|
18
237
|
*/
|
|
19
|
-
readonly ReverseCharge:
|
|
238
|
+
readonly ReverseCharge: '역과금';
|
|
20
239
|
};
|
|
21
240
|
/**
|
|
22
241
|
* 세금계산서 과금 방향 타입입니다.
|
|
@@ -25,19 +244,19 @@ type TaxInvoiceChargeDirection = (typeof TaxInvoiceChargeDirectionValues)[keyof
|
|
|
25
244
|
/**
|
|
26
245
|
* 세금계산서 발행 형태 값입니다.
|
|
27
246
|
*/
|
|
28
|
-
declare const TaxInvoiceIssueTypes: {
|
|
247
|
+
export declare const TaxInvoiceIssueTypes: {
|
|
29
248
|
/**
|
|
30
249
|
* 값: `정발행`, 의미: 공급자 중심의 일반 발행
|
|
31
250
|
*/
|
|
32
|
-
readonly Normal:
|
|
251
|
+
readonly Normal: '정발행';
|
|
33
252
|
/**
|
|
34
253
|
* 값: `역발행`, 의미: 공급받는자 요청 기반 발행
|
|
35
254
|
*/
|
|
36
|
-
readonly Reverse:
|
|
255
|
+
readonly Reverse: '역발행';
|
|
37
256
|
/**
|
|
38
257
|
* 값: `위수탁`, 의미: 수탁자 대행 발행
|
|
39
258
|
*/
|
|
40
|
-
readonly Trustee:
|
|
259
|
+
readonly Trustee: '위수탁';
|
|
41
260
|
};
|
|
42
261
|
/**
|
|
43
262
|
* 세금계산서 발행 형태 타입입니다.
|
|
@@ -46,19 +265,19 @@ type TaxInvoiceIssueType = (typeof TaxInvoiceIssueTypes)[keyof typeof TaxInvoice
|
|
|
46
265
|
/**
|
|
47
266
|
* 세금계산서 영수/청구 값입니다.
|
|
48
267
|
*/
|
|
49
|
-
declare const TaxInvoicePurposeTypes: {
|
|
268
|
+
export declare const TaxInvoicePurposeTypes: {
|
|
50
269
|
/**
|
|
51
270
|
* 값: `영수`, 의미: 영수 목적
|
|
52
271
|
*/
|
|
53
|
-
readonly Receipt:
|
|
272
|
+
readonly Receipt: '영수';
|
|
54
273
|
/**
|
|
55
274
|
* 값: `청구`, 의미: 청구 목적
|
|
56
275
|
*/
|
|
57
|
-
readonly Claim:
|
|
276
|
+
readonly Claim: '청구';
|
|
58
277
|
/**
|
|
59
278
|
* 값: `없음`, 의미: 목적 구분 없음
|
|
60
279
|
*/
|
|
61
|
-
readonly None:
|
|
280
|
+
readonly None: '없음';
|
|
62
281
|
};
|
|
63
282
|
/**
|
|
64
283
|
* 세금계산서 영수/청구 타입입니다.
|
|
@@ -67,19 +286,19 @@ type TaxInvoicePurposeType = (typeof TaxInvoicePurposeTypes)[keyof typeof TaxInv
|
|
|
67
286
|
/**
|
|
68
287
|
* 세금계산서 과세 유형 값입니다.
|
|
69
288
|
*/
|
|
70
|
-
declare const TaxInvoiceTaxationTypes: {
|
|
289
|
+
export declare const TaxInvoiceTaxationTypes: {
|
|
71
290
|
/**
|
|
72
291
|
* 값: `과세`, 의미: 일반 과세
|
|
73
292
|
*/
|
|
74
|
-
readonly Taxable:
|
|
293
|
+
readonly Taxable: '과세';
|
|
75
294
|
/**
|
|
76
295
|
* 값: `영세`, 의미: 영세율
|
|
77
296
|
*/
|
|
78
|
-
readonly ZeroRated:
|
|
297
|
+
readonly ZeroRated: '영세';
|
|
79
298
|
/**
|
|
80
299
|
* 값: `면세`, 의미: 면세
|
|
81
300
|
*/
|
|
82
|
-
readonly Exempt:
|
|
301
|
+
readonly Exempt: '면세';
|
|
83
302
|
};
|
|
84
303
|
/**
|
|
85
304
|
* 세금계산서 과세 유형 타입입니다.
|
|
@@ -88,19 +307,19 @@ type TaxInvoiceTaxationType = (typeof TaxInvoiceTaxationTypes)[keyof typeof TaxI
|
|
|
88
307
|
/**
|
|
89
308
|
* 공급받는자 구분 값입니다.
|
|
90
309
|
*/
|
|
91
|
-
declare const TaxInvoiceRecipientTypes: {
|
|
310
|
+
export declare const TaxInvoiceRecipientTypes: {
|
|
92
311
|
/**
|
|
93
312
|
* 값: `사업자`, 의미: 사업자 번호 기반
|
|
94
313
|
*/
|
|
95
|
-
readonly Business:
|
|
314
|
+
readonly Business: '사업자';
|
|
96
315
|
/**
|
|
97
316
|
* 값: `개인`, 의미: 주민등록번호 기반
|
|
98
317
|
*/
|
|
99
|
-
readonly Individual:
|
|
318
|
+
readonly Individual: '개인';
|
|
100
319
|
/**
|
|
101
320
|
* 값: `외국인`, 의미: 외국인 식별번호 기반
|
|
102
321
|
*/
|
|
103
|
-
readonly Foreigner:
|
|
322
|
+
readonly Foreigner: '외국인';
|
|
104
323
|
};
|
|
105
324
|
/**
|
|
106
325
|
* 공급받는자 구분 타입입니다.
|
|
@@ -109,7 +328,7 @@ type TaxInvoiceRecipientType = (typeof TaxInvoiceRecipientTypes)[keyof typeof Ta
|
|
|
109
328
|
/**
|
|
110
329
|
* 공급받는자 휴폐업 상태 값입니다.
|
|
111
330
|
*/
|
|
112
|
-
declare const TaxInvoiceBusinessStatusValues: {
|
|
331
|
+
export declare const TaxInvoiceBusinessStatusValues: {
|
|
113
332
|
/**
|
|
114
333
|
* 값: `null`, 의미: 미확인
|
|
115
334
|
*/
|
|
@@ -142,7 +361,7 @@ type TaxInvoiceBusinessStatus = (typeof TaxInvoiceBusinessStatusValues)[keyof ty
|
|
|
142
361
|
/**
|
|
143
362
|
* 수정세금계산서 사유코드 값입니다.
|
|
144
363
|
*/
|
|
145
|
-
declare const TaxInvoiceModificationReasonCodes: {
|
|
364
|
+
export declare const TaxInvoiceModificationReasonCodes: {
|
|
146
365
|
/**
|
|
147
366
|
* 값: `1`, 의미: 기재사항 착오 정정
|
|
148
367
|
*/
|
|
@@ -246,6 +465,26 @@ interface TaxInvoicePartyInput {
|
|
|
246
465
|
* 종사업장 식별번호입니다.
|
|
247
466
|
*/
|
|
248
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;
|
|
249
488
|
/**
|
|
250
489
|
* 상호입니다.
|
|
251
490
|
*/
|
|
@@ -258,14 +497,18 @@ interface TaxInvoicePartyInput {
|
|
|
258
497
|
* 주소입니다.
|
|
259
498
|
*/
|
|
260
499
|
address?: string;
|
|
500
|
+
/**
|
|
501
|
+
* 종목입니다.
|
|
502
|
+
*/
|
|
503
|
+
businessType?: string;
|
|
261
504
|
/**
|
|
262
505
|
* 업태입니다.
|
|
263
506
|
*/
|
|
264
507
|
businessClass?: string;
|
|
265
508
|
/**
|
|
266
|
-
*
|
|
509
|
+
* 부서명입니다.
|
|
267
510
|
*/
|
|
268
|
-
|
|
511
|
+
departmentName?: string;
|
|
269
512
|
/**
|
|
270
513
|
* 담당자 이름입니다.
|
|
271
514
|
*/
|
|
@@ -290,30 +533,6 @@ interface TaxInvoicePartyInput {
|
|
|
290
533
|
* 인쇄 여부입니다.
|
|
291
534
|
*/
|
|
292
535
|
printEnabled?: boolean;
|
|
293
|
-
/**
|
|
294
|
-
* 주민등록번호입니다.
|
|
295
|
-
*/
|
|
296
|
-
residentRegistrationNumber?: string;
|
|
297
|
-
/**
|
|
298
|
-
* 외국인 등록번호입니다.
|
|
299
|
-
*/
|
|
300
|
-
foreignerRegistrationNumber?: string;
|
|
301
|
-
/**
|
|
302
|
-
* 종사업자번호입니다.
|
|
303
|
-
*/
|
|
304
|
-
branchBusinessNumber?: string;
|
|
305
|
-
/**
|
|
306
|
-
* 종사업자 일련번호입니다.
|
|
307
|
-
*/
|
|
308
|
-
branchSerialNumber?: string;
|
|
309
|
-
/**
|
|
310
|
-
* 법인 구분값입니다.
|
|
311
|
-
*/
|
|
312
|
-
corporationClassification?: string;
|
|
313
|
-
/**
|
|
314
|
-
* 부서명입니다.
|
|
315
|
-
*/
|
|
316
|
-
departmentName?: string;
|
|
317
536
|
}
|
|
318
537
|
/**
|
|
319
538
|
* 세금계산서 공급받는자 입력입니다.
|
|
@@ -323,6 +542,14 @@ interface TaxInvoiceBuyerInput extends TaxInvoicePartyInput {
|
|
|
323
542
|
* 공급받는자 구분입니다.
|
|
324
543
|
*/
|
|
325
544
|
recipientType?: TaxInvoiceRecipientType;
|
|
545
|
+
/**
|
|
546
|
+
* 주 담당 부서명입니다.
|
|
547
|
+
*/
|
|
548
|
+
primaryDepartmentName?: string;
|
|
549
|
+
/**
|
|
550
|
+
* 예비 담당 부서명입니다.
|
|
551
|
+
*/
|
|
552
|
+
secondaryDepartmentName?: string;
|
|
326
553
|
/**
|
|
327
554
|
* 예비 담당자 이름입니다.
|
|
328
555
|
*/
|
|
@@ -339,14 +566,6 @@ interface TaxInvoiceBuyerInput extends TaxInvoicePartyInput {
|
|
|
339
566
|
* 예비 담당자 이메일 주소입니다.
|
|
340
567
|
*/
|
|
341
568
|
secondaryEmailAddress?: string;
|
|
342
|
-
/**
|
|
343
|
-
* 주 담당 부서명입니다.
|
|
344
|
-
*/
|
|
345
|
-
primaryDepartmentName?: string;
|
|
346
|
-
/**
|
|
347
|
-
* 예비 담당 부서명입니다.
|
|
348
|
-
*/
|
|
349
|
-
secondaryDepartmentName?: string;
|
|
350
569
|
/**
|
|
351
570
|
* 휴폐업 상태입니다.
|
|
352
571
|
*/
|
|
@@ -360,14 +579,14 @@ interface TaxInvoiceBuyerInput extends TaxInvoicePartyInput {
|
|
|
360
579
|
* 세금계산서 결제/합계 금액 입력입니다.
|
|
361
580
|
*/
|
|
362
581
|
interface TaxInvoicePaymentSummaryInput {
|
|
363
|
-
/**
|
|
364
|
-
* 세액 합계입니다.
|
|
365
|
-
*/
|
|
366
|
-
totalTaxAmount?: string;
|
|
367
582
|
/**
|
|
368
583
|
* 공급가액 합계입니다.
|
|
369
584
|
*/
|
|
370
585
|
totalSupplyCostAmount?: string;
|
|
586
|
+
/**
|
|
587
|
+
* 세액 합계입니다.
|
|
588
|
+
*/
|
|
589
|
+
totalTaxAmount?: string;
|
|
371
590
|
/**
|
|
372
591
|
* 합계 금액입니다.
|
|
373
592
|
*/
|
|
@@ -407,25 +626,25 @@ interface TaxInvoiceModificationInput {
|
|
|
407
626
|
*/
|
|
408
627
|
interface TaxInvoiceDocumentInput {
|
|
409
628
|
/**
|
|
410
|
-
*
|
|
629
|
+
* 기재상 일련번호입니다.
|
|
411
630
|
*/
|
|
412
|
-
|
|
631
|
+
taxInvoiceSerialNumber?: string;
|
|
413
632
|
/**
|
|
414
|
-
*
|
|
633
|
+
* 책번호 권 항목입니다.
|
|
415
634
|
*/
|
|
416
|
-
|
|
635
|
+
bookVolumeNumber?: number | string;
|
|
417
636
|
/**
|
|
418
|
-
*
|
|
637
|
+
* 책번호 호 항목입니다.
|
|
419
638
|
*/
|
|
420
|
-
|
|
639
|
+
bookIssueNumber?: number | string;
|
|
421
640
|
/**
|
|
422
|
-
*
|
|
641
|
+
* 작성일자(yyyyMMdd)입니다.
|
|
423
642
|
*/
|
|
424
|
-
|
|
643
|
+
writtenDate?: TaxInvoiceDateString;
|
|
425
644
|
/**
|
|
426
|
-
*
|
|
645
|
+
* 발행 형태입니다.
|
|
427
646
|
*/
|
|
428
|
-
|
|
647
|
+
issueType?: TaxInvoiceIssueType;
|
|
429
648
|
/**
|
|
430
649
|
* 발행시기 코드입니다.
|
|
431
650
|
*/
|
|
@@ -434,6 +653,14 @@ interface TaxInvoiceDocumentInput {
|
|
|
434
653
|
* 과세 유형입니다.
|
|
435
654
|
*/
|
|
436
655
|
taxType?: TaxInvoiceTaxationType;
|
|
656
|
+
/**
|
|
657
|
+
* 영수/청구 구분입니다.
|
|
658
|
+
*/
|
|
659
|
+
purposeType?: TaxInvoicePurposeType;
|
|
660
|
+
/**
|
|
661
|
+
* 과금 방향입니다.
|
|
662
|
+
*/
|
|
663
|
+
chargeDirection?: TaxInvoiceChargeDirection;
|
|
437
664
|
/**
|
|
438
665
|
* 공급자 정보입니다.
|
|
439
666
|
*/
|
|
@@ -455,9 +682,13 @@ interface TaxInvoiceDocumentInput {
|
|
|
455
682
|
*/
|
|
456
683
|
modification?: TaxInvoiceModificationInput;
|
|
457
684
|
/**
|
|
458
|
-
*
|
|
685
|
+
* 상세 품목 목록입니다.
|
|
459
686
|
*/
|
|
460
|
-
|
|
687
|
+
lineItems?: TaxInvoiceLineItemInput[];
|
|
688
|
+
/**
|
|
689
|
+
* 추가 담당자 목록입니다.
|
|
690
|
+
*/
|
|
691
|
+
additionalContacts?: TaxInvoiceAdditionalContactInput[];
|
|
461
692
|
/**
|
|
462
693
|
* 비고1입니다.
|
|
463
694
|
*/
|
|
@@ -471,13 +702,9 @@ interface TaxInvoiceDocumentInput {
|
|
|
471
702
|
*/
|
|
472
703
|
remarkThree?: string;
|
|
473
704
|
/**
|
|
474
|
-
*
|
|
475
|
-
*/
|
|
476
|
-
bookVolumeNumber?: string;
|
|
477
|
-
/**
|
|
478
|
-
* 책번호 호 항목입니다.
|
|
705
|
+
* 거래명세서 동시작성 여부입니다.
|
|
479
706
|
*/
|
|
480
|
-
|
|
707
|
+
writeSpecificationEnabled?: boolean;
|
|
481
708
|
/**
|
|
482
709
|
* 사업자등록증 이미지 첨부 여부입니다.
|
|
483
710
|
*/
|
|
@@ -486,25 +713,15 @@ interface TaxInvoiceDocumentInput {
|
|
|
486
713
|
* 통장사본 이미지 첨부 여부입니다.
|
|
487
714
|
*/
|
|
488
715
|
includeBankBookImage?: boolean;
|
|
489
|
-
/**
|
|
490
|
-
* 상세 품목 목록입니다.
|
|
491
|
-
*/
|
|
492
|
-
lineItems?: TaxInvoiceLineItemInput[];
|
|
493
|
-
/**
|
|
494
|
-
* 추가 담당자 목록입니다.
|
|
495
|
-
*/
|
|
496
|
-
additionalContacts?: TaxInvoiceAdditionalContactInput[];
|
|
497
716
|
}
|
|
498
|
-
//#endregion
|
|
499
|
-
//#region src/services/tax-invoice/types/response.d.ts
|
|
500
717
|
/**
|
|
501
718
|
* 세금계산서 공통 처리 결과입니다.
|
|
502
719
|
*/
|
|
503
|
-
interface TaxInvoiceOperationResult {
|
|
720
|
+
export interface TaxInvoiceOperationResult {
|
|
504
721
|
/**
|
|
505
722
|
* 처리 결과 코드입니다.
|
|
506
723
|
*/
|
|
507
|
-
resultCode:
|
|
724
|
+
resultCode: ProviderNumericCode | undefined;
|
|
508
725
|
/**
|
|
509
726
|
* 처리 결과 메시지입니다.
|
|
510
727
|
*/
|
|
@@ -513,7 +730,7 @@ interface TaxInvoiceOperationResult {
|
|
|
513
730
|
/**
|
|
514
731
|
* 발행 처리 결과입니다.
|
|
515
732
|
*/
|
|
516
|
-
interface TaxInvoiceIssueResult extends TaxInvoiceOperationResult {
|
|
733
|
+
export interface TaxInvoiceIssueResult extends TaxInvoiceOperationResult {
|
|
517
734
|
/**
|
|
518
735
|
* 국세청 승인번호입니다.
|
|
519
736
|
*/
|
|
@@ -526,7 +743,7 @@ interface TaxInvoiceIssueResult extends TaxInvoiceOperationResult {
|
|
|
526
743
|
/**
|
|
527
744
|
* 초대량 접수 결과입니다.
|
|
528
745
|
*/
|
|
529
|
-
interface TaxInvoiceBulkSubmitResult extends TaxInvoiceOperationResult {
|
|
746
|
+
export interface TaxInvoiceBulkSubmitResult extends TaxInvoiceOperationResult {
|
|
530
747
|
/**
|
|
531
748
|
* 접수 식별자입니다.
|
|
532
749
|
*/
|
|
@@ -535,7 +752,7 @@ interface TaxInvoiceBulkSubmitResult extends TaxInvoiceOperationResult {
|
|
|
535
752
|
/**
|
|
536
753
|
* 초대량 처리 상태 값입니다.
|
|
537
754
|
*/
|
|
538
|
-
declare const TaxInvoiceBulkIssueSubmissionTransactionStates: {
|
|
755
|
+
export declare const TaxInvoiceBulkIssueSubmissionTransactionStates: {
|
|
539
756
|
/**
|
|
540
757
|
* 값: `0`, 의미: 미처리 상태
|
|
541
758
|
*/
|
|
@@ -552,11 +769,11 @@ declare const TaxInvoiceBulkIssueSubmissionTransactionStates: {
|
|
|
552
769
|
/**
|
|
553
770
|
* 초대량 처리 상태 타입입니다.
|
|
554
771
|
*/
|
|
555
|
-
type TaxInvoiceBulkIssueSubmissionTransactionState =
|
|
772
|
+
export type TaxInvoiceBulkIssueSubmissionTransactionState = ProviderNumericCode;
|
|
556
773
|
/**
|
|
557
774
|
* 초대량 발행 개별 처리 결과입니다.
|
|
558
775
|
*/
|
|
559
|
-
interface TaxInvoiceBulkIssueSubmissionResultItem {
|
|
776
|
+
export interface TaxInvoiceBulkIssueSubmissionResultItem {
|
|
560
777
|
/**
|
|
561
778
|
* 문서번호 유형 코드입니다.
|
|
562
779
|
*/
|
|
@@ -572,7 +789,7 @@ interface TaxInvoiceBulkIssueSubmissionResultItem {
|
|
|
572
789
|
/**
|
|
573
790
|
* 개별 처리 결과 코드입니다.
|
|
574
791
|
*/
|
|
575
|
-
resultCode?:
|
|
792
|
+
resultCode?: ProviderNumericCode;
|
|
576
793
|
/**
|
|
577
794
|
* 개별 처리 결과 메시지입니다.
|
|
578
795
|
*/
|
|
@@ -593,15 +810,15 @@ interface TaxInvoiceBulkIssueSubmissionResultItem {
|
|
|
593
810
|
/**
|
|
594
811
|
* 초대량 접수결과 조회 결과입니다.
|
|
595
812
|
*/
|
|
596
|
-
interface TaxInvoiceBulkIssueSubmissionResult extends TaxInvoiceOperationResult {
|
|
597
|
-
/**
|
|
598
|
-
* 접수 식별자입니다.
|
|
599
|
-
*/
|
|
600
|
-
receiptIdentifier?: string;
|
|
813
|
+
export interface TaxInvoiceBulkIssueSubmissionResult extends TaxInvoiceOperationResult {
|
|
601
814
|
/**
|
|
602
815
|
* 제출 식별자입니다.
|
|
603
816
|
*/
|
|
604
817
|
submissionIdentifier?: string;
|
|
818
|
+
/**
|
|
819
|
+
* 접수 식별자입니다.
|
|
820
|
+
*/
|
|
821
|
+
receiptIdentifier?: string;
|
|
605
822
|
/**
|
|
606
823
|
* 제출 건수입니다.
|
|
607
824
|
*/
|
|
@@ -619,46 +836,74 @@ interface TaxInvoiceBulkIssueSubmissionResult extends TaxInvoiceOperationResult
|
|
|
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
|
* 문서 요약정보 조회 결과입니다.
|
|
640
861
|
*/
|
|
641
|
-
interface TaxInvoiceInfo {
|
|
862
|
+
export interface TaxInvoiceInfo {
|
|
642
863
|
/**
|
|
643
864
|
* 팝빌 문서 식별키(ItemKey)입니다.
|
|
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;
|
|
879
|
+
/**
|
|
880
|
+
* 공급받는자 사업자번호입니다.
|
|
881
|
+
*/
|
|
882
|
+
buyerBusinessNumber: string;
|
|
883
|
+
/**
|
|
884
|
+
* 공급받는자 문서번호입니다.
|
|
885
|
+
*/
|
|
886
|
+
buyerManagementKey?: string;
|
|
887
|
+
/**
|
|
888
|
+
* 수탁자 사업자번호입니다.
|
|
889
|
+
*/
|
|
890
|
+
trusteeBusinessNumber?: string;
|
|
891
|
+
/**
|
|
892
|
+
* 수탁자 문서번호입니다.
|
|
893
|
+
*/
|
|
894
|
+
trusteeManagementKey?: string;
|
|
895
|
+
/**
|
|
896
|
+
* 과세유형입니다.
|
|
897
|
+
*/
|
|
898
|
+
taxType: string | null;
|
|
658
899
|
/**
|
|
659
900
|
* 발행유형입니다.
|
|
660
901
|
*/
|
|
661
|
-
issueType:
|
|
902
|
+
issueType: string | null;
|
|
903
|
+
/**
|
|
904
|
+
* 영수/청구 구분입니다.
|
|
905
|
+
*/
|
|
906
|
+
purposeType: string | null;
|
|
662
907
|
/**
|
|
663
908
|
* 공급가액 합계입니다.
|
|
664
909
|
*/
|
|
@@ -668,158 +913,169 @@ interface TaxInvoiceInfo {
|
|
|
668
913
|
*/
|
|
669
914
|
totalTax: string;
|
|
670
915
|
/**
|
|
671
|
-
*
|
|
916
|
+
* 수정사유코드입니다.
|
|
672
917
|
*/
|
|
673
|
-
|
|
918
|
+
modificationCode?: ProviderNumericCode;
|
|
674
919
|
/**
|
|
675
|
-
*
|
|
920
|
+
* 공급자 상호입니다.
|
|
676
921
|
*/
|
|
677
|
-
|
|
922
|
+
supplierCompanyName: string;
|
|
678
923
|
/**
|
|
679
|
-
*
|
|
924
|
+
* 공급받는자 상호입니다.
|
|
680
925
|
*/
|
|
681
|
-
|
|
926
|
+
buyerCompanyName: string;
|
|
682
927
|
/**
|
|
683
|
-
*
|
|
928
|
+
* 수탁자 상호입니다.
|
|
684
929
|
*/
|
|
685
|
-
|
|
930
|
+
trusteeCompanyName?: string;
|
|
686
931
|
/**
|
|
687
|
-
*
|
|
932
|
+
* 상태 코드입니다.
|
|
688
933
|
*/
|
|
689
|
-
|
|
934
|
+
stateCode?: ProviderNumericCode;
|
|
690
935
|
/**
|
|
691
936
|
* 상태 메모입니다.
|
|
692
937
|
*/
|
|
693
|
-
stateMemo
|
|
694
|
-
/**
|
|
695
|
-
* 상태 코드입니다.
|
|
696
|
-
*/
|
|
697
|
-
stateCode: number;
|
|
698
|
-
/**
|
|
699
|
-
* 상태 변경일시(yyyyMMddHHmmss)입니다.
|
|
700
|
-
*/
|
|
701
|
-
stateChangedAt: string;
|
|
702
|
-
/**
|
|
703
|
-
* 국세청 승인번호입니다.
|
|
704
|
-
*/
|
|
705
|
-
nationalTaxServiceConfirmationNumber?: string;
|
|
938
|
+
stateMemo?: string;
|
|
706
939
|
/**
|
|
707
940
|
* 국세청 전송 결과 코드입니다.
|
|
708
941
|
*/
|
|
709
|
-
nationalTaxServiceResult?:
|
|
710
|
-
/**
|
|
711
|
-
* 국세청 전송일시(yyyyMMddHHmmss)입니다.
|
|
712
|
-
*/
|
|
713
|
-
nationalTaxServiceSentAt?: string;
|
|
714
|
-
/**
|
|
715
|
-
* 국세청 결과 수신일시(yyyyMMddHHmmss)입니다.
|
|
716
|
-
*/
|
|
717
|
-
nationalTaxServiceResultReceivedAt?: string;
|
|
942
|
+
nationalTaxServiceResult?: ProviderNumericCode;
|
|
718
943
|
/**
|
|
719
944
|
* 국세청 전송 오류 코드입니다.
|
|
720
945
|
*/
|
|
721
|
-
nationalTaxServiceSendErrorCode?:
|
|
946
|
+
nationalTaxServiceSendErrorCode?: ProviderNumericCode;
|
|
722
947
|
/**
|
|
723
|
-
*
|
|
724
|
-
*/
|
|
725
|
-
modificationCode?: TaxInvoiceModificationReasonCode;
|
|
726
|
-
/**
|
|
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
|
-
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,19 +1084,11 @@ 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
|
* 문서번호 사용 여부 조회 결과입니다.
|
|
842
1090
|
*/
|
|
843
|
-
interface TaxInvoiceInvoiceManagementKeyUsage {
|
|
1091
|
+
export interface TaxInvoiceInvoiceManagementKeyUsage {
|
|
844
1092
|
/**
|
|
845
1093
|
* 문서번호 사용 여부입니다.
|
|
846
1094
|
*/
|
|
@@ -853,7 +1101,7 @@ interface TaxInvoiceInvoiceManagementKeyUsage {
|
|
|
853
1101
|
/**
|
|
854
1102
|
* XML 조회 결과입니다.
|
|
855
1103
|
*/
|
|
856
|
-
interface TaxInvoiceXmlResult {
|
|
1104
|
+
export interface TaxInvoiceXmlResult {
|
|
857
1105
|
/**
|
|
858
1106
|
* 처리 결과입니다.
|
|
859
1107
|
*/
|
|
@@ -871,30 +1119,34 @@ 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
|
*/
|
|
877
|
-
interface TaxInvoiceSearchResult {
|
|
1129
|
+
export interface TaxInvoiceSearchResult {
|
|
878
1130
|
/**
|
|
879
1131
|
* 처리 결과입니다.
|
|
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
|
*/
|
|
@@ -903,11 +1155,11 @@ interface TaxInvoiceSearchResult {
|
|
|
903
1155
|
/**
|
|
904
1156
|
* 문서 상태 이력 항목입니다.
|
|
905
1157
|
*/
|
|
906
|
-
interface TaxInvoiceLogEntry {
|
|
1158
|
+
export interface TaxInvoiceLogEntry {
|
|
907
1159
|
/**
|
|
908
1160
|
* 문서 이력 유형 코드입니다.
|
|
909
1161
|
*/
|
|
910
|
-
documentLogTypeCode?:
|
|
1162
|
+
documentLogTypeCode?: ProviderNumericCode;
|
|
911
1163
|
/**
|
|
912
1164
|
* 로그 메시지입니다.
|
|
913
1165
|
*/
|
|
@@ -915,7 +1167,7 @@ interface TaxInvoiceLogEntry {
|
|
|
915
1167
|
/**
|
|
916
1168
|
* 처리 유형 코드입니다.
|
|
917
1169
|
*/
|
|
918
|
-
processTypeCode?: string;
|
|
1170
|
+
processTypeCode?: string | null;
|
|
919
1171
|
/**
|
|
920
1172
|
* 처리 회사명입니다.
|
|
921
1173
|
*/
|
|
@@ -940,7 +1192,7 @@ interface TaxInvoiceLogEntry {
|
|
|
940
1192
|
/**
|
|
941
1193
|
* URL 응답 결과입니다.
|
|
942
1194
|
*/
|
|
943
|
-
interface TaxInvoiceAccessUrl {
|
|
1195
|
+
export interface TaxInvoiceAccessUrl {
|
|
944
1196
|
/**
|
|
945
1197
|
* 접근 URL입니다.
|
|
946
1198
|
*/
|
|
@@ -949,7 +1201,7 @@ interface TaxInvoiceAccessUrl {
|
|
|
949
1201
|
/**
|
|
950
1202
|
* 첨부파일 메타데이터입니다.
|
|
951
1203
|
*/
|
|
952
|
-
interface TaxInvoiceAttachedFile {
|
|
1204
|
+
export interface TaxInvoiceAttachedFile {
|
|
953
1205
|
/**
|
|
954
1206
|
* 첨부 순번입니다.
|
|
955
1207
|
*/
|
|
@@ -970,29 +1222,34 @@ interface TaxInvoiceAttachedFile {
|
|
|
970
1222
|
/**
|
|
971
1223
|
* 이메일 전송 설정 항목입니다.
|
|
972
1224
|
*/
|
|
973
|
-
interface TaxInvoiceEmailSendSetting {
|
|
1225
|
+
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
|
* 국세청 전송 설정입니다.
|
|
985
1237
|
*/
|
|
986
|
-
interface TaxInvoiceSendToNationalTaxServiceSetting {
|
|
1238
|
+
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
|
* 인증서 만료일 조회 결과입니다.
|
|
994
1251
|
*/
|
|
995
|
-
interface TaxInvoiceTaxCertificateExpiration {
|
|
1252
|
+
export interface TaxInvoiceTaxCertificateExpiration {
|
|
996
1253
|
/**
|
|
997
1254
|
* 만료일시(yyyyMMddHHmmss)입니다.
|
|
998
1255
|
*/
|
|
@@ -1001,15 +1258,7 @@ interface TaxInvoiceTaxCertificateExpiration {
|
|
|
1001
1258
|
/**
|
|
1002
1259
|
* 인증서 정보 조회 결과입니다.
|
|
1003
1260
|
*/
|
|
1004
|
-
interface TaxInvoiceTaxCertificateInfo {
|
|
1005
|
-
/**
|
|
1006
|
-
* 등록일시(yyyyMMddHHmmss)입니다.
|
|
1007
|
-
*/
|
|
1008
|
-
registeredAt?: string;
|
|
1009
|
-
/**
|
|
1010
|
-
* 만료일시(yyyyMMddHHmmss)입니다.
|
|
1011
|
-
*/
|
|
1012
|
-
expiredAt?: string;
|
|
1261
|
+
export interface TaxInvoiceTaxCertificateInfo {
|
|
1013
1262
|
/**
|
|
1014
1263
|
* 발급자 DN입니다.
|
|
1015
1264
|
*/
|
|
@@ -1026,291 +1275,307 @@ 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
|
-
//#endregion
|
|
1039
|
-
//#region src/services/tax-invoice/types/index.d.ts
|
|
1040
1305
|
/**
|
|
1041
1306
|
* 세금계산서 문서번호 유형 상수입니다.
|
|
1042
1307
|
*/
|
|
1043
|
-
declare const TaxInvoiceDocumentKeyTypes: {
|
|
1308
|
+
export declare const TaxInvoiceDocumentKeyTypes: {
|
|
1044
1309
|
/**
|
|
1045
1310
|
* 코드: `SELL`, 설명: 매출 문서번호 유형
|
|
1046
1311
|
*/
|
|
1047
|
-
readonly Sales:
|
|
1312
|
+
readonly Sales: 'SELL';
|
|
1048
1313
|
/**
|
|
1049
1314
|
* 코드: `BUY`, 설명: 매입 문서번호 유형
|
|
1050
1315
|
*/
|
|
1051
|
-
readonly Purchase:
|
|
1316
|
+
readonly Purchase: 'BUY';
|
|
1052
1317
|
/**
|
|
1053
1318
|
* 코드: `TRUSTEE`, 설명: 위수탁 문서번호 유형
|
|
1054
1319
|
*/
|
|
1055
|
-
readonly Trustee:
|
|
1320
|
+
readonly Trustee: 'TRUSTEE';
|
|
1056
1321
|
};
|
|
1057
1322
|
/**
|
|
1058
1323
|
* 세금계산서 문서번호 유형입니다.
|
|
1059
1324
|
*/
|
|
1060
|
-
type TaxInvoiceDocumentKeyType = (typeof TaxInvoiceDocumentKeyTypes)[keyof typeof TaxInvoiceDocumentKeyTypes];
|
|
1061
|
-
type TaxInvoiceOutboundDocumentKeyType = Extract<TaxInvoiceDocumentKeyType, typeof TaxInvoiceDocumentKeyTypes.Sales | typeof TaxInvoiceDocumentKeyTypes.Trustee>;
|
|
1062
|
-
type TaxInvoiceReverseRequestDocumentKeyType = typeof TaxInvoiceDocumentKeyTypes.Purchase;
|
|
1063
|
-
type TaxInvoiceReverseRefuseDocumentKeyType = typeof TaxInvoiceDocumentKeyTypes.Sales;
|
|
1325
|
+
export type TaxInvoiceDocumentKeyType = (typeof TaxInvoiceDocumentKeyTypes)[keyof typeof TaxInvoiceDocumentKeyTypes];
|
|
1326
|
+
export type TaxInvoiceOutboundDocumentKeyType = Extract<TaxInvoiceDocumentKeyType, typeof TaxInvoiceDocumentKeyTypes.Sales | typeof TaxInvoiceDocumentKeyTypes.Trustee>;
|
|
1327
|
+
export type TaxInvoiceReverseRequestDocumentKeyType = typeof TaxInvoiceDocumentKeyTypes.Purchase;
|
|
1328
|
+
export type TaxInvoiceReverseRefuseDocumentKeyType = typeof TaxInvoiceDocumentKeyTypes.Sales;
|
|
1064
1329
|
/**
|
|
1065
1330
|
* 세금계산서 문서함 범위 상수입니다.
|
|
1066
1331
|
*/
|
|
1067
|
-
declare const TaxInvoiceBoxScopes: {
|
|
1332
|
+
export declare const TaxInvoiceBoxScopes: {
|
|
1068
1333
|
/**
|
|
1069
1334
|
* 코드: `TBOX`, 설명: 임시 문서함
|
|
1070
1335
|
*/
|
|
1071
|
-
readonly TemporaryDocumentBox:
|
|
1336
|
+
readonly TemporaryDocumentBox: 'TBOX';
|
|
1072
1337
|
/**
|
|
1073
1338
|
* 코드: `SWBOX`, 설명: 매출 발행 대기함
|
|
1074
1339
|
*/
|
|
1075
|
-
readonly SalesIssueWaitingBox:
|
|
1340
|
+
readonly SalesIssueWaitingBox: 'SWBOX';
|
|
1076
1341
|
/**
|
|
1077
1342
|
* 코드: `SBOX`, 설명: 매출 문서함
|
|
1078
1343
|
*/
|
|
1079
|
-
readonly SalesDocumentBox:
|
|
1344
|
+
readonly SalesDocumentBox: 'SBOX';
|
|
1080
1345
|
/**
|
|
1081
1346
|
* 코드: `PWBOX`, 설명: 매입 발행 대기함
|
|
1082
1347
|
*/
|
|
1083
|
-
readonly PurchaseIssueWaitingBox:
|
|
1348
|
+
readonly PurchaseIssueWaitingBox: 'PWBOX';
|
|
1084
1349
|
/**
|
|
1085
1350
|
* 코드: `PBOX`, 설명: 매입 문서함
|
|
1086
1351
|
*/
|
|
1087
|
-
readonly PurchaseDocumentBox:
|
|
1352
|
+
readonly PurchaseDocumentBox: 'PBOX';
|
|
1088
1353
|
/**
|
|
1089
1354
|
* 코드: `WRITE`, 설명: 정발행 작성
|
|
1090
1355
|
*/
|
|
1091
|
-
readonly WriteInvoice:
|
|
1356
|
+
readonly WriteInvoice: 'WRITE';
|
|
1092
1357
|
};
|
|
1093
1358
|
/**
|
|
1094
1359
|
* 세금계산서 문서함 범위 값입니다.
|
|
1095
1360
|
*/
|
|
1096
|
-
type TaxInvoiceBoxScope = (typeof TaxInvoiceBoxScopes)[keyof typeof TaxInvoiceBoxScopes];
|
|
1361
|
+
export type TaxInvoiceBoxScope = (typeof TaxInvoiceBoxScopes)[keyof typeof TaxInvoiceBoxScopes];
|
|
1097
1362
|
/**
|
|
1098
1363
|
* 검색일자 유형 상수입니다.
|
|
1099
1364
|
*/
|
|
1100
|
-
declare const TaxInvoiceDateType: {
|
|
1365
|
+
export declare const TaxInvoiceDateType: {
|
|
1101
1366
|
/**
|
|
1102
1367
|
* 코드: `R`, 설명: 등록일자
|
|
1103
1368
|
*/
|
|
1104
|
-
readonly Registered:
|
|
1369
|
+
readonly Registered: 'R';
|
|
1105
1370
|
/**
|
|
1106
1371
|
* 코드: `W`, 설명: 작성일자
|
|
1107
1372
|
*/
|
|
1108
|
-
readonly Written:
|
|
1373
|
+
readonly Written: 'W';
|
|
1109
1374
|
/**
|
|
1110
1375
|
* 코드: `I`, 설명: 발행일자
|
|
1111
1376
|
*/
|
|
1112
|
-
readonly Issued:
|
|
1377
|
+
readonly Issued: 'I';
|
|
1113
1378
|
};
|
|
1114
1379
|
/**
|
|
1115
1380
|
* 검색일자 유형입니다.
|
|
1116
1381
|
*/
|
|
1117
|
-
type TaxInvoiceDateType = (typeof TaxInvoiceDateType)[keyof typeof TaxInvoiceDateType];
|
|
1382
|
+
export type TaxInvoiceDateType = (typeof TaxInvoiceDateType)[keyof typeof TaxInvoiceDateType];
|
|
1118
1383
|
/**
|
|
1119
1384
|
* `packages/popbill` 검색 입력에서 허용하는 일자 타입입니다.
|
|
1120
1385
|
*/
|
|
1121
|
-
type TaxInvoiceDateInput = TaxInvoiceDateString | Date;
|
|
1386
|
+
export type TaxInvoiceDateInput = TaxInvoiceDateString | Date;
|
|
1122
1387
|
/**
|
|
1123
1388
|
* 검색 정렬 방향 상수입니다.
|
|
1124
1389
|
*/
|
|
1125
|
-
declare const TaxInvoiceSortOrder: {
|
|
1390
|
+
export declare const TaxInvoiceSortOrder: {
|
|
1126
1391
|
/**
|
|
1127
1392
|
* 코드: `D`, 설명: 내림차순
|
|
1128
1393
|
*/
|
|
1129
|
-
readonly Descending:
|
|
1394
|
+
readonly Descending: 'D';
|
|
1130
1395
|
/**
|
|
1131
1396
|
* 코드: `A`, 설명: 오름차순
|
|
1132
1397
|
*/
|
|
1133
|
-
readonly Ascending:
|
|
1398
|
+
readonly Ascending: 'A';
|
|
1134
1399
|
};
|
|
1135
1400
|
/**
|
|
1136
1401
|
* 검색 정렬 방향 코드입니다.
|
|
1137
1402
|
*/
|
|
1138
|
-
type TaxInvoiceSortOrder = (typeof TaxInvoiceSortOrder)[keyof typeof TaxInvoiceSortOrder];
|
|
1403
|
+
export type TaxInvoiceSortOrder = (typeof TaxInvoiceSortOrder)[keyof typeof TaxInvoiceSortOrder];
|
|
1139
1404
|
/**
|
|
1140
1405
|
* 검색 상태코드 패턴입니다.
|
|
1141
1406
|
*
|
|
1142
1407
|
* 첫 자리는 숫자, 2/3번째 자리는 숫자 또는 `*`를 허용합니다.
|
|
1143
1408
|
* 예) `300`, `3**`, `60*`
|
|
1144
1409
|
*/
|
|
1145
|
-
type TaxInvoiceSearchStateCode = string;
|
|
1410
|
+
export type TaxInvoiceSearchStateCode = string;
|
|
1146
1411
|
/**
|
|
1147
1412
|
* 검색 문서유형 코드 상수입니다.
|
|
1148
1413
|
*/
|
|
1149
|
-
declare const TaxInvoiceSearchInvoiceTypeCodes: {
|
|
1414
|
+
export declare const TaxInvoiceSearchInvoiceTypeCodes: {
|
|
1150
1415
|
/**
|
|
1151
1416
|
* 코드: `N`, 설명: 세금계산서
|
|
1152
1417
|
*/
|
|
1153
|
-
readonly Normal:
|
|
1418
|
+
readonly Normal: 'N';
|
|
1154
1419
|
/**
|
|
1155
1420
|
* 코드: `M`, 설명: 수정세금계산서
|
|
1156
1421
|
*/
|
|
1157
|
-
readonly Modified:
|
|
1422
|
+
readonly Modified: 'M';
|
|
1158
1423
|
};
|
|
1159
1424
|
/**
|
|
1160
1425
|
* 검색 문서유형 코드입니다.
|
|
1161
1426
|
*/
|
|
1162
|
-
type TaxInvoiceSearchInvoiceTypeCode = (typeof TaxInvoiceSearchInvoiceTypeCodes)[keyof typeof TaxInvoiceSearchInvoiceTypeCodes];
|
|
1427
|
+
export type TaxInvoiceSearchInvoiceTypeCode = (typeof TaxInvoiceSearchInvoiceTypeCodes)[keyof typeof TaxInvoiceSearchInvoiceTypeCodes];
|
|
1163
1428
|
/**
|
|
1164
1429
|
* 검색 과세형태 코드 상수입니다.
|
|
1165
1430
|
*/
|
|
1166
|
-
declare const TaxInvoiceSearchTaxationTypeCodes: {
|
|
1431
|
+
export declare const TaxInvoiceSearchTaxationTypeCodes: {
|
|
1167
1432
|
/**
|
|
1168
1433
|
* 코드: `T`, 설명: 과세
|
|
1169
1434
|
*/
|
|
1170
|
-
readonly Taxable:
|
|
1435
|
+
readonly Taxable: 'T';
|
|
1171
1436
|
/**
|
|
1172
1437
|
* 코드: `N`, 설명: 면세
|
|
1173
1438
|
*/
|
|
1174
|
-
readonly Exempt:
|
|
1439
|
+
readonly Exempt: 'N';
|
|
1175
1440
|
/**
|
|
1176
1441
|
* 코드: `Z`, 설명: 영세
|
|
1177
1442
|
*/
|
|
1178
|
-
readonly ZeroRated:
|
|
1443
|
+
readonly ZeroRated: 'Z';
|
|
1179
1444
|
};
|
|
1180
1445
|
/**
|
|
1181
1446
|
* 검색 과세형태 코드입니다.
|
|
1182
1447
|
*/
|
|
1183
|
-
type TaxInvoiceSearchTaxationTypeCode = (typeof TaxInvoiceSearchTaxationTypeCodes)[keyof typeof TaxInvoiceSearchTaxationTypeCodes];
|
|
1448
|
+
export type TaxInvoiceSearchTaxationTypeCode = (typeof TaxInvoiceSearchTaxationTypeCodes)[keyof typeof TaxInvoiceSearchTaxationTypeCodes];
|
|
1184
1449
|
/**
|
|
1185
1450
|
* 검색 발행형태 코드 상수입니다.
|
|
1186
1451
|
*/
|
|
1187
|
-
declare const TaxInvoiceSearchIssueTypeCodes: {
|
|
1452
|
+
export declare const TaxInvoiceSearchIssueTypeCodes: {
|
|
1188
1453
|
/**
|
|
1189
1454
|
* 코드: `N`, 설명: 정발행
|
|
1190
1455
|
*/
|
|
1191
|
-
readonly Normal:
|
|
1456
|
+
readonly Normal: 'N';
|
|
1192
1457
|
/**
|
|
1193
1458
|
* 코드: `R`, 설명: 역발행
|
|
1194
1459
|
*/
|
|
1195
|
-
readonly Reverse:
|
|
1460
|
+
readonly Reverse: 'R';
|
|
1196
1461
|
/**
|
|
1197
1462
|
* 코드: `T`, 설명: 위수탁
|
|
1198
1463
|
*/
|
|
1199
|
-
readonly Trustee:
|
|
1464
|
+
readonly Trustee: 'T';
|
|
1200
1465
|
};
|
|
1201
1466
|
/**
|
|
1202
1467
|
* 검색 발행형태 코드입니다.
|
|
1203
1468
|
*/
|
|
1204
|
-
type TaxInvoiceSearchIssueTypeCode = (typeof TaxInvoiceSearchIssueTypeCodes)[keyof typeof TaxInvoiceSearchIssueTypeCodes];
|
|
1469
|
+
export type TaxInvoiceSearchIssueTypeCode = (typeof TaxInvoiceSearchIssueTypeCodes)[keyof typeof TaxInvoiceSearchIssueTypeCodes];
|
|
1205
1470
|
/**
|
|
1206
1471
|
* 검색 종사업장번호 주체 코드 상수입니다.
|
|
1207
1472
|
*/
|
|
1208
|
-
declare const TaxInvoiceSearchTaxRegistrationIdentifierTypes: {
|
|
1473
|
+
export declare const TaxInvoiceSearchTaxRegistrationIdentifierTypes: {
|
|
1209
1474
|
/**
|
|
1210
1475
|
* 코드: `S`, 설명: 공급자
|
|
1211
1476
|
*/
|
|
1212
|
-
readonly Supplier:
|
|
1477
|
+
readonly Supplier: 'S';
|
|
1213
1478
|
/**
|
|
1214
1479
|
* 코드: `B`, 설명: 공급받는자
|
|
1215
1480
|
*/
|
|
1216
|
-
readonly Buyer:
|
|
1481
|
+
readonly Buyer: 'B';
|
|
1217
1482
|
/**
|
|
1218
1483
|
* 코드: `T`, 설명: 수탁자
|
|
1219
1484
|
*/
|
|
1220
|
-
readonly Trustee:
|
|
1485
|
+
readonly Trustee: 'T';
|
|
1221
1486
|
};
|
|
1222
1487
|
/**
|
|
1223
1488
|
* 검색 종사업장번호 주체 코드입니다.
|
|
1224
1489
|
*/
|
|
1225
|
-
type TaxInvoiceSearchTaxRegistrationIdentifierType = (typeof TaxInvoiceSearchTaxRegistrationIdentifierTypes)[keyof typeof TaxInvoiceSearchTaxRegistrationIdentifierTypes];
|
|
1490
|
+
export type TaxInvoiceSearchTaxRegistrationIdentifierType = (typeof TaxInvoiceSearchTaxRegistrationIdentifierTypes)[keyof typeof TaxInvoiceSearchTaxRegistrationIdentifierTypes];
|
|
1226
1491
|
/**
|
|
1227
1492
|
* 검색 종사업장번호 유무 코드 상수입니다.
|
|
1228
1493
|
*/
|
|
1229
|
-
declare const TaxInvoiceSearchTaxRegistrationIdentifierAvailabilities: {
|
|
1494
|
+
export declare const TaxInvoiceSearchTaxRegistrationIdentifierAvailabilities: {
|
|
1230
1495
|
/**
|
|
1231
1496
|
* 코드: `0`, 설명: 종사업장번호 없음
|
|
1232
1497
|
*/
|
|
1233
|
-
readonly No:
|
|
1498
|
+
readonly No: '0';
|
|
1234
1499
|
/**
|
|
1235
1500
|
* 코드: `1`, 설명: 종사업장번호 있음
|
|
1236
1501
|
*/
|
|
1237
|
-
readonly Yes:
|
|
1502
|
+
readonly Yes: '1';
|
|
1238
1503
|
};
|
|
1239
1504
|
/**
|
|
1240
1505
|
* 검색 종사업장번호 유무 코드입니다.
|
|
1241
1506
|
*/
|
|
1242
|
-
type TaxInvoiceSearchTaxRegistrationIdentifierAvailability = (typeof TaxInvoiceSearchTaxRegistrationIdentifierAvailabilities)[keyof typeof TaxInvoiceSearchTaxRegistrationIdentifierAvailabilities];
|
|
1507
|
+
export type TaxInvoiceSearchTaxRegistrationIdentifierAvailability = (typeof TaxInvoiceSearchTaxRegistrationIdentifierAvailabilities)[keyof typeof TaxInvoiceSearchTaxRegistrationIdentifierAvailabilities];
|
|
1243
1508
|
/**
|
|
1244
1509
|
* 검색 작성유형 코드 상수입니다.
|
|
1245
1510
|
*/
|
|
1246
|
-
declare const TaxInvoiceSearchInteroperabilityTypes: {
|
|
1511
|
+
export declare const TaxInvoiceSearchInteroperabilityTypes: {
|
|
1247
1512
|
/**
|
|
1248
1513
|
* 코드: `0`, 설명: 팝빌 웹 작성
|
|
1249
1514
|
*/
|
|
1250
|
-
readonly PopbillWeb:
|
|
1515
|
+
readonly PopbillWeb: '0';
|
|
1251
1516
|
/**
|
|
1252
1517
|
* 코드: `1`, 설명: API 작성
|
|
1253
1518
|
*/
|
|
1254
|
-
readonly Api:
|
|
1519
|
+
readonly Api: '1';
|
|
1255
1520
|
};
|
|
1256
1521
|
/**
|
|
1257
1522
|
* 검색 작성유형 코드입니다.
|
|
1258
1523
|
*/
|
|
1259
|
-
type TaxInvoiceSearchInteroperabilityType = (typeof TaxInvoiceSearchInteroperabilityTypes)[keyof typeof TaxInvoiceSearchInteroperabilityTypes];
|
|
1524
|
+
export type TaxInvoiceSearchInteroperabilityType = (typeof TaxInvoiceSearchInteroperabilityTypes)[keyof typeof TaxInvoiceSearchInteroperabilityTypes];
|
|
1260
1525
|
/**
|
|
1261
1526
|
* 검색 등록유형 코드 상수입니다.
|
|
1262
1527
|
*/
|
|
1263
|
-
declare const TaxInvoiceSearchRegistrationTypeCodes: {
|
|
1528
|
+
export declare const TaxInvoiceSearchRegistrationTypeCodes: {
|
|
1264
1529
|
/**
|
|
1265
1530
|
* 코드: `P`, 설명: 팝빌 등록(발행)
|
|
1266
1531
|
*/
|
|
1267
|
-
readonly Popbill:
|
|
1532
|
+
readonly Popbill: 'P';
|
|
1268
1533
|
/**
|
|
1269
1534
|
* 코드: `H`, 설명: 홈택스/ASP 등록(발행)
|
|
1270
1535
|
*/
|
|
1271
|
-
readonly HomeTax:
|
|
1536
|
+
readonly HomeTax: 'H';
|
|
1272
1537
|
};
|
|
1273
1538
|
/**
|
|
1274
1539
|
* 검색 등록유형 코드입니다.
|
|
1275
1540
|
*/
|
|
1276
|
-
type TaxInvoiceSearchRegistrationTypeCode = (typeof TaxInvoiceSearchRegistrationTypeCodes)[keyof typeof TaxInvoiceSearchRegistrationTypeCodes];
|
|
1541
|
+
export type TaxInvoiceSearchRegistrationTypeCode = (typeof TaxInvoiceSearchRegistrationTypeCodes)[keyof typeof TaxInvoiceSearchRegistrationTypeCodes];
|
|
1277
1542
|
/**
|
|
1278
1543
|
* 검색 조건의 휴폐업 상태 상수입니다.
|
|
1279
1544
|
*/
|
|
1280
|
-
declare const TaxInvoiceCloseDownStateCodes: {
|
|
1545
|
+
export declare const TaxInvoiceCloseDownStateCodes: {
|
|
1281
1546
|
/**
|
|
1282
1547
|
* 코드: `N`, 설명: 미확인
|
|
1283
1548
|
*/
|
|
1284
|
-
readonly NotChecked:
|
|
1549
|
+
readonly NotChecked: 'N';
|
|
1285
1550
|
/**
|
|
1286
1551
|
* 코드: `0`, 설명: 미등록
|
|
1287
1552
|
*/
|
|
1288
|
-
readonly NotRegistered:
|
|
1553
|
+
readonly NotRegistered: '0';
|
|
1289
1554
|
/**
|
|
1290
1555
|
* 코드: `1`, 설명: 사업중
|
|
1291
1556
|
*/
|
|
1292
|
-
readonly Operating:
|
|
1557
|
+
readonly Operating: '1';
|
|
1293
1558
|
/**
|
|
1294
1559
|
* 코드: `2`, 설명: 폐업
|
|
1295
1560
|
*/
|
|
1296
|
-
readonly Closed:
|
|
1561
|
+
readonly Closed: '2';
|
|
1297
1562
|
/**
|
|
1298
1563
|
* 코드: `3`, 설명: 휴업
|
|
1299
1564
|
*/
|
|
1300
|
-
readonly Suspended:
|
|
1565
|
+
readonly Suspended: '3';
|
|
1301
1566
|
/**
|
|
1302
1567
|
* 코드: `4`, 설명: 확인실패
|
|
1303
1568
|
*/
|
|
1304
|
-
readonly CheckFailed:
|
|
1569
|
+
readonly CheckFailed: '4';
|
|
1305
1570
|
};
|
|
1306
1571
|
/**
|
|
1307
1572
|
* 검색 조건의 휴폐업 상태 코드입니다.
|
|
1308
1573
|
*/
|
|
1309
|
-
type TaxInvoiceCloseDownStateCode = (typeof TaxInvoiceCloseDownStateCodes)[keyof typeof TaxInvoiceCloseDownStateCodes];
|
|
1574
|
+
export type TaxInvoiceCloseDownStateCode = (typeof TaxInvoiceCloseDownStateCodes)[keyof typeof TaxInvoiceCloseDownStateCodes];
|
|
1310
1575
|
/**
|
|
1311
1576
|
* 전자명세서 문서유형 코드 상수입니다.
|
|
1312
1577
|
*/
|
|
1313
|
-
declare const TaxInvoiceStatementItemCodes: {
|
|
1578
|
+
export declare const TaxInvoiceStatementItemCodes: {
|
|
1314
1579
|
/**
|
|
1315
1580
|
* 코드: `121`, 설명: 거래명세서
|
|
1316
1581
|
*/
|
|
@@ -1339,96 +1604,96 @@ declare const TaxInvoiceStatementItemCodes: {
|
|
|
1339
1604
|
/**
|
|
1340
1605
|
* 전자명세서 문서유형 코드입니다.
|
|
1341
1606
|
*/
|
|
1342
|
-
type TaxInvoiceStatementItemCode = (typeof TaxInvoiceStatementItemCodes)[keyof typeof TaxInvoiceStatementItemCodes];
|
|
1607
|
+
export type TaxInvoiceStatementItemCode = (typeof TaxInvoiceStatementItemCodes)[keyof typeof TaxInvoiceStatementItemCodes];
|
|
1343
1608
|
/**
|
|
1344
1609
|
* 메일 전송 유형 코드 상수입니다.
|
|
1345
1610
|
*/
|
|
1346
|
-
declare const TaxInvoiceEmailTypes: {
|
|
1611
|
+
export declare const TaxInvoiceEmailTypes: {
|
|
1347
1612
|
/**
|
|
1348
1613
|
* 코드: `ETC_CERT_EXPIRATION`, 설명: 인증서 만료 안내
|
|
1349
1614
|
*/
|
|
1350
|
-
readonly EtcCertExpiration:
|
|
1615
|
+
readonly EtcCertExpiration: 'ETC_CERT_EXPIRATION';
|
|
1351
1616
|
/**
|
|
1352
1617
|
* 코드: `TAX_CANCEL_ISSUE`, 설명: 발행취소
|
|
1353
1618
|
*/
|
|
1354
|
-
readonly TaxCancelIssue:
|
|
1619
|
+
readonly TaxCancelIssue: 'TAX_CANCEL_ISSUE';
|
|
1355
1620
|
/**
|
|
1356
1621
|
* 코드: `TAX_CANCEL_REQUEST`, 설명: 역발행 요청 취소
|
|
1357
1622
|
*/
|
|
1358
|
-
readonly TaxCancelRequest:
|
|
1623
|
+
readonly TaxCancelRequest: 'TAX_CANCEL_REQUEST';
|
|
1359
1624
|
/**
|
|
1360
1625
|
* 코드: `TAX_CHECK`, 설명: 수신확인
|
|
1361
1626
|
*/
|
|
1362
|
-
readonly TaxCheck:
|
|
1627
|
+
readonly TaxCheck: 'TAX_CHECK';
|
|
1363
1628
|
/**
|
|
1364
1629
|
* 코드: `TAX_CLOSEDOWN`, 설명: 휴폐업 알림
|
|
1365
1630
|
*/
|
|
1366
|
-
readonly TaxClosedown:
|
|
1631
|
+
readonly TaxClosedown: 'TAX_CLOSEDOWN';
|
|
1367
1632
|
/**
|
|
1368
1633
|
* 코드: `TAX_ISSUE`, 설명: 발행완료(수신자)
|
|
1369
1634
|
*/
|
|
1370
|
-
readonly TaxIssue:
|
|
1635
|
+
readonly TaxIssue: 'TAX_ISSUE';
|
|
1371
1636
|
/**
|
|
1372
1637
|
* 코드: `TAX_ISSUE_INVOICER`, 설명: 발행완료(공급자)
|
|
1373
1638
|
*/
|
|
1374
|
-
readonly TaxIssueInvoicer:
|
|
1639
|
+
readonly TaxIssueInvoicer: 'TAX_ISSUE_INVOICER';
|
|
1375
1640
|
/**
|
|
1376
1641
|
* 코드: `TAX_NTSFAIL_INVOICER`, 설명: 국세청 전송실패(공급자)
|
|
1377
1642
|
*/
|
|
1378
|
-
readonly TaxNtsFailInvoicer:
|
|
1643
|
+
readonly TaxNtsFailInvoicer: 'TAX_NTSFAIL_INVOICER';
|
|
1379
1644
|
/**
|
|
1380
1645
|
* 코드: `TAX_REFUSE`, 설명: 역발행 거부
|
|
1381
1646
|
*/
|
|
1382
|
-
readonly TaxRefuse:
|
|
1647
|
+
readonly TaxRefuse: 'TAX_REFUSE';
|
|
1383
1648
|
/**
|
|
1384
1649
|
* 코드: `TAX_REQUEST`, 설명: 역발행 요청
|
|
1385
1650
|
*/
|
|
1386
|
-
readonly TaxRequest:
|
|
1651
|
+
readonly TaxRequest: 'TAX_REQUEST';
|
|
1387
1652
|
/**
|
|
1388
1653
|
* 코드: `TAX_REVERSE_ISSUE`, 설명: 역발행 완료
|
|
1389
1654
|
*/
|
|
1390
|
-
readonly TaxReverseIssue:
|
|
1655
|
+
readonly TaxReverseIssue: 'TAX_REVERSE_ISSUE';
|
|
1391
1656
|
/**
|
|
1392
1657
|
* 코드: `TAX_TRUST_CANCEL_ISSUE`, 설명: 위수탁 발행취소
|
|
1393
1658
|
*/
|
|
1394
|
-
readonly TaxTrustCancelIssue:
|
|
1659
|
+
readonly TaxTrustCancelIssue: 'TAX_TRUST_CANCEL_ISSUE';
|
|
1395
1660
|
/**
|
|
1396
1661
|
* 코드: `TAX_TRUST_CANCEL_ISSUE_INVOICER`, 설명: 위수탁 발행취소(공급자)
|
|
1397
1662
|
*/
|
|
1398
|
-
readonly TaxTrustCancelIssueInvoicer:
|
|
1663
|
+
readonly TaxTrustCancelIssueInvoicer: 'TAX_TRUST_CANCEL_ISSUE_INVOICER';
|
|
1399
1664
|
/**
|
|
1400
1665
|
* 코드: `TAX_TRUST_ISSUE`, 설명: 위수탁 발행완료
|
|
1401
1666
|
*/
|
|
1402
|
-
readonly TaxTrustIssue:
|
|
1667
|
+
readonly TaxTrustIssue: 'TAX_TRUST_ISSUE';
|
|
1403
1668
|
/**
|
|
1404
1669
|
* 코드: `TAX_TRUST_ISSUE_INVOICER`, 설명: 위수탁 발행완료(공급자)
|
|
1405
1670
|
*/
|
|
1406
|
-
readonly TaxTrustIssueInvoicer:
|
|
1671
|
+
readonly TaxTrustIssueInvoicer: 'TAX_TRUST_ISSUE_INVOICER';
|
|
1407
1672
|
/**
|
|
1408
1673
|
* 코드: `TAX_TRUST_ISSUE_TRUSTEE`, 설명: 위수탁 발행완료(수탁자)
|
|
1409
1674
|
*/
|
|
1410
|
-
readonly TaxTrustIssueTrustee:
|
|
1675
|
+
readonly TaxTrustIssueTrustee: 'TAX_TRUST_ISSUE_TRUSTEE';
|
|
1411
1676
|
/**
|
|
1412
1677
|
* 코드: `TAX_ACCEPT`, 설명: 역발행 승인(legacy)
|
|
1413
1678
|
*/
|
|
1414
|
-
readonly TaxAccept:
|
|
1679
|
+
readonly TaxAccept: 'TAX_ACCEPT';
|
|
1415
1680
|
/**
|
|
1416
1681
|
* 코드: `TAX_DENY`, 설명: 역발행 거부(legacy)
|
|
1417
1682
|
*/
|
|
1418
|
-
readonly TaxDeny:
|
|
1683
|
+
readonly TaxDeny: 'TAX_DENY';
|
|
1419
1684
|
/**
|
|
1420
1685
|
* 코드: `TAX_CANCEL_SEND`, 설명: 발행안함 취소(legacy)
|
|
1421
1686
|
*/
|
|
1422
|
-
readonly TaxCancelSend:
|
|
1687
|
+
readonly TaxCancelSend: 'TAX_CANCEL_SEND';
|
|
1423
1688
|
};
|
|
1424
1689
|
/**
|
|
1425
1690
|
* 메일 전송 유형 코드입니다.
|
|
1426
1691
|
*/
|
|
1427
|
-
type TaxInvoiceEmailType = (typeof TaxInvoiceEmailTypes)[keyof typeof TaxInvoiceEmailTypes];
|
|
1692
|
+
export type TaxInvoiceEmailType = (typeof TaxInvoiceEmailTypes)[keyof typeof TaxInvoiceEmailTypes];
|
|
1428
1693
|
/**
|
|
1429
1694
|
* 수정세금계산서 사유코드입니다.
|
|
1430
1695
|
*/
|
|
1431
|
-
declare const TaxInvoiceModificationCodes: {
|
|
1696
|
+
export declare const TaxInvoiceModificationCodes: {
|
|
1432
1697
|
readonly CorrectingEntryErrors: 1;
|
|
1433
1698
|
readonly SupplyAmountAdjustment: 2;
|
|
1434
1699
|
readonly Return: 3;
|
|
@@ -1439,11 +1704,11 @@ declare const TaxInvoiceModificationCodes: {
|
|
|
1439
1704
|
/**
|
|
1440
1705
|
* 수정세금계산서 사유코드입니다.
|
|
1441
1706
|
*/
|
|
1442
|
-
type TaxInvoiceModificationCode = TaxInvoiceModificationReasonCode;
|
|
1707
|
+
export type TaxInvoiceModificationCode = TaxInvoiceModificationReasonCode;
|
|
1443
1708
|
/**
|
|
1444
1709
|
* 사업자번호 입력이 필요한 요청의 공통 필드입니다.
|
|
1445
1710
|
*/
|
|
1446
|
-
interface TaxInvoiceBusinessRequest {
|
|
1711
|
+
export interface TaxInvoiceBusinessRequest {
|
|
1447
1712
|
/**
|
|
1448
1713
|
* 팝빌 회원 사업자번호입니다.
|
|
1449
1714
|
*/
|
|
@@ -1452,7 +1717,7 @@ interface TaxInvoiceBusinessRequest {
|
|
|
1452
1717
|
/**
|
|
1453
1718
|
* 문서 식별(문서번호 유형 + 문서번호)이 필요한 요청의 공통 필드입니다.
|
|
1454
1719
|
*/
|
|
1455
|
-
interface TaxInvoiceDocumentRequest<TKeyType extends TaxInvoiceDocumentKeyType = TaxInvoiceDocumentKeyType> extends TaxInvoiceBusinessRequest {
|
|
1720
|
+
export interface TaxInvoiceDocumentRequest<TKeyType extends TaxInvoiceDocumentKeyType = TaxInvoiceDocumentKeyType> extends TaxInvoiceBusinessRequest {
|
|
1456
1721
|
/**
|
|
1457
1722
|
* 문서번호 유형입니다.
|
|
1458
1723
|
*/
|
|
@@ -1465,7 +1730,7 @@ interface TaxInvoiceDocumentRequest<TKeyType extends TaxInvoiceDocumentKeyType =
|
|
|
1465
1730
|
/**
|
|
1466
1731
|
* 즉시 발행 요청 입력입니다.
|
|
1467
1732
|
*/
|
|
1468
|
-
interface IssueInvoiceImmediatelyInput extends TaxInvoiceBusinessRequest {
|
|
1733
|
+
export interface IssueInvoiceImmediatelyInput extends TaxInvoiceBusinessRequest {
|
|
1469
1734
|
/**
|
|
1470
1735
|
* 발행할 세금계산서 문서 원본입니다.
|
|
1471
1736
|
*/
|
|
@@ -1494,7 +1759,7 @@ interface IssueInvoiceImmediatelyInput extends TaxInvoiceBusinessRequest {
|
|
|
1494
1759
|
/**
|
|
1495
1760
|
* 초대량 발행 접수 요청 입력입니다.
|
|
1496
1761
|
*/
|
|
1497
|
-
interface SubmitBulkIssueInput extends TaxInvoiceBusinessRequest {
|
|
1762
|
+
export interface SubmitBulkIssueInput extends TaxInvoiceBusinessRequest {
|
|
1498
1763
|
/**
|
|
1499
1764
|
* 초대량 접수 식별자(SubmitID)입니다.
|
|
1500
1765
|
*/
|
|
@@ -1511,7 +1776,7 @@ interface SubmitBulkIssueInput extends TaxInvoiceBusinessRequest {
|
|
|
1511
1776
|
/**
|
|
1512
1777
|
* 초대량 접수결과 조회 요청 입력입니다.
|
|
1513
1778
|
*/
|
|
1514
|
-
interface GetBulkIssueSubmissionResultInput extends TaxInvoiceBusinessRequest {
|
|
1779
|
+
export interface GetBulkIssueSubmissionResultInput extends TaxInvoiceBusinessRequest {
|
|
1515
1780
|
/**
|
|
1516
1781
|
* 조회할 초대량 접수 식별자(SubmitID)입니다.
|
|
1517
1782
|
*/
|
|
@@ -1520,7 +1785,7 @@ interface GetBulkIssueSubmissionResultInput extends TaxInvoiceBusinessRequest {
|
|
|
1520
1785
|
/**
|
|
1521
1786
|
* 임시저장 요청 입력입니다.
|
|
1522
1787
|
*/
|
|
1523
|
-
interface RegisterInvoiceInput extends TaxInvoiceBusinessRequest {
|
|
1788
|
+
export interface RegisterInvoiceInput extends TaxInvoiceBusinessRequest {
|
|
1524
1789
|
/**
|
|
1525
1790
|
* 임시저장할 세금계산서 문서 원본입니다.
|
|
1526
1791
|
*/
|
|
@@ -1529,7 +1794,7 @@ interface RegisterInvoiceInput extends TaxInvoiceBusinessRequest {
|
|
|
1529
1794
|
/**
|
|
1530
1795
|
* 문서 수정 요청 입력입니다.
|
|
1531
1796
|
*/
|
|
1532
|
-
interface UpdateInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboundDocumentKeyType> {
|
|
1797
|
+
export interface UpdateInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboundDocumentKeyType> {
|
|
1533
1798
|
/**
|
|
1534
1799
|
* 수정 대상 문서번호 유형입니다. 매출(`SELL`) 또는 위수탁(`TRUSTEE`)만 사용할 수 있습니다.
|
|
1535
1800
|
*/
|
|
@@ -1542,7 +1807,7 @@ interface UpdateInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboun
|
|
|
1542
1807
|
/**
|
|
1543
1808
|
* 저장된 문서 발행 요청 입력입니다.
|
|
1544
1809
|
*/
|
|
1545
|
-
interface IssueInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboundDocumentKeyType> {
|
|
1810
|
+
export interface IssueInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboundDocumentKeyType> {
|
|
1546
1811
|
/**
|
|
1547
1812
|
* 발행 대상 문서번호 유형입니다. 매출(`SELL`) 또는 위수탁(`TRUSTEE`)만 사용할 수 있습니다.
|
|
1548
1813
|
*/
|
|
@@ -1563,7 +1828,7 @@ interface IssueInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutbound
|
|
|
1563
1828
|
/**
|
|
1564
1829
|
* 발행취소 요청 입력입니다.
|
|
1565
1830
|
*/
|
|
1566
|
-
interface CancelIssuedInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboundDocumentKeyType> {
|
|
1831
|
+
export interface CancelIssuedInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboundDocumentKeyType> {
|
|
1567
1832
|
/**
|
|
1568
1833
|
* 발행취소 대상 문서번호 유형입니다. 매출(`SELL`) 또는 위수탁(`TRUSTEE`)만 사용할 수 있습니다.
|
|
1569
1834
|
*/
|
|
@@ -1576,7 +1841,7 @@ interface CancelIssuedInvoiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceO
|
|
|
1576
1841
|
/**
|
|
1577
1842
|
* 역발행 즉시 요청 입력입니다.
|
|
1578
1843
|
*/
|
|
1579
|
-
interface RequestReverseIssueImmediatelyInput extends TaxInvoiceBusinessRequest {
|
|
1844
|
+
export interface RequestReverseIssueImmediatelyInput extends TaxInvoiceBusinessRequest {
|
|
1580
1845
|
/**
|
|
1581
1846
|
* 역발행 요청할 세금계산서 문서 원본입니다.
|
|
1582
1847
|
*/
|
|
@@ -1589,7 +1854,7 @@ interface RequestReverseIssueImmediatelyInput extends TaxInvoiceBusinessRequest
|
|
|
1589
1854
|
/**
|
|
1590
1855
|
* 역발행 요청 입력입니다.
|
|
1591
1856
|
*/
|
|
1592
|
-
interface RequestReverseIssueInput extends TaxInvoiceDocumentRequest<TaxInvoiceReverseRequestDocumentKeyType> {
|
|
1857
|
+
export interface RequestReverseIssueInput extends TaxInvoiceDocumentRequest<TaxInvoiceReverseRequestDocumentKeyType> {
|
|
1593
1858
|
/**
|
|
1594
1859
|
* 역발행 요청 대상 문서번호 유형입니다. 매입(`BUY`)만 사용할 수 있습니다.
|
|
1595
1860
|
*/
|
|
@@ -1602,7 +1867,7 @@ interface RequestReverseIssueInput extends TaxInvoiceDocumentRequest<TaxInvoiceR
|
|
|
1602
1867
|
/**
|
|
1603
1868
|
* 역발행 요청취소 입력입니다.
|
|
1604
1869
|
*/
|
|
1605
|
-
interface CancelReverseIssueRequestInput extends TaxInvoiceDocumentRequest<TaxInvoiceReverseRequestDocumentKeyType> {
|
|
1870
|
+
export interface CancelReverseIssueRequestInput extends TaxInvoiceDocumentRequest<TaxInvoiceReverseRequestDocumentKeyType> {
|
|
1606
1871
|
/**
|
|
1607
1872
|
* 역발행 요청취소 대상 문서번호 유형입니다. 매입(`BUY`)만 사용할 수 있습니다.
|
|
1608
1873
|
*/
|
|
@@ -1615,7 +1880,7 @@ interface CancelReverseIssueRequestInput extends TaxInvoiceDocumentRequest<TaxIn
|
|
|
1615
1880
|
/**
|
|
1616
1881
|
* 역발행 요청거부 입력입니다.
|
|
1617
1882
|
*/
|
|
1618
|
-
interface RefuseReverseIssueRequestInput extends TaxInvoiceDocumentRequest<TaxInvoiceReverseRefuseDocumentKeyType> {
|
|
1883
|
+
export interface RefuseReverseIssueRequestInput extends TaxInvoiceDocumentRequest<TaxInvoiceReverseRefuseDocumentKeyType> {
|
|
1619
1884
|
/**
|
|
1620
1885
|
* 역발행 요청거부 대상 문서번호 유형입니다. 매출(`SELL`)만 사용할 수 있습니다.
|
|
1621
1886
|
*/
|
|
@@ -1625,10 +1890,32 @@ interface RefuseReverseIssueRequestInput extends TaxInvoiceDocumentRequest<TaxIn
|
|
|
1625
1890
|
*/
|
|
1626
1891
|
historyMemo: string;
|
|
1627
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
|
+
}
|
|
1628
1915
|
/**
|
|
1629
1916
|
* 국세청 즉시 전송 입력입니다.
|
|
1630
1917
|
*/
|
|
1631
|
-
interface SendInvoiceToNationalTaxServiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboundDocumentKeyType> {
|
|
1918
|
+
export interface SendInvoiceToNationalTaxServiceInput extends TaxInvoiceDocumentRequest<TaxInvoiceOutboundDocumentKeyType> {
|
|
1632
1919
|
/**
|
|
1633
1920
|
* 국세청 전송 대상 문서번호 유형입니다. 매출(`SELL`) 또는 위수탁(`TRUSTEE`)만 사용할 수 있습니다.
|
|
1634
1921
|
*/
|
|
@@ -1637,7 +1924,7 @@ interface SendInvoiceToNationalTaxServiceInput extends TaxInvoiceDocumentRequest
|
|
|
1637
1924
|
/**
|
|
1638
1925
|
* 다건 상태 조회 요청 입력입니다.
|
|
1639
1926
|
*/
|
|
1640
|
-
interface GetInvoicesInfoInput extends TaxInvoiceBusinessRequest {
|
|
1927
|
+
export interface GetInvoicesInfoInput extends TaxInvoiceBusinessRequest {
|
|
1641
1928
|
/**
|
|
1642
1929
|
* 조회 대상 문서번호 유형입니다.
|
|
1643
1930
|
*/
|
|
@@ -1647,10 +1934,15 @@ interface GetInvoicesInfoInput extends TaxInvoiceBusinessRequest {
|
|
|
1647
1934
|
*/
|
|
1648
1935
|
invoiceManagementKeys: string[];
|
|
1649
1936
|
}
|
|
1937
|
+
/** 세금계산서 PDF 원본 다운로드 입력입니다. */
|
|
1938
|
+
export interface DownloadInvoicePdfInput extends TaxInvoiceDocumentRequest {
|
|
1939
|
+
/** 출력할 사본. 생략하면 공급자용과 공급받는자용을 모두 출력합니다. */
|
|
1940
|
+
printCopy?: 'supplier' | 'buyer';
|
|
1941
|
+
}
|
|
1650
1942
|
/**
|
|
1651
1943
|
* 검색 요청 입력입니다.
|
|
1652
1944
|
*/
|
|
1653
|
-
interface SearchInvoicesInput extends TaxInvoiceBusinessRequest {
|
|
1945
|
+
export interface SearchInvoicesInput extends TaxInvoiceBusinessRequest {
|
|
1654
1946
|
/**
|
|
1655
1947
|
* 조회 대상 문서번호 유형입니다.
|
|
1656
1948
|
*/
|
|
@@ -1683,18 +1975,6 @@ interface SearchInvoicesInput extends TaxInvoiceBusinessRequest {
|
|
|
1683
1975
|
* 지연발행 문서만 조회할지 여부입니다.
|
|
1684
1976
|
*/
|
|
1685
1977
|
lateIssueOnly: boolean | null;
|
|
1686
|
-
/**
|
|
1687
|
-
* 정렬 방향입니다.
|
|
1688
|
-
*/
|
|
1689
|
-
sortOrder: TaxInvoiceSortOrder;
|
|
1690
|
-
/**
|
|
1691
|
-
* 조회할 페이지 번호입니다.
|
|
1692
|
-
*/
|
|
1693
|
-
pageNumber: number;
|
|
1694
|
-
/**
|
|
1695
|
-
* 페이지당 조회 건수입니다.
|
|
1696
|
-
*/
|
|
1697
|
-
pageSize: number;
|
|
1698
1978
|
/**
|
|
1699
1979
|
* 종사업장번호 주체 필터입니다.
|
|
1700
1980
|
*/
|
|
@@ -1707,10 +1987,6 @@ interface SearchInvoicesInput extends TaxInvoiceBusinessRequest {
|
|
|
1707
1987
|
* 종사업장번호 필터입니다.
|
|
1708
1988
|
*/
|
|
1709
1989
|
taxRegistrationIdentifier?: string;
|
|
1710
|
-
/**
|
|
1711
|
-
* 검색어(상호/사업자번호/문서번호 등)입니다.
|
|
1712
|
-
*/
|
|
1713
|
-
queryText?: string;
|
|
1714
1990
|
/**
|
|
1715
1991
|
* 작성유형(연동/API) 필터입니다.
|
|
1716
1992
|
*/
|
|
@@ -1731,11 +2007,27 @@ interface SearchInvoicesInput extends TaxInvoiceBusinessRequest {
|
|
|
1731
2007
|
* 문서번호 또는 국세청승인번호 필터입니다.
|
|
1732
2008
|
*/
|
|
1733
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;
|
|
1734
2026
|
}
|
|
1735
2027
|
/**
|
|
1736
2028
|
* 문서함 URL 조회 요청 입력입니다.
|
|
1737
2029
|
*/
|
|
1738
|
-
interface GetTaxInvoiceBoxURLInput extends TaxInvoiceBusinessRequest {
|
|
2030
|
+
export interface GetTaxInvoiceBoxURLInput extends TaxInvoiceBusinessRequest {
|
|
1739
2031
|
/**
|
|
1740
2032
|
* 조회할 세금계산서 문서함 범위입니다.
|
|
1741
2033
|
*/
|
|
@@ -1744,7 +2036,7 @@ interface GetTaxInvoiceBoxURLInput extends TaxInvoiceBusinessRequest {
|
|
|
1744
2036
|
/**
|
|
1745
2037
|
* 다건 인쇄 URL 요청 입력입니다.
|
|
1746
2038
|
*/
|
|
1747
|
-
interface GetBulkInvoicePrintURLInput extends TaxInvoiceBusinessRequest {
|
|
2039
|
+
export interface GetBulkInvoicePrintURLInput extends TaxInvoiceBusinessRequest {
|
|
1748
2040
|
/**
|
|
1749
2041
|
* 인쇄 대상 문서번호 유형입니다.
|
|
1750
2042
|
*/
|
|
@@ -1757,24 +2049,24 @@ interface GetBulkInvoicePrintURLInput extends TaxInvoiceBusinessRequest {
|
|
|
1757
2049
|
/**
|
|
1758
2050
|
* 인감 및 첨부문서 등록 URL 조회 요청 입력입니다.
|
|
1759
2051
|
*/
|
|
1760
|
-
type GetSealAndAttachmentRegistrationURLInput = TaxInvoiceBusinessRequest;
|
|
2052
|
+
export type GetSealAndAttachmentRegistrationURLInput = TaxInvoiceBusinessRequest;
|
|
1761
2053
|
/**
|
|
1762
2054
|
* 파일 경로 기반 첨부 요청 입력입니다.
|
|
1763
2055
|
*/
|
|
1764
|
-
interface AttachFileFromPathInput extends TaxInvoiceDocumentRequest {
|
|
1765
|
-
/**
|
|
1766
|
-
* 팝빌에 표시할 첨부파일명입니다.
|
|
1767
|
-
*/
|
|
1768
|
-
displayName: string;
|
|
2056
|
+
export interface AttachFileFromPathInput extends TaxInvoiceDocumentRequest {
|
|
1769
2057
|
/**
|
|
1770
2058
|
* 업로드할 파일의 로컬 경로입니다.
|
|
1771
2059
|
*/
|
|
1772
2060
|
filePath: string;
|
|
2061
|
+
/**
|
|
2062
|
+
* 팝빌에 표시할 첨부파일명입니다.
|
|
2063
|
+
*/
|
|
2064
|
+
displayName: string;
|
|
1773
2065
|
}
|
|
1774
2066
|
/**
|
|
1775
2067
|
* 바이너리 기반 첨부 요청 입력입니다.
|
|
1776
2068
|
*/
|
|
1777
|
-
interface AttachFileFromBinaryInput extends TaxInvoiceDocumentRequest {
|
|
2069
|
+
export interface AttachFileFromBinaryInput extends TaxInvoiceDocumentRequest {
|
|
1778
2070
|
/**
|
|
1779
2071
|
* 업로드할 파일명입니다.
|
|
1780
2072
|
*/
|
|
@@ -1787,7 +2079,7 @@ interface AttachFileFromBinaryInput extends TaxInvoiceDocumentRequest {
|
|
|
1787
2079
|
/**
|
|
1788
2080
|
* 첨부파일 삭제 요청 입력입니다.
|
|
1789
2081
|
*/
|
|
1790
|
-
interface DeleteAttachedFileInput extends TaxInvoiceDocumentRequest {
|
|
2082
|
+
export interface DeleteAttachedFileInput extends TaxInvoiceDocumentRequest {
|
|
1791
2083
|
/**
|
|
1792
2084
|
* 삭제할 첨부파일 식별자(FileID)입니다.
|
|
1793
2085
|
*/
|
|
@@ -1796,7 +2088,7 @@ interface DeleteAttachedFileInput extends TaxInvoiceDocumentRequest {
|
|
|
1796
2088
|
/**
|
|
1797
2089
|
* 이메일 재전송 요청 입력입니다.
|
|
1798
2090
|
*/
|
|
1799
|
-
interface ResendInvoiceEmailInput extends TaxInvoiceDocumentRequest {
|
|
2091
|
+
export interface ResendInvoiceEmailInput extends TaxInvoiceDocumentRequest {
|
|
1800
2092
|
/**
|
|
1801
2093
|
* 재전송할 수신자 이메일 주소입니다.
|
|
1802
2094
|
*/
|
|
@@ -1805,7 +2097,7 @@ interface ResendInvoiceEmailInput extends TaxInvoiceDocumentRequest {
|
|
|
1805
2097
|
/**
|
|
1806
2098
|
* 문자 재전송 요청 입력입니다.
|
|
1807
2099
|
*/
|
|
1808
|
-
interface ResendInvoiceSMSInput extends TaxInvoiceDocumentRequest {
|
|
2100
|
+
export interface ResendInvoiceSMSInput extends TaxInvoiceDocumentRequest {
|
|
1809
2101
|
/**
|
|
1810
2102
|
* 발신자 전화번호입니다.
|
|
1811
2103
|
*/
|
|
@@ -1822,7 +2114,7 @@ interface ResendInvoiceSMSInput extends TaxInvoiceDocumentRequest {
|
|
|
1822
2114
|
/**
|
|
1823
2115
|
* 팩스 재전송 요청 입력입니다.
|
|
1824
2116
|
*/
|
|
1825
|
-
interface ResendInvoiceFAXInput extends TaxInvoiceDocumentRequest {
|
|
2117
|
+
export interface ResendInvoiceFAXInput extends TaxInvoiceDocumentRequest {
|
|
1826
2118
|
/**
|
|
1827
2119
|
* 발신 팩스번호입니다.
|
|
1828
2120
|
*/
|
|
@@ -1835,7 +2127,7 @@ interface ResendInvoiceFAXInput extends TaxInvoiceDocumentRequest {
|
|
|
1835
2127
|
/**
|
|
1836
2128
|
* 전자명세서 첨부 요청 입력입니다.
|
|
1837
2129
|
*/
|
|
1838
|
-
interface AttachInvoiceStatementInput extends TaxInvoiceDocumentRequest {
|
|
2130
|
+
export interface AttachInvoiceStatementInput extends TaxInvoiceDocumentRequest {
|
|
1839
2131
|
/**
|
|
1840
2132
|
* 첨부할 전자명세서 문서 유형 코드입니다.
|
|
1841
2133
|
*/
|
|
@@ -1848,7 +2140,7 @@ interface AttachInvoiceStatementInput extends TaxInvoiceDocumentRequest {
|
|
|
1848
2140
|
/**
|
|
1849
2141
|
* 전자명세서 첨부해제 요청 입력입니다.
|
|
1850
2142
|
*/
|
|
1851
|
-
interface DetachInvoiceStatementInput extends TaxInvoiceDocumentRequest {
|
|
2143
|
+
export interface DetachInvoiceStatementInput extends TaxInvoiceDocumentRequest {
|
|
1852
2144
|
/**
|
|
1853
2145
|
* 첨부해제할 전자명세서 문서 유형 코드입니다.
|
|
1854
2146
|
*/
|
|
@@ -1861,7 +2153,7 @@ interface DetachInvoiceStatementInput extends TaxInvoiceDocumentRequest {
|
|
|
1861
2153
|
/**
|
|
1862
2154
|
* 문서번호 할당 요청 입력입니다.
|
|
1863
2155
|
*/
|
|
1864
|
-
interface AssignInvoiceManagementKeyInput extends TaxInvoiceBusinessRequest {
|
|
2156
|
+
export interface AssignInvoiceManagementKeyInput extends TaxInvoiceBusinessRequest {
|
|
1865
2157
|
/**
|
|
1866
2158
|
* 할당 대상 문서번호 유형입니다.
|
|
1867
2159
|
*/
|
|
@@ -1878,7 +2170,7 @@ interface AssignInvoiceManagementKeyInput extends TaxInvoiceBusinessRequest {
|
|
|
1878
2170
|
/**
|
|
1879
2171
|
* 이메일 전송설정 수정 입력입니다.
|
|
1880
2172
|
*/
|
|
1881
|
-
interface UpdateEmailSendSettingsInput extends TaxInvoiceBusinessRequest {
|
|
2173
|
+
export interface UpdateEmailSendSettingsInput extends TaxInvoiceBusinessRequest {
|
|
1882
2174
|
/**
|
|
1883
2175
|
* 수정할 메일 전송 유형 코드입니다.
|
|
1884
2176
|
*/
|
|
@@ -1890,11 +2182,9 @@ interface UpdateEmailSendSettingsInput extends TaxInvoiceBusinessRequest {
|
|
|
1890
2182
|
}
|
|
1891
2183
|
/**
|
|
1892
2184
|
* TaxInvoice modern facade 서비스 인터페이스입니다.
|
|
1893
|
-
*
|
|
1894
|
-
* 모든 메서드는 `input`만 받으며,
|
|
1895
|
-
* 실패 시 `PopbillApiError`를 throw 합니다.
|
|
2185
|
+
* 모든 메서드는 `input`만 받으며 실패 시 `PopbillApiError`를 throw 합니다.
|
|
1896
2186
|
*/
|
|
1897
|
-
interface TaxInvoiceService {
|
|
2187
|
+
export interface TaxInvoiceService {
|
|
1898
2188
|
/**
|
|
1899
2189
|
* 등록과 동시에 세금계산서를 즉시 발행합니다.
|
|
1900
2190
|
*
|
|
@@ -1961,6 +2251,30 @@ interface TaxInvoiceService {
|
|
|
1961
2251
|
* Compat: `refuse`
|
|
1962
2252
|
*/
|
|
1963
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>;
|
|
1964
2278
|
/**
|
|
1965
2279
|
* 문서를 삭제합니다.
|
|
1966
2280
|
*
|
|
@@ -2003,6 +2317,8 @@ interface TaxInvoiceService {
|
|
|
2003
2317
|
* Compat: `getXML`
|
|
2004
2318
|
*/
|
|
2005
2319
|
getInvoiceXML(input: TaxInvoiceDocumentRequest): Promise<TaxInvoiceXmlResult>;
|
|
2320
|
+
/** 세금계산서 PDF 원본을 다운로드합니다. Compat: `getPDF` */
|
|
2321
|
+
downloadInvoicePDF(input: DownloadInvoicePdfInput): Promise<TaxInvoicePdfDocument>;
|
|
2006
2322
|
/**
|
|
2007
2323
|
* 검색조건으로 문서를 조회합니다.
|
|
2008
2324
|
*
|
|
@@ -2045,6 +2361,12 @@ interface TaxInvoiceService {
|
|
|
2045
2361
|
* Compat: `getEPrintURL`
|
|
2046
2362
|
*/
|
|
2047
2363
|
getBuyerInvoicePrintURL(input: TaxInvoiceDocumentRequest): Promise<TaxInvoiceAccessUrl>;
|
|
2364
|
+
/**
|
|
2365
|
+
* 구형 인쇄 팝업 URL을 조회합니다.
|
|
2366
|
+
*
|
|
2367
|
+
* Compat: `getOldPrintURL`
|
|
2368
|
+
*/
|
|
2369
|
+
getLegacyInvoicePrintURL(input: TaxInvoiceDocumentRequest): Promise<TaxInvoiceAccessUrl>;
|
|
2048
2370
|
/**
|
|
2049
2371
|
* 다건 인쇄 팝업 URL을 조회합니다.
|
|
2050
2372
|
*
|
|
@@ -2147,6 +2469,12 @@ interface TaxInvoiceService {
|
|
|
2147
2469
|
* Compat: `getSendToNTSConfig`
|
|
2148
2470
|
*/
|
|
2149
2471
|
getSendToNTSSettings(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceSendToNationalTaxServiceSetting>;
|
|
2472
|
+
/**
|
|
2473
|
+
* ASP사업자 유통메일 공개키 응답을 조회합니다. 공개되지 않은 응답 구조는 원문으로 보존합니다.
|
|
2474
|
+
*
|
|
2475
|
+
* Compat: `getEmailPublicKeys`
|
|
2476
|
+
*/
|
|
2477
|
+
getEmailPublicKeys(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceEmailPublicKeys>;
|
|
2150
2478
|
/**
|
|
2151
2479
|
* 인증서 등록 URL을 조회합니다.
|
|
2152
2480
|
*
|
|
@@ -2171,57 +2499,2270 @@ interface TaxInvoiceService {
|
|
|
2171
2499
|
* Compat: `getTaxCertInfo`
|
|
2172
2500
|
*/
|
|
2173
2501
|
getTaxCertificateInfo(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceTaxCertificateInfo>;
|
|
2502
|
+
/** 세금계산서 서비스 과금정보를 조회합니다. Compat: `getChargeInfo` */
|
|
2503
|
+
getChargeInfo(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceChargeInfo>;
|
|
2504
|
+
/** 세금계산서 발행단가를 문자열로 조회합니다. Compat: `getUnitCost` */
|
|
2505
|
+
getUnitCost(input: TaxInvoiceBusinessRequest): Promise<TaxInvoiceUnitCost>;
|
|
2174
2506
|
}
|
|
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
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
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
|
+
* 생략하면 해당 헤더를 보내지 않습니다.
|
|
4762
|
+
*/
|
|
4763
|
+
acceptLanguage?: string;
|
|
4764
|
+
/**
|
|
4765
|
+
* 요청 타임아웃(ms)입니다. 1 이상 2147483647 이하의 정수를 사용합니다.
|
|
2225
4766
|
*
|
|
2226
4767
|
* @default 180_000 (3분)
|
|
2227
4768
|
*/
|
|
@@ -2236,21 +4777,37 @@ interface PopbillClientConfig {
|
|
|
2236
4777
|
*/
|
|
2237
4778
|
interface PopbillClient {
|
|
2238
4779
|
services: {
|
|
4780
|
+
common: CommonService;
|
|
2239
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;
|
|
2240
4793
|
};
|
|
2241
4794
|
}
|
|
2242
|
-
//#endregion
|
|
2243
|
-
//#region src/client/index.d.ts
|
|
2244
4795
|
/**
|
|
2245
4796
|
* modern Popbill client를 생성합니다.
|
|
2246
4797
|
*/
|
|
2247
|
-
declare function createPopbillClient(config: PopbillClientConfig): PopbillClient;
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
declare const
|
|
2255
|
-
|
|
2256
|
-
export
|
|
4798
|
+
export declare function createPopbillClient(config: PopbillClientConfig): PopbillClient;
|
|
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 };
|
|
4813
|
+
//# sourceMappingURL=index.d.mts.map
|