@cmarket/partner-sdk 0.6.2 → 0.8.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.
@@ -35,16 +35,19 @@ const base_1 = require("../base");
35
35
  const PartnerV1ApiAxiosParamCreator = function (configuration) {
36
36
  return {
37
37
  /**
38
- * V5 /acceptanceCompleteSend 후속. scope contracts:write + Idempotency-Key.
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
39
  * @summary 검수완료 전송
40
- * @param {string} bidId
40
+ * @param {string} bidId 공고 ID(= backend bidId = 등록 응답의 bidNo).
41
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
41
42
  * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
42
43
  * @param {*} [options] Override http request option.
43
44
  * @throws {RequiredError}
44
45
  */
45
- completeAcceptance: (bidId_1, completeAcceptanceRequestDto_1, ...args_1) => __awaiter(this, [bidId_1, completeAcceptanceRequestDto_1, ...args_1], void 0, function* (bidId, completeAcceptanceRequestDto, options = {}) {
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 = {}) {
46
47
  // verify required parameter 'bidId' is not null or undefined
47
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);
48
51
  // verify required parameter 'completeAcceptanceRequestDto' is not null or undefined
49
52
  (0, common_1.assertParamExists)('completeAcceptance', 'completeAcceptanceRequestDto', completeAcceptanceRequestDto);
50
53
  const localVarPath = `/v1/bids/{bidId}/acceptance`
@@ -63,6 +66,9 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
63
66
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
64
67
  localVarHeaderParameter['Content-Type'] = 'application/json';
65
68
  localVarHeaderParameter['Accept'] = 'application/json';
69
+ if (idempotencyKey != null) {
70
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
71
+ }
66
72
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
67
73
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
74
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -317,13 +323,16 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
317
323
  };
318
324
  }),
319
325
  /**
320
- * 유찰 처리(V5 yoochal 패리티). 유찰사유 코드(1~8)·상세를 받아 공고를 유찰 상태로 전환. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
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` 헤더 필수.
321
327
  * @summary 유찰 처리
328
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
322
329
  * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
323
330
  * @param {*} [options] Override http request option.
324
331
  * @throws {RequiredError}
325
332
  */
326
- markBidFailed: (markBidFailedRequestDto_1, ...args_1) => __awaiter(this, [markBidFailedRequestDto_1, ...args_1], void 0, function* (markBidFailedRequestDto, options = {}) {
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);
327
336
  // verify required parameter 'markBidFailedRequestDto' is not null or undefined
328
337
  (0, common_1.assertParamExists)('markBidFailed', 'markBidFailedRequestDto', markBidFailedRequestDto);
329
338
  const localVarPath = `/v1/awards/fail`;
@@ -341,6 +350,9 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
341
350
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
342
351
  localVarHeaderParameter['Content-Type'] = 'application/json';
343
352
  localVarHeaderParameter['Accept'] = 'application/json';
353
+ if (idempotencyKey != null) {
354
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
355
+ }
344
356
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
345
357
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
346
358
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -384,13 +396,16 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
384
396
  };
385
397
  }),
386
398
  /**
387
- * 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
399
+ * 낙찰 결과를 등록하고 공고를 낙찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=W, 낙찰) — BidApi.xml `selectWinner` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 낙찰자가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 낙찰(AWARDED)로 전환됩니다. - 낙찰자(공급사) 응찰행이 낙찰 처리됩니다. - 협상 방식(H/K)은 이 엔드포인트 전에 `/v1/awards/nego-eval`로 평가 완료가 필요합니다. **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수. 동일 키 + 동일 body 재전송 시 24시간 내 캐시 응답 반환.
388
400
  * @summary 낙찰 결과 전송
401
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
389
402
  * @param {RegisterAwardRequestDto} registerAwardRequestDto
390
403
  * @param {*} [options] Override http request option.
391
404
  * @throws {RequiredError}
392
405
  */
393
- registerAward: (registerAwardRequestDto_1, ...args_1) => __awaiter(this, [registerAwardRequestDto_1, ...args_1], void 0, function* (registerAwardRequestDto, options = {}) {
406
+ registerAward: (idempotencyKey_1, registerAwardRequestDto_1, ...args_1) => __awaiter(this, [idempotencyKey_1, registerAwardRequestDto_1, ...args_1], void 0, function* (idempotencyKey, registerAwardRequestDto, options = {}) {
407
+ // verify required parameter 'idempotencyKey' is not null or undefined
408
+ (0, common_1.assertParamExists)('registerAward', 'idempotencyKey', idempotencyKey);
394
409
  // verify required parameter 'registerAwardRequestDto' is not null or undefined
395
410
  (0, common_1.assertParamExists)('registerAward', 'registerAwardRequestDto', registerAwardRequestDto);
396
411
  const localVarPath = `/v1/awards`;
@@ -408,6 +423,9 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
408
423
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
409
424
  localVarHeaderParameter['Content-Type'] = 'application/json';
410
425
  localVarHeaderParameter['Accept'] = 'application/json';
426
+ if (idempotencyKey != null) {
427
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
428
+ }
411
429
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
412
430
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
413
431
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -452,13 +470,16 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
452
470
  };
453
471
  }),
454
472
  /**
455
- * V5 /splitInvoiceRequest 후속. scope invoices:write + Idempotency-Key.
473
+ * 세금계산서 분할 발급 청구를 기록합니다. 발급 엔진이 아니라 \"분할 발급 청구 요청을 접수\"하는 엔드포인트입니다. **V5 대응:** `splitInvoiceRequest` — BidApi.xml `splitInvoice` 액션의 V6 후속. **호출 시점:** 검수완료 후 세금계산서를 분할 발급받고자 할 때. 공급가액과 부가세를 나누어 청구합니다. **부수효과:** - 분할 발급 청구가 기록됩니다(실제 세금계산서 발급은 별도 프로세스). - 작성일자(`issueDate`)는 미래 일자 불가(I5 — V5 `PgBidApiService:220-235` 패리티). 오늘 날짜는 허용. - `issueDate` 미지정 시 backend 기본값 적용. **금액 단위:** 원(KRW) 정수. `supplyAmount`(공급가액) + `vat`(부가세) 합산이 실제 청구 총액. **필수 스코프:** `invoices:write` **멱등성:** `Idempotency-Key` 헤더 필수.
456
474
  * @summary 계산서 분할 발급 청구
475
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
457
476
  * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
458
477
  * @param {*} [options] Override http request option.
459
478
  * @throws {RequiredError}
460
479
  */
461
- requestSplitInvoice: (requestSplitInvoiceRequestDto_1, ...args_1) => __awaiter(this, [requestSplitInvoiceRequestDto_1, ...args_1], void 0, function* (requestSplitInvoiceRequestDto, options = {}) {
480
+ requestSplitInvoice: (idempotencyKey_1, requestSplitInvoiceRequestDto_1, ...args_1) => __awaiter(this, [idempotencyKey_1, requestSplitInvoiceRequestDto_1, ...args_1], void 0, function* (idempotencyKey, requestSplitInvoiceRequestDto, options = {}) {
481
+ // verify required parameter 'idempotencyKey' is not null or undefined
482
+ (0, common_1.assertParamExists)('requestSplitInvoice', 'idempotencyKey', idempotencyKey);
462
483
  // verify required parameter 'requestSplitInvoiceRequestDto' is not null or undefined
463
484
  (0, common_1.assertParamExists)('requestSplitInvoice', 'requestSplitInvoiceRequestDto', requestSplitInvoiceRequestDto);
464
485
  const localVarPath = `/v1/invoices/split-requests`;
@@ -476,6 +497,9 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
476
497
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
477
498
  localVarHeaderParameter['Content-Type'] = 'application/json';
478
499
  localVarHeaderParameter['Accept'] = 'application/json';
500
+ if (idempotencyKey != null) {
501
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
502
+ }
479
503
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
480
504
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
481
505
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -486,13 +510,16 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
486
510
  };
487
511
  }),
488
512
  /**
489
- * 협상에의한계약(H/K) 응찰자별 기술/가격 점수 일괄 입력(V5 nego-eval 패리티). complete=true 평가완료 게이트까지 적용해 낙찰 진입 가능. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
513
+ * 협상에의한계약(낙찰방법 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` 헤더 필수.
490
514
  * @summary 협상(H/K) 점수평가
515
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
491
516
  * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
492
517
  * @param {*} [options] Override http request option.
493
518
  * @throws {RequiredError}
494
519
  */
495
- submitNegotiationScores: (submitNegotiationScoresRequestDto_1, ...args_1) => __awaiter(this, [submitNegotiationScoresRequestDto_1, ...args_1], void 0, function* (submitNegotiationScoresRequestDto, options = {}) {
520
+ submitNegotiationScores: (idempotencyKey_1, submitNegotiationScoresRequestDto_1, ...args_1) => __awaiter(this, [idempotencyKey_1, submitNegotiationScoresRequestDto_1, ...args_1], void 0, function* (idempotencyKey, submitNegotiationScoresRequestDto, options = {}) {
521
+ // verify required parameter 'idempotencyKey' is not null or undefined
522
+ (0, common_1.assertParamExists)('submitNegotiationScores', 'idempotencyKey', idempotencyKey);
496
523
  // verify required parameter 'submitNegotiationScoresRequestDto' is not null or undefined
497
524
  (0, common_1.assertParamExists)('submitNegotiationScores', 'submitNegotiationScoresRequestDto', submitNegotiationScoresRequestDto);
498
525
  const localVarPath = `/v1/awards/nego-eval`;
@@ -510,6 +537,9 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
510
537
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
511
538
  localVarHeaderParameter['Content-Type'] = 'application/json';
512
539
  localVarHeaderParameter['Accept'] = 'application/json';
540
+ if (idempotencyKey != null) {
541
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
542
+ }
513
543
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
514
544
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
545
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -563,17 +593,18 @@ const PartnerV1ApiFp = function (configuration) {
563
593
  const localVarAxiosParamCreator = (0, exports.PartnerV1ApiAxiosParamCreator)(configuration);
564
594
  return {
565
595
  /**
566
- * V5 /acceptanceCompleteSend 후속. scope contracts:write + Idempotency-Key.
596
+ * 낙찰 공고의 검수(납품 검수)가 완료되었음을 기록합니다. **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` 헤더 필수.
567
597
  * @summary 검수완료 전송
568
- * @param {string} bidId
598
+ * @param {string} bidId 공고 ID(= backend bidId = 등록 응답의 bidNo).
599
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
569
600
  * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
570
601
  * @param {*} [options] Override http request option.
571
602
  * @throws {RequiredError}
572
603
  */
573
- completeAcceptance(bidId, completeAcceptanceRequestDto, options) {
604
+ completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options) {
574
605
  return __awaiter(this, void 0, void 0, function* () {
575
606
  var _a, _b, _c;
576
- const localVarAxiosArgs = yield localVarAxiosParamCreator.completeAcceptance(bidId, completeAcceptanceRequestDto, options);
607
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options);
577
608
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
578
609
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV1Api.completeAcceptance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
579
610
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -694,16 +725,17 @@ const PartnerV1ApiFp = function (configuration) {
694
725
  });
695
726
  },
696
727
  /**
697
- * 유찰 처리(V5 yoochal 패리티). 유찰사유 코드(1~8)·상세를 받아 공고를 유찰 상태로 전환. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
728
+ * 공고를 유찰 상태로 전환합니다. **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` 헤더 필수.
698
729
  * @summary 유찰 처리
730
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
699
731
  * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
700
732
  * @param {*} [options] Override http request option.
701
733
  * @throws {RequiredError}
702
734
  */
703
- markBidFailed(markBidFailedRequestDto, options) {
735
+ markBidFailed(idempotencyKey, markBidFailedRequestDto, options) {
704
736
  return __awaiter(this, void 0, void 0, function* () {
705
737
  var _a, _b, _c;
706
- const localVarAxiosArgs = yield localVarAxiosParamCreator.markBidFailed(markBidFailedRequestDto, options);
738
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.markBidFailed(idempotencyKey, markBidFailedRequestDto, options);
707
739
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
708
740
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV1Api.markBidFailed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
709
741
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -726,16 +758,17 @@ const PartnerV1ApiFp = function (configuration) {
726
758
  });
727
759
  },
728
760
  /**
729
- * 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
761
+ * 낙찰 결과를 등록하고 공고를 낙찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=W, 낙찰) — BidApi.xml `selectWinner` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 낙찰자가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 낙찰(AWARDED)로 전환됩니다. - 낙찰자(공급사) 응찰행이 낙찰 처리됩니다. - 협상 방식(H/K)은 이 엔드포인트 전에 `/v1/awards/nego-eval`로 평가 완료가 필요합니다. **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수. 동일 키 + 동일 body 재전송 시 24시간 내 캐시 응답 반환.
730
762
  * @summary 낙찰 결과 전송
763
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
731
764
  * @param {RegisterAwardRequestDto} registerAwardRequestDto
732
765
  * @param {*} [options] Override http request option.
733
766
  * @throws {RequiredError}
734
767
  */
735
- registerAward(registerAwardRequestDto, options) {
768
+ registerAward(idempotencyKey, registerAwardRequestDto, options) {
736
769
  return __awaiter(this, void 0, void 0, function* () {
737
770
  var _a, _b, _c;
738
- const localVarAxiosArgs = yield localVarAxiosParamCreator.registerAward(registerAwardRequestDto, options);
771
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerAward(idempotencyKey, registerAwardRequestDto, options);
739
772
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
740
773
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV1Api.registerAward']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
741
774
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -758,32 +791,34 @@ const PartnerV1ApiFp = function (configuration) {
758
791
  });
759
792
  },
760
793
  /**
761
- * V5 /splitInvoiceRequest 후속. scope invoices:write + Idempotency-Key.
794
+ * 세금계산서 분할 발급 청구를 기록합니다. 발급 엔진이 아니라 \"분할 발급 청구 요청을 접수\"하는 엔드포인트입니다. **V5 대응:** `splitInvoiceRequest` — BidApi.xml `splitInvoice` 액션의 V6 후속. **호출 시점:** 검수완료 후 세금계산서를 분할 발급받고자 할 때. 공급가액과 부가세를 나누어 청구합니다. **부수효과:** - 분할 발급 청구가 기록됩니다(실제 세금계산서 발급은 별도 프로세스). - 작성일자(`issueDate`)는 미래 일자 불가(I5 — V5 `PgBidApiService:220-235` 패리티). 오늘 날짜는 허용. - `issueDate` 미지정 시 backend 기본값 적용. **금액 단위:** 원(KRW) 정수. `supplyAmount`(공급가액) + `vat`(부가세) 합산이 실제 청구 총액. **필수 스코프:** `invoices:write` **멱등성:** `Idempotency-Key` 헤더 필수.
762
795
  * @summary 계산서 분할 발급 청구
796
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
763
797
  * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
764
798
  * @param {*} [options] Override http request option.
765
799
  * @throws {RequiredError}
766
800
  */
767
- requestSplitInvoice(requestSplitInvoiceRequestDto, options) {
801
+ requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options) {
768
802
  return __awaiter(this, void 0, void 0, function* () {
769
803
  var _a, _b, _c;
770
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestSplitInvoice(requestSplitInvoiceRequestDto, options);
804
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options);
771
805
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
772
806
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV1Api.requestSplitInvoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
773
807
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
774
808
  });
775
809
  },
776
810
  /**
777
- * 협상에의한계약(H/K) 응찰자별 기술/가격 점수 일괄 입력(V5 nego-eval 패리티). complete=true 평가완료 게이트까지 적용해 낙찰 진입 가능. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
811
+ * 협상에의한계약(낙찰방법 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` 헤더 필수.
778
812
  * @summary 협상(H/K) 점수평가
813
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
779
814
  * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
780
815
  * @param {*} [options] Override http request option.
781
816
  * @throws {RequiredError}
782
817
  */
783
- submitNegotiationScores(submitNegotiationScoresRequestDto, options) {
818
+ submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options) {
784
819
  return __awaiter(this, void 0, void 0, function* () {
785
820
  var _a, _b, _c;
786
- const localVarAxiosArgs = yield localVarAxiosParamCreator.submitNegotiationScores(submitNegotiationScoresRequestDto, options);
821
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options);
787
822
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
788
823
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV1Api.submitNegotiationScores']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
789
824
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -815,15 +850,16 @@ const PartnerV1ApiFactory = function (configuration, basePath, axios) {
815
850
  const localVarFp = (0, exports.PartnerV1ApiFp)(configuration);
816
851
  return {
817
852
  /**
818
- * V5 /acceptanceCompleteSend 후속. scope contracts:write + Idempotency-Key.
853
+ * 낙찰 공고의 검수(납품 검수)가 완료되었음을 기록합니다. **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` 헤더 필수.
819
854
  * @summary 검수완료 전송
820
- * @param {string} bidId
855
+ * @param {string} bidId 공고 ID(= backend bidId = 등록 응답의 bidNo).
856
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
821
857
  * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
822
858
  * @param {*} [options] Override http request option.
823
859
  * @throws {RequiredError}
824
860
  */
825
- completeAcceptance(bidId, completeAcceptanceRequestDto, options) {
826
- return localVarFp.completeAcceptance(bidId, completeAcceptanceRequestDto, options).then((request) => request(axios, basePath));
861
+ completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options) {
862
+ return localVarFp.completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options).then((request) => request(axios, basePath));
827
863
  },
828
864
  /**
829
865
  * V5 /contractDocumentRec 후속. scope contracts:read.
@@ -898,14 +934,15 @@ const PartnerV1ApiFactory = function (configuration, basePath, axios) {
898
934
  return localVarFp.healthControllerCheck(options).then((request) => request(axios, basePath));
899
935
  },
900
936
  /**
901
- * 유찰 처리(V5 yoochal 패리티). 유찰사유 코드(1~8)·상세를 받아 공고를 유찰 상태로 전환. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
937
+ * 공고를 유찰 상태로 전환합니다. **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` 헤더 필수.
902
938
  * @summary 유찰 처리
939
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
903
940
  * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
904
941
  * @param {*} [options] Override http request option.
905
942
  * @throws {RequiredError}
906
943
  */
907
- markBidFailed(markBidFailedRequestDto, options) {
908
- return localVarFp.markBidFailed(markBidFailedRequestDto, options).then((request) => request(axios, basePath));
944
+ markBidFailed(idempotencyKey, markBidFailedRequestDto, options) {
945
+ return localVarFp.markBidFailed(idempotencyKey, markBidFailedRequestDto, options).then((request) => request(axios, basePath));
909
946
  },
910
947
  /**
911
948
  * V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
@@ -918,14 +955,15 @@ const PartnerV1ApiFactory = function (configuration, basePath, axios) {
918
955
  return localVarFp.recordParityResult(body, options).then((request) => request(axios, basePath));
919
956
  },
920
957
  /**
921
- * 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
958
+ * 낙찰 결과를 등록하고 공고를 낙찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=W, 낙찰) — BidApi.xml `selectWinner` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 낙찰자가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 낙찰(AWARDED)로 전환됩니다. - 낙찰자(공급사) 응찰행이 낙찰 처리됩니다. - 협상 방식(H/K)은 이 엔드포인트 전에 `/v1/awards/nego-eval`로 평가 완료가 필요합니다. **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수. 동일 키 + 동일 body 재전송 시 24시간 내 캐시 응답 반환.
922
959
  * @summary 낙찰 결과 전송
960
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
923
961
  * @param {RegisterAwardRequestDto} registerAwardRequestDto
924
962
  * @param {*} [options] Override http request option.
925
963
  * @throws {RequiredError}
926
964
  */
927
- registerAward(registerAwardRequestDto, options) {
928
- return localVarFp.registerAward(registerAwardRequestDto, options).then((request) => request(axios, basePath));
965
+ registerAward(idempotencyKey, registerAwardRequestDto, options) {
966
+ return localVarFp.registerAward(idempotencyKey, registerAwardRequestDto, options).then((request) => request(axios, basePath));
929
967
  },
930
968
  /**
931
969
  * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
@@ -938,24 +976,26 @@ const PartnerV1ApiFactory = function (configuration, basePath, axios) {
938
976
  return localVarFp.registerBid(createBidRequestDto, options).then((request) => request(axios, basePath));
939
977
  },
940
978
  /**
941
- * V5 /splitInvoiceRequest 후속. scope invoices:write + Idempotency-Key.
979
+ * 세금계산서 분할 발급 청구를 기록합니다. 발급 엔진이 아니라 \"분할 발급 청구 요청을 접수\"하는 엔드포인트입니다. **V5 대응:** `splitInvoiceRequest` — BidApi.xml `splitInvoice` 액션의 V6 후속. **호출 시점:** 검수완료 후 세금계산서를 분할 발급받고자 할 때. 공급가액과 부가세를 나누어 청구합니다. **부수효과:** - 분할 발급 청구가 기록됩니다(실제 세금계산서 발급은 별도 프로세스). - 작성일자(`issueDate`)는 미래 일자 불가(I5 — V5 `PgBidApiService:220-235` 패리티). 오늘 날짜는 허용. - `issueDate` 미지정 시 backend 기본값 적용. **금액 단위:** 원(KRW) 정수. `supplyAmount`(공급가액) + `vat`(부가세) 합산이 실제 청구 총액. **필수 스코프:** `invoices:write` **멱등성:** `Idempotency-Key` 헤더 필수.
942
980
  * @summary 계산서 분할 발급 청구
981
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
943
982
  * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
944
983
  * @param {*} [options] Override http request option.
945
984
  * @throws {RequiredError}
946
985
  */
947
- requestSplitInvoice(requestSplitInvoiceRequestDto, options) {
948
- return localVarFp.requestSplitInvoice(requestSplitInvoiceRequestDto, options).then((request) => request(axios, basePath));
986
+ requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options) {
987
+ return localVarFp.requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options).then((request) => request(axios, basePath));
949
988
  },
950
989
  /**
951
- * 협상에의한계약(H/K) 응찰자별 기술/가격 점수 일괄 입력(V5 nego-eval 패리티). complete=true 평가완료 게이트까지 적용해 낙찰 진입 가능. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
990
+ * 협상에의한계약(낙찰방법 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` 헤더 필수.
952
991
  * @summary 협상(H/K) 점수평가
992
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
953
993
  * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
954
994
  * @param {*} [options] Override http request option.
955
995
  * @throws {RequiredError}
956
996
  */
957
- submitNegotiationScores(submitNegotiationScoresRequestDto, options) {
958
- return localVarFp.submitNegotiationScores(submitNegotiationScoresRequestDto, options).then((request) => request(axios, basePath));
997
+ submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options) {
998
+ return localVarFp.submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options).then((request) => request(axios, basePath));
959
999
  },
960
1000
  /**
961
1001
  * 스코프 `files:write` + `Idempotency-Key` 헤더 필수. base64 또는 url 중 정확히 하나를 제출한다.
@@ -975,15 +1015,16 @@ exports.PartnerV1ApiFactory = PartnerV1ApiFactory;
975
1015
  */
976
1016
  class PartnerV1Api extends base_1.BaseAPI {
977
1017
  /**
978
- * V5 /acceptanceCompleteSend 후속. scope contracts:write + Idempotency-Key.
1018
+ * 낙찰 공고의 검수(납품 검수)가 완료되었음을 기록합니다. **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` 헤더 필수.
979
1019
  * @summary 검수완료 전송
980
- * @param {string} bidId
1020
+ * @param {string} bidId 공고 ID(= backend bidId = 등록 응답의 bidNo).
1021
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
981
1022
  * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
982
1023
  * @param {*} [options] Override http request option.
983
1024
  * @throws {RequiredError}
984
1025
  */
985
- completeAcceptance(bidId, completeAcceptanceRequestDto, options) {
986
- return (0, exports.PartnerV1ApiFp)(this.configuration).completeAcceptance(bidId, completeAcceptanceRequestDto, options).then((request) => request(this.axios, this.basePath));
1026
+ completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options) {
1027
+ return (0, exports.PartnerV1ApiFp)(this.configuration).completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options).then((request) => request(this.axios, this.basePath));
987
1028
  }
988
1029
  /**
989
1030
  * V5 /contractDocumentRec 후속. scope contracts:read.
@@ -1058,14 +1099,15 @@ class PartnerV1Api extends base_1.BaseAPI {
1058
1099
  return (0, exports.PartnerV1ApiFp)(this.configuration).healthControllerCheck(options).then((request) => request(this.axios, this.basePath));
1059
1100
  }
1060
1101
  /**
1061
- * 유찰 처리(V5 yoochal 패리티). 유찰사유 코드(1~8)·상세를 받아 공고를 유찰 상태로 전환. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
1102
+ * 공고를 유찰 상태로 전환합니다. **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` 헤더 필수.
1062
1103
  * @summary 유찰 처리
1104
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
1063
1105
  * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
1064
1106
  * @param {*} [options] Override http request option.
1065
1107
  * @throws {RequiredError}
1066
1108
  */
1067
- markBidFailed(markBidFailedRequestDto, options) {
1068
- return (0, exports.PartnerV1ApiFp)(this.configuration).markBidFailed(markBidFailedRequestDto, options).then((request) => request(this.axios, this.basePath));
1109
+ markBidFailed(idempotencyKey, markBidFailedRequestDto, options) {
1110
+ return (0, exports.PartnerV1ApiFp)(this.configuration).markBidFailed(idempotencyKey, markBidFailedRequestDto, options).then((request) => request(this.axios, this.basePath));
1069
1111
  }
1070
1112
  /**
1071
1113
  * V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
@@ -1078,14 +1120,15 @@ class PartnerV1Api extends base_1.BaseAPI {
1078
1120
  return (0, exports.PartnerV1ApiFp)(this.configuration).recordParityResult(body, options).then((request) => request(this.axios, this.basePath));
1079
1121
  }
1080
1122
  /**
1081
- * 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
1123
+ * 낙찰 결과를 등록하고 공고를 낙찰 상태로 전환합니다. **V5 대응:** `scsbidSend`(type=W, 낙찰) — BidApi.xml `selectWinner` 액션의 V6 후속. **호출 시점:** 입찰 마감 후 낙찰자가 확정되었을 때. 공고 상태가 입찰완료(마감)인 상태에서 호출해야 합니다. **부수효과:** - 공고 상태가 낙찰(AWARDED)로 전환됩니다. - 낙찰자(공급사) 응찰행이 낙찰 처리됩니다. - 협상 방식(H/K)은 이 엔드포인트 전에 `/v1/awards/nego-eval`로 평가 완료가 필요합니다. **필수 스코프:** `awards:write` **멱등성:** `Idempotency-Key` 헤더 필수. 동일 키 + 동일 body 재전송 시 24시간 내 캐시 응답 반환.
1082
1124
  * @summary 낙찰 결과 전송
1125
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
1083
1126
  * @param {RegisterAwardRequestDto} registerAwardRequestDto
1084
1127
  * @param {*} [options] Override http request option.
1085
1128
  * @throws {RequiredError}
1086
1129
  */
1087
- registerAward(registerAwardRequestDto, options) {
1088
- return (0, exports.PartnerV1ApiFp)(this.configuration).registerAward(registerAwardRequestDto, options).then((request) => request(this.axios, this.basePath));
1130
+ registerAward(idempotencyKey, registerAwardRequestDto, options) {
1131
+ return (0, exports.PartnerV1ApiFp)(this.configuration).registerAward(idempotencyKey, registerAwardRequestDto, options).then((request) => request(this.axios, this.basePath));
1089
1132
  }
1090
1133
  /**
1091
1134
  * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
@@ -1098,24 +1141,26 @@ class PartnerV1Api extends base_1.BaseAPI {
1098
1141
  return (0, exports.PartnerV1ApiFp)(this.configuration).registerBid(createBidRequestDto, options).then((request) => request(this.axios, this.basePath));
1099
1142
  }
1100
1143
  /**
1101
- * V5 /splitInvoiceRequest 후속. scope invoices:write + Idempotency-Key.
1144
+ * 세금계산서 분할 발급 청구를 기록합니다. 발급 엔진이 아니라 \"분할 발급 청구 요청을 접수\"하는 엔드포인트입니다. **V5 대응:** `splitInvoiceRequest` — BidApi.xml `splitInvoice` 액션의 V6 후속. **호출 시점:** 검수완료 후 세금계산서를 분할 발급받고자 할 때. 공급가액과 부가세를 나누어 청구합니다. **부수효과:** - 분할 발급 청구가 기록됩니다(실제 세금계산서 발급은 별도 프로세스). - 작성일자(`issueDate`)는 미래 일자 불가(I5 — V5 `PgBidApiService:220-235` 패리티). 오늘 날짜는 허용. - `issueDate` 미지정 시 backend 기본값 적용. **금액 단위:** 원(KRW) 정수. `supplyAmount`(공급가액) + `vat`(부가세) 합산이 실제 청구 총액. **필수 스코프:** `invoices:write` **멱등성:** `Idempotency-Key` 헤더 필수.
1102
1145
  * @summary 계산서 분할 발급 청구
1146
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
1103
1147
  * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
1104
1148
  * @param {*} [options] Override http request option.
1105
1149
  * @throws {RequiredError}
1106
1150
  */
1107
- requestSplitInvoice(requestSplitInvoiceRequestDto, options) {
1108
- return (0, exports.PartnerV1ApiFp)(this.configuration).requestSplitInvoice(requestSplitInvoiceRequestDto, options).then((request) => request(this.axios, this.basePath));
1151
+ requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options) {
1152
+ return (0, exports.PartnerV1ApiFp)(this.configuration).requestSplitInvoice(idempotencyKey, requestSplitInvoiceRequestDto, options).then((request) => request(this.axios, this.basePath));
1109
1153
  }
1110
1154
  /**
1111
- * 협상에의한계약(H/K) 응찰자별 기술/가격 점수 일괄 입력(V5 nego-eval 패리티). complete=true 평가완료 게이트까지 적용해 낙찰 진입 가능. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
1155
+ * 협상에의한계약(낙찰방법 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` 헤더 필수.
1112
1156
  * @summary 협상(H/K) 점수평가
1157
+ * @param {string} idempotencyKey 멱등성 키(1~255자, [A-Za-z0-9_-]). 동일 키 + 동일 body 재전송 시 캐시 응답 반환(24시간). UUID v4 권장.
1113
1158
  * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
1114
1159
  * @param {*} [options] Override http request option.
1115
1160
  * @throws {RequiredError}
1116
1161
  */
1117
- submitNegotiationScores(submitNegotiationScoresRequestDto, options) {
1118
- return (0, exports.PartnerV1ApiFp)(this.configuration).submitNegotiationScores(submitNegotiationScoresRequestDto, options).then((request) => request(this.axios, this.basePath));
1162
+ submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options) {
1163
+ return (0, exports.PartnerV1ApiFp)(this.configuration).submitNegotiationScores(idempotencyKey, submitNegotiationScoresRequestDto, options).then((request) => request(this.axios, this.basePath));
1119
1164
  }
1120
1165
  /**
1121
1166
  * 스코프 `files:write` + `Idempotency-Key` 헤더 필수. base64 또는 url 중 정확히 하나를 제출한다.