@bolta-io/cli 0.3.0 → 0.4.1
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/CHANGELOG.md +13 -0
- package/CLAUDE.md +24 -1
- package/README.md +62 -3
- package/dist/bin/bolta.js +2 -0
- package/dist/bin/bolta.js.map +1 -1
- package/dist/src/client/bolta-client.d.ts +8 -1
- package/dist/src/client/bolta-client.d.ts.map +1 -1
- package/dist/src/client/bolta-client.js +103 -28
- package/dist/src/client/bolta-client.js.map +1 -1
- package/dist/src/commands/business-registration-status/check-bulk.d.ts +4 -0
- package/dist/src/commands/business-registration-status/check-bulk.d.ts.map +1 -0
- package/dist/src/commands/business-registration-status/check-bulk.js +40 -0
- package/dist/src/commands/business-registration-status/check-bulk.js.map +1 -0
- package/dist/src/commands/business-registration-status/check.d.ts +3 -0
- package/dist/src/commands/business-registration-status/check.d.ts.map +1 -0
- package/dist/src/commands/business-registration-status/check.js +25 -0
- package/dist/src/commands/business-registration-status/check.js.map +1 -0
- package/dist/src/commands/business-registration-status/index.d.ts +3 -0
- package/dist/src/commands/business-registration-status/index.d.ts.map +1 -0
- package/dist/src/commands/business-registration-status/index.js +53 -0
- package/dist/src/commands/business-registration-status/index.js.map +1 -0
- package/dist/src/commands/guide/index.d.ts.map +1 -1
- package/dist/src/commands/guide/index.js +78 -6
- package/dist/src/commands/guide/index.js.map +1 -1
- package/dist/src/commands/schema/index.d.ts.map +1 -1
- package/dist/src/commands/schema/index.js +8 -7
- package/dist/src/commands/schema/index.js.map +1 -1
- package/dist/src/types/api.d.ts +29 -0
- package/dist/src/types/api.d.ts.map +1 -1
- package/dist/src/utils/errors.d.ts +1 -1
- package/dist/src/utils/errors.d.ts.map +1 -1
- package/dist/src/utils/errors.js +2 -2
- package/dist/src/utils/errors.js.map +1 -1
- package/dist/src/validators/parse.d.ts +2 -1
- package/dist/src/validators/parse.d.ts.map +1 -1
- package/dist/src/validators/parse.js +3 -2
- package/dist/src/validators/parse.js.map +1 -1
- package/dist/src/validators/schemas.d.ts +16 -0
- package/dist/src/validators/schemas.d.ts.map +1 -1
- package/dist/src/validators/schemas.js +34 -0
- package/dist/src/validators/schemas.js.map +1 -1
- package/llms.txt +28 -5
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -31,7 +31,7 @@ Bolta API는 사전 충전 포인트 차감 방식 유료 서비스입니다.
|
|
|
31
31
|
- 포인트 충전: https://developers.bolta.io 개발자센터
|
|
32
32
|
|
|
33
33
|
### 개념 안내 커맨드
|
|
34
|
-
bolta guide 주요 개념 안내 (issuer, payment, workflow, cash-receipt, glossary)
|
|
34
|
+
bolta guide 주요 개념 안내 (issuer, payment, workflow, cash-receipt, business-registration-status, glossary)
|
|
35
35
|
|
|
36
36
|
## Commands
|
|
37
37
|
|
|
@@ -63,12 +63,12 @@ bolta invoice issue --data '<json>' [--reference-id <id>]
|
|
|
63
63
|
- taxType (TAXABLE | ZERO_RATE | TAX_FREE)
|
|
64
64
|
- supplier: {identificationNumber, organizationName, representativeName, manager: {email}}
|
|
65
65
|
- supplied: {identificationNumber, organizationName, representativeName, managers: [{email}]}
|
|
66
|
-
- items: [{date, name, supplyCost}] (1~
|
|
66
|
+
- items: [{date, name, supplyCost}] (1~16개)
|
|
67
67
|
- supplied.identificationNumber: 사업자등록번호 10자리, 주민등록번호 규칙 13자리, 외국인등록번호 규칙 13자리 허용
|
|
68
68
|
선택 필드:
|
|
69
69
|
- supplier/supplied: address, businessType, businessItem, taxRegistrationId
|
|
70
70
|
- items: unitPrice, quantity, tax, specification, description
|
|
71
|
-
- description (최대
|
|
71
|
+
- description (최대 150자)
|
|
72
72
|
taxType별 tax 규칙: TAXABLE은 tax가 null/누락이면 안 됨, ZERO_RATE은 모든 tax가 0, TAX_FREE는 모든 tax가 null.
|
|
73
73
|
외국인등록번호 공급받는자는 정발행만 지원. 이 경우 supplied.taxRegistrationId와 최상위 description은 null/미입력이어야 함. 여권번호는 미지원.
|
|
74
74
|
|
|
@@ -115,10 +115,33 @@ bolta cash-receipt status --reference-id <id>
|
|
|
115
115
|
bolta cash-receipt cancel <issuanceKey> --reference-id <새 id>
|
|
116
116
|
발행 완료 건을 전액 취소. 발행 요청과 다른 reference-id를 사용하며 부분 취소는 지원하지 않음.
|
|
117
117
|
|
|
118
|
+
### Business Registration Status
|
|
119
|
+
|
|
120
|
+
(deprecated) bolta business-status check|check-bulk 는 같은 동작의 alias. 실행 시 stderr 경고. 새 명령 사용 권장.
|
|
121
|
+
|
|
122
|
+
bolta business-registration-status check <businessRegistrationNumber>
|
|
123
|
+
사업자등록번호 한 건의 등록 상태와 과세유형 조회. 발급자 등록과 인증서 불필요. 하이픈 허용.
|
|
124
|
+
응답: {businessRegistrationNumber, registration: {status, closedOn}, taxType}
|
|
125
|
+
- registration.status: ACTIVE | SUSPENDED | CLOSED | NOT_REGISTERED | UNKNOWN
|
|
126
|
+
- registration.closedOn: 폐업자만 YYYY-MM-DD, 나머지 null
|
|
127
|
+
- taxType: 계속사업자만 GENERAL | SIMPLIFIED | TAX_FREE | NONPROFIT | OTHER_CORPORATION, 나머지 null
|
|
128
|
+
taxType은 사업자의 과세유형이며 세금계산서 요청의 taxType과 뜻이 다름.
|
|
129
|
+
통신 실패는 UNKNOWN으로 돌려주지 않음. 사업자등록 상태를 확인할 수 없으면 503 LOOKUP_UNAVAILABLE. 체크섬 불일치는 400 INVALID_BUSINESS_REGISTRATION_NUMBER.
|
|
130
|
+
호출 한도는 API 키 모드별 24시간 10,000건(429 RATE_LIMITED, 대기 시간은 error.details.retryAfterSeconds). 볼타 서비스 전체 일일 조회 한도에 도달해도 429. CLI는 이 조회를 자동 재시도하지 않음.
|
|
131
|
+
라이브 키는 정상 조회 결과마다 포인트 차감. 테스트 키는 고정 번호 9개만 조회 가능(bolta guide business-registration-status).
|
|
132
|
+
|
|
133
|
+
bolta business-registration-status check-bulk <businessRegistrationNumber...>
|
|
134
|
+
bolta business-registration-status check-bulk --data '{"businessRegistrationNumbers":["1000000014","100-00-00028"]}'
|
|
135
|
+
최대 100건 일괄 조회. --data/--file/--stdin도 가능하며 번호 인자와 섞을 수 없음. 하이픈 표기가 달라도 중복은 하나로 줄이고, 줄인 뒤 100개까지 허용.
|
|
136
|
+
응답: {results: [{businessRegistrationNumber, status: <check 응답> | null}]}. results는 요청 순서.
|
|
137
|
+
status null은 이번에 확인하지 못한 번호이며 차감하지 않음. 그 번호만 나중에 다시 조회.
|
|
138
|
+
한 건도 확인하지 못하면 503 LOOKUP_UNAVAILABLE 또는 429 RATE_LIMITED. 테스트 키는 고정 번호 밖이 하나라도 섞이면 요청 전체 400.
|
|
139
|
+
호출 한도 10,000은 요청 수가 아니라 조회한 번호 수 기준(단건, 일괄 공통).
|
|
140
|
+
|
|
118
141
|
### Configuration
|
|
119
142
|
|
|
120
143
|
bolta config set <key> <value>
|
|
121
|
-
설정 저장. key: api-key, base-url
|
|
144
|
+
설정 저장. key: api-key, base-url, update-check
|
|
122
145
|
|
|
123
146
|
bolta config show
|
|
124
147
|
현재 설정 확인.
|
|
@@ -133,7 +156,7 @@ bolta examples [command]
|
|
|
133
156
|
사용 가능: issuer-create, invoice-issue, invoice-issue-foreign-supplied, invoice-issue-request, cash-receipt-issue, cash-receipt-issue-business, cash-receipt-issue-self, amend-termination, amend-change-supply-cost
|
|
134
157
|
|
|
135
158
|
bolta schema [command]
|
|
136
|
-
입력 JSON 스키마 출력. command 없이 실행하면 목록 표시.
|
|
159
|
+
입력 JSON 스키마 출력. command 없이 실행하면 목록 표시. 사업자등록 상태 일괄 조회 입력은 business-registration-status-check-bulk.
|
|
137
160
|
|
|
138
161
|
## Global Options
|
|
139
162
|
|