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