@cmarket/partner-sdk 0.11.0 → 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.
Files changed (250) hide show
  1. package/README.md +31 -18
  2. package/api/oauth-api.ts +2 -2
  3. package/api/partner-v1-api.ts +187 -684
  4. package/api/partner-v2-api.ts +1186 -0
  5. package/api.ts +2 -1
  6. package/base.ts +1 -1
  7. package/common.ts +1 -1
  8. package/configuration.ts +1 -1
  9. package/dist/api/oauth-api.d.ts +1 -1
  10. package/dist/api/oauth-api.js +2 -2
  11. package/dist/api/partner-v1-api.d.ts +113 -333
  12. package/dist/api/partner-v1-api.js +187 -655
  13. package/dist/api/partner-v2-api.d.ts +535 -0
  14. package/dist/api/partner-v2-api.js +1107 -0
  15. package/dist/api.d.ts +2 -1
  16. package/dist/api.js +2 -1
  17. package/dist/base.d.ts +1 -1
  18. package/dist/base.js +1 -1
  19. package/dist/common.d.ts +1 -1
  20. package/dist/common.js +1 -1
  21. package/dist/configuration.d.ts +1 -1
  22. package/dist/configuration.js +1 -1
  23. package/dist/esm/api/oauth-api.d.ts +1 -1
  24. package/dist/esm/api/oauth-api.js +2 -2
  25. package/dist/esm/api/partner-v1-api.d.ts +113 -333
  26. package/dist/esm/api/partner-v1-api.js +188 -656
  27. package/dist/esm/api/partner-v2-api.d.ts +535 -0
  28. package/dist/esm/api/partner-v2-api.js +1100 -0
  29. package/dist/esm/api.d.ts +2 -1
  30. package/dist/esm/api.js +2 -1
  31. package/dist/esm/base.d.ts +1 -1
  32. package/dist/esm/base.js +1 -1
  33. package/dist/esm/common.d.ts +1 -1
  34. package/dist/esm/common.js +1 -1
  35. package/dist/esm/configuration.d.ts +1 -1
  36. package/dist/esm/configuration.js +1 -1
  37. package/dist/esm/index.d.ts +1 -1
  38. package/dist/esm/index.js +1 -1
  39. package/dist/esm/models/acceptance-result-response-dto.d.ts +1 -1
  40. package/dist/esm/models/acceptance-result-response-dto.js +1 -1
  41. package/dist/esm/models/award-registered-response-dto.d.ts +1 -1
  42. package/dist/esm/models/award-registered-response-dto.js +1 -1
  43. package/dist/esm/models/bid-bond-dto.d.ts +1 -1
  44. package/dist/esm/models/bid-bond-dto.js +1 -1
  45. package/dist/esm/models/bid-contract-documents-batch-request-dto.d.ts +1 -1
  46. package/dist/esm/models/bid-contract-documents-batch-request-dto.js +1 -1
  47. package/dist/esm/models/bid-contract-documents-response-dto.d.ts +1 -1
  48. package/dist/esm/models/bid-contract-documents-response-dto.js +1 -1
  49. package/dist/esm/models/bid-created-response-dto.d.ts +1 -1
  50. package/dist/esm/models/bid-created-response-dto.js +1 -1
  51. package/dist/esm/models/bid-document-dto.d.ts +1 -1
  52. package/dist/esm/models/bid-document-dto.js +1 -1
  53. package/dist/esm/models/bid-failed-response-dto.d.ts +1 -1
  54. package/dist/esm/models/bid-failed-response-dto.js +1 -1
  55. package/dist/esm/models/bid-failure-reason.d.ts +1 -1
  56. package/dist/esm/models/bid-failure-reason.js +1 -1
  57. package/dist/esm/models/bid-item-dto.d.ts +1 -1
  58. package/dist/esm/models/bid-item-dto.js +1 -1
  59. package/dist/esm/models/bid-manager-dto.d.ts +1 -1
  60. package/dist/esm/models/bid-manager-dto.js +1 -1
  61. package/dist/esm/models/bid-result-participant-attachment-dto.d.ts +1 -1
  62. package/dist/esm/models/bid-result-participant-attachment-dto.js +1 -1
  63. package/dist/esm/models/bid-result-participant-dto.d.ts +1 -1
  64. package/dist/esm/models/bid-result-participant-dto.js +1 -1
  65. package/dist/esm/models/bid-result-product-dto.d.ts +1 -1
  66. package/dist/esm/models/bid-result-product-dto.js +1 -1
  67. package/dist/esm/models/bid-result-winner-dto.d.ts +1 -1
  68. package/dist/esm/models/bid-result-winner-dto.js +1 -1
  69. package/dist/esm/models/bid-results-batch-request-dto.d.ts +1 -1
  70. package/dist/esm/models/bid-results-batch-request-dto.js +1 -1
  71. package/dist/esm/models/bid-results-response-dto.d.ts +1 -1
  72. package/dist/esm/models/bid-results-response-dto.js +1 -1
  73. package/dist/esm/models/bid-settlement-line-item-dto.d.ts +1 -1
  74. package/dist/esm/models/bid-settlement-line-item-dto.js +1 -1
  75. package/dist/esm/models/bid-settlement-participant-dto.d.ts +1 -1
  76. package/dist/esm/models/bid-settlement-participant-dto.js +1 -1
  77. package/dist/esm/models/bid-settlement-response-dto.d.ts +1 -1
  78. package/dist/esm/models/bid-settlement-response-dto.js +1 -1
  79. package/dist/esm/models/bid-statement-response-dto.d.ts +1 -1
  80. package/dist/esm/models/bid-statement-response-dto.js +1 -1
  81. package/dist/esm/models/complete-acceptance-request-dto.d.ts +1 -1
  82. package/dist/esm/models/complete-acceptance-request-dto.js +1 -1
  83. package/dist/esm/models/contract-document-item-dto.d.ts +1 -1
  84. package/dist/esm/models/contract-document-item-dto.js +1 -1
  85. package/dist/esm/models/create-bid-request-dto.d.ts +1 -1
  86. package/dist/esm/models/create-bid-request-dto.js +1 -1
  87. package/dist/esm/models/file-uploaded-response-dto.d.ts +1 -1
  88. package/dist/esm/models/file-uploaded-response-dto.js +1 -1
  89. package/dist/esm/models/health-response-dto.d.ts +1 -1
  90. package/dist/esm/models/health-response-dto.js +1 -1
  91. package/dist/esm/models/hierarchical-region-dto.d.ts +1 -1
  92. package/dist/esm/models/hierarchical-region-dto.js +1 -1
  93. package/dist/esm/models/mark-bid-failed-request-dto.d.ts +1 -1
  94. package/dist/esm/models/mark-bid-failed-request-dto.js +1 -1
  95. package/dist/esm/models/negotiation-score-dto.d.ts +1 -1
  96. package/dist/esm/models/negotiation-score-dto.js +1 -1
  97. package/dist/esm/models/negotiation-scored-response-dto.d.ts +1 -1
  98. package/dist/esm/models/negotiation-scored-response-dto.js +1 -1
  99. package/dist/esm/models/preconditions-dto.d.ts +1 -1
  100. package/dist/esm/models/preconditions-dto.js +1 -1
  101. package/dist/esm/models/problem-details-dto.d.ts +1 -1
  102. package/dist/esm/models/problem-details-dto.js +1 -1
  103. package/dist/esm/models/register-award-request-dto.d.ts +1 -1
  104. package/dist/esm/models/register-award-request-dto.js +1 -1
  105. package/dist/esm/models/request-split-invoice-request-dto.d.ts +1 -1
  106. package/dist/esm/models/request-split-invoice-request-dto.js +1 -1
  107. package/dist/esm/models/split-invoice-response-dto.d.ts +1 -1
  108. package/dist/esm/models/split-invoice-response-dto.js +1 -1
  109. package/dist/esm/models/statement-document-dto.d.ts +1 -1
  110. package/dist/esm/models/statement-document-dto.js +1 -1
  111. package/dist/esm/models/statement-product-dto.d.ts +1 -1
  112. package/dist/esm/models/statement-product-dto.js +1 -1
  113. package/dist/esm/models/submit-negotiation-scores-request-dto.d.ts +1 -1
  114. package/dist/esm/models/submit-negotiation-scores-request-dto.js +1 -1
  115. package/dist/esm/models/token-request-dto.d.ts +1 -1
  116. package/dist/esm/models/token-request-dto.js +1 -1
  117. package/dist/esm/models/token-response-dto.d.ts +1 -1
  118. package/dist/esm/models/token-response-dto.js +1 -1
  119. package/dist/esm/models/upload-file-request-dto.d.ts +1 -1
  120. package/dist/esm/models/upload-file-request-dto.js +1 -1
  121. package/dist/index.d.ts +1 -1
  122. package/dist/index.js +1 -1
  123. package/dist/models/acceptance-result-response-dto.d.ts +1 -1
  124. package/dist/models/acceptance-result-response-dto.js +1 -1
  125. package/dist/models/award-registered-response-dto.d.ts +1 -1
  126. package/dist/models/award-registered-response-dto.js +1 -1
  127. package/dist/models/bid-bond-dto.d.ts +1 -1
  128. package/dist/models/bid-bond-dto.js +1 -1
  129. package/dist/models/bid-contract-documents-batch-request-dto.d.ts +1 -1
  130. package/dist/models/bid-contract-documents-batch-request-dto.js +1 -1
  131. package/dist/models/bid-contract-documents-response-dto.d.ts +1 -1
  132. package/dist/models/bid-contract-documents-response-dto.js +1 -1
  133. package/dist/models/bid-created-response-dto.d.ts +1 -1
  134. package/dist/models/bid-created-response-dto.js +1 -1
  135. package/dist/models/bid-document-dto.d.ts +1 -1
  136. package/dist/models/bid-document-dto.js +1 -1
  137. package/dist/models/bid-failed-response-dto.d.ts +1 -1
  138. package/dist/models/bid-failed-response-dto.js +1 -1
  139. package/dist/models/bid-failure-reason.d.ts +1 -1
  140. package/dist/models/bid-failure-reason.js +1 -1
  141. package/dist/models/bid-item-dto.d.ts +1 -1
  142. package/dist/models/bid-item-dto.js +1 -1
  143. package/dist/models/bid-manager-dto.d.ts +1 -1
  144. package/dist/models/bid-manager-dto.js +1 -1
  145. package/dist/models/bid-result-participant-attachment-dto.d.ts +1 -1
  146. package/dist/models/bid-result-participant-attachment-dto.js +1 -1
  147. package/dist/models/bid-result-participant-dto.d.ts +1 -1
  148. package/dist/models/bid-result-participant-dto.js +1 -1
  149. package/dist/models/bid-result-product-dto.d.ts +1 -1
  150. package/dist/models/bid-result-product-dto.js +1 -1
  151. package/dist/models/bid-result-winner-dto.d.ts +1 -1
  152. package/dist/models/bid-result-winner-dto.js +1 -1
  153. package/dist/models/bid-results-batch-request-dto.d.ts +1 -1
  154. package/dist/models/bid-results-batch-request-dto.js +1 -1
  155. package/dist/models/bid-results-response-dto.d.ts +1 -1
  156. package/dist/models/bid-results-response-dto.js +1 -1
  157. package/dist/models/bid-settlement-line-item-dto.d.ts +1 -1
  158. package/dist/models/bid-settlement-line-item-dto.js +1 -1
  159. package/dist/models/bid-settlement-participant-dto.d.ts +1 -1
  160. package/dist/models/bid-settlement-participant-dto.js +1 -1
  161. package/dist/models/bid-settlement-response-dto.d.ts +1 -1
  162. package/dist/models/bid-settlement-response-dto.js +1 -1
  163. package/dist/models/bid-statement-response-dto.d.ts +1 -1
  164. package/dist/models/bid-statement-response-dto.js +1 -1
  165. package/dist/models/complete-acceptance-request-dto.d.ts +1 -1
  166. package/dist/models/complete-acceptance-request-dto.js +1 -1
  167. package/dist/models/contract-document-item-dto.d.ts +1 -1
  168. package/dist/models/contract-document-item-dto.js +1 -1
  169. package/dist/models/create-bid-request-dto.d.ts +1 -1
  170. package/dist/models/create-bid-request-dto.js +1 -1
  171. package/dist/models/file-uploaded-response-dto.d.ts +1 -1
  172. package/dist/models/file-uploaded-response-dto.js +1 -1
  173. package/dist/models/health-response-dto.d.ts +1 -1
  174. package/dist/models/health-response-dto.js +1 -1
  175. package/dist/models/hierarchical-region-dto.d.ts +1 -1
  176. package/dist/models/hierarchical-region-dto.js +1 -1
  177. package/dist/models/mark-bid-failed-request-dto.d.ts +1 -1
  178. package/dist/models/mark-bid-failed-request-dto.js +1 -1
  179. package/dist/models/negotiation-score-dto.d.ts +1 -1
  180. package/dist/models/negotiation-score-dto.js +1 -1
  181. package/dist/models/negotiation-scored-response-dto.d.ts +1 -1
  182. package/dist/models/negotiation-scored-response-dto.js +1 -1
  183. package/dist/models/preconditions-dto.d.ts +1 -1
  184. package/dist/models/preconditions-dto.js +1 -1
  185. package/dist/models/problem-details-dto.d.ts +1 -1
  186. package/dist/models/problem-details-dto.js +1 -1
  187. package/dist/models/register-award-request-dto.d.ts +1 -1
  188. package/dist/models/register-award-request-dto.js +1 -1
  189. package/dist/models/request-split-invoice-request-dto.d.ts +1 -1
  190. package/dist/models/request-split-invoice-request-dto.js +1 -1
  191. package/dist/models/split-invoice-response-dto.d.ts +1 -1
  192. package/dist/models/split-invoice-response-dto.js +1 -1
  193. package/dist/models/statement-document-dto.d.ts +1 -1
  194. package/dist/models/statement-document-dto.js +1 -1
  195. package/dist/models/statement-product-dto.d.ts +1 -1
  196. package/dist/models/statement-product-dto.js +1 -1
  197. package/dist/models/submit-negotiation-scores-request-dto.d.ts +1 -1
  198. package/dist/models/submit-negotiation-scores-request-dto.js +1 -1
  199. package/dist/models/token-request-dto.d.ts +1 -1
  200. package/dist/models/token-request-dto.js +1 -1
  201. package/dist/models/token-response-dto.d.ts +1 -1
  202. package/dist/models/token-response-dto.js +1 -1
  203. package/dist/models/upload-file-request-dto.d.ts +1 -1
  204. package/dist/models/upload-file-request-dto.js +1 -1
  205. package/docs/OauthApi.md +1 -1
  206. package/docs/PartnerV1Api.md +61 -413
  207. package/docs/PartnerV2Api.md +789 -0
  208. package/index.ts +1 -1
  209. package/models/acceptance-result-response-dto.ts +1 -1
  210. package/models/award-registered-response-dto.ts +1 -1
  211. package/models/bid-bond-dto.ts +1 -1
  212. package/models/bid-contract-documents-batch-request-dto.ts +1 -1
  213. package/models/bid-contract-documents-response-dto.ts +1 -1
  214. package/models/bid-created-response-dto.ts +1 -1
  215. package/models/bid-document-dto.ts +1 -1
  216. package/models/bid-failed-response-dto.ts +1 -1
  217. package/models/bid-failure-reason.ts +1 -1
  218. package/models/bid-item-dto.ts +1 -1
  219. package/models/bid-manager-dto.ts +1 -1
  220. package/models/bid-result-participant-attachment-dto.ts +1 -1
  221. package/models/bid-result-participant-dto.ts +1 -1
  222. package/models/bid-result-product-dto.ts +1 -1
  223. package/models/bid-result-winner-dto.ts +1 -1
  224. package/models/bid-results-batch-request-dto.ts +1 -1
  225. package/models/bid-results-response-dto.ts +1 -1
  226. package/models/bid-settlement-line-item-dto.ts +1 -1
  227. package/models/bid-settlement-participant-dto.ts +1 -1
  228. package/models/bid-settlement-response-dto.ts +1 -1
  229. package/models/bid-statement-response-dto.ts +1 -1
  230. package/models/complete-acceptance-request-dto.ts +1 -1
  231. package/models/contract-document-item-dto.ts +1 -1
  232. package/models/create-bid-request-dto.ts +1 -1
  233. package/models/file-uploaded-response-dto.ts +1 -1
  234. package/models/health-response-dto.ts +1 -1
  235. package/models/hierarchical-region-dto.ts +1 -1
  236. package/models/mark-bid-failed-request-dto.ts +1 -1
  237. package/models/negotiation-score-dto.ts +1 -1
  238. package/models/negotiation-scored-response-dto.ts +1 -1
  239. package/models/preconditions-dto.ts +1 -1
  240. package/models/problem-details-dto.ts +1 -1
  241. package/models/register-award-request-dto.ts +1 -1
  242. package/models/request-split-invoice-request-dto.ts +1 -1
  243. package/models/split-invoice-response-dto.ts +1 -1
  244. package/models/statement-document-dto.ts +1 -1
  245. package/models/statement-product-dto.ts +1 -1
  246. package/models/submit-negotiation-scores-request-dto.ts +1 -1
  247. package/models/token-request-dto.ts +1 -1
  248. package/models/token-response-dto.ts +1 -1
  249. package/models/upload-file-request-dto.ts +1 -1
  250. package/package.json +1 -1
@@ -0,0 +1,1100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. 각 요청 body 에 `ID`(cate_set.api_id) / `Secret`(cate_set.api_secret, MD5-hex) 포함.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * PartnerV2Api - axios parameter creator
31
+ */
32
+ export const PartnerV2ApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * 낙찰 공고의 검수(납품 검수)가 완료되었음을 기록합니다. **V5 대응:** `acceptanceCompleteSend` — BidApi.xml `acceptanceComplete` 액션의 V6 후속. **호출 시점:** 낙찰자(공급사)가 납품을 완료하고 구매자가 검수를 확인한 시점. 공고 상태가 낙찰(AWARDED) 상태여야 합니다. **부수효과:** - 검수완료 상태가 기록됩니다. - 거래명세서·검수보고서에 찍힐 구매사 사업자정보·담당자·작성일자를 함께 override할 수 있습니다(선택 필드). 비어있지 않은 값만 backend 가 `b2b_buy`에 stamp합니다(V5 taxbill UPDATE 조건부 set 패리티). - 응답은 204가 아닌 200입니다 — 멱등성 인터셉터가 구체 바디를 캐시하고 SDK 가 타입드 응답을 필요로 하기 때문. **낙찰자 식별:** `winnerMemberId`(공급사 memberId). 내부 joinSeq 해소는 backend 가 처리합니다. **필수 스코프:** `contracts:write` **멱등성:** `Idempotency-Key` 헤더 필수.
36
+ * @summary 검수완료 전송
37
+ * @param {string} bidId 공고 ID(&#x3D; backend bidId &#x3D; 등록 응답의 bidNo).
38
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
39
+ * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ completeAcceptance: (bidId_1, idempotencyKey_1, completeAcceptanceRequestDto_1, ...args_1) => __awaiter(this, [bidId_1, idempotencyKey_1, completeAcceptanceRequestDto_1, ...args_1], void 0, function* (bidId, idempotencyKey, completeAcceptanceRequestDto, options = {}) {
44
+ // verify required parameter 'bidId' is not null or undefined
45
+ assertParamExists('completeAcceptance', 'bidId', bidId);
46
+ // verify required parameter 'idempotencyKey' is not null or undefined
47
+ assertParamExists('completeAcceptance', 'idempotencyKey', idempotencyKey);
48
+ // verify required parameter 'completeAcceptanceRequestDto' is not null or undefined
49
+ assertParamExists('completeAcceptance', 'completeAcceptanceRequestDto', completeAcceptanceRequestDto);
50
+ const localVarPath = `/v2/bids/{bidId}/acceptance`
51
+ .replace('{bidId}', encodeURIComponent(String(bidId)));
52
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54
+ let baseOptions;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ }
58
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
59
+ const localVarHeaderParameter = {};
60
+ const localVarQueryParameter = {};
61
+ // authentication partner-oauth2 required
62
+ // http bearer authentication required
63
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
64
+ localVarHeaderParameter['Content-Type'] = 'application/json';
65
+ localVarHeaderParameter['Accept'] = 'application/json';
66
+ if (idempotencyKey != null) {
67
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
68
+ }
69
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
70
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
72
+ localVarRequestOptions.data = serializeDataIfNeeded(completeAcceptanceRequestDto, localVarRequestOptions, configuration);
73
+ return {
74
+ url: toPathString(localVarUrlObj),
75
+ options: localVarRequestOptions,
76
+ };
77
+ }),
78
+ /**
79
+ * V5 /contractDocumentRec 후속. scope contracts:read.
80
+ * @summary 계약서류 수신 조회
81
+ * @param {string} bidId
82
+ * @param {string} buyerId 공고 명의 회원 ID(b2b_member.member_id).
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ getBidContractDocuments: (bidId_1, buyerId_1, ...args_1) => __awaiter(this, [bidId_1, buyerId_1, ...args_1], void 0, function* (bidId, buyerId, options = {}) {
87
+ // verify required parameter 'bidId' is not null or undefined
88
+ assertParamExists('getBidContractDocuments', 'bidId', bidId);
89
+ // verify required parameter 'buyerId' is not null or undefined
90
+ assertParamExists('getBidContractDocuments', 'buyerId', buyerId);
91
+ const localVarPath = `/v2/bids/{bidId}/contract-documents`
92
+ .replace('{bidId}', encodeURIComponent(String(bidId)));
93
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
94
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
95
+ let baseOptions;
96
+ if (configuration) {
97
+ baseOptions = configuration.baseOptions;
98
+ }
99
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
100
+ const localVarHeaderParameter = {};
101
+ const localVarQueryParameter = {};
102
+ // authentication partner-oauth2 required
103
+ // http bearer authentication required
104
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
105
+ if (buyerId !== undefined) {
106
+ localVarQueryParameter['buyerId'] = buyerId;
107
+ }
108
+ localVarHeaderParameter['Accept'] = 'application/json';
109
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
111
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
112
+ return {
113
+ url: toPathString(localVarUrlObj),
114
+ options: localVarRequestOptions,
115
+ };
116
+ }),
117
+ /**
118
+ * V5 /contractDocumentRec(bid_puchase_no_list) 후속. 공고번호 리스트를 한 번에 조회. 단건(GET :bidId/contract-documents)은 그대로 유지. scope contracts:read.
119
+ * @summary 계약서류 수신 배치 조회
120
+ * @param {BidContractDocumentsBatchRequestDto} bidContractDocumentsBatchRequestDto
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ getBidContractDocumentsBatch: (bidContractDocumentsBatchRequestDto_1, ...args_1) => __awaiter(this, [bidContractDocumentsBatchRequestDto_1, ...args_1], void 0, function* (bidContractDocumentsBatchRequestDto, options = {}) {
125
+ // verify required parameter 'bidContractDocumentsBatchRequestDto' is not null or undefined
126
+ assertParamExists('getBidContractDocumentsBatch', 'bidContractDocumentsBatchRequestDto', bidContractDocumentsBatchRequestDto);
127
+ const localVarPath = `/v2/bids/contract-documents/batch`;
128
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
130
+ let baseOptions;
131
+ if (configuration) {
132
+ baseOptions = configuration.baseOptions;
133
+ }
134
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
135
+ const localVarHeaderParameter = {};
136
+ const localVarQueryParameter = {};
137
+ // authentication partner-oauth2 required
138
+ // http bearer authentication required
139
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
140
+ localVarHeaderParameter['Content-Type'] = 'application/json';
141
+ localVarHeaderParameter['Accept'] = 'application/json';
142
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
143
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
144
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
145
+ localVarRequestOptions.data = serializeDataIfNeeded(bidContractDocumentsBatchRequestDto, localVarRequestOptions, configuration);
146
+ return {
147
+ url: toPathString(localVarUrlObj),
148
+ options: localVarRequestOptions,
149
+ };
150
+ }),
151
+ /**
152
+ * V5 /entendrec 후속. scope bids:read.
153
+ * @summary 입찰 결과 조회
154
+ * @param {string} bidId
155
+ * @param {string} buyerId 공고 명의 회원 ID (멀티테넌트 가시성 키).
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ getBidResults: (bidId_1, buyerId_1, ...args_1) => __awaiter(this, [bidId_1, buyerId_1, ...args_1], void 0, function* (bidId, buyerId, options = {}) {
160
+ // verify required parameter 'bidId' is not null or undefined
161
+ assertParamExists('getBidResults', 'bidId', bidId);
162
+ // verify required parameter 'buyerId' is not null or undefined
163
+ assertParamExists('getBidResults', 'buyerId', buyerId);
164
+ const localVarPath = `/v2/bids/{bidId}/results`
165
+ .replace('{bidId}', encodeURIComponent(String(bidId)));
166
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
167
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
168
+ let baseOptions;
169
+ if (configuration) {
170
+ baseOptions = configuration.baseOptions;
171
+ }
172
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
173
+ const localVarHeaderParameter = {};
174
+ const localVarQueryParameter = {};
175
+ // authentication partner-oauth2 required
176
+ // http bearer authentication required
177
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
178
+ if (buyerId !== undefined) {
179
+ localVarQueryParameter['buyerId'] = buyerId;
180
+ }
181
+ localVarHeaderParameter['Accept'] = 'application/json';
182
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
185
+ return {
186
+ url: toPathString(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ };
189
+ }),
190
+ /**
191
+ * V5 entendRec(bid_puchase_no_list) 후속 — 여러 공고 결과를 1회 호출로(additive, 단건 유지). bidIds(공고 식별자) 또는 purchaseNos(구매번호) 중 하나 — purchaseNos 는 각 PO 의 가장 최근 공고로 해소. 입력 순서를 보존한다. scope bids:read.
192
+ * @summary 입찰결과 배치 조회
193
+ * @param {BidResultsBatchRequestDto} bidResultsBatchRequestDto
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ getBidResultsBatch: (bidResultsBatchRequestDto_1, ...args_1) => __awaiter(this, [bidResultsBatchRequestDto_1, ...args_1], void 0, function* (bidResultsBatchRequestDto, options = {}) {
198
+ // verify required parameter 'bidResultsBatchRequestDto' is not null or undefined
199
+ assertParamExists('getBidResultsBatch', 'bidResultsBatchRequestDto', bidResultsBatchRequestDto);
200
+ const localVarPath = `/v2/bids/results/batch`;
201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
203
+ let baseOptions;
204
+ if (configuration) {
205
+ baseOptions = configuration.baseOptions;
206
+ }
207
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
208
+ const localVarHeaderParameter = {};
209
+ const localVarQueryParameter = {};
210
+ // authentication partner-oauth2 required
211
+ // http bearer authentication required
212
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
213
+ localVarHeaderParameter['Content-Type'] = 'application/json';
214
+ localVarHeaderParameter['Accept'] = 'application/json';
215
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
216
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
217
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
218
+ localVarRequestOptions.data = serializeDataIfNeeded(bidResultsBatchRequestDto, localVarRequestOptions, configuration);
219
+ return {
220
+ url: toPathString(localVarUrlObj),
221
+ options: localVarRequestOptions,
222
+ };
223
+ }),
224
+ /**
225
+ * V5 /entendrec 정산(사업자·계좌·공급가액/부가세·응찰 품목내역) 후속. scope bids:read. 가격/신원 가시성 매트릭스와 직교한 ERP 정산 데이터 — read-only.
226
+ * @summary 입찰결과 정산정보 조회
227
+ * @param {string} bidId
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ getBidSettlement: (bidId_1, ...args_1) => __awaiter(this, [bidId_1, ...args_1], void 0, function* (bidId, options = {}) {
232
+ // verify required parameter 'bidId' is not null or undefined
233
+ assertParamExists('getBidSettlement', 'bidId', bidId);
234
+ const localVarPath = `/v2/bids/{bidId}/settlement`
235
+ .replace('{bidId}', encodeURIComponent(String(bidId)));
236
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
237
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
238
+ let baseOptions;
239
+ if (configuration) {
240
+ baseOptions = configuration.baseOptions;
241
+ }
242
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
243
+ const localVarHeaderParameter = {};
244
+ const localVarQueryParameter = {};
245
+ // authentication partner-oauth2 required
246
+ // http bearer authentication required
247
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
248
+ localVarHeaderParameter['Accept'] = 'application/json';
249
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
251
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
252
+ return {
253
+ url: toPathString(localVarUrlObj),
254
+ options: localVarRequestOptions,
255
+ };
256
+ }),
257
+ /**
258
+ * V5 /getGrm 후속. scope contracts:read.
259
+ * @summary 거래명세서 조회
260
+ * @param {string} bidId
261
+ * @param {number} paperCode
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ getBidStatement: (bidId_1, paperCode_1, ...args_1) => __awaiter(this, [bidId_1, paperCode_1, ...args_1], void 0, function* (bidId, paperCode, options = {}) {
266
+ // verify required parameter 'bidId' is not null or undefined
267
+ assertParamExists('getBidStatement', 'bidId', bidId);
268
+ // verify required parameter 'paperCode' is not null or undefined
269
+ assertParamExists('getBidStatement', 'paperCode', paperCode);
270
+ const localVarPath = `/v2/bids/{bidId}/statement`
271
+ .replace('{bidId}', encodeURIComponent(String(bidId)));
272
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
273
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
274
+ let baseOptions;
275
+ if (configuration) {
276
+ baseOptions = configuration.baseOptions;
277
+ }
278
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
279
+ const localVarHeaderParameter = {};
280
+ const localVarQueryParameter = {};
281
+ // authentication partner-oauth2 required
282
+ // http bearer authentication required
283
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
284
+ if (paperCode !== undefined) {
285
+ localVarQueryParameter['paperCode'] = paperCode;
286
+ }
287
+ localVarHeaderParameter['Accept'] = 'application/json';
288
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
289
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
290
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
291
+ return {
292
+ url: toPathString(localVarUrlObj),
293
+ options: localVarRequestOptions,
294
+ };
295
+ }),
296
+ /**
297
+ * ERP 연동 직전 회선·인증 endpoint 동작 확인용.
298
+ * @summary Partner API 헬스체크
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ healthControllerCheck: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
303
+ const localVarPath = `/health`;
304
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
305
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
306
+ let baseOptions;
307
+ if (configuration) {
308
+ baseOptions = configuration.baseOptions;
309
+ }
310
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
311
+ const localVarHeaderParameter = {};
312
+ const localVarQueryParameter = {};
313
+ localVarHeaderParameter['Accept'] = 'application/json';
314
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
315
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
316
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
317
+ return {
318
+ url: toPathString(localVarUrlObj),
319
+ options: localVarRequestOptions,
320
+ };
321
+ }),
322
+ /**
323
+ * 공고를 유찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=U, 유찰) — BidApi.xml `yoochal` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 유찰 사유가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 유찰(FAILED)로 전환됩니다. - 유찰사유 코드(V5 `b2b_buy.sayou`)와 상세(V5 `b2b_buy.sa_desc`)가 기록됩니다. **유찰사유 코드 목록(BidFailureReason):** | 코드 | 의미 | |------|------| | `1` | 예정가격 초과 | | `2` | 자격 미달 | | `3` | 전문성 필요 | | `4` | 기타 (`failureReasonDetail` 필수) | | `5` | 참가자 없음 | | `6` | 단독 참가 | | `7` | 2인 미만 | | `8` | 최저가 미달 | **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수.
324
+ * @summary 유찰 처리
325
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
326
+ * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ markBidFailed: (idempotencyKey_1, markBidFailedRequestDto_1, ...args_1) => __awaiter(this, [idempotencyKey_1, markBidFailedRequestDto_1, ...args_1], void 0, function* (idempotencyKey, markBidFailedRequestDto, options = {}) {
331
+ // verify required parameter 'idempotencyKey' is not null or undefined
332
+ assertParamExists('markBidFailed', 'idempotencyKey', idempotencyKey);
333
+ // verify required parameter 'markBidFailedRequestDto' is not null or undefined
334
+ assertParamExists('markBidFailed', 'markBidFailedRequestDto', markBidFailedRequestDto);
335
+ const localVarPath = `/v2/awards/fail`;
336
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
337
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
338
+ let baseOptions;
339
+ if (configuration) {
340
+ baseOptions = configuration.baseOptions;
341
+ }
342
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
343
+ const localVarHeaderParameter = {};
344
+ const localVarQueryParameter = {};
345
+ // authentication partner-oauth2 required
346
+ // http bearer authentication required
347
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
349
+ localVarHeaderParameter['Accept'] = 'application/json';
350
+ if (idempotencyKey != null) {
351
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
352
+ }
353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
356
+ localVarRequestOptions.data = serializeDataIfNeeded(markBidFailedRequestDto, localVarRequestOptions, configuration);
357
+ return {
358
+ url: toPathString(localVarUrlObj),
359
+ options: localVarRequestOptions,
360
+ };
361
+ }),
362
+ /**
363
+ * 낙찰 결과를 등록하고 공고를 낙찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=W, 낙찰) — BidApi.xml `selectWinner` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 낙찰자가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 낙찰(AWARDED)로 전환됩니다. - 낙찰자(공급사) 응찰행이 낙찰 처리됩니다. - 협상 방식(H/K)은 이 엔드포인트 전에 `/v1/awards/nego-eval`로 평가 완료가 필요합니다. **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수. 동일 키 + 동일 body 재전송 시 24시간 내 캐시 응답 반환.
364
+ * @summary 낙찰 결과 전송
365
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
366
+ * @param {RegisterAwardRequestDto} registerAwardRequestDto
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ registerAward: (idempotencyKey_1, registerAwardRequestDto_1, ...args_1) => __awaiter(this, [idempotencyKey_1, registerAwardRequestDto_1, ...args_1], void 0, function* (idempotencyKey, registerAwardRequestDto, options = {}) {
371
+ // verify required parameter 'idempotencyKey' is not null or undefined
372
+ assertParamExists('registerAward', 'idempotencyKey', idempotencyKey);
373
+ // verify required parameter 'registerAwardRequestDto' is not null or undefined
374
+ assertParamExists('registerAward', 'registerAwardRequestDto', registerAwardRequestDto);
375
+ const localVarPath = `/v2/awards`;
376
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
377
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
378
+ let baseOptions;
379
+ if (configuration) {
380
+ baseOptions = configuration.baseOptions;
381
+ }
382
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
383
+ const localVarHeaderParameter = {};
384
+ const localVarQueryParameter = {};
385
+ // authentication partner-oauth2 required
386
+ // http bearer authentication required
387
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
388
+ localVarHeaderParameter['Content-Type'] = 'application/json';
389
+ localVarHeaderParameter['Accept'] = 'application/json';
390
+ if (idempotencyKey != null) {
391
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
392
+ }
393
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
396
+ localVarRequestOptions.data = serializeDataIfNeeded(registerAwardRequestDto, localVarRequestOptions, configuration);
397
+ return {
398
+ url: toPathString(localVarUrlObj),
399
+ options: localVarRequestOptions,
400
+ };
401
+ }),
402
+ /**
403
+ * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
404
+ * @summary 입찰 정보 전송(등록)
405
+ * @param {CreateBidRequestDto} createBidRequestDto
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ registerBid: (createBidRequestDto_1, ...args_1) => __awaiter(this, [createBidRequestDto_1, ...args_1], void 0, function* (createBidRequestDto, options = {}) {
410
+ // verify required parameter 'createBidRequestDto' is not null or undefined
411
+ assertParamExists('registerBid', 'createBidRequestDto', createBidRequestDto);
412
+ const localVarPath = `/v2/bids`;
413
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
414
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
415
+ let baseOptions;
416
+ if (configuration) {
417
+ baseOptions = configuration.baseOptions;
418
+ }
419
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
420
+ const localVarHeaderParameter = {};
421
+ const localVarQueryParameter = {};
422
+ // authentication partner-oauth2 required
423
+ // http bearer authentication required
424
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
425
+ localVarHeaderParameter['Content-Type'] = 'application/json';
426
+ localVarHeaderParameter['Accept'] = 'application/json';
427
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
428
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
429
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
430
+ localVarRequestOptions.data = serializeDataIfNeeded(createBidRequestDto, localVarRequestOptions, configuration);
431
+ return {
432
+ url: toPathString(localVarUrlObj),
433
+ options: localVarRequestOptions,
434
+ };
435
+ }),
436
+ /**
437
+ * 세금계산서 분할 발급 청구를 기록합니다. 발급 엔진이 아니라 \"분할 발급 청구 요청을 접수\"하는 엔드포인트입니다. **V5 대응:** `splitInvoiceRequest` — BidApi.xml `splitInvoice` 액션의 V6 후속. **호출 시점:** 검수완료 후 세금계산서를 분할 발급받고자 할 때. 공급가액과 부가세를 나누어 청구합니다. **부수효과:** - 분할 발급 청구가 기록됩니다(실제 세금계산서 발급은 별도 프로세스). - 작성일자(`issueDate`)는 미래 일자 불가(I5 — V5 `PgBidApiService:220-235` 패리티). 오늘 날짜는 허용. - `issueDate` 미지정 시 backend 기본값 적용. **금액 단위:** 원(KRW) 정수. `supplyAmount`(공급가액) + `vat`(부가세) 합산이 실제 청구 총액. **필수 스코프:** `invoices:write` **멱등성:** `Idempotency-Key` 헤더 필수.
438
+ * @summary 계산서 분할 발급 청구
439
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
440
+ * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ requestSplitInvoice: (idempotencyKey_1, requestSplitInvoiceRequestDto_1, ...args_1) => __awaiter(this, [idempotencyKey_1, requestSplitInvoiceRequestDto_1, ...args_1], void 0, function* (idempotencyKey, requestSplitInvoiceRequestDto, options = {}) {
445
+ // verify required parameter 'idempotencyKey' is not null or undefined
446
+ assertParamExists('requestSplitInvoice', 'idempotencyKey', idempotencyKey);
447
+ // verify required parameter 'requestSplitInvoiceRequestDto' is not null or undefined
448
+ assertParamExists('requestSplitInvoice', 'requestSplitInvoiceRequestDto', requestSplitInvoiceRequestDto);
449
+ const localVarPath = `/v2/invoices/split-requests`;
450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
452
+ let baseOptions;
453
+ if (configuration) {
454
+ baseOptions = configuration.baseOptions;
455
+ }
456
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
457
+ const localVarHeaderParameter = {};
458
+ const localVarQueryParameter = {};
459
+ // authentication partner-oauth2 required
460
+ // http bearer authentication required
461
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
462
+ localVarHeaderParameter['Content-Type'] = 'application/json';
463
+ localVarHeaderParameter['Accept'] = 'application/json';
464
+ if (idempotencyKey != null) {
465
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
466
+ }
467
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
468
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
469
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
470
+ localVarRequestOptions.data = serializeDataIfNeeded(requestSplitInvoiceRequestDto, localVarRequestOptions, configuration);
471
+ return {
472
+ url: toPathString(localVarUrlObj),
473
+ options: localVarRequestOptions,
474
+ };
475
+ }),
476
+ /**
477
+ * 협상에의한계약(낙찰방법 H/K) 응찰자별 기술/가격 점수를 일괄 입력합니다. **V5 대응:** `scsbidSend`(type=nego, 점수입력) — BidApi.xml `nego-eval` 액션의 V6 후속. **호출 시점:** 협상 방식 공고 마감 후 점수 평가를 진행할 때. `complete=true` 를 함께 보내면 평가완료 게이트(V5 `nego_complete_yn=Y`)까지 적용되어 낙찰 진입이 가능합니다. **부수효과:** - 각 응찰자의 기술점수(`techPoint`) 및 가격점수(`bidPoint`, 선택)가 저장됩니다. - `complete=true`인 경우 평가완료 상태로 전환되어 이후 `/v1/awards`로 낙찰 처리가 가능합니다. - 가격점수(`bidPoint`)를 생략하면 backend 가 배점 기준에 따라 자동 계산합니다. **응찰자 식별:** `sequence`(= V5 `buy_seq`, `entendrec` 응답의 `sequence` 필드). **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수.
478
+ * @summary 협상(H/K) 점수평가
479
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
480
+ * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ submitNegotiationScores: (idempotencyKey_1, submitNegotiationScoresRequestDto_1, ...args_1) => __awaiter(this, [idempotencyKey_1, submitNegotiationScoresRequestDto_1, ...args_1], void 0, function* (idempotencyKey, submitNegotiationScoresRequestDto, options = {}) {
485
+ // verify required parameter 'idempotencyKey' is not null or undefined
486
+ assertParamExists('submitNegotiationScores', 'idempotencyKey', idempotencyKey);
487
+ // verify required parameter 'submitNegotiationScoresRequestDto' is not null or undefined
488
+ assertParamExists('submitNegotiationScores', 'submitNegotiationScoresRequestDto', submitNegotiationScoresRequestDto);
489
+ const localVarPath = `/v2/awards/nego-eval`;
490
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
491
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
492
+ let baseOptions;
493
+ if (configuration) {
494
+ baseOptions = configuration.baseOptions;
495
+ }
496
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
497
+ const localVarHeaderParameter = {};
498
+ const localVarQueryParameter = {};
499
+ // authentication partner-oauth2 required
500
+ // http bearer authentication required
501
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
502
+ localVarHeaderParameter['Content-Type'] = 'application/json';
503
+ localVarHeaderParameter['Accept'] = 'application/json';
504
+ if (idempotencyKey != null) {
505
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
506
+ }
507
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
508
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
509
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
510
+ localVarRequestOptions.data = serializeDataIfNeeded(submitNegotiationScoresRequestDto, localVarRequestOptions, configuration);
511
+ return {
512
+ url: toPathString(localVarUrlObj),
513
+ options: localVarRequestOptions,
514
+ };
515
+ }),
516
+ /**
517
+ * 스코프 `files:write` + `Idempotency-Key` 헤더 필수. base64 또는 url 중 정확히 하나를 제출한다.
518
+ * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
519
+ * @param {UploadFileRequestDto} uploadFileRequestDto
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ */
523
+ uploadFile: (uploadFileRequestDto_1, ...args_1) => __awaiter(this, [uploadFileRequestDto_1, ...args_1], void 0, function* (uploadFileRequestDto, options = {}) {
524
+ // verify required parameter 'uploadFileRequestDto' is not null or undefined
525
+ assertParamExists('uploadFile', 'uploadFileRequestDto', uploadFileRequestDto);
526
+ const localVarPath = `/v2/files`;
527
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
528
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
529
+ let baseOptions;
530
+ if (configuration) {
531
+ baseOptions = configuration.baseOptions;
532
+ }
533
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
534
+ const localVarHeaderParameter = {};
535
+ const localVarQueryParameter = {};
536
+ // authentication partner-oauth2 required
537
+ // http bearer authentication required
538
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
539
+ localVarHeaderParameter['Content-Type'] = 'application/json';
540
+ localVarHeaderParameter['Accept'] = 'application/json';
541
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
542
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
543
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
544
+ localVarRequestOptions.data = serializeDataIfNeeded(uploadFileRequestDto, localVarRequestOptions, configuration);
545
+ return {
546
+ url: toPathString(localVarUrlObj),
547
+ options: localVarRequestOptions,
548
+ };
549
+ }),
550
+ };
551
+ };
552
+ /**
553
+ * PartnerV2Api - functional programming interface
554
+ */
555
+ export const PartnerV2ApiFp = function (configuration) {
556
+ const localVarAxiosParamCreator = PartnerV2ApiAxiosParamCreator(configuration);
557
+ return {
558
+ /**
559
+ * 낙찰 공고의 검수(납품 검수)가 완료되었음을 기록합니다. **V5 대응:** `acceptanceCompleteSend` — BidApi.xml `acceptanceComplete` 액션의 V6 후속. **호출 시점:** 낙찰자(공급사)가 납품을 완료하고 구매자가 검수를 확인한 시점. 공고 상태가 낙찰(AWARDED) 상태여야 합니다. **부수효과:** - 검수완료 상태가 기록됩니다. - 거래명세서·검수보고서에 찍힐 구매사 사업자정보·담당자·작성일자를 함께 override할 수 있습니다(선택 필드). 비어있지 않은 값만 backend 가 `b2b_buy`에 stamp합니다(V5 taxbill UPDATE 조건부 set 패리티). - 응답은 204가 아닌 200입니다 — 멱등성 인터셉터가 구체 바디를 캐시하고 SDK 가 타입드 응답을 필요로 하기 때문. **낙찰자 식별:** `winnerMemberId`(공급사 memberId). 내부 joinSeq 해소는 backend 가 처리합니다. **필수 스코프:** `contracts:write` **멱등성:** `Idempotency-Key` 헤더 필수.
560
+ * @summary 검수완료 전송
561
+ * @param {string} bidId 공고 ID(&#x3D; backend bidId &#x3D; 등록 응답의 bidNo).
562
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
563
+ * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
564
+ * @param {*} [options] Override http request option.
565
+ * @throws {RequiredError}
566
+ */
567
+ completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options) {
568
+ return __awaiter(this, void 0, void 0, function* () {
569
+ var _a, _b, _c;
570
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options);
571
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
572
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.completeAcceptance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
573
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
574
+ });
575
+ },
576
+ /**
577
+ * V5 /contractDocumentRec 후속. scope contracts:read.
578
+ * @summary 계약서류 수신 조회
579
+ * @param {string} bidId
580
+ * @param {string} buyerId 공고 명의 회원 ID(b2b_member.member_id).
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ getBidContractDocuments(bidId, buyerId, options) {
585
+ return __awaiter(this, void 0, void 0, function* () {
586
+ var _a, _b, _c;
587
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidContractDocuments(bidId, buyerId, options);
588
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
589
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.getBidContractDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
590
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
591
+ });
592
+ },
593
+ /**
594
+ * V5 /contractDocumentRec(bid_puchase_no_list) 후속. 공고번호 리스트를 한 번에 조회. 단건(GET :bidId/contract-documents)은 그대로 유지. scope contracts:read.
595
+ * @summary 계약서류 수신 배치 조회
596
+ * @param {BidContractDocumentsBatchRequestDto} bidContractDocumentsBatchRequestDto
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ var _a, _b, _c;
603
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options);
604
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
605
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.getBidContractDocumentsBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
606
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
607
+ });
608
+ },
609
+ /**
610
+ * V5 /entendrec 후속. scope bids:read.
611
+ * @summary 입찰 결과 조회
612
+ * @param {string} bidId
613
+ * @param {string} buyerId 공고 명의 회원 ID (멀티테넌트 가시성 키).
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ getBidResults(bidId, buyerId, options) {
618
+ return __awaiter(this, void 0, void 0, function* () {
619
+ var _a, _b, _c;
620
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidResults(bidId, buyerId, options);
621
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
622
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.getBidResults']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
623
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
624
+ });
625
+ },
626
+ /**
627
+ * V5 entendRec(bid_puchase_no_list) 후속 — 여러 공고 결과를 1회 호출로(additive, 단건 유지). bidIds(공고 식별자) 또는 purchaseNos(구매번호) 중 하나 — purchaseNos 는 각 PO 의 가장 최근 공고로 해소. 입력 순서를 보존한다. scope bids:read.
628
+ * @summary 입찰결과 배치 조회
629
+ * @param {BidResultsBatchRequestDto} bidResultsBatchRequestDto
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ */
633
+ getBidResultsBatch(bidResultsBatchRequestDto, options) {
634
+ return __awaiter(this, void 0, void 0, function* () {
635
+ var _a, _b, _c;
636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidResultsBatch(bidResultsBatchRequestDto, options);
637
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
638
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.getBidResultsBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
639
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
640
+ });
641
+ },
642
+ /**
643
+ * V5 /entendrec 정산(사업자·계좌·공급가액/부가세·응찰 품목내역) 후속. scope bids:read. 가격/신원 가시성 매트릭스와 직교한 ERP 정산 데이터 — read-only.
644
+ * @summary 입찰결과 정산정보 조회
645
+ * @param {string} bidId
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ */
649
+ getBidSettlement(bidId, options) {
650
+ return __awaiter(this, void 0, void 0, function* () {
651
+ var _a, _b, _c;
652
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidSettlement(bidId, options);
653
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
654
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.getBidSettlement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
655
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
656
+ });
657
+ },
658
+ /**
659
+ * V5 /getGrm 후속. scope contracts:read.
660
+ * @summary 거래명세서 조회
661
+ * @param {string} bidId
662
+ * @param {number} paperCode
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ getBidStatement(bidId, paperCode, options) {
667
+ return __awaiter(this, void 0, void 0, function* () {
668
+ var _a, _b, _c;
669
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidStatement(bidId, paperCode, options);
670
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
671
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.getBidStatement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
672
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
673
+ });
674
+ },
675
+ /**
676
+ * ERP 연동 직전 회선·인증 endpoint 동작 확인용.
677
+ * @summary Partner API 헬스체크
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ healthControllerCheck(options) {
682
+ return __awaiter(this, void 0, void 0, function* () {
683
+ var _a, _b, _c;
684
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.healthControllerCheck(options);
685
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
686
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.healthControllerCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
687
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
688
+ });
689
+ },
690
+ /**
691
+ * 공고를 유찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=U, 유찰) — BidApi.xml `yoochal` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 유찰 사유가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 유찰(FAILED)로 전환됩니다. - 유찰사유 코드(V5 `b2b_buy.sayou`)와 상세(V5 `b2b_buy.sa_desc`)가 기록됩니다. **유찰사유 코드 목록(BidFailureReason):** | 코드 | 의미 | |------|------| | `1` | 예정가격 초과 | | `2` | 자격 미달 | | `3` | 전문성 필요 | | `4` | 기타 (`failureReasonDetail` 필수) | | `5` | 참가자 없음 | | `6` | 단독 참가 | | `7` | 2인 미만 | | `8` | 최저가 미달 | **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수.
692
+ * @summary 유찰 처리
693
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
694
+ * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
695
+ * @param {*} [options] Override http request option.
696
+ * @throws {RequiredError}
697
+ */
698
+ markBidFailed(idempotencyKey, markBidFailedRequestDto, options) {
699
+ return __awaiter(this, void 0, void 0, function* () {
700
+ var _a, _b, _c;
701
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.markBidFailed(idempotencyKey, markBidFailedRequestDto, options);
702
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
703
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.markBidFailed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
704
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ });
706
+ },
707
+ /**
708
+ * 낙찰 결과를 등록하고 공고를 낙찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=W, 낙찰) — BidApi.xml `selectWinner` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 낙찰자가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 낙찰(AWARDED)로 전환됩니다. - 낙찰자(공급사) 응찰행이 낙찰 처리됩니다. - 협상 방식(H/K)은 이 엔드포인트 전에 `/v1/awards/nego-eval`로 평가 완료가 필요합니다. **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수. 동일 키 + 동일 body 재전송 시 24시간 내 캐시 응답 반환.
709
+ * @summary 낙찰 결과 전송
710
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
711
+ * @param {RegisterAwardRequestDto} registerAwardRequestDto
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ */
715
+ registerAward(idempotencyKey, registerAwardRequestDto, options) {
716
+ return __awaiter(this, void 0, void 0, function* () {
717
+ var _a, _b, _c;
718
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerAward(idempotencyKey, registerAwardRequestDto, options);
719
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
720
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.registerAward']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
722
+ });
723
+ },
724
+ /**
725
+ * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
726
+ * @summary 입찰 정보 전송(등록)
727
+ * @param {CreateBidRequestDto} createBidRequestDto
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ registerBid(createBidRequestDto, options) {
732
+ return __awaiter(this, void 0, void 0, function* () {
733
+ var _a, _b, _c;
734
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerBid(createBidRequestDto, options);
735
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
736
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.registerBid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
737
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
738
+ });
739
+ },
740
+ /**
741
+ * 세금계산서 분할 발급 청구를 기록합니다. 발급 엔진이 아니라 \"분할 발급 청구 요청을 접수\"하는 엔드포인트입니다. **V5 대응:** `splitInvoiceRequest` — BidApi.xml `splitInvoice` 액션의 V6 후속. **호출 시점:** 검수완료 후 세금계산서를 분할 발급받고자 할 때. 공급가액과 부가세를 나누어 청구합니다. **부수효과:** - 분할 발급 청구가 기록됩니다(실제 세금계산서 발급은 별도 프로세스). - 작성일자(`issueDate`)는 미래 일자 불가(I5 — V5 `PgBidApiService:220-235` 패리티). 오늘 날짜는 허용. - `issueDate` 미지정 시 backend 기본값 적용. **금액 단위:** 원(KRW) 정수. `supplyAmount`(공급가액) + `vat`(부가세) 합산이 실제 청구 총액. **필수 스코프:** `invoices:write` **멱등성:** `Idempotency-Key` 헤더 필수.
742
+ * @summary 계산서 분할 발급 청구
743
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
744
+ * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options) {
749
+ return __awaiter(this, void 0, void 0, function* () {
750
+ var _a, _b, _c;
751
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options);
752
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
753
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.requestSplitInvoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
754
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
755
+ });
756
+ },
757
+ /**
758
+ * 협상에의한계약(낙찰방법 H/K) 응찰자별 기술/가격 점수를 일괄 입력합니다. **V5 대응:** `scsbidSend`(type=nego, 점수입력) — BidApi.xml `nego-eval` 액션의 V6 후속. **호출 시점:** 협상 방식 공고 마감 후 점수 평가를 진행할 때. `complete=true` 를 함께 보내면 평가완료 게이트(V5 `nego_complete_yn=Y`)까지 적용되어 낙찰 진입이 가능합니다. **부수효과:** - 각 응찰자의 기술점수(`techPoint`) 및 가격점수(`bidPoint`, 선택)가 저장됩니다. - `complete=true`인 경우 평가완료 상태로 전환되어 이후 `/v1/awards`로 낙찰 처리가 가능합니다. - 가격점수(`bidPoint`)를 생략하면 backend 가 배점 기준에 따라 자동 계산합니다. **응찰자 식별:** `sequence`(= V5 `buy_seq`, `entendrec` 응답의 `sequence` 필드). **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수.
759
+ * @summary 협상(H/K) 점수평가
760
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
761
+ * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options) {
766
+ return __awaiter(this, void 0, void 0, function* () {
767
+ var _a, _b, _c;
768
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options);
769
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
770
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.submitNegotiationScores']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
771
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
772
+ });
773
+ },
774
+ /**
775
+ * 스코프 `files:write` + `Idempotency-Key` 헤더 필수. base64 또는 url 중 정확히 하나를 제출한다.
776
+ * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
777
+ * @param {UploadFileRequestDto} uploadFileRequestDto
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ uploadFile(uploadFileRequestDto, options) {
782
+ return __awaiter(this, void 0, void 0, function* () {
783
+ var _a, _b, _c;
784
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(uploadFileRequestDto, options);
785
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
786
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
787
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
788
+ });
789
+ },
790
+ };
791
+ };
792
+ /**
793
+ * PartnerV2Api - factory interface
794
+ */
795
+ export const PartnerV2ApiFactory = function (configuration, basePath, axios) {
796
+ const localVarFp = PartnerV2ApiFp(configuration);
797
+ return {
798
+ /**
799
+ * 낙찰 공고의 검수(납품 검수)가 완료되었음을 기록합니다. **V5 대응:** `acceptanceCompleteSend` — BidApi.xml `acceptanceComplete` 액션의 V6 후속. **호출 시점:** 낙찰자(공급사)가 납품을 완료하고 구매자가 검수를 확인한 시점. 공고 상태가 낙찰(AWARDED) 상태여야 합니다. **부수효과:** - 검수완료 상태가 기록됩니다. - 거래명세서·검수보고서에 찍힐 구매사 사업자정보·담당자·작성일자를 함께 override할 수 있습니다(선택 필드). 비어있지 않은 값만 backend 가 `b2b_buy`에 stamp합니다(V5 taxbill UPDATE 조건부 set 패리티). - 응답은 204가 아닌 200입니다 — 멱등성 인터셉터가 구체 바디를 캐시하고 SDK 가 타입드 응답을 필요로 하기 때문. **낙찰자 식별:** `winnerMemberId`(공급사 memberId). 내부 joinSeq 해소는 backend 가 처리합니다. **필수 스코프:** `contracts:write` **멱등성:** `Idempotency-Key` 헤더 필수.
800
+ * @summary 검수완료 전송
801
+ * @param {string} bidId 공고 ID(&#x3D; backend bidId &#x3D; 등록 응답의 bidNo).
802
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
803
+ * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options) {
808
+ return localVarFp.completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options).then((request) => request(axios, basePath));
809
+ },
810
+ /**
811
+ * V5 /contractDocumentRec 후속. scope contracts:read.
812
+ * @summary 계약서류 수신 조회
813
+ * @param {string} bidId
814
+ * @param {string} buyerId 공고 명의 회원 ID(b2b_member.member_id).
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ */
818
+ getBidContractDocuments(bidId, buyerId, options) {
819
+ return localVarFp.getBidContractDocuments(bidId, buyerId, options).then((request) => request(axios, basePath));
820
+ },
821
+ /**
822
+ * V5 /contractDocumentRec(bid_puchase_no_list) 후속. 공고번호 리스트를 한 번에 조회. 단건(GET :bidId/contract-documents)은 그대로 유지. scope contracts:read.
823
+ * @summary 계약서류 수신 배치 조회
824
+ * @param {BidContractDocumentsBatchRequestDto} bidContractDocumentsBatchRequestDto
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options) {
829
+ return localVarFp.getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options).then((request) => request(axios, basePath));
830
+ },
831
+ /**
832
+ * V5 /entendrec 후속. scope bids:read.
833
+ * @summary 입찰 결과 조회
834
+ * @param {string} bidId
835
+ * @param {string} buyerId 공고 명의 회원 ID (멀티테넌트 가시성 키).
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ getBidResults(bidId, buyerId, options) {
840
+ return localVarFp.getBidResults(bidId, buyerId, options).then((request) => request(axios, basePath));
841
+ },
842
+ /**
843
+ * V5 entendRec(bid_puchase_no_list) 후속 — 여러 공고 결과를 1회 호출로(additive, 단건 유지). bidIds(공고 식별자) 또는 purchaseNos(구매번호) 중 하나 — purchaseNos 는 각 PO 의 가장 최근 공고로 해소. 입력 순서를 보존한다. scope bids:read.
844
+ * @summary 입찰결과 배치 조회
845
+ * @param {BidResultsBatchRequestDto} bidResultsBatchRequestDto
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ */
849
+ getBidResultsBatch(bidResultsBatchRequestDto, options) {
850
+ return localVarFp.getBidResultsBatch(bidResultsBatchRequestDto, options).then((request) => request(axios, basePath));
851
+ },
852
+ /**
853
+ * V5 /entendrec 정산(사업자·계좌·공급가액/부가세·응찰 품목내역) 후속. scope bids:read. 가격/신원 가시성 매트릭스와 직교한 ERP 정산 데이터 — read-only.
854
+ * @summary 입찰결과 정산정보 조회
855
+ * @param {string} bidId
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ getBidSettlement(bidId, options) {
860
+ return localVarFp.getBidSettlement(bidId, options).then((request) => request(axios, basePath));
861
+ },
862
+ /**
863
+ * V5 /getGrm 후속. scope contracts:read.
864
+ * @summary 거래명세서 조회
865
+ * @param {string} bidId
866
+ * @param {number} paperCode
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ */
870
+ getBidStatement(bidId, paperCode, options) {
871
+ return localVarFp.getBidStatement(bidId, paperCode, options).then((request) => request(axios, basePath));
872
+ },
873
+ /**
874
+ * ERP 연동 직전 회선·인증 endpoint 동작 확인용.
875
+ * @summary Partner API 헬스체크
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ */
879
+ healthControllerCheck(options) {
880
+ return localVarFp.healthControllerCheck(options).then((request) => request(axios, basePath));
881
+ },
882
+ /**
883
+ * 공고를 유찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=U, 유찰) — BidApi.xml `yoochal` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 유찰 사유가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 유찰(FAILED)로 전환됩니다. - 유찰사유 코드(V5 `b2b_buy.sayou`)와 상세(V5 `b2b_buy.sa_desc`)가 기록됩니다. **유찰사유 코드 목록(BidFailureReason):** | 코드 | 의미 | |------|------| | `1` | 예정가격 초과 | | `2` | 자격 미달 | | `3` | 전문성 필요 | | `4` | 기타 (`failureReasonDetail` 필수) | | `5` | 참가자 없음 | | `6` | 단독 참가 | | `7` | 2인 미만 | | `8` | 최저가 미달 | **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수.
884
+ * @summary 유찰 처리
885
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
886
+ * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ */
890
+ markBidFailed(idempotencyKey, markBidFailedRequestDto, options) {
891
+ return localVarFp.markBidFailed(idempotencyKey, markBidFailedRequestDto, options).then((request) => request(axios, basePath));
892
+ },
893
+ /**
894
+ * 낙찰 결과를 등록하고 공고를 낙찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=W, 낙찰) — BidApi.xml `selectWinner` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 낙찰자가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 낙찰(AWARDED)로 전환됩니다. - 낙찰자(공급사) 응찰행이 낙찰 처리됩니다. - 협상 방식(H/K)은 이 엔드포인트 전에 `/v1/awards/nego-eval`로 평가 완료가 필요합니다. **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수. 동일 키 + 동일 body 재전송 시 24시간 내 캐시 응답 반환.
895
+ * @summary 낙찰 결과 전송
896
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
897
+ * @param {RegisterAwardRequestDto} registerAwardRequestDto
898
+ * @param {*} [options] Override http request option.
899
+ * @throws {RequiredError}
900
+ */
901
+ registerAward(idempotencyKey, registerAwardRequestDto, options) {
902
+ return localVarFp.registerAward(idempotencyKey, registerAwardRequestDto, options).then((request) => request(axios, basePath));
903
+ },
904
+ /**
905
+ * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
906
+ * @summary 입찰 정보 전송(등록)
907
+ * @param {CreateBidRequestDto} createBidRequestDto
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ registerBid(createBidRequestDto, options) {
912
+ return localVarFp.registerBid(createBidRequestDto, options).then((request) => request(axios, basePath));
913
+ },
914
+ /**
915
+ * 세금계산서 분할 발급 청구를 기록합니다. 발급 엔진이 아니라 \"분할 발급 청구 요청을 접수\"하는 엔드포인트입니다. **V5 대응:** `splitInvoiceRequest` — BidApi.xml `splitInvoice` 액션의 V6 후속. **호출 시점:** 검수완료 후 세금계산서를 분할 발급받고자 할 때. 공급가액과 부가세를 나누어 청구합니다. **부수효과:** - 분할 발급 청구가 기록됩니다(실제 세금계산서 발급은 별도 프로세스). - 작성일자(`issueDate`)는 미래 일자 불가(I5 — V5 `PgBidApiService:220-235` 패리티). 오늘 날짜는 허용. - `issueDate` 미지정 시 backend 기본값 적용. **금액 단위:** 원(KRW) 정수. `supplyAmount`(공급가액) + `vat`(부가세) 합산이 실제 청구 총액. **필수 스코프:** `invoices:write` **멱등성:** `Idempotency-Key` 헤더 필수.
916
+ * @summary 계산서 분할 발급 청구
917
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
918
+ * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options) {
923
+ return localVarFp.requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options).then((request) => request(axios, basePath));
924
+ },
925
+ /**
926
+ * 협상에의한계약(낙찰방법 H/K) 응찰자별 기술/가격 점수를 일괄 입력합니다. **V5 대응:** `scsbidSend`(type=nego, 점수입력) — BidApi.xml `nego-eval` 액션의 V6 후속. **호출 시점:** 협상 방식 공고 마감 후 점수 평가를 진행할 때. `complete=true` 를 함께 보내면 평가완료 게이트(V5 `nego_complete_yn=Y`)까지 적용되어 낙찰 진입이 가능합니다. **부수효과:** - 각 응찰자의 기술점수(`techPoint`) 및 가격점수(`bidPoint`, 선택)가 저장됩니다. - `complete=true`인 경우 평가완료 상태로 전환되어 이후 `/v1/awards`로 낙찰 처리가 가능합니다. - 가격점수(`bidPoint`)를 생략하면 backend 가 배점 기준에 따라 자동 계산합니다. **응찰자 식별:** `sequence`(= V5 `buy_seq`, `entendrec` 응답의 `sequence` 필드). **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수.
927
+ * @summary 협상(H/K) 점수평가
928
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
929
+ * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
930
+ * @param {*} [options] Override http request option.
931
+ * @throws {RequiredError}
932
+ */
933
+ submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options) {
934
+ return localVarFp.submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options).then((request) => request(axios, basePath));
935
+ },
936
+ /**
937
+ * 스코프 `files:write` + `Idempotency-Key` 헤더 필수. base64 또는 url 중 정확히 하나를 제출한다.
938
+ * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
939
+ * @param {UploadFileRequestDto} uploadFileRequestDto
940
+ * @param {*} [options] Override http request option.
941
+ * @throws {RequiredError}
942
+ */
943
+ uploadFile(uploadFileRequestDto, options) {
944
+ return localVarFp.uploadFile(uploadFileRequestDto, options).then((request) => request(axios, basePath));
945
+ },
946
+ };
947
+ };
948
+ /**
949
+ * PartnerV2Api - object-oriented interface
950
+ */
951
+ export class PartnerV2Api extends BaseAPI {
952
+ /**
953
+ * 낙찰 공고의 검수(납품 검수)가 완료되었음을 기록합니다. **V5 대응:** `acceptanceCompleteSend` — BidApi.xml `acceptanceComplete` 액션의 V6 후속. **호출 시점:** 낙찰자(공급사)가 납품을 완료하고 구매자가 검수를 확인한 시점. 공고 상태가 낙찰(AWARDED) 상태여야 합니다. **부수효과:** - 검수완료 상태가 기록됩니다. - 거래명세서·검수보고서에 찍힐 구매사 사업자정보·담당자·작성일자를 함께 override할 수 있습니다(선택 필드). 비어있지 않은 값만 backend 가 `b2b_buy`에 stamp합니다(V5 taxbill UPDATE 조건부 set 패리티). - 응답은 204가 아닌 200입니다 — 멱등성 인터셉터가 구체 바디를 캐시하고 SDK 가 타입드 응답을 필요로 하기 때문. **낙찰자 식별:** `winnerMemberId`(공급사 memberId). 내부 joinSeq 해소는 backend 가 처리합니다. **필수 스코프:** `contracts:write` **멱등성:** `Idempotency-Key` 헤더 필수.
954
+ * @summary 검수완료 전송
955
+ * @param {string} bidId 공고 ID(&#x3D; backend bidId &#x3D; 등록 응답의 bidNo).
956
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
957
+ * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ */
961
+ completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options) {
962
+ return PartnerV2ApiFp(this.configuration).completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options).then((request) => request(this.axios, this.basePath));
963
+ }
964
+ /**
965
+ * V5 /contractDocumentRec 후속. scope contracts:read.
966
+ * @summary 계약서류 수신 조회
967
+ * @param {string} bidId
968
+ * @param {string} buyerId 공고 명의 회원 ID(b2b_member.member_id).
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ getBidContractDocuments(bidId, buyerId, options) {
973
+ return PartnerV2ApiFp(this.configuration).getBidContractDocuments(bidId, buyerId, options).then((request) => request(this.axios, this.basePath));
974
+ }
975
+ /**
976
+ * V5 /contractDocumentRec(bid_puchase_no_list) 후속. 공고번호 리스트를 한 번에 조회. 단건(GET :bidId/contract-documents)은 그대로 유지. scope contracts:read.
977
+ * @summary 계약서류 수신 배치 조회
978
+ * @param {BidContractDocumentsBatchRequestDto} bidContractDocumentsBatchRequestDto
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options) {
983
+ return PartnerV2ApiFp(this.configuration).getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options).then((request) => request(this.axios, this.basePath));
984
+ }
985
+ /**
986
+ * V5 /entendrec 후속. scope bids:read.
987
+ * @summary 입찰 결과 조회
988
+ * @param {string} bidId
989
+ * @param {string} buyerId 공고 명의 회원 ID (멀티테넌트 가시성 키).
990
+ * @param {*} [options] Override http request option.
991
+ * @throws {RequiredError}
992
+ */
993
+ getBidResults(bidId, buyerId, options) {
994
+ return PartnerV2ApiFp(this.configuration).getBidResults(bidId, buyerId, options).then((request) => request(this.axios, this.basePath));
995
+ }
996
+ /**
997
+ * V5 entendRec(bid_puchase_no_list) 후속 — 여러 공고 결과를 1회 호출로(additive, 단건 유지). bidIds(공고 식별자) 또는 purchaseNos(구매번호) 중 하나 — purchaseNos 는 각 PO 의 가장 최근 공고로 해소. 입력 순서를 보존한다. scope bids:read.
998
+ * @summary 입찰결과 배치 조회
999
+ * @param {BidResultsBatchRequestDto} bidResultsBatchRequestDto
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ */
1003
+ getBidResultsBatch(bidResultsBatchRequestDto, options) {
1004
+ return PartnerV2ApiFp(this.configuration).getBidResultsBatch(bidResultsBatchRequestDto, options).then((request) => request(this.axios, this.basePath));
1005
+ }
1006
+ /**
1007
+ * V5 /entendrec 정산(사업자·계좌·공급가액/부가세·응찰 품목내역) 후속. scope bids:read. 가격/신원 가시성 매트릭스와 직교한 ERP 정산 데이터 — read-only.
1008
+ * @summary 입찰결과 정산정보 조회
1009
+ * @param {string} bidId
1010
+ * @param {*} [options] Override http request option.
1011
+ * @throws {RequiredError}
1012
+ */
1013
+ getBidSettlement(bidId, options) {
1014
+ return PartnerV2ApiFp(this.configuration).getBidSettlement(bidId, options).then((request) => request(this.axios, this.basePath));
1015
+ }
1016
+ /**
1017
+ * V5 /getGrm 후속. scope contracts:read.
1018
+ * @summary 거래명세서 조회
1019
+ * @param {string} bidId
1020
+ * @param {number} paperCode
1021
+ * @param {*} [options] Override http request option.
1022
+ * @throws {RequiredError}
1023
+ */
1024
+ getBidStatement(bidId, paperCode, options) {
1025
+ return PartnerV2ApiFp(this.configuration).getBidStatement(bidId, paperCode, options).then((request) => request(this.axios, this.basePath));
1026
+ }
1027
+ /**
1028
+ * ERP 연동 직전 회선·인증 endpoint 동작 확인용.
1029
+ * @summary Partner API 헬스체크
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ healthControllerCheck(options) {
1034
+ return PartnerV2ApiFp(this.configuration).healthControllerCheck(options).then((request) => request(this.axios, this.basePath));
1035
+ }
1036
+ /**
1037
+ * 공고를 유찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=U, 유찰) — BidApi.xml `yoochal` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 유찰 사유가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 유찰(FAILED)로 전환됩니다. - 유찰사유 코드(V5 `b2b_buy.sayou`)와 상세(V5 `b2b_buy.sa_desc`)가 기록됩니다. **유찰사유 코드 목록(BidFailureReason):** | 코드 | 의미 | |------|------| | `1` | 예정가격 초과 | | `2` | 자격 미달 | | `3` | 전문성 필요 | | `4` | 기타 (`failureReasonDetail` 필수) | | `5` | 참가자 없음 | | `6` | 단독 참가 | | `7` | 2인 미만 | | `8` | 최저가 미달 | **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수.
1038
+ * @summary 유찰 처리
1039
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
1040
+ * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ */
1044
+ markBidFailed(idempotencyKey, markBidFailedRequestDto, options) {
1045
+ return PartnerV2ApiFp(this.configuration).markBidFailed(idempotencyKey, markBidFailedRequestDto, options).then((request) => request(this.axios, this.basePath));
1046
+ }
1047
+ /**
1048
+ * 낙찰 결과를 등록하고 공고를 낙찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=W, 낙찰) — BidApi.xml `selectWinner` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 낙찰자가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 낙찰(AWARDED)로 전환됩니다. - 낙찰자(공급사) 응찰행이 낙찰 처리됩니다. - 협상 방식(H/K)은 이 엔드포인트 전에 `/v1/awards/nego-eval`로 평가 완료가 필요합니다. **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수. 동일 키 + 동일 body 재전송 시 24시간 내 캐시 응답 반환.
1049
+ * @summary 낙찰 결과 전송
1050
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
1051
+ * @param {RegisterAwardRequestDto} registerAwardRequestDto
1052
+ * @param {*} [options] Override http request option.
1053
+ * @throws {RequiredError}
1054
+ */
1055
+ registerAward(idempotencyKey, registerAwardRequestDto, options) {
1056
+ return PartnerV2ApiFp(this.configuration).registerAward(idempotencyKey, registerAwardRequestDto, options).then((request) => request(this.axios, this.basePath));
1057
+ }
1058
+ /**
1059
+ * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
1060
+ * @summary 입찰 정보 전송(등록)
1061
+ * @param {CreateBidRequestDto} createBidRequestDto
1062
+ * @param {*} [options] Override http request option.
1063
+ * @throws {RequiredError}
1064
+ */
1065
+ registerBid(createBidRequestDto, options) {
1066
+ return PartnerV2ApiFp(this.configuration).registerBid(createBidRequestDto, options).then((request) => request(this.axios, this.basePath));
1067
+ }
1068
+ /**
1069
+ * 세금계산서 분할 발급 청구를 기록합니다. 발급 엔진이 아니라 \"분할 발급 청구 요청을 접수\"하는 엔드포인트입니다. **V5 대응:** `splitInvoiceRequest` — BidApi.xml `splitInvoice` 액션의 V6 후속. **호출 시점:** 검수완료 후 세금계산서를 분할 발급받고자 할 때. 공급가액과 부가세를 나누어 청구합니다. **부수효과:** - 분할 발급 청구가 기록됩니다(실제 세금계산서 발급은 별도 프로세스). - 작성일자(`issueDate`)는 미래 일자 불가(I5 — V5 `PgBidApiService:220-235` 패리티). 오늘 날짜는 허용. - `issueDate` 미지정 시 backend 기본값 적용. **금액 단위:** 원(KRW) 정수. `supplyAmount`(공급가액) + `vat`(부가세) 합산이 실제 청구 총액. **필수 스코프:** `invoices:write` **멱등성:** `Idempotency-Key` 헤더 필수.
1070
+ * @summary 계산서 분할 발급 청구
1071
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
1072
+ * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
1073
+ * @param {*} [options] Override http request option.
1074
+ * @throws {RequiredError}
1075
+ */
1076
+ requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options) {
1077
+ return PartnerV2ApiFp(this.configuration).requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options).then((request) => request(this.axios, this.basePath));
1078
+ }
1079
+ /**
1080
+ * 협상에의한계약(낙찰방법 H/K) 응찰자별 기술/가격 점수를 일괄 입력합니다. **V5 대응:** `scsbidSend`(type=nego, 점수입력) — BidApi.xml `nego-eval` 액션의 V6 후속. **호출 시점:** 협상 방식 공고 마감 후 점수 평가를 진행할 때. `complete=true` 를 함께 보내면 평가완료 게이트(V5 `nego_complete_yn=Y`)까지 적용되어 낙찰 진입이 가능합니다. **부수효과:** - 각 응찰자의 기술점수(`techPoint`) 및 가격점수(`bidPoint`, 선택)가 저장됩니다. - `complete=true`인 경우 평가완료 상태로 전환되어 이후 `/v1/awards`로 낙찰 처리가 가능합니다. - 가격점수(`bidPoint`)를 생략하면 backend 가 배점 기준에 따라 자동 계산합니다. **응찰자 식별:** `sequence`(= V5 `buy_seq`, `entendrec` 응답의 `sequence` 필드). **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수.
1081
+ * @summary 협상(H/K) 점수평가
1082
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
1083
+ * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ */
1087
+ submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options) {
1088
+ return PartnerV2ApiFp(this.configuration).submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options).then((request) => request(this.axios, this.basePath));
1089
+ }
1090
+ /**
1091
+ * 스코프 `files:write` + `Idempotency-Key` 헤더 필수. base64 또는 url 중 정확히 하나를 제출한다.
1092
+ * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
1093
+ * @param {UploadFileRequestDto} uploadFileRequestDto
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ */
1097
+ uploadFile(uploadFileRequestDto, options) {
1098
+ return PartnerV2ApiFp(this.configuration).uploadFile(uploadFileRequestDto, options).then((request) => request(this.axios, this.basePath));
1099
+ }
1100
+ }