@connextable/popbill-spec 1.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/LICENSE.md +19 -0
- package/dist/get-info-PUH8dt9f.d.mts +2061 -0
- package/dist/index-BT0kSY7Q.d.mts +2431 -0
- package/dist/index.d.mts +437 -0
- package/dist/index.mjs +6693 -0
- package/dist/tax-invoice/index.d.mts +3 -0
- package/dist/tax-invoice/index.mjs +239 -0
- package/dist/tax-invoice/shims/index.d.mts +2 -0
- package/dist/tax-invoice/shims/index.mjs +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,2061 @@
|
|
|
1
|
+
//#region src/headers.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Popbill Common Header Raw Types
|
|
4
|
+
*
|
|
5
|
+
* Source
|
|
6
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/getting-started/authorization
|
|
7
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/getting-started/etc-header
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Bearer 인증 헤더 값(raw).
|
|
11
|
+
*
|
|
12
|
+
* HTTP 헤더 `Authorization: Bearer {session_token}` 형식으로 전달한다.
|
|
13
|
+
*/
|
|
14
|
+
type PopbillAuthorizationHeader = `Bearer ${string}`;
|
|
15
|
+
/**
|
|
16
|
+
* 응답 압축 설정 헤더 값(raw).
|
|
17
|
+
*
|
|
18
|
+
* 문서 기본값은 `gzip`이며, 런타임 호환을 위해 일반 문자열 확장을 허용한다.
|
|
19
|
+
*/
|
|
20
|
+
interface PopbillAcceptEncodingMap {
|
|
21
|
+
/**
|
|
22
|
+
* Gzip 압축 응답.
|
|
23
|
+
*/
|
|
24
|
+
Gzip: 'gzip';
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 응답 압축 설정 헤더 값(raw).
|
|
28
|
+
*
|
|
29
|
+
* 문서 기본값은 `gzip`이며, 런타임 호환을 위해 일반 문자열 확장을 허용한다.
|
|
30
|
+
*/
|
|
31
|
+
type PopbillAcceptEncoding = PopbillAcceptEncodingMap[keyof PopbillAcceptEncodingMap] | (string & {});
|
|
32
|
+
/**
|
|
33
|
+
* 팝빌 응답 메시지 기본 언어(raw).
|
|
34
|
+
*
|
|
35
|
+
* `Accept-Language` 헤더를 생략하면 기본값 `ko-KR`(한글)로 응답한다.
|
|
36
|
+
*/
|
|
37
|
+
declare const PopbillDefaultResponseLanguage: "ko-KR";
|
|
38
|
+
/**
|
|
39
|
+
* 응답 언어 설정 헤더 값(raw).
|
|
40
|
+
*
|
|
41
|
+
* 기본은 `ko-KR`이며, `en-US`를 설정하면 영문 응답을 요청할 수 있다.
|
|
42
|
+
*/
|
|
43
|
+
interface PopbillAcceptLanguageMap {
|
|
44
|
+
/**
|
|
45
|
+
* 한글 응답.
|
|
46
|
+
*/
|
|
47
|
+
KoreanKorea: typeof PopbillDefaultResponseLanguage;
|
|
48
|
+
/**
|
|
49
|
+
* 영문 응답.
|
|
50
|
+
*/
|
|
51
|
+
EnglishUnitedStates: 'en-US';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 응답 언어 설정 헤더 값 상수(raw).
|
|
55
|
+
*/
|
|
56
|
+
declare const PopbillAcceptLanguages: {
|
|
57
|
+
readonly KoreanKorea: "ko-KR";
|
|
58
|
+
readonly EnglishUnitedStates: "en-US";
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 응답 언어 설정 헤더 값(raw).
|
|
62
|
+
*
|
|
63
|
+
* `Accept-Language` 헤더는 선택사항이다.
|
|
64
|
+
* 헤더를 명시할 때는 `ko-KR` 또는 `en-US`를 사용한다.
|
|
65
|
+
*/
|
|
66
|
+
type PopbillAcceptLanguage = (typeof PopbillAcceptLanguages)[keyof typeof PopbillAcceptLanguages];
|
|
67
|
+
/**
|
|
68
|
+
* X-HTTP-Method-Override 헤더 값(raw).
|
|
69
|
+
*/
|
|
70
|
+
declare const PopbillHttpMethodOverrides: {
|
|
71
|
+
readonly BulkIssue: "BULKISSUE";
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* X-HTTP-Method-Override 헤더 값(raw).
|
|
75
|
+
*/
|
|
76
|
+
type PopbillHttpMethodOverride = (typeof PopbillHttpMethodOverrides)[keyof typeof PopbillHttpMethodOverrides];
|
|
77
|
+
/**
|
|
78
|
+
* 팝빌 공통 API 요청 헤더(raw).
|
|
79
|
+
*/
|
|
80
|
+
interface PopbillApiRequestHeaders {
|
|
81
|
+
/**
|
|
82
|
+
* 세션 토큰 기반 Bearer 인증 헤더.
|
|
83
|
+
*/
|
|
84
|
+
Authorization?: PopbillAuthorizationHeader;
|
|
85
|
+
/**
|
|
86
|
+
* 응답 압축 방식.
|
|
87
|
+
*
|
|
88
|
+
* HTTP 헤더 `Accept-Encoding`으로 전달한다.
|
|
89
|
+
*/
|
|
90
|
+
AcceptEncoding?: PopbillAcceptEncoding;
|
|
91
|
+
/**
|
|
92
|
+
* 응답 메시지 언어.
|
|
93
|
+
*
|
|
94
|
+
* HTTP 헤더 `Accept-Language`로 전달한다.
|
|
95
|
+
* 헤더를 생략하면 기본 한글(`ko-KR`) 응답을 사용한다.
|
|
96
|
+
*/
|
|
97
|
+
AcceptLanguage?: PopbillAcceptLanguage;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* 대량발행(Bulk) 요청 헤더(raw).
|
|
101
|
+
*/
|
|
102
|
+
interface PopbillBulkIssueRequestHeaders extends PopbillApiRequestHeaders {
|
|
103
|
+
/**
|
|
104
|
+
* 대량발행 API 메서드 오버라이드.
|
|
105
|
+
*
|
|
106
|
+
* HTTP 헤더 `X-HTTP-Method-Override`로 전달한다.
|
|
107
|
+
*/
|
|
108
|
+
MethodOverride: PopbillHttpMethodOverride;
|
|
109
|
+
/**
|
|
110
|
+
* 요청 본문 무결성 검증용 Message Digest.
|
|
111
|
+
*
|
|
112
|
+
* HTTP 헤더 `X-PB-MESSAGE-DIGEST`로 전달한다.
|
|
113
|
+
*/
|
|
114
|
+
MessageDigest: string;
|
|
115
|
+
/**
|
|
116
|
+
* 파트너가 할당한 제출아이디.
|
|
117
|
+
*
|
|
118
|
+
* HTTP 헤더 `X-PB-SUBMIT-ID`로 전달한다.
|
|
119
|
+
*/
|
|
120
|
+
SubmitID: string;
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/request.d.ts
|
|
124
|
+
/**
|
|
125
|
+
* Popbill Common Request Raw Types
|
|
126
|
+
*/
|
|
127
|
+
/**
|
|
128
|
+
* 팝빌 API 공통 요청(raw).
|
|
129
|
+
*
|
|
130
|
+
* `path/query/body/headers`를 전송 위치별로 분리하여 명세한다.
|
|
131
|
+
*/
|
|
132
|
+
interface PopbillApiRequest<TPath = never, TQuery = never, TBody = never, THeaders = PopbillApiRequestHeaders> {
|
|
133
|
+
/**
|
|
134
|
+
* 팝빌회원 사업자번호.
|
|
135
|
+
*
|
|
136
|
+
* `-` 없이 입력한다.
|
|
137
|
+
*/
|
|
138
|
+
corpNum: string;
|
|
139
|
+
/**
|
|
140
|
+
* 팝빌회원 아이디.
|
|
141
|
+
*/
|
|
142
|
+
userId?: string;
|
|
143
|
+
/**
|
|
144
|
+
* URL path 파라미터(raw).
|
|
145
|
+
*/
|
|
146
|
+
path?: TPath;
|
|
147
|
+
/**
|
|
148
|
+
* URL query 파라미터(raw).
|
|
149
|
+
*/
|
|
150
|
+
query?: TQuery;
|
|
151
|
+
/**
|
|
152
|
+
* HTTP 요청 본문(raw).
|
|
153
|
+
*/
|
|
154
|
+
body?: TBody;
|
|
155
|
+
/**
|
|
156
|
+
* HTTP 요청 헤더(raw).
|
|
157
|
+
*/
|
|
158
|
+
headers?: THeaders;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* 요청 타입의 특정 필드를 필수화하는 유틸리티 타입.
|
|
162
|
+
*/
|
|
163
|
+
type PopbillRequireRequestFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: T[P] };
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/tax-invoice/common.d.ts
|
|
166
|
+
/**
|
|
167
|
+
* Tax Invoice Common Raw Types
|
|
168
|
+
*
|
|
169
|
+
* Source
|
|
170
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/info
|
|
171
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/issue
|
|
172
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/etc
|
|
173
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/cert
|
|
174
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/response-code
|
|
175
|
+
*/
|
|
176
|
+
/**
|
|
177
|
+
* Taxinvoice 공통 요청 헤더(raw).
|
|
178
|
+
*
|
|
179
|
+
* Source
|
|
180
|
+
* - https://developers.popbill.com/api-reference/cashbill/getting-started/authorization
|
|
181
|
+
* - https://developers.popbill.com/api-reference/cashbill/getting-started/etc-header
|
|
182
|
+
*/
|
|
183
|
+
type TaxInvoiceApiRequestHeaders = PopbillApiRequestHeaders;
|
|
184
|
+
/**
|
|
185
|
+
* Taxinvoice 대량발행(Bulk) 요청 헤더(raw).
|
|
186
|
+
*/
|
|
187
|
+
type TaxInvoiceBulkIssueRequestHeaders = PopbillBulkIssueRequestHeaders;
|
|
188
|
+
/**
|
|
189
|
+
* Taxinvoice 공통 요청(raw).
|
|
190
|
+
*/
|
|
191
|
+
type TaxInvoiceApiRequest<TPath = never, TQuery = never, TBody = never, THeaders = TaxInvoiceApiRequestHeaders> = PopbillApiRequest<TPath, TQuery, TBody, THeaders>;
|
|
192
|
+
/**
|
|
193
|
+
* Taxinvoice 요청 타입의 특정 필드를 필수화하는 유틸리티 타입.
|
|
194
|
+
*/
|
|
195
|
+
type TaxInvoiceRequireRequestFields<T, K extends keyof T> = PopbillRequireRequestFields<T, K>;
|
|
196
|
+
/**
|
|
197
|
+
* Taxinvoice API 공통 처리결과(raw).
|
|
198
|
+
*/
|
|
199
|
+
interface TaxInvoiceApiResponseBase {
|
|
200
|
+
/**
|
|
201
|
+
* 처리 결과코드.
|
|
202
|
+
*/
|
|
203
|
+
code: number;
|
|
204
|
+
/**
|
|
205
|
+
* 처리 결과메시지.
|
|
206
|
+
*/
|
|
207
|
+
message: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* 문서번호 유형(raw).
|
|
211
|
+
*
|
|
212
|
+
* - `SELL`: 매출
|
|
213
|
+
* - `BUY`: 매입
|
|
214
|
+
* - `TRUSTEE`: 위수탁
|
|
215
|
+
*
|
|
216
|
+
* Source
|
|
217
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/info#Search
|
|
218
|
+
*/
|
|
219
|
+
interface TaxInvoiceMgtKeyTypeMap {
|
|
220
|
+
/**
|
|
221
|
+
* 매출 문서번호 유형.
|
|
222
|
+
*/
|
|
223
|
+
Sell: 'SELL';
|
|
224
|
+
/**
|
|
225
|
+
* 매입 문서번호 유형.
|
|
226
|
+
*/
|
|
227
|
+
Buy: 'BUY';
|
|
228
|
+
/**
|
|
229
|
+
* 위수탁 문서번호 유형.
|
|
230
|
+
*/
|
|
231
|
+
Trustee: 'TRUSTEE';
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* 문서번호 유형(raw).
|
|
235
|
+
*/
|
|
236
|
+
type TaxInvoiceMgtKeyType = TaxInvoiceMgtKeyTypeMap[keyof TaxInvoiceMgtKeyTypeMap];
|
|
237
|
+
/**
|
|
238
|
+
* 과세 형태(raw).
|
|
239
|
+
*
|
|
240
|
+
* - `과세`: 일반 과세
|
|
241
|
+
* - `영세`: 영세율
|
|
242
|
+
* - `면세`: 면세
|
|
243
|
+
*/
|
|
244
|
+
interface TaxTypeMap {
|
|
245
|
+
/**
|
|
246
|
+
* 일반 과세.
|
|
247
|
+
*/
|
|
248
|
+
Taxable: '과세';
|
|
249
|
+
/**
|
|
250
|
+
* 영세율.
|
|
251
|
+
*/
|
|
252
|
+
ZeroRated: '영세';
|
|
253
|
+
/**
|
|
254
|
+
* 면세.
|
|
255
|
+
*/
|
|
256
|
+
Exempt: '면세';
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* 과세 형태(raw).
|
|
260
|
+
*/
|
|
261
|
+
type TaxType = TaxTypeMap[keyof TaxTypeMap];
|
|
262
|
+
/**
|
|
263
|
+
* 발행 형태(raw).
|
|
264
|
+
*
|
|
265
|
+
* - `정발행`: 공급자 중심 발행
|
|
266
|
+
* - `역발행`: 공급받는자 요청 기반 발행
|
|
267
|
+
* - `위수탁`: 수탁자 대행 발행
|
|
268
|
+
*/
|
|
269
|
+
interface IssueTypeMap {
|
|
270
|
+
/**
|
|
271
|
+
* 정발행.
|
|
272
|
+
*/
|
|
273
|
+
Normal: '정발행';
|
|
274
|
+
/**
|
|
275
|
+
* 역발행.
|
|
276
|
+
*/
|
|
277
|
+
Reverse: '역발행';
|
|
278
|
+
/**
|
|
279
|
+
* 위수탁 발행.
|
|
280
|
+
*/
|
|
281
|
+
Trustee: '위수탁';
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* 발행 형태(raw).
|
|
285
|
+
*/
|
|
286
|
+
type IssueType = IssueTypeMap[keyof IssueTypeMap];
|
|
287
|
+
/**
|
|
288
|
+
* 영수/청구 유형(raw).
|
|
289
|
+
*
|
|
290
|
+
* - `영수`: 영수 목적
|
|
291
|
+
* - `청구`: 청구 목적
|
|
292
|
+
* - `없음`: 구분 없음
|
|
293
|
+
*/
|
|
294
|
+
interface PurposeTypeMap {
|
|
295
|
+
/**
|
|
296
|
+
* 영수 목적.
|
|
297
|
+
*/
|
|
298
|
+
Receipt: '영수';
|
|
299
|
+
/**
|
|
300
|
+
* 청구 목적.
|
|
301
|
+
*/
|
|
302
|
+
Claim: '청구';
|
|
303
|
+
/**
|
|
304
|
+
* 구분 없음.
|
|
305
|
+
*/
|
|
306
|
+
None: '없음';
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* 영수/청구 유형(raw).
|
|
310
|
+
*/
|
|
311
|
+
type PurposeType = PurposeTypeMap[keyof PurposeTypeMap];
|
|
312
|
+
/**
|
|
313
|
+
* 공급받는자 유형(raw).
|
|
314
|
+
*
|
|
315
|
+
* - `사업자`: 사업자 등록번호 기준
|
|
316
|
+
* - `개인`: 주민등록번호 기준
|
|
317
|
+
* - `외국인`: 외국인 식별번호 기준
|
|
318
|
+
*/
|
|
319
|
+
interface InvoiceeTypeMap {
|
|
320
|
+
/**
|
|
321
|
+
* 사업자.
|
|
322
|
+
*/
|
|
323
|
+
Corporation: '사업자';
|
|
324
|
+
/**
|
|
325
|
+
* 개인.
|
|
326
|
+
*/
|
|
327
|
+
Individual: '개인';
|
|
328
|
+
/**
|
|
329
|
+
* 외국인.
|
|
330
|
+
*/
|
|
331
|
+
Foreigner: '외국인';
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* 공급받는자 유형(raw).
|
|
335
|
+
*/
|
|
336
|
+
type InvoiceeType = InvoiceeTypeMap[keyof InvoiceeTypeMap];
|
|
337
|
+
/**
|
|
338
|
+
* 휴폐업 상태(raw).
|
|
339
|
+
*
|
|
340
|
+
* - `null`: 미확인
|
|
341
|
+
* - `0`: 미등록
|
|
342
|
+
* - `1`: 사업중
|
|
343
|
+
* - `2`: 폐업
|
|
344
|
+
* - `3`: 휴업
|
|
345
|
+
* - `4`: 확인실패
|
|
346
|
+
*/
|
|
347
|
+
interface CloseDownStateMap {
|
|
348
|
+
/**
|
|
349
|
+
* 미확인.
|
|
350
|
+
*/
|
|
351
|
+
NotChecked: null;
|
|
352
|
+
/**
|
|
353
|
+
* 미등록.
|
|
354
|
+
*/
|
|
355
|
+
NotRegistered: 0;
|
|
356
|
+
/**
|
|
357
|
+
* 사업중.
|
|
358
|
+
*/
|
|
359
|
+
Operating: 1;
|
|
360
|
+
/**
|
|
361
|
+
* 폐업.
|
|
362
|
+
*/
|
|
363
|
+
Closed: 2;
|
|
364
|
+
/**
|
|
365
|
+
* 휴업.
|
|
366
|
+
*/
|
|
367
|
+
Suspended: 3;
|
|
368
|
+
/**
|
|
369
|
+
* 확인실패.
|
|
370
|
+
*/
|
|
371
|
+
CheckFailed: 4;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* 휴폐업 상태(raw).
|
|
375
|
+
*/
|
|
376
|
+
type CloseDownState = CloseDownStateMap[keyof CloseDownStateMap];
|
|
377
|
+
/**
|
|
378
|
+
* Search API 휴폐업상태 필터(raw).
|
|
379
|
+
*
|
|
380
|
+
* - `N`: 미확인
|
|
381
|
+
* - `0`: 미등록
|
|
382
|
+
* - `1`: 사업중
|
|
383
|
+
* - `2`: 폐업
|
|
384
|
+
* - `3`: 휴업
|
|
385
|
+
* - `4`: 확인실패
|
|
386
|
+
*
|
|
387
|
+
* Source
|
|
388
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/info#Search
|
|
389
|
+
*/
|
|
390
|
+
interface TaxInvoiceSearchCloseDownStateMap {
|
|
391
|
+
/**
|
|
392
|
+
* 미확인.
|
|
393
|
+
*/
|
|
394
|
+
NotChecked: 'N';
|
|
395
|
+
/**
|
|
396
|
+
* 미등록.
|
|
397
|
+
*/
|
|
398
|
+
NotRegistered: '0';
|
|
399
|
+
/**
|
|
400
|
+
* 사업중.
|
|
401
|
+
*/
|
|
402
|
+
Operating: '1';
|
|
403
|
+
/**
|
|
404
|
+
* 폐업.
|
|
405
|
+
*/
|
|
406
|
+
Closed: '2';
|
|
407
|
+
/**
|
|
408
|
+
* 휴업.
|
|
409
|
+
*/
|
|
410
|
+
Suspended: '3';
|
|
411
|
+
/**
|
|
412
|
+
* 확인실패.
|
|
413
|
+
*/
|
|
414
|
+
CheckFailed: '4';
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Search API 휴폐업상태 필터(raw).
|
|
418
|
+
*/
|
|
419
|
+
type TaxInvoiceSearchCloseDownState = TaxInvoiceSearchCloseDownStateMap[keyof TaxInvoiceSearchCloseDownStateMap];
|
|
420
|
+
/**
|
|
421
|
+
* 검색일자 유형(raw).
|
|
422
|
+
*
|
|
423
|
+
* - `R`: 등록일자
|
|
424
|
+
* - `W`: 작성일자
|
|
425
|
+
* - `I`: 발행일자
|
|
426
|
+
*
|
|
427
|
+
* Source
|
|
428
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/info#Search
|
|
429
|
+
*/
|
|
430
|
+
interface TaxInvoiceDateTypeMap {
|
|
431
|
+
/**
|
|
432
|
+
* 등록일자.
|
|
433
|
+
*/
|
|
434
|
+
Registered: 'R';
|
|
435
|
+
/**
|
|
436
|
+
* 작성일자.
|
|
437
|
+
*/
|
|
438
|
+
Written: 'W';
|
|
439
|
+
/**
|
|
440
|
+
* 발행일자.
|
|
441
|
+
*/
|
|
442
|
+
Issued: 'I';
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* 검색일자 유형(raw).
|
|
446
|
+
*/
|
|
447
|
+
type TaxInvoiceDateType = TaxInvoiceDateTypeMap[keyof TaxInvoiceDateTypeMap];
|
|
448
|
+
/**
|
|
449
|
+
* 정렬 방향(raw).
|
|
450
|
+
*
|
|
451
|
+
* - `D`: 내림차순
|
|
452
|
+
* - `A`: 오름차순
|
|
453
|
+
*/
|
|
454
|
+
interface TaxInvoiceSortOrderMap {
|
|
455
|
+
/**
|
|
456
|
+
* 내림차순.
|
|
457
|
+
*/
|
|
458
|
+
Descending: 'D';
|
|
459
|
+
/**
|
|
460
|
+
* 오름차순.
|
|
461
|
+
*/
|
|
462
|
+
Ascending: 'A';
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* 정렬 방향(raw).
|
|
466
|
+
*/
|
|
467
|
+
type TaxInvoiceSortOrder = TaxInvoiceSortOrderMap[keyof TaxInvoiceSortOrderMap];
|
|
468
|
+
/**
|
|
469
|
+
* 수정세금계산서 사유코드(raw).
|
|
470
|
+
*
|
|
471
|
+
* - `1`: 기재사항 착오정정
|
|
472
|
+
* - `2`: 공급가액 변동
|
|
473
|
+
* - `3`: 환입
|
|
474
|
+
* - `4`: 계약의 해제
|
|
475
|
+
* - `5`: 내국신용장 사후개설
|
|
476
|
+
* - `6`: 착오에 의한 이중발급
|
|
477
|
+
*/
|
|
478
|
+
interface TaxInvoiceModifyCodeMap {
|
|
479
|
+
/**
|
|
480
|
+
* 기재사항 착오정정.
|
|
481
|
+
*/
|
|
482
|
+
CorrectingEntryErrors: 1;
|
|
483
|
+
/**
|
|
484
|
+
* 공급가액 변동.
|
|
485
|
+
*/
|
|
486
|
+
SupplyAmountAdjustment: 2;
|
|
487
|
+
/**
|
|
488
|
+
* 환입.
|
|
489
|
+
*/
|
|
490
|
+
ReturnedGoods: 3;
|
|
491
|
+
/**
|
|
492
|
+
* 계약의 해제.
|
|
493
|
+
*/
|
|
494
|
+
ContractCancellation: 4;
|
|
495
|
+
/**
|
|
496
|
+
* 내국신용장 사후개설.
|
|
497
|
+
*/
|
|
498
|
+
LocalLetterOfCreditOpenedAfterSupply: 5;
|
|
499
|
+
/**
|
|
500
|
+
* 착오에 의한 이중발급.
|
|
501
|
+
*/
|
|
502
|
+
DuplicateIssuanceByMistake: 6;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* 수정세금계산서 사유코드(raw).
|
|
506
|
+
*/
|
|
507
|
+
type TaxInvoiceModifyCode = TaxInvoiceModifyCodeMap[keyof TaxInvoiceModifyCodeMap];
|
|
508
|
+
/**
|
|
509
|
+
* 이메일 설정 구분(raw).
|
|
510
|
+
*
|
|
511
|
+
* Source
|
|
512
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/etc#UpdateEmailConfig
|
|
513
|
+
*
|
|
514
|
+
* 문서/legacy 공통 사용값:
|
|
515
|
+
* - `ETC_CERT_EXPIRATION`: 인증서 만료 안내
|
|
516
|
+
* - `TAX_CANCEL_ISSUE`: 발행취소
|
|
517
|
+
* - `TAX_CANCEL_REQUEST`: 역발행 요청 취소
|
|
518
|
+
* - `TAX_CHECK`: 수신확인
|
|
519
|
+
* - `TAX_CLOSEDOWN`: 휴폐업 알림
|
|
520
|
+
* - `TAX_ISSUE`: 발행완료(수신자)
|
|
521
|
+
* - `TAX_ISSUE_INVOICER`: 발행완료(공급자)
|
|
522
|
+
* - `TAX_NTSFAIL_INVOICER`: 국세청 전송실패(공급자)
|
|
523
|
+
* - `TAX_REFUSE`: 역발행 거부
|
|
524
|
+
* - `TAX_REQUEST`: 역발행 요청
|
|
525
|
+
* - `TAX_REVERSE_ISSUE`: 역발행 완료
|
|
526
|
+
* - `TAX_TRUST_CANCEL_ISSUE`: 위수탁 발행취소
|
|
527
|
+
* - `TAX_TRUST_CANCEL_ISSUE_INVOICER`: 위수탁 발행취소(공급자)
|
|
528
|
+
* - `TAX_TRUST_ISSUE`: 위수탁 발행완료
|
|
529
|
+
* - `TAX_TRUST_ISSUE_INVOICER`: 위수탁 발행완료(공급자)
|
|
530
|
+
* - `TAX_TRUST_ISSUE_TRUSTEE`: 위수탁 발행완료(수탁자)
|
|
531
|
+
* - `TAX_ACCEPT`: 역발행 승인(legacy)
|
|
532
|
+
* - `TAX_DENY`: 역발행 거부(legacy)
|
|
533
|
+
* - `TAX_CANCEL_SEND`: 발행안함 취소(legacy)
|
|
534
|
+
*/
|
|
535
|
+
interface TaxInvoiceEmailTypeMap {
|
|
536
|
+
/**
|
|
537
|
+
* 인증서 만료 안내.
|
|
538
|
+
*/
|
|
539
|
+
EtcCertExpiration: 'ETC_CERT_EXPIRATION';
|
|
540
|
+
/**
|
|
541
|
+
* 발행취소.
|
|
542
|
+
*/
|
|
543
|
+
TaxCancelIssue: 'TAX_CANCEL_ISSUE';
|
|
544
|
+
/**
|
|
545
|
+
* 역발행 요청 취소.
|
|
546
|
+
*/
|
|
547
|
+
TaxCancelRequest: 'TAX_CANCEL_REQUEST';
|
|
548
|
+
/**
|
|
549
|
+
* 수신확인.
|
|
550
|
+
*/
|
|
551
|
+
TaxCheck: 'TAX_CHECK';
|
|
552
|
+
/**
|
|
553
|
+
* 휴폐업 알림.
|
|
554
|
+
*/
|
|
555
|
+
TaxClosedown: 'TAX_CLOSEDOWN';
|
|
556
|
+
/**
|
|
557
|
+
* 발행완료(수신자).
|
|
558
|
+
*/
|
|
559
|
+
TaxIssue: 'TAX_ISSUE';
|
|
560
|
+
/**
|
|
561
|
+
* 발행완료(공급자).
|
|
562
|
+
*/
|
|
563
|
+
TaxIssueInvoicer: 'TAX_ISSUE_INVOICER';
|
|
564
|
+
/**
|
|
565
|
+
* 국세청 전송실패(공급자).
|
|
566
|
+
*/
|
|
567
|
+
TaxNtsFailInvoicer: 'TAX_NTSFAIL_INVOICER';
|
|
568
|
+
/**
|
|
569
|
+
* 역발행 거부.
|
|
570
|
+
*/
|
|
571
|
+
TaxRefuse: 'TAX_REFUSE';
|
|
572
|
+
/**
|
|
573
|
+
* 역발행 요청.
|
|
574
|
+
*/
|
|
575
|
+
TaxRequest: 'TAX_REQUEST';
|
|
576
|
+
/**
|
|
577
|
+
* 역발행 완료.
|
|
578
|
+
*/
|
|
579
|
+
TaxReverseIssue: 'TAX_REVERSE_ISSUE';
|
|
580
|
+
/**
|
|
581
|
+
* 위수탁 발행취소.
|
|
582
|
+
*/
|
|
583
|
+
TaxTrustCancelIssue: 'TAX_TRUST_CANCEL_ISSUE';
|
|
584
|
+
/**
|
|
585
|
+
* 위수탁 발행취소(공급자).
|
|
586
|
+
*/
|
|
587
|
+
TaxTrustCancelIssueInvoicer: 'TAX_TRUST_CANCEL_ISSUE_INVOICER';
|
|
588
|
+
/**
|
|
589
|
+
* 위수탁 발행완료.
|
|
590
|
+
*/
|
|
591
|
+
TaxTrustIssue: 'TAX_TRUST_ISSUE';
|
|
592
|
+
/**
|
|
593
|
+
* 위수탁 발행완료(공급자).
|
|
594
|
+
*/
|
|
595
|
+
TaxTrustIssueInvoicer: 'TAX_TRUST_ISSUE_INVOICER';
|
|
596
|
+
/**
|
|
597
|
+
* 위수탁 발행완료(수탁자).
|
|
598
|
+
*/
|
|
599
|
+
TaxTrustIssueTrustee: 'TAX_TRUST_ISSUE_TRUSTEE';
|
|
600
|
+
/**
|
|
601
|
+
* 역발행 승인(legacy).
|
|
602
|
+
*/
|
|
603
|
+
TaxAccept: 'TAX_ACCEPT';
|
|
604
|
+
/**
|
|
605
|
+
* 역발행 거부(legacy).
|
|
606
|
+
*/
|
|
607
|
+
TaxDeny: 'TAX_DENY';
|
|
608
|
+
/**
|
|
609
|
+
* 발행안함 취소(legacy).
|
|
610
|
+
*/
|
|
611
|
+
TaxCancelSend: 'TAX_CANCEL_SEND';
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* 이메일 설정 구분(raw).
|
|
615
|
+
*/
|
|
616
|
+
type TaxInvoiceEmailType = TaxInvoiceEmailTypeMap[keyof TaxInvoiceEmailTypeMap];
|
|
617
|
+
/**
|
|
618
|
+
* 작성일/일시 문자열(raw).
|
|
619
|
+
*/
|
|
620
|
+
type TaxInvoiceDateString = string;
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region src/tax-invoice/response-codes.d.ts
|
|
623
|
+
/**
|
|
624
|
+
* Tax Invoice Response / Status Codes
|
|
625
|
+
*
|
|
626
|
+
* Source
|
|
627
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/response-code
|
|
628
|
+
*/
|
|
629
|
+
/**
|
|
630
|
+
* 세금계산서 상태코드 정의.
|
|
631
|
+
*/
|
|
632
|
+
interface TaxInvoiceStateCodeDefinition {
|
|
633
|
+
code: number;
|
|
634
|
+
message: string;
|
|
635
|
+
description: string;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* 국세청 결과코드 정의.
|
|
639
|
+
*/
|
|
640
|
+
interface TaxInvoiceNtsResultCodeDefinition {
|
|
641
|
+
code: string;
|
|
642
|
+
description: string;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* 세금계산서 상태코드(`stateCode`) 상수.
|
|
646
|
+
*
|
|
647
|
+
* 문서 분류(정발행/역발행/위수탁) 기준으로 구분한다.
|
|
648
|
+
*/
|
|
649
|
+
declare const TAX_INVOICE_STATE_CODES: {
|
|
650
|
+
/**
|
|
651
|
+
* 정발행 상태코드.
|
|
652
|
+
*/
|
|
653
|
+
readonly REGULAR: {
|
|
654
|
+
readonly TEMPORARY_SAVED: {
|
|
655
|
+
readonly code: 100;
|
|
656
|
+
readonly message: "임시저장";
|
|
657
|
+
readonly description: "공급자가 작성한 세금계산서가 임시저장된 상태";
|
|
658
|
+
};
|
|
659
|
+
readonly ISSUED: {
|
|
660
|
+
readonly code: 300;
|
|
661
|
+
readonly message: "발행완료";
|
|
662
|
+
readonly description: "전자세금계산서 발행이 완료된 상태";
|
|
663
|
+
};
|
|
664
|
+
readonly BEFORE_NTS_TRANSMISSION: {
|
|
665
|
+
readonly code: 301;
|
|
666
|
+
readonly message: "전송전";
|
|
667
|
+
readonly description: "팝빌에서 국세청 전송을 준비중인 상태";
|
|
668
|
+
};
|
|
669
|
+
readonly PENDING_NTS_TRANSMISSION: {
|
|
670
|
+
readonly code: 302;
|
|
671
|
+
readonly message: "전송대기";
|
|
672
|
+
readonly description: "팝빌에서 국세청 전송을 대기중인 상태";
|
|
673
|
+
};
|
|
674
|
+
readonly TRANSMITTING_TO_NTS: {
|
|
675
|
+
readonly code: 303;
|
|
676
|
+
readonly message: "전송중";
|
|
677
|
+
readonly description: "팝빌에서 국세청 전송을 진행중인 상태";
|
|
678
|
+
};
|
|
679
|
+
readonly NTS_TRANSMISSION_SUCCESS: {
|
|
680
|
+
readonly code: 304;
|
|
681
|
+
readonly message: "전송성공";
|
|
682
|
+
readonly description: "전자세금계산서 국세청 신고가 정상적으로 완료된 상태";
|
|
683
|
+
};
|
|
684
|
+
readonly NTS_TRANSMISSION_FAILED: {
|
|
685
|
+
readonly code: 305;
|
|
686
|
+
readonly message: "전송실패";
|
|
687
|
+
readonly description: "국세청이 특정사유로 전자세금계산서 신고를 반려한 상태";
|
|
688
|
+
};
|
|
689
|
+
readonly ISSUE_CANCELED: {
|
|
690
|
+
readonly code: 600;
|
|
691
|
+
readonly message: "발행취소";
|
|
692
|
+
readonly description: "공급자가 발행완료된 전자세금계산서를 취소한 상태 (국세청 전송 대상에서 제외)";
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
/**
|
|
696
|
+
* 역발행 상태코드.
|
|
697
|
+
*/
|
|
698
|
+
readonly REVERSE: {
|
|
699
|
+
readonly TEMPORARY_SAVED: {
|
|
700
|
+
readonly code: 100;
|
|
701
|
+
readonly message: "임시저장";
|
|
702
|
+
readonly description: "공급받는자가 작성한 세금계산서가 임시저장된 상태";
|
|
703
|
+
};
|
|
704
|
+
readonly REVERSE_ISSUE_PENDING: {
|
|
705
|
+
readonly code: 200;
|
|
706
|
+
readonly message: "(역)발행대기";
|
|
707
|
+
readonly description: "공급자에게 전자세금계산서 (역)발행을 요청한 상태";
|
|
708
|
+
};
|
|
709
|
+
readonly ISSUED: {
|
|
710
|
+
readonly code: 300;
|
|
711
|
+
readonly message: "발행완료";
|
|
712
|
+
readonly description: "전자세금계산서 발행이 완료된 상태";
|
|
713
|
+
};
|
|
714
|
+
readonly BEFORE_NTS_TRANSMISSION: {
|
|
715
|
+
readonly code: 301;
|
|
716
|
+
readonly message: "전송전";
|
|
717
|
+
readonly description: "팝빌에서 국세청 전송을 준비중인 상태";
|
|
718
|
+
};
|
|
719
|
+
readonly PENDING_NTS_TRANSMISSION: {
|
|
720
|
+
readonly code: 302;
|
|
721
|
+
readonly message: "전송대기";
|
|
722
|
+
readonly description: "팝빌에서 국세청 전송을 대기중인 상태";
|
|
723
|
+
};
|
|
724
|
+
readonly TRANSMITTING_TO_NTS: {
|
|
725
|
+
readonly code: 303;
|
|
726
|
+
readonly message: "전송중";
|
|
727
|
+
readonly description: "팝빌에서 국세청 전송을 진행중인 상태";
|
|
728
|
+
};
|
|
729
|
+
readonly NTS_TRANSMISSION_SUCCESS: {
|
|
730
|
+
readonly code: 304;
|
|
731
|
+
readonly message: "전송성공";
|
|
732
|
+
readonly description: "전자세금계산서 국세청 신고가 정상적으로 완료된 상태";
|
|
733
|
+
};
|
|
734
|
+
readonly NTS_TRANSMISSION_FAILED: {
|
|
735
|
+
readonly code: 305;
|
|
736
|
+
readonly message: "전송실패";
|
|
737
|
+
readonly description: "국세청이 특정사유로 전자세금계산서 신고를 반려한 상태";
|
|
738
|
+
};
|
|
739
|
+
readonly REVERSE_ISSUE_REJECTED: {
|
|
740
|
+
readonly code: 400;
|
|
741
|
+
readonly message: "(역)발행거부";
|
|
742
|
+
readonly description: "공급자가 (역)발행대기 세금계산서를 거부한 상태";
|
|
743
|
+
};
|
|
744
|
+
readonly REVERSE_ISSUE_CANCELED: {
|
|
745
|
+
readonly code: 500;
|
|
746
|
+
readonly message: "(역)발행취소";
|
|
747
|
+
readonly description: "공급받는자가 (역)발행대기 세금계산서를 취소한 상태";
|
|
748
|
+
};
|
|
749
|
+
readonly ISSUE_CANCELED: {
|
|
750
|
+
readonly code: 600;
|
|
751
|
+
readonly message: "발행취소";
|
|
752
|
+
readonly description: "공급자가 발행완료된 전자세금계산서를 취소한 상태 (국세청 전송 대상에서 제외)";
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
* 위수탁 상태코드.
|
|
757
|
+
*/
|
|
758
|
+
readonly TRUSTEE: {
|
|
759
|
+
readonly TEMPORARY_SAVED: {
|
|
760
|
+
readonly code: 100;
|
|
761
|
+
readonly message: "임시저장";
|
|
762
|
+
readonly description: "수탁자가 작성한 세금계산서가 임시저장된 상태";
|
|
763
|
+
};
|
|
764
|
+
readonly ISSUED: {
|
|
765
|
+
readonly code: 300;
|
|
766
|
+
readonly message: "발행완료";
|
|
767
|
+
readonly description: "전자세금계산서 발행이 완료된 상태";
|
|
768
|
+
};
|
|
769
|
+
readonly BEFORE_NTS_TRANSMISSION: {
|
|
770
|
+
readonly code: 301;
|
|
771
|
+
readonly message: "전송전";
|
|
772
|
+
readonly description: "팝빌에서 국세청 전송을 준비중인 상태";
|
|
773
|
+
};
|
|
774
|
+
readonly PENDING_NTS_TRANSMISSION: {
|
|
775
|
+
readonly code: 302;
|
|
776
|
+
readonly message: "전송대기";
|
|
777
|
+
readonly description: "팝빌에서 국세청 전송을 대기중인 상태";
|
|
778
|
+
};
|
|
779
|
+
readonly TRANSMITTING_TO_NTS: {
|
|
780
|
+
readonly code: 303;
|
|
781
|
+
readonly message: "전송중";
|
|
782
|
+
readonly description: "팝빌에서 국세청 전송을 진행중인 상태";
|
|
783
|
+
};
|
|
784
|
+
readonly NTS_TRANSMISSION_SUCCESS: {
|
|
785
|
+
readonly code: 304;
|
|
786
|
+
readonly message: "전송성공";
|
|
787
|
+
readonly description: "전자세금계산서 국세청 신고가 정상적으로 완료된 상태";
|
|
788
|
+
};
|
|
789
|
+
readonly NTS_TRANSMISSION_FAILED: {
|
|
790
|
+
readonly code: 305;
|
|
791
|
+
readonly message: "전송실패";
|
|
792
|
+
readonly description: "국세청이 특정사유로 전자세금계산서 신고를 반려한 상태";
|
|
793
|
+
};
|
|
794
|
+
readonly ISSUE_CANCELED: {
|
|
795
|
+
readonly code: 600;
|
|
796
|
+
readonly message: "발행취소";
|
|
797
|
+
readonly description: "수탁자가 발행완료된 전자세금계산서를 취소한 상태 (국세청 전송 대상에서 제외)";
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
/**
|
|
802
|
+
* 국세청 결과코드(`ntssendErrCode`) 상수.
|
|
803
|
+
*
|
|
804
|
+
* - `SUCCESS`: 팝빌 상태코드 `304`(전송성공)에 해당
|
|
805
|
+
* - `FAILURE`: 팝빌 상태코드 `305`(전송실패)에 해당
|
|
806
|
+
*/
|
|
807
|
+
declare const TAX_INVOICE_NTS_RESULT_CODES: {
|
|
808
|
+
readonly SUCCESS: {
|
|
809
|
+
readonly SUC001: {
|
|
810
|
+
readonly code: "SUC001";
|
|
811
|
+
readonly description: "국세청의 검증 과정을 통과하여 전자세금계산서 신고가 정상적으로 완료된 경우";
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
readonly FAILURE: {
|
|
815
|
+
readonly SYN002: {
|
|
816
|
+
readonly code: "SYN002";
|
|
817
|
+
readonly description: "전자세금계산서의 전자서명이 유효하지 않은 경우";
|
|
818
|
+
};
|
|
819
|
+
readonly SYN003: {
|
|
820
|
+
readonly code: "SYN003";
|
|
821
|
+
readonly description: "국세청에 중복된 국세청승인번호가 존재하는 경우";
|
|
822
|
+
};
|
|
823
|
+
readonly SYN004: {
|
|
824
|
+
readonly code: "SYN004";
|
|
825
|
+
readonly description: "전자세금계산서의 국세청 신고 형식이 유효하지 않은 경우";
|
|
826
|
+
};
|
|
827
|
+
readonly ERR001: {
|
|
828
|
+
readonly code: "ERR001";
|
|
829
|
+
readonly description: "공급자의 사업자번호가 국세청에 등록되지 않은 경우";
|
|
830
|
+
};
|
|
831
|
+
readonly ERR002: {
|
|
832
|
+
readonly code: "ERR002";
|
|
833
|
+
readonly description: "공급받는자의 사업자번호 또는 주민등록번호가 국세청에 등록되지 않은 경우";
|
|
834
|
+
};
|
|
835
|
+
readonly ERR003: {
|
|
836
|
+
readonly code: "ERR003";
|
|
837
|
+
readonly description: "수탁자의 사업자번호가 국세청에 등록되지 않은 경우";
|
|
838
|
+
};
|
|
839
|
+
readonly ERR005: {
|
|
840
|
+
readonly code: "ERR005";
|
|
841
|
+
readonly description: "발행일시가 유효하지 않는 경우";
|
|
842
|
+
};
|
|
843
|
+
readonly ERR006: {
|
|
844
|
+
readonly code: "ERR006";
|
|
845
|
+
readonly description: "작성일자가 유효하지 않는 경우";
|
|
846
|
+
};
|
|
847
|
+
readonly ERR007: {
|
|
848
|
+
readonly code: "ERR007";
|
|
849
|
+
readonly description: "공급가액 또는 세액이 유효하지 않은 경우";
|
|
850
|
+
};
|
|
851
|
+
readonly ERR008: {
|
|
852
|
+
readonly code: "ERR008";
|
|
853
|
+
readonly description: "수정세금계산서의 수정 사유코드가 유효하지 않은 경우";
|
|
854
|
+
};
|
|
855
|
+
readonly ERR009: {
|
|
856
|
+
readonly code: "ERR009";
|
|
857
|
+
readonly description: "폐업된 사업자번호로 폐업신고일자 이후 전자세금계산서를 발행한 경우";
|
|
858
|
+
};
|
|
859
|
+
readonly ERR010: {
|
|
860
|
+
readonly code: "ERR010";
|
|
861
|
+
readonly description: "시스템사업자의 등록번호가 국세청승인번호와 동일하지 않은 경우";
|
|
862
|
+
};
|
|
863
|
+
readonly ERR011: {
|
|
864
|
+
readonly code: "ERR011";
|
|
865
|
+
readonly description: "수정세금계산서의 당초 국세청승인번호가 존재하지 않는 경우";
|
|
866
|
+
};
|
|
867
|
+
readonly ERR099: {
|
|
868
|
+
readonly code: "ERR099";
|
|
869
|
+
readonly description: "사전에 정의되지 않은 기타오류가 발생한 경우";
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
/**
|
|
874
|
+
* 하위 호환용 응답코드 네임스페이스.
|
|
875
|
+
*
|
|
876
|
+
* `stateCode`와 `ntssendErrCode`를 함께 노출한다.
|
|
877
|
+
*/
|
|
878
|
+
declare const TAX_INVOICE_RESPONSE_CODES: {
|
|
879
|
+
readonly state: {
|
|
880
|
+
/**
|
|
881
|
+
* 정발행 상태코드.
|
|
882
|
+
*/
|
|
883
|
+
readonly REGULAR: {
|
|
884
|
+
readonly TEMPORARY_SAVED: {
|
|
885
|
+
readonly code: 100;
|
|
886
|
+
readonly message: "임시저장";
|
|
887
|
+
readonly description: "공급자가 작성한 세금계산서가 임시저장된 상태";
|
|
888
|
+
};
|
|
889
|
+
readonly ISSUED: {
|
|
890
|
+
readonly code: 300;
|
|
891
|
+
readonly message: "발행완료";
|
|
892
|
+
readonly description: "전자세금계산서 발행이 완료된 상태";
|
|
893
|
+
};
|
|
894
|
+
readonly BEFORE_NTS_TRANSMISSION: {
|
|
895
|
+
readonly code: 301;
|
|
896
|
+
readonly message: "전송전";
|
|
897
|
+
readonly description: "팝빌에서 국세청 전송을 준비중인 상태";
|
|
898
|
+
};
|
|
899
|
+
readonly PENDING_NTS_TRANSMISSION: {
|
|
900
|
+
readonly code: 302;
|
|
901
|
+
readonly message: "전송대기";
|
|
902
|
+
readonly description: "팝빌에서 국세청 전송을 대기중인 상태";
|
|
903
|
+
};
|
|
904
|
+
readonly TRANSMITTING_TO_NTS: {
|
|
905
|
+
readonly code: 303;
|
|
906
|
+
readonly message: "전송중";
|
|
907
|
+
readonly description: "팝빌에서 국세청 전송을 진행중인 상태";
|
|
908
|
+
};
|
|
909
|
+
readonly NTS_TRANSMISSION_SUCCESS: {
|
|
910
|
+
readonly code: 304;
|
|
911
|
+
readonly message: "전송성공";
|
|
912
|
+
readonly description: "전자세금계산서 국세청 신고가 정상적으로 완료된 상태";
|
|
913
|
+
};
|
|
914
|
+
readonly NTS_TRANSMISSION_FAILED: {
|
|
915
|
+
readonly code: 305;
|
|
916
|
+
readonly message: "전송실패";
|
|
917
|
+
readonly description: "국세청이 특정사유로 전자세금계산서 신고를 반려한 상태";
|
|
918
|
+
};
|
|
919
|
+
readonly ISSUE_CANCELED: {
|
|
920
|
+
readonly code: 600;
|
|
921
|
+
readonly message: "발행취소";
|
|
922
|
+
readonly description: "공급자가 발행완료된 전자세금계산서를 취소한 상태 (국세청 전송 대상에서 제외)";
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
/**
|
|
926
|
+
* 역발행 상태코드.
|
|
927
|
+
*/
|
|
928
|
+
readonly REVERSE: {
|
|
929
|
+
readonly TEMPORARY_SAVED: {
|
|
930
|
+
readonly code: 100;
|
|
931
|
+
readonly message: "임시저장";
|
|
932
|
+
readonly description: "공급받는자가 작성한 세금계산서가 임시저장된 상태";
|
|
933
|
+
};
|
|
934
|
+
readonly REVERSE_ISSUE_PENDING: {
|
|
935
|
+
readonly code: 200;
|
|
936
|
+
readonly message: "(역)발행대기";
|
|
937
|
+
readonly description: "공급자에게 전자세금계산서 (역)발행을 요청한 상태";
|
|
938
|
+
};
|
|
939
|
+
readonly ISSUED: {
|
|
940
|
+
readonly code: 300;
|
|
941
|
+
readonly message: "발행완료";
|
|
942
|
+
readonly description: "전자세금계산서 발행이 완료된 상태";
|
|
943
|
+
};
|
|
944
|
+
readonly BEFORE_NTS_TRANSMISSION: {
|
|
945
|
+
readonly code: 301;
|
|
946
|
+
readonly message: "전송전";
|
|
947
|
+
readonly description: "팝빌에서 국세청 전송을 준비중인 상태";
|
|
948
|
+
};
|
|
949
|
+
readonly PENDING_NTS_TRANSMISSION: {
|
|
950
|
+
readonly code: 302;
|
|
951
|
+
readonly message: "전송대기";
|
|
952
|
+
readonly description: "팝빌에서 국세청 전송을 대기중인 상태";
|
|
953
|
+
};
|
|
954
|
+
readonly TRANSMITTING_TO_NTS: {
|
|
955
|
+
readonly code: 303;
|
|
956
|
+
readonly message: "전송중";
|
|
957
|
+
readonly description: "팝빌에서 국세청 전송을 진행중인 상태";
|
|
958
|
+
};
|
|
959
|
+
readonly NTS_TRANSMISSION_SUCCESS: {
|
|
960
|
+
readonly code: 304;
|
|
961
|
+
readonly message: "전송성공";
|
|
962
|
+
readonly description: "전자세금계산서 국세청 신고가 정상적으로 완료된 상태";
|
|
963
|
+
};
|
|
964
|
+
readonly NTS_TRANSMISSION_FAILED: {
|
|
965
|
+
readonly code: 305;
|
|
966
|
+
readonly message: "전송실패";
|
|
967
|
+
readonly description: "국세청이 특정사유로 전자세금계산서 신고를 반려한 상태";
|
|
968
|
+
};
|
|
969
|
+
readonly REVERSE_ISSUE_REJECTED: {
|
|
970
|
+
readonly code: 400;
|
|
971
|
+
readonly message: "(역)발행거부";
|
|
972
|
+
readonly description: "공급자가 (역)발행대기 세금계산서를 거부한 상태";
|
|
973
|
+
};
|
|
974
|
+
readonly REVERSE_ISSUE_CANCELED: {
|
|
975
|
+
readonly code: 500;
|
|
976
|
+
readonly message: "(역)발행취소";
|
|
977
|
+
readonly description: "공급받는자가 (역)발행대기 세금계산서를 취소한 상태";
|
|
978
|
+
};
|
|
979
|
+
readonly ISSUE_CANCELED: {
|
|
980
|
+
readonly code: 600;
|
|
981
|
+
readonly message: "발행취소";
|
|
982
|
+
readonly description: "공급자가 발행완료된 전자세금계산서를 취소한 상태 (국세청 전송 대상에서 제외)";
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
/**
|
|
986
|
+
* 위수탁 상태코드.
|
|
987
|
+
*/
|
|
988
|
+
readonly TRUSTEE: {
|
|
989
|
+
readonly TEMPORARY_SAVED: {
|
|
990
|
+
readonly code: 100;
|
|
991
|
+
readonly message: "임시저장";
|
|
992
|
+
readonly description: "수탁자가 작성한 세금계산서가 임시저장된 상태";
|
|
993
|
+
};
|
|
994
|
+
readonly ISSUED: {
|
|
995
|
+
readonly code: 300;
|
|
996
|
+
readonly message: "발행완료";
|
|
997
|
+
readonly description: "전자세금계산서 발행이 완료된 상태";
|
|
998
|
+
};
|
|
999
|
+
readonly BEFORE_NTS_TRANSMISSION: {
|
|
1000
|
+
readonly code: 301;
|
|
1001
|
+
readonly message: "전송전";
|
|
1002
|
+
readonly description: "팝빌에서 국세청 전송을 준비중인 상태";
|
|
1003
|
+
};
|
|
1004
|
+
readonly PENDING_NTS_TRANSMISSION: {
|
|
1005
|
+
readonly code: 302;
|
|
1006
|
+
readonly message: "전송대기";
|
|
1007
|
+
readonly description: "팝빌에서 국세청 전송을 대기중인 상태";
|
|
1008
|
+
};
|
|
1009
|
+
readonly TRANSMITTING_TO_NTS: {
|
|
1010
|
+
readonly code: 303;
|
|
1011
|
+
readonly message: "전송중";
|
|
1012
|
+
readonly description: "팝빌에서 국세청 전송을 진행중인 상태";
|
|
1013
|
+
};
|
|
1014
|
+
readonly NTS_TRANSMISSION_SUCCESS: {
|
|
1015
|
+
readonly code: 304;
|
|
1016
|
+
readonly message: "전송성공";
|
|
1017
|
+
readonly description: "전자세금계산서 국세청 신고가 정상적으로 완료된 상태";
|
|
1018
|
+
};
|
|
1019
|
+
readonly NTS_TRANSMISSION_FAILED: {
|
|
1020
|
+
readonly code: 305;
|
|
1021
|
+
readonly message: "전송실패";
|
|
1022
|
+
readonly description: "국세청이 특정사유로 전자세금계산서 신고를 반려한 상태";
|
|
1023
|
+
};
|
|
1024
|
+
readonly ISSUE_CANCELED: {
|
|
1025
|
+
readonly code: 600;
|
|
1026
|
+
readonly message: "발행취소";
|
|
1027
|
+
readonly description: "수탁자가 발행완료된 전자세금계산서를 취소한 상태 (국세청 전송 대상에서 제외)";
|
|
1028
|
+
};
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
readonly ntsResult: {
|
|
1032
|
+
readonly SUCCESS: {
|
|
1033
|
+
readonly SUC001: {
|
|
1034
|
+
readonly code: "SUC001";
|
|
1035
|
+
readonly description: "국세청의 검증 과정을 통과하여 전자세금계산서 신고가 정상적으로 완료된 경우";
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
readonly FAILURE: {
|
|
1039
|
+
readonly SYN002: {
|
|
1040
|
+
readonly code: "SYN002";
|
|
1041
|
+
readonly description: "전자세금계산서의 전자서명이 유효하지 않은 경우";
|
|
1042
|
+
};
|
|
1043
|
+
readonly SYN003: {
|
|
1044
|
+
readonly code: "SYN003";
|
|
1045
|
+
readonly description: "국세청에 중복된 국세청승인번호가 존재하는 경우";
|
|
1046
|
+
};
|
|
1047
|
+
readonly SYN004: {
|
|
1048
|
+
readonly code: "SYN004";
|
|
1049
|
+
readonly description: "전자세금계산서의 국세청 신고 형식이 유효하지 않은 경우";
|
|
1050
|
+
};
|
|
1051
|
+
readonly ERR001: {
|
|
1052
|
+
readonly code: "ERR001";
|
|
1053
|
+
readonly description: "공급자의 사업자번호가 국세청에 등록되지 않은 경우";
|
|
1054
|
+
};
|
|
1055
|
+
readonly ERR002: {
|
|
1056
|
+
readonly code: "ERR002";
|
|
1057
|
+
readonly description: "공급받는자의 사업자번호 또는 주민등록번호가 국세청에 등록되지 않은 경우";
|
|
1058
|
+
};
|
|
1059
|
+
readonly ERR003: {
|
|
1060
|
+
readonly code: "ERR003";
|
|
1061
|
+
readonly description: "수탁자의 사업자번호가 국세청에 등록되지 않은 경우";
|
|
1062
|
+
};
|
|
1063
|
+
readonly ERR005: {
|
|
1064
|
+
readonly code: "ERR005";
|
|
1065
|
+
readonly description: "발행일시가 유효하지 않는 경우";
|
|
1066
|
+
};
|
|
1067
|
+
readonly ERR006: {
|
|
1068
|
+
readonly code: "ERR006";
|
|
1069
|
+
readonly description: "작성일자가 유효하지 않는 경우";
|
|
1070
|
+
};
|
|
1071
|
+
readonly ERR007: {
|
|
1072
|
+
readonly code: "ERR007";
|
|
1073
|
+
readonly description: "공급가액 또는 세액이 유효하지 않은 경우";
|
|
1074
|
+
};
|
|
1075
|
+
readonly ERR008: {
|
|
1076
|
+
readonly code: "ERR008";
|
|
1077
|
+
readonly description: "수정세금계산서의 수정 사유코드가 유효하지 않은 경우";
|
|
1078
|
+
};
|
|
1079
|
+
readonly ERR009: {
|
|
1080
|
+
readonly code: "ERR009";
|
|
1081
|
+
readonly description: "폐업된 사업자번호로 폐업신고일자 이후 전자세금계산서를 발행한 경우";
|
|
1082
|
+
};
|
|
1083
|
+
readonly ERR010: {
|
|
1084
|
+
readonly code: "ERR010";
|
|
1085
|
+
readonly description: "시스템사업자의 등록번호가 국세청승인번호와 동일하지 않은 경우";
|
|
1086
|
+
};
|
|
1087
|
+
readonly ERR011: {
|
|
1088
|
+
readonly code: "ERR011";
|
|
1089
|
+
readonly description: "수정세금계산서의 당초 국세청승인번호가 존재하지 않는 경우";
|
|
1090
|
+
};
|
|
1091
|
+
readonly ERR099: {
|
|
1092
|
+
readonly code: "ERR099";
|
|
1093
|
+
readonly description: "사전에 정의되지 않은 기타오류가 발생한 경우";
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
type TaxInvoiceResponseCodeGroups = keyof typeof TAX_INVOICE_RESPONSE_CODES;
|
|
1099
|
+
type ValueOf<T> = T[keyof T];
|
|
1100
|
+
type TaxInvoiceStateCodeDefinitionValue = ValueOf<ValueOf<typeof TAX_INVOICE_STATE_CODES>>;
|
|
1101
|
+
type TaxInvoiceStateCode = TaxInvoiceStateCodeDefinitionValue['code'];
|
|
1102
|
+
type TaxInvoiceNtsResultCodeDefinitionValue = ValueOf<ValueOf<typeof TAX_INVOICE_NTS_RESULT_CODES>>;
|
|
1103
|
+
type TaxInvoiceNtsResultCode = TaxInvoiceNtsResultCodeDefinitionValue['code'];
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region src/tax-invoice/models.d.ts
|
|
1106
|
+
type ExtensibleTaxInvoiceStateCode = TaxInvoiceStateCode | (number & {}) | (string & {});
|
|
1107
|
+
type ExtensibleTaxInvoiceNtsResultCode = TaxInvoiceNtsResultCode | (string & {});
|
|
1108
|
+
/**
|
|
1109
|
+
* Tax Invoice Domain Raw Models
|
|
1110
|
+
*
|
|
1111
|
+
* Source
|
|
1112
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/issue
|
|
1113
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/info
|
|
1114
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/etc
|
|
1115
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/cert
|
|
1116
|
+
*/
|
|
1117
|
+
/**
|
|
1118
|
+
* 세금계산서 상세항목(raw).
|
|
1119
|
+
*/
|
|
1120
|
+
interface TaxInvoiceDetailApiModel {
|
|
1121
|
+
/**
|
|
1122
|
+
* 일련번호.
|
|
1123
|
+
*
|
|
1124
|
+
* detailList 항목에서 필수 입력값.
|
|
1125
|
+
*/
|
|
1126
|
+
serialNum: number;
|
|
1127
|
+
/**
|
|
1128
|
+
* 거래일자
|
|
1129
|
+
*/
|
|
1130
|
+
purchaseDT?: TaxInvoiceDateString;
|
|
1131
|
+
/**
|
|
1132
|
+
* 품목명
|
|
1133
|
+
*/
|
|
1134
|
+
itemName?: string;
|
|
1135
|
+
/**
|
|
1136
|
+
* 규격
|
|
1137
|
+
*/
|
|
1138
|
+
spec?: string;
|
|
1139
|
+
/**
|
|
1140
|
+
* 수량
|
|
1141
|
+
*/
|
|
1142
|
+
qty?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* 단가
|
|
1145
|
+
*/
|
|
1146
|
+
unitCost?: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* 공급가액
|
|
1149
|
+
*/
|
|
1150
|
+
supplyCost?: string;
|
|
1151
|
+
/**
|
|
1152
|
+
* 세액
|
|
1153
|
+
*/
|
|
1154
|
+
tax?: string;
|
|
1155
|
+
/**
|
|
1156
|
+
* 비고
|
|
1157
|
+
*/
|
|
1158
|
+
remark?: string;
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* 세금계산서 추가 담당자(raw).
|
|
1162
|
+
*/
|
|
1163
|
+
interface TaxInvoiceAdditionalContactApiModel {
|
|
1164
|
+
/**
|
|
1165
|
+
* 일련번호.
|
|
1166
|
+
*
|
|
1167
|
+
* addContactList 항목에서 필수 입력값.
|
|
1168
|
+
*/
|
|
1169
|
+
serialNum: number;
|
|
1170
|
+
/**
|
|
1171
|
+
* 담당자명
|
|
1172
|
+
*/
|
|
1173
|
+
contactName?: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* 이메일주소.
|
|
1176
|
+
*
|
|
1177
|
+
* addContactList 항목에서 필수 입력값.
|
|
1178
|
+
*/
|
|
1179
|
+
email: string;
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* 세금계산서 문서 본문(raw).
|
|
1183
|
+
*/
|
|
1184
|
+
interface TaxInvoiceApiModel {
|
|
1185
|
+
/**
|
|
1186
|
+
* 거래명세서 동시작성 여부
|
|
1187
|
+
*/
|
|
1188
|
+
writeSpecification?: boolean;
|
|
1189
|
+
/**
|
|
1190
|
+
* 작성일자
|
|
1191
|
+
*/
|
|
1192
|
+
writeDate?: TaxInvoiceDateString;
|
|
1193
|
+
/**
|
|
1194
|
+
* 정과금/역과금
|
|
1195
|
+
*/
|
|
1196
|
+
chargeDirection?: string;
|
|
1197
|
+
/**
|
|
1198
|
+
* 발행형태 [정발행,역발행,위수탁]
|
|
1199
|
+
*/
|
|
1200
|
+
issueType?: IssueType;
|
|
1201
|
+
/**
|
|
1202
|
+
* 영수/청구
|
|
1203
|
+
*/
|
|
1204
|
+
purposeType?: PurposeType;
|
|
1205
|
+
/**
|
|
1206
|
+
* 발행시기
|
|
1207
|
+
*/
|
|
1208
|
+
issueTiming?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* 과세형태 [과세,영세,면세]
|
|
1211
|
+
*/
|
|
1212
|
+
taxType?: TaxType;
|
|
1213
|
+
/**
|
|
1214
|
+
* 공급자 사업자번호
|
|
1215
|
+
*/
|
|
1216
|
+
invoicerCorpNum?: string;
|
|
1217
|
+
/**
|
|
1218
|
+
* [공급자] 문서번호
|
|
1219
|
+
*/
|
|
1220
|
+
invoicerMgtKey?: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* 공급자 종사업장 식별번호, 필요시 기재. 형식은 숫자 4자리.
|
|
1223
|
+
*/
|
|
1224
|
+
invoicerTaxRegID?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* 공급자 상호
|
|
1227
|
+
*/
|
|
1228
|
+
invoicerCorpName?: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* 공급자 대표자 성명
|
|
1231
|
+
*/
|
|
1232
|
+
invoicerCEOName?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* 공급자 주소
|
|
1235
|
+
*/
|
|
1236
|
+
invoicerAddr?: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* 공급자 업태
|
|
1239
|
+
*/
|
|
1240
|
+
invoicerBizClass?: string;
|
|
1241
|
+
/**
|
|
1242
|
+
* 공급자 종목
|
|
1243
|
+
*/
|
|
1244
|
+
invoicerBizType?: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* 공급자 담당자명
|
|
1247
|
+
*/
|
|
1248
|
+
invoicerContactName?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* 공급자 담당자 연락처
|
|
1251
|
+
*/
|
|
1252
|
+
invoicerTEL?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* 공급자 담당자 휴대폰번호
|
|
1255
|
+
*/
|
|
1256
|
+
invoicerHP?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* 공급자 담당자 이메일
|
|
1259
|
+
*/
|
|
1260
|
+
invoicerEmail?: string;
|
|
1261
|
+
/**
|
|
1262
|
+
* 공급자 담당자 휴대폰번호 문자발송 여부
|
|
1263
|
+
*/
|
|
1264
|
+
invoicerSMSSendYN?: boolean | string;
|
|
1265
|
+
/**
|
|
1266
|
+
* 공급자 인쇄여부
|
|
1267
|
+
*/
|
|
1268
|
+
invoicerPrintYN?: boolean | string;
|
|
1269
|
+
/**
|
|
1270
|
+
* 공급자 주민번호
|
|
1271
|
+
*/
|
|
1272
|
+
invoicerRDN?: string;
|
|
1273
|
+
/**
|
|
1274
|
+
* 공급자 외국인번호
|
|
1275
|
+
*/
|
|
1276
|
+
invoicerOLN?: string;
|
|
1277
|
+
/**
|
|
1278
|
+
* 공급자 종사업자번호
|
|
1279
|
+
*/
|
|
1280
|
+
invoicerTaxNum?: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* 공급자 종사업자 일련번호
|
|
1283
|
+
*/
|
|
1284
|
+
invoicerPSerialNum?: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* 공급자 법인구분 [개인, 법인]
|
|
1287
|
+
*/
|
|
1288
|
+
invoicerCorpCls?: string;
|
|
1289
|
+
/**
|
|
1290
|
+
* 공급자 부서명
|
|
1291
|
+
*/
|
|
1292
|
+
invoicerDeptName?: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* 공급받는자 구분 [사업자,개인,외국인]
|
|
1295
|
+
*/
|
|
1296
|
+
invoiceeType?: InvoiceeType;
|
|
1297
|
+
/**
|
|
1298
|
+
* 공급받는자 사업자번호 [개인:주민등록번호 / 외국인:외국인등록번호]
|
|
1299
|
+
*/
|
|
1300
|
+
invoiceeCorpNum?: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* [공급받는자] 문서번호
|
|
1303
|
+
*/
|
|
1304
|
+
invoiceeMgtKey?: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* 공급받는자 종사업장 식별번호, 필요시 기재. 형식은 숫자 4자리.
|
|
1307
|
+
*/
|
|
1308
|
+
invoiceeTaxRegID?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* 공급받는자 상호
|
|
1311
|
+
*/
|
|
1312
|
+
invoiceeCorpName?: string;
|
|
1313
|
+
/**
|
|
1314
|
+
* 공급받는자 대표자 성명
|
|
1315
|
+
*/
|
|
1316
|
+
invoiceeCEOName?: string;
|
|
1317
|
+
/**
|
|
1318
|
+
* 공급받는자 주소
|
|
1319
|
+
*/
|
|
1320
|
+
invoiceeAddr?: string;
|
|
1321
|
+
/**
|
|
1322
|
+
* 공급받는자 업태
|
|
1323
|
+
*/
|
|
1324
|
+
invoiceeBizClass?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* 공급받는자 종목
|
|
1327
|
+
*/
|
|
1328
|
+
invoiceeBizType?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* 공급받는자 담당자명
|
|
1331
|
+
*/
|
|
1332
|
+
invoiceeContactName1?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* 공급받는자 담당자 연락처
|
|
1335
|
+
*/
|
|
1336
|
+
invoiceeTEL1?: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* 공급받는자 담당자 휴대폰번호
|
|
1339
|
+
*/
|
|
1340
|
+
invoiceeHP1?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* 공급받는자 담당자 이메일
|
|
1343
|
+
*/
|
|
1344
|
+
invoiceeEmail1?: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* 공급받는자 예비 담당자명
|
|
1347
|
+
*/
|
|
1348
|
+
invoiceeContactName2?: string;
|
|
1349
|
+
/**
|
|
1350
|
+
* 공급받는자 예비 담당자 연락처
|
|
1351
|
+
*/
|
|
1352
|
+
invoiceeTEL2?: string;
|
|
1353
|
+
/**
|
|
1354
|
+
* 공급받는자 예비 담당자 휴대폰번호
|
|
1355
|
+
*/
|
|
1356
|
+
invoiceeHP2?: string;
|
|
1357
|
+
/**
|
|
1358
|
+
* 공급받는자 예비 담당자 이메일
|
|
1359
|
+
*/
|
|
1360
|
+
invoiceeEmail2?: string;
|
|
1361
|
+
/**
|
|
1362
|
+
* 공급받는자 담당자 휴대폰번호 문자발송 여부
|
|
1363
|
+
*/
|
|
1364
|
+
invoiceeSMSSendYN?: boolean | string;
|
|
1365
|
+
/**
|
|
1366
|
+
* 공급받는자 인쇄여부
|
|
1367
|
+
*/
|
|
1368
|
+
invoiceePrintYN?: boolean | string;
|
|
1369
|
+
/**
|
|
1370
|
+
* 공급받는자 주민번호
|
|
1371
|
+
*/
|
|
1372
|
+
invoiceeRDN?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* 공급받는자 외국인번호
|
|
1375
|
+
*/
|
|
1376
|
+
invoiceeOLN?: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* 공급받는자 종사업자번호
|
|
1379
|
+
*/
|
|
1380
|
+
invoiceeTaxNum?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* 공급받는자 종사업자 일련번호
|
|
1383
|
+
*/
|
|
1384
|
+
invoiceePSerialNum?: string;
|
|
1385
|
+
/**
|
|
1386
|
+
* 공급받는자 법인구분 [개인, 법인]
|
|
1387
|
+
*/
|
|
1388
|
+
invoiceeCorpCls?: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* 공급받는자 부서명
|
|
1391
|
+
*/
|
|
1392
|
+
invoiceeDeptName1?: string;
|
|
1393
|
+
/**
|
|
1394
|
+
* 공급받는자 예비부서명
|
|
1395
|
+
*/
|
|
1396
|
+
invoiceeDeptName2?: string;
|
|
1397
|
+
/**
|
|
1398
|
+
* 공급받는자 휴폐업 상태 [null,0,1,2,3,4]
|
|
1399
|
+
*/
|
|
1400
|
+
closeDownState?: CloseDownState;
|
|
1401
|
+
/**
|
|
1402
|
+
* 공급받는자 휴폐업일자
|
|
1403
|
+
*/
|
|
1404
|
+
closeDownStateDate?: TaxInvoiceDateString;
|
|
1405
|
+
/**
|
|
1406
|
+
* 수탁자 사업자번호
|
|
1407
|
+
*/
|
|
1408
|
+
trusteeCorpNum?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* [수탁자] 문서번호
|
|
1411
|
+
*/
|
|
1412
|
+
trusteeMgtKey?: string;
|
|
1413
|
+
/**
|
|
1414
|
+
* 수탁자 종사업장 식별번호, 필요시 기재. 형식은 숫자 4자리.
|
|
1415
|
+
*/
|
|
1416
|
+
trusteeTaxRegID?: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* 수탁자 상호
|
|
1419
|
+
*/
|
|
1420
|
+
trusteeCorpName?: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* 수탁자 대표자 성명
|
|
1423
|
+
*/
|
|
1424
|
+
trusteeCEOName?: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* 수탁자 주소
|
|
1427
|
+
*/
|
|
1428
|
+
trusteeAddr?: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* 수탁자 업태
|
|
1431
|
+
*/
|
|
1432
|
+
trusteeBizClass?: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* 수탁자 종목
|
|
1435
|
+
*/
|
|
1436
|
+
trusteeBizType?: string;
|
|
1437
|
+
/**
|
|
1438
|
+
* 수탁자 담당자명
|
|
1439
|
+
*/
|
|
1440
|
+
trusteeContactName?: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* 수탁자 담당자 연락처
|
|
1443
|
+
*/
|
|
1444
|
+
trusteeTEL?: string;
|
|
1445
|
+
/**
|
|
1446
|
+
* 수탁자 담당자 휴대폰번호
|
|
1447
|
+
*/
|
|
1448
|
+
trusteeHP?: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* 수탁자 담당자 이메일
|
|
1451
|
+
*/
|
|
1452
|
+
trusteeEmail?: string;
|
|
1453
|
+
/**
|
|
1454
|
+
* 수탁자 담당자 휴대폰번호 문자발송 여부
|
|
1455
|
+
*/
|
|
1456
|
+
trusteeSMSSendYN?: boolean | string;
|
|
1457
|
+
/**
|
|
1458
|
+
* 수탁자 인쇄여부
|
|
1459
|
+
*/
|
|
1460
|
+
trusteePrintYN?: boolean | string;
|
|
1461
|
+
/**
|
|
1462
|
+
* 수탁자 주민번호
|
|
1463
|
+
*/
|
|
1464
|
+
trusteeRDN?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* 수탁자 외국인번호
|
|
1467
|
+
*/
|
|
1468
|
+
trusteeOLN?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* 수탁자 종사업자번호
|
|
1471
|
+
*/
|
|
1472
|
+
trusteeTaxNum?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* 수탁자 종사업자 일련번호
|
|
1475
|
+
*/
|
|
1476
|
+
trusteePSerialNum?: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* 수탁자 법인구분 [개인, 법인]
|
|
1479
|
+
*/
|
|
1480
|
+
trusteeCorpCls?: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* 수탁자 부서명
|
|
1483
|
+
*/
|
|
1484
|
+
trusteeDeptName?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* 세액합계
|
|
1487
|
+
*/
|
|
1488
|
+
taxTotal?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* 공급가액 합계
|
|
1491
|
+
*/
|
|
1492
|
+
supplyCostTotal?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* 합계금액 합계
|
|
1495
|
+
*/
|
|
1496
|
+
totalAmount?: string;
|
|
1497
|
+
/**
|
|
1498
|
+
* 수정세금계산서 사유코드
|
|
1499
|
+
*/
|
|
1500
|
+
modifyCode?: TaxInvoiceModifyCode;
|
|
1501
|
+
/**
|
|
1502
|
+
* 수정세금계산서 작성시 원본세금계산서의 국세청승인번호
|
|
1503
|
+
*/
|
|
1504
|
+
orgNTSConfirmNum?: string;
|
|
1505
|
+
/**
|
|
1506
|
+
* 기재상 일련번호
|
|
1507
|
+
*/
|
|
1508
|
+
serialNum?: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* 현금
|
|
1511
|
+
*/
|
|
1512
|
+
cash?: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* 수표
|
|
1515
|
+
*/
|
|
1516
|
+
chkBill?: string;
|
|
1517
|
+
/**
|
|
1518
|
+
* 어음
|
|
1519
|
+
*/
|
|
1520
|
+
note?: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* 외상
|
|
1523
|
+
*/
|
|
1524
|
+
credit?: string;
|
|
1525
|
+
/**
|
|
1526
|
+
* 비고1
|
|
1527
|
+
*/
|
|
1528
|
+
remark1?: string;
|
|
1529
|
+
/**
|
|
1530
|
+
* 비고2
|
|
1531
|
+
*/
|
|
1532
|
+
remark2?: string;
|
|
1533
|
+
/**
|
|
1534
|
+
* 비고3
|
|
1535
|
+
*/
|
|
1536
|
+
remark3?: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* 책번호 '권' 항목
|
|
1539
|
+
*/
|
|
1540
|
+
kwon?: string;
|
|
1541
|
+
/**
|
|
1542
|
+
* 책번호 '호' 항목
|
|
1543
|
+
*/
|
|
1544
|
+
ho?: string;
|
|
1545
|
+
/**
|
|
1546
|
+
* 사업자등록증 이미지 첨부여부
|
|
1547
|
+
*/
|
|
1548
|
+
businessLicenseYN?: boolean | string;
|
|
1549
|
+
/**
|
|
1550
|
+
* 통장사본 이미지 첨부여부
|
|
1551
|
+
*/
|
|
1552
|
+
bankBookYN?: boolean | string;
|
|
1553
|
+
/**
|
|
1554
|
+
* 발행일시
|
|
1555
|
+
*/
|
|
1556
|
+
issueDT?: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* 상태코드
|
|
1559
|
+
*/
|
|
1560
|
+
stateCode?: ExtensibleTaxInvoiceStateCode;
|
|
1561
|
+
/**
|
|
1562
|
+
* 상태코드 갱신일시
|
|
1563
|
+
*/
|
|
1564
|
+
stateDT?: string;
|
|
1565
|
+
/**
|
|
1566
|
+
* 지연발행 여부
|
|
1567
|
+
*/
|
|
1568
|
+
lateIssueYN?: boolean | string;
|
|
1569
|
+
/**
|
|
1570
|
+
* 개봉 여부
|
|
1571
|
+
*/
|
|
1572
|
+
openYN?: boolean | string;
|
|
1573
|
+
/**
|
|
1574
|
+
* 개봉일시
|
|
1575
|
+
*/
|
|
1576
|
+
openDT?: string;
|
|
1577
|
+
/**
|
|
1578
|
+
* 국세청승인번호
|
|
1579
|
+
*/
|
|
1580
|
+
ntsconfirmNum?: string;
|
|
1581
|
+
/**
|
|
1582
|
+
* 국세청 전송결과
|
|
1583
|
+
*/
|
|
1584
|
+
ntsresult?: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* 국세청 전송일시
|
|
1587
|
+
*/
|
|
1588
|
+
ntssendDT?: string;
|
|
1589
|
+
/**
|
|
1590
|
+
* 국세청 결과 수신일시
|
|
1591
|
+
*/
|
|
1592
|
+
ntsresultDT?: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* 국세청 전송결과코드
|
|
1595
|
+
*/
|
|
1596
|
+
ntssendErrCode?: ExtensibleTaxInvoiceNtsResultCode;
|
|
1597
|
+
/**
|
|
1598
|
+
* 정발행 역발행 여부
|
|
1599
|
+
*/
|
|
1600
|
+
interOPYN?: boolean | string;
|
|
1601
|
+
/**
|
|
1602
|
+
* 상세항목
|
|
1603
|
+
*/
|
|
1604
|
+
detailList?: TaxInvoiceDetailApiModel[];
|
|
1605
|
+
/**
|
|
1606
|
+
* 추가담당자
|
|
1607
|
+
*/
|
|
1608
|
+
addContactList?: TaxInvoiceAdditionalContactApiModel[];
|
|
1609
|
+
[key: string]: unknown;
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* 세금계산서 요약정보(raw).
|
|
1613
|
+
*/
|
|
1614
|
+
interface TaxInvoiceInfoApiModel {
|
|
1615
|
+
/**
|
|
1616
|
+
* 문서 아이템키
|
|
1617
|
+
*/
|
|
1618
|
+
itemKey: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* 과세형태 [과세,영세,면세]
|
|
1621
|
+
*/
|
|
1622
|
+
taxType: TaxType;
|
|
1623
|
+
/**
|
|
1624
|
+
* 작성일자
|
|
1625
|
+
*/
|
|
1626
|
+
writeDate: TaxInvoiceDateString;
|
|
1627
|
+
/**
|
|
1628
|
+
* 등록일시
|
|
1629
|
+
*/
|
|
1630
|
+
regDT: string;
|
|
1631
|
+
/**
|
|
1632
|
+
* 발행형태 [정발행,역발행,위수탁]
|
|
1633
|
+
*/
|
|
1634
|
+
issueType: IssueType;
|
|
1635
|
+
/**
|
|
1636
|
+
* 공급가액 합계
|
|
1637
|
+
*/
|
|
1638
|
+
supplyCostTotal: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* 세액 합계
|
|
1641
|
+
*/
|
|
1642
|
+
taxTotal: string;
|
|
1643
|
+
/**
|
|
1644
|
+
* 영수/청구
|
|
1645
|
+
*/
|
|
1646
|
+
purposeType: PurposeType;
|
|
1647
|
+
/**
|
|
1648
|
+
* 발행일시
|
|
1649
|
+
*/
|
|
1650
|
+
issueDT: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* 지연발행여부
|
|
1653
|
+
*/
|
|
1654
|
+
lateIssueYN: boolean | string;
|
|
1655
|
+
/**
|
|
1656
|
+
* 개봉 여부
|
|
1657
|
+
*/
|
|
1658
|
+
openYN: boolean | string;
|
|
1659
|
+
/**
|
|
1660
|
+
* 개봉일시
|
|
1661
|
+
*/
|
|
1662
|
+
openDT?: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* 상태메모
|
|
1665
|
+
*/
|
|
1666
|
+
stateMemo: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* 상태코드
|
|
1669
|
+
*/
|
|
1670
|
+
stateCode: ExtensibleTaxInvoiceStateCode;
|
|
1671
|
+
/**
|
|
1672
|
+
* 상태코드 갱신일시
|
|
1673
|
+
*/
|
|
1674
|
+
stateDT: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* 국세청승인번호
|
|
1677
|
+
*/
|
|
1678
|
+
ntsconfirmNum?: string;
|
|
1679
|
+
/**
|
|
1680
|
+
* 국세청 전송결과
|
|
1681
|
+
*/
|
|
1682
|
+
ntsresult?: string;
|
|
1683
|
+
/**
|
|
1684
|
+
* 국세청 전송일시
|
|
1685
|
+
*/
|
|
1686
|
+
ntssendDT?: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* 국세청 결과 수신일시
|
|
1689
|
+
*/
|
|
1690
|
+
ntsresultDT?: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* 국세청 전송결과코드
|
|
1693
|
+
*/
|
|
1694
|
+
ntssendErrCode?: ExtensibleTaxInvoiceNtsResultCode;
|
|
1695
|
+
/**
|
|
1696
|
+
* 수정세금계산서 사유코드
|
|
1697
|
+
*/
|
|
1698
|
+
modifyCode?: TaxInvoiceModifyCode;
|
|
1699
|
+
/**
|
|
1700
|
+
* 정발행 역발행 여부
|
|
1701
|
+
*/
|
|
1702
|
+
interOPYN: boolean | string;
|
|
1703
|
+
/**
|
|
1704
|
+
* 공급자 상호
|
|
1705
|
+
*/
|
|
1706
|
+
invoicerCorpName: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* 공급자 사업자번호
|
|
1709
|
+
*/
|
|
1710
|
+
invoicerCorpNum: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* 공급자 문서번호
|
|
1713
|
+
*/
|
|
1714
|
+
invoicerMgtKey?: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* 공급자 인쇄여부
|
|
1717
|
+
*/
|
|
1718
|
+
invoicerPrintYN: boolean | string;
|
|
1719
|
+
/**
|
|
1720
|
+
* 공급받는자 상호
|
|
1721
|
+
*/
|
|
1722
|
+
invoiceeCorpName: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* 공급받는자 사업자번호
|
|
1725
|
+
*/
|
|
1726
|
+
invoiceeCorpNum: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* 공급받는자 문서번호
|
|
1729
|
+
*/
|
|
1730
|
+
invoiceeMgtKey?: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* 공급받는자 인쇄여부
|
|
1733
|
+
*/
|
|
1734
|
+
invoiceePrintYN: boolean | string;
|
|
1735
|
+
/**
|
|
1736
|
+
* 휴폐업 상태 [미등록, 휴업, 폐업]
|
|
1737
|
+
*/
|
|
1738
|
+
closeDownState?: CloseDownState;
|
|
1739
|
+
/**
|
|
1740
|
+
* 휴폐업일자
|
|
1741
|
+
*/
|
|
1742
|
+
closeDownStateDate?: TaxInvoiceDateString;
|
|
1743
|
+
/**
|
|
1744
|
+
* 수탁자 상호
|
|
1745
|
+
*/
|
|
1746
|
+
trusteeCorpName?: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* 수탁자 사업자번호
|
|
1749
|
+
*/
|
|
1750
|
+
trusteeCorpNum?: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* 수탁자 문서번호
|
|
1753
|
+
*/
|
|
1754
|
+
trusteeMgtKey?: string;
|
|
1755
|
+
/**
|
|
1756
|
+
* 수탁자 인쇄여부
|
|
1757
|
+
*/
|
|
1758
|
+
trusteePrintYN?: boolean | string;
|
|
1759
|
+
[key: string]: unknown;
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* 전자서명 이력(raw).
|
|
1763
|
+
*/
|
|
1764
|
+
interface TaxInvoiceLogApiModel {
|
|
1765
|
+
/**
|
|
1766
|
+
* 문서이력 유형
|
|
1767
|
+
*/
|
|
1768
|
+
docLogType?: number | string;
|
|
1769
|
+
/**
|
|
1770
|
+
* 로그
|
|
1771
|
+
*/
|
|
1772
|
+
log?: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* 처리형태
|
|
1775
|
+
*/
|
|
1776
|
+
procType?: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* 처리회사명
|
|
1779
|
+
*/
|
|
1780
|
+
procCorpName?: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* 처리담당자
|
|
1783
|
+
*/
|
|
1784
|
+
procContactName?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* 처리형태명
|
|
1787
|
+
*/
|
|
1788
|
+
procMemo?: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* 등록일시
|
|
1791
|
+
*/
|
|
1792
|
+
regDT?: string;
|
|
1793
|
+
/**
|
|
1794
|
+
* IP주소
|
|
1795
|
+
*/
|
|
1796
|
+
ip?: string;
|
|
1797
|
+
[key: string]: unknown;
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* 첨부파일 메타(raw).
|
|
1801
|
+
*/
|
|
1802
|
+
interface TaxInvoiceFileMetaApiModel {
|
|
1803
|
+
/**
|
|
1804
|
+
* 파일아이디
|
|
1805
|
+
*/
|
|
1806
|
+
serialNum?: number;
|
|
1807
|
+
/**
|
|
1808
|
+
* 첨부파일명
|
|
1809
|
+
*/
|
|
1810
|
+
attachedFile?: string;
|
|
1811
|
+
/**
|
|
1812
|
+
* 표시명
|
|
1813
|
+
*/
|
|
1814
|
+
displayName?: string;
|
|
1815
|
+
/**
|
|
1816
|
+
* 등록일시
|
|
1817
|
+
*/
|
|
1818
|
+
regDT?: string;
|
|
1819
|
+
[key: string]: unknown;
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* Search 결과 list 항목(raw).
|
|
1823
|
+
*
|
|
1824
|
+
* Source
|
|
1825
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/info#Search
|
|
1826
|
+
*
|
|
1827
|
+
* Search 응답 list는 `GetInfo` 응답 구성과 동일하다.
|
|
1828
|
+
*/
|
|
1829
|
+
type TaxInvoiceSearchResultItemApiModel = TaxInvoiceInfoApiModel;
|
|
1830
|
+
/**
|
|
1831
|
+
* 세금계산서 Search 응답(raw).
|
|
1832
|
+
*
|
|
1833
|
+
* Source
|
|
1834
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/info#Search
|
|
1835
|
+
*/
|
|
1836
|
+
interface TaxInvoiceSearchResultApiModel extends TaxInvoiceApiResponseBase {
|
|
1837
|
+
/**
|
|
1838
|
+
* 검색결과 전체 건수
|
|
1839
|
+
*/
|
|
1840
|
+
total?: number | string;
|
|
1841
|
+
/**
|
|
1842
|
+
* 페이지당 목록개수
|
|
1843
|
+
*/
|
|
1844
|
+
perPage?: number | string;
|
|
1845
|
+
/**
|
|
1846
|
+
* 페이지 번호
|
|
1847
|
+
*/
|
|
1848
|
+
pageNum?: number | string;
|
|
1849
|
+
/**
|
|
1850
|
+
* 페이지수
|
|
1851
|
+
*/
|
|
1852
|
+
pageCount?: number | string;
|
|
1853
|
+
/**
|
|
1854
|
+
* 검색결과 목록
|
|
1855
|
+
*/
|
|
1856
|
+
list?: TaxInvoiceSearchResultItemApiModel[];
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* 즉시발행 결과(raw).
|
|
1860
|
+
*/
|
|
1861
|
+
interface TaxInvoiceIssueResponseApiModel extends TaxInvoiceApiResponseBase {
|
|
1862
|
+
/**
|
|
1863
|
+
* 국세청승인번호
|
|
1864
|
+
*/
|
|
1865
|
+
ntsConfirmNum?: string;
|
|
1866
|
+
/**
|
|
1867
|
+
* 발행일시
|
|
1868
|
+
*/
|
|
1869
|
+
issueDT?: string;
|
|
1870
|
+
}
|
|
1871
|
+
/**
|
|
1872
|
+
* 대량접수 결과(raw).
|
|
1873
|
+
*/
|
|
1874
|
+
interface TaxInvoiceBulkSubmitResponseApiModel extends TaxInvoiceApiResponseBase {
|
|
1875
|
+
/**
|
|
1876
|
+
* 접수아이디
|
|
1877
|
+
*/
|
|
1878
|
+
receiptID?: string;
|
|
1879
|
+
}
|
|
1880
|
+
/**
|
|
1881
|
+
* 대량접수 상세 결과(raw).
|
|
1882
|
+
*/
|
|
1883
|
+
interface TaxInvoiceBulkResultItemApiModel {
|
|
1884
|
+
/**
|
|
1885
|
+
* 문서번호 유형
|
|
1886
|
+
*/
|
|
1887
|
+
keyType?: TaxInvoiceMgtKeyType;
|
|
1888
|
+
/**
|
|
1889
|
+
* [공급자] 문서번호
|
|
1890
|
+
*/
|
|
1891
|
+
invoicerMgtKey?: string;
|
|
1892
|
+
/**
|
|
1893
|
+
* [수탁자] 문서번호
|
|
1894
|
+
*/
|
|
1895
|
+
trusteeMgtKey?: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* 처리결과 코드
|
|
1898
|
+
*/
|
|
1899
|
+
code?: number | string;
|
|
1900
|
+
/**
|
|
1901
|
+
* 처리결과 메시지
|
|
1902
|
+
*/
|
|
1903
|
+
message?: string;
|
|
1904
|
+
/**
|
|
1905
|
+
* 국세청승인번호
|
|
1906
|
+
*/
|
|
1907
|
+
ntsconfirmNum?: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* 접수일시
|
|
1910
|
+
*/
|
|
1911
|
+
receiptDT?: string;
|
|
1912
|
+
/**
|
|
1913
|
+
* 발행일시
|
|
1914
|
+
*/
|
|
1915
|
+
issueDT?: string;
|
|
1916
|
+
[key: string]: unknown;
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* 대량접수 조회(raw).
|
|
1920
|
+
*/
|
|
1921
|
+
interface TaxInvoiceBulkResultApiModel extends TaxInvoiceApiResponseBase {
|
|
1922
|
+
/**
|
|
1923
|
+
* 접수아이디
|
|
1924
|
+
*/
|
|
1925
|
+
receiptID?: string;
|
|
1926
|
+
/**
|
|
1927
|
+
* 제출아이디
|
|
1928
|
+
*/
|
|
1929
|
+
submitID?: string;
|
|
1930
|
+
/**
|
|
1931
|
+
* 제출건수
|
|
1932
|
+
*/
|
|
1933
|
+
submitCount?: number | string;
|
|
1934
|
+
/**
|
|
1935
|
+
* 성공건수
|
|
1936
|
+
*/
|
|
1937
|
+
successCount?: number | string;
|
|
1938
|
+
/**
|
|
1939
|
+
* 실패건수
|
|
1940
|
+
*/
|
|
1941
|
+
failCount?: number | string;
|
|
1942
|
+
/**
|
|
1943
|
+
* 처리상태 [0:미처리, 1:처리중, 2:완료]
|
|
1944
|
+
*/
|
|
1945
|
+
txState?: number | string;
|
|
1946
|
+
/**
|
|
1947
|
+
* 처리시작일시
|
|
1948
|
+
*/
|
|
1949
|
+
txStartDT?: string;
|
|
1950
|
+
/**
|
|
1951
|
+
* 처리완료일시
|
|
1952
|
+
*/
|
|
1953
|
+
txEndDT?: string;
|
|
1954
|
+
/**
|
|
1955
|
+
* 처리결과코드
|
|
1956
|
+
*/
|
|
1957
|
+
txResultCode?: number | string;
|
|
1958
|
+
/**
|
|
1959
|
+
* 세금계산서 발행처리 결과
|
|
1960
|
+
*/
|
|
1961
|
+
issueResult?: TaxInvoiceBulkResultItemApiModel[];
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* 국세청 인증서 정보(raw).
|
|
1965
|
+
*/
|
|
1966
|
+
interface TaxInvoiceTaxCertInfoApiModel {
|
|
1967
|
+
/**
|
|
1968
|
+
* 등록일시
|
|
1969
|
+
*
|
|
1970
|
+
* `yyyyMMddHHmmss` 형식.
|
|
1971
|
+
*/
|
|
1972
|
+
regDT?: string;
|
|
1973
|
+
/**
|
|
1974
|
+
* 만료일시
|
|
1975
|
+
*
|
|
1976
|
+
* `yyyyMMddHHmmss` 형식.
|
|
1977
|
+
*/
|
|
1978
|
+
expireDT?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* 발급자 Distinguished Name
|
|
1981
|
+
*/
|
|
1982
|
+
issuerDN?: string;
|
|
1983
|
+
/**
|
|
1984
|
+
* 인증서 Distinguished Name
|
|
1985
|
+
*/
|
|
1986
|
+
subjectDN?: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* 인증서 종류
|
|
1989
|
+
*/
|
|
1990
|
+
issuerName?: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* 인증서 정책 OID
|
|
1993
|
+
*/
|
|
1994
|
+
OID?: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* 등록 담당자 성명
|
|
1997
|
+
*/
|
|
1998
|
+
regContactName?: string;
|
|
1999
|
+
/**
|
|
2000
|
+
* 등록 담당자 아이디
|
|
2001
|
+
*/
|
|
2002
|
+
regContactID?: string;
|
|
2003
|
+
[key: string]: unknown;
|
|
2004
|
+
}
|
|
2005
|
+
/**
|
|
2006
|
+
* 이메일 발송설정(raw).
|
|
2007
|
+
*/
|
|
2008
|
+
interface TaxInvoiceEmailConfigApiModel {
|
|
2009
|
+
/**
|
|
2010
|
+
* 메일전송 설정 구분코드
|
|
2011
|
+
*/
|
|
2012
|
+
emailType?: TaxInvoiceEmailType;
|
|
2013
|
+
/**
|
|
2014
|
+
* 전송여부
|
|
2015
|
+
*/
|
|
2016
|
+
sendYN?: boolean | string;
|
|
2017
|
+
[key: string]: unknown;
|
|
2018
|
+
}
|
|
2019
|
+
//#endregion
|
|
2020
|
+
//#region src/tax-invoice/info/get-info.d.ts
|
|
2021
|
+
/**
|
|
2022
|
+
* TaxInvoice GetInfo Raw Spec
|
|
2023
|
+
*
|
|
2024
|
+
* Source
|
|
2025
|
+
* - https://developers.popbill.com/api-reference/taxinvoice/api/info#GetInfo
|
|
2026
|
+
*/
|
|
2027
|
+
/**
|
|
2028
|
+
* GetInfo API path 파라미터.
|
|
2029
|
+
*/
|
|
2030
|
+
interface TaxInvoiceGetInfoApiRequestPath {
|
|
2031
|
+
/**
|
|
2032
|
+
* 문서번호 유형.
|
|
2033
|
+
*
|
|
2034
|
+
* - `SELL`: 매출
|
|
2035
|
+
* - `BUY`: 매입
|
|
2036
|
+
* - `TRUSTEE`: 위수탁
|
|
2037
|
+
*/
|
|
2038
|
+
MgtKeyType: TaxInvoiceMgtKeyType;
|
|
2039
|
+
/**
|
|
2040
|
+
* 파트너가 할당한 문서번호.
|
|
2041
|
+
*
|
|
2042
|
+
* 최대 24자.
|
|
2043
|
+
*/
|
|
2044
|
+
MgtKey: string;
|
|
2045
|
+
}
|
|
2046
|
+
/**
|
|
2047
|
+
* GetInfo API query 파라미터.
|
|
2048
|
+
*/
|
|
2049
|
+
type TaxInvoiceGetInfoApiRequestQuery = never;
|
|
2050
|
+
/**
|
|
2051
|
+
* GetInfo API body.
|
|
2052
|
+
*/
|
|
2053
|
+
type TaxInvoiceGetInfoApiRequestBody = never;
|
|
2054
|
+
/**
|
|
2055
|
+
* GetInfo API 요청(raw).
|
|
2056
|
+
*/
|
|
2057
|
+
type TaxInvoiceGetInfoApiRequest = TaxInvoiceRequireRequestFields<TaxInvoiceApiRequest<TaxInvoiceGetInfoApiRequestPath, TaxInvoiceGetInfoApiRequestQuery, TaxInvoiceGetInfoApiRequestBody>, 'path'>;
|
|
2058
|
+
type TaxInvoiceGetInfoApiResponse = TaxInvoiceInfoApiModel;
|
|
2059
|
+
type TaxInvoiceInfoApiResponse = TaxInvoiceGetInfoApiResponse;
|
|
2060
|
+
//#endregion
|
|
2061
|
+
export { TaxInvoiceSearchCloseDownState as $, TaxInvoiceStateCodeDefinitionValue as A, TaxInvoiceApiRequestHeaders as B, TAX_INVOICE_STATE_CODES as C, TaxInvoiceResponseCodeGroups as D, TaxInvoiceNtsResultCodeDefinitionValue as E, IssueType as F, TaxInvoiceDateTypeMap as G, TaxInvoiceBulkIssueRequestHeaders as H, IssueTypeMap as I, TaxInvoiceMgtKeyType as J, TaxInvoiceEmailType as K, PurposeType as L, CloseDownStateMap as M, InvoiceeType as N, TaxInvoiceStateCode as O, InvoiceeTypeMap as P, TaxInvoiceRequireRequestFields as Q, PurposeTypeMap as R, TAX_INVOICE_RESPONSE_CODES as S, TaxInvoiceNtsResultCodeDefinition as T, TaxInvoiceDateString as U, TaxInvoiceApiResponseBase as V, TaxInvoiceDateType as W, TaxInvoiceModifyCode as X, TaxInvoiceMgtKeyTypeMap as Y, TaxInvoiceModifyCodeMap as Z, TaxInvoiceLogApiModel as _, PopbillHttpMethodOverrides as _t, TaxInvoiceGetInfoApiResponse as a, PopbillApiRequest as at, TaxInvoiceTaxCertInfoApiModel as b, TaxInvoiceApiModel as c, PopbillAcceptEncodingMap as ct, TaxInvoiceBulkSubmitResponseApiModel as d, PopbillAcceptLanguages as dt, TaxInvoiceSearchCloseDownStateMap as et, TaxInvoiceDetailApiModel as f, PopbillApiRequestHeaders as ft, TaxInvoiceIssueResponseApiModel as g, PopbillHttpMethodOverride as gt, TaxInvoiceInfoApiModel as h, PopbillDefaultResponseLanguage as ht, TaxInvoiceGetInfoApiRequestQuery as i, TaxTypeMap as it, CloseDownState as j, TaxInvoiceStateCodeDefinition as k, TaxInvoiceBulkResultApiModel as l, PopbillAcceptLanguage as lt, TaxInvoiceFileMetaApiModel as m, PopbillBulkIssueRequestHeaders as mt, TaxInvoiceGetInfoApiRequestBody as n, TaxInvoiceSortOrderMap as nt, TaxInvoiceInfoApiResponse as o, PopbillRequireRequestFields as ot, TaxInvoiceEmailConfigApiModel as p, PopbillAuthorizationHeader as pt, TaxInvoiceEmailTypeMap as q, TaxInvoiceGetInfoApiRequestPath as r, TaxType as rt, TaxInvoiceAdditionalContactApiModel as s, PopbillAcceptEncoding as st, TaxInvoiceGetInfoApiRequest as t, TaxInvoiceSortOrder as tt, TaxInvoiceBulkResultItemApiModel as u, PopbillAcceptLanguageMap as ut, TaxInvoiceSearchResultApiModel as v, TaxInvoiceNtsResultCode as w, TAX_INVOICE_NTS_RESULT_CODES as x, TaxInvoiceSearchResultItemApiModel as y, TaxInvoiceApiRequest as z };
|