@cmarket/partner-sdk 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/api/partner-v1-api.ts +72 -0
- package/dist/api/partner-v1-api.d.ts +32 -0
- package/dist/api/partner-v1-api.js +69 -0
- package/dist/esm/api/partner-v1-api.d.ts +32 -0
- package/dist/esm/api/partner-v1-api.js +69 -0
- package/dist/esm/models/bid-document-dto.d.ts +4 -4
- package/dist/models/bid-document-dto.d.ts +4 -4
- package/docs/BidDocumentDto.md +2 -2
- package/docs/PartnerV1Api.md +52 -0
- package/models/bid-document-dto.ts +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -188,7 +188,7 @@ public class Quickstart {
|
|
|
188
188
|
|
|
189
189
|
---
|
|
190
190
|
|
|
191
|
-
## @cmarket/partner-sdk@0.
|
|
191
|
+
## @cmarket/partner-sdk@0.7.0
|
|
192
192
|
|
|
193
193
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
194
194
|
|
|
@@ -226,7 +226,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
226
226
|
_published:_
|
|
227
227
|
|
|
228
228
|
```
|
|
229
|
-
npm install @cmarket/partner-sdk@0.
|
|
229
|
+
npm install @cmarket/partner-sdk@0.7.0 --save
|
|
230
230
|
```
|
|
231
231
|
|
|
232
232
|
_unPublished (not recommended):_
|
|
@@ -251,6 +251,7 @@ Class | Method | HTTP request | Description
|
|
|
251
251
|
*PartnerV1Api* | [**getBidStatement**](docs/PartnerV1Api.md#getbidstatement) | **GET** /v1/bids/{bidId}/statement | 거래명세서 조회
|
|
252
252
|
*PartnerV1Api* | [**healthControllerCheck**](docs/PartnerV1Api.md#healthcontrollercheck) | **GET** /v1/health | Partner API 헬스체크
|
|
253
253
|
*PartnerV1Api* | [**markBidFailed**](docs/PartnerV1Api.md#markbidfailed) | **POST** /v1/awards/fail | 유찰 처리
|
|
254
|
+
*PartnerV1Api* | [**recordParityResult**](docs/PartnerV1Api.md#recordparityresult) | **POST** /v1/parity-results | V5→V6 마이그레이션 패리티 결과 기록
|
|
254
255
|
*PartnerV1Api* | [**registerAward**](docs/PartnerV1Api.md#registeraward) | **POST** /v1/awards | 낙찰 결과 전송
|
|
255
256
|
*PartnerV1Api* | [**registerBid**](docs/PartnerV1Api.md#registerbid) | **POST** /v1/bids | 입찰 정보 전송(등록)
|
|
256
257
|
*PartnerV1Api* | [**requestSplitInvoice**](docs/PartnerV1Api.md#requestsplitinvoice) | **POST** /v1/invoices/split-requests | 계산서 분할 발급 청구
|
package/api/partner-v1-api.ts
CHANGED
|
@@ -431,6 +431,44 @@ export const PartnerV1ApiAxiosParamCreator = function (configuration?: Configura
|
|
|
431
431
|
options: localVarRequestOptions,
|
|
432
432
|
};
|
|
433
433
|
},
|
|
434
|
+
/**
|
|
435
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
436
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
437
|
+
* @param {object} body
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
recordParityResult: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
442
|
+
// verify required parameter 'body' is not null or undefined
|
|
443
|
+
assertParamExists('recordParityResult', 'body', body)
|
|
444
|
+
const localVarPath = `/v1/parity-results`;
|
|
445
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
446
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
447
|
+
let baseOptions;
|
|
448
|
+
if (configuration) {
|
|
449
|
+
baseOptions = configuration.baseOptions;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
453
|
+
const localVarHeaderParameter = {} as any;
|
|
454
|
+
const localVarQueryParameter = {} as any;
|
|
455
|
+
|
|
456
|
+
// authentication partner-oauth2 required
|
|
457
|
+
// http bearer authentication required
|
|
458
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
459
|
+
|
|
460
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
461
|
+
|
|
462
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
463
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
464
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
465
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
466
|
+
|
|
467
|
+
return {
|
|
468
|
+
url: toPathString(localVarUrlObj),
|
|
469
|
+
options: localVarRequestOptions,
|
|
470
|
+
};
|
|
471
|
+
},
|
|
434
472
|
/**
|
|
435
473
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
436
474
|
* @summary 낙찰 결과 전송
|
|
@@ -755,6 +793,19 @@ export const PartnerV1ApiFp = function(configuration?: Configuration) {
|
|
|
755
793
|
const localVarOperationServerBasePath = operationServerMap['PartnerV1Api.markBidFailed']?.[localVarOperationServerIndex]?.url;
|
|
756
794
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
757
795
|
},
|
|
796
|
+
/**
|
|
797
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
798
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
799
|
+
* @param {object} body
|
|
800
|
+
* @param {*} [options] Override http request option.
|
|
801
|
+
* @throws {RequiredError}
|
|
802
|
+
*/
|
|
803
|
+
async recordParityResult(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
804
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recordParityResult(body, options);
|
|
805
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
806
|
+
const localVarOperationServerBasePath = operationServerMap['PartnerV1Api.recordParityResult']?.[localVarOperationServerIndex]?.url;
|
|
807
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
808
|
+
},
|
|
758
809
|
/**
|
|
759
810
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
760
811
|
* @summary 낙찰 결과 전송
|
|
@@ -922,6 +973,16 @@ export const PartnerV1ApiFactory = function (configuration?: Configuration, base
|
|
|
922
973
|
markBidFailed(markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<BidFailedResponseDto> {
|
|
923
974
|
return localVarFp.markBidFailed(markBidFailedRequestDto, options).then((request) => request(axios, basePath));
|
|
924
975
|
},
|
|
976
|
+
/**
|
|
977
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
978
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
979
|
+
* @param {object} body
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
*/
|
|
983
|
+
recordParityResult(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
984
|
+
return localVarFp.recordParityResult(body, options).then((request) => request(axios, basePath));
|
|
985
|
+
},
|
|
925
986
|
/**
|
|
926
987
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
927
988
|
* @summary 낙찰 결과 전송
|
|
@@ -1081,6 +1142,17 @@ export class PartnerV1Api extends BaseAPI {
|
|
|
1081
1142
|
return PartnerV1ApiFp(this.configuration).markBidFailed(markBidFailedRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1082
1143
|
}
|
|
1083
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
1147
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
1148
|
+
* @param {object} body
|
|
1149
|
+
* @param {*} [options] Override http request option.
|
|
1150
|
+
* @throws {RequiredError}
|
|
1151
|
+
*/
|
|
1152
|
+
public recordParityResult(body: object, options?: RawAxiosRequestConfig) {
|
|
1153
|
+
return PartnerV1ApiFp(this.configuration).recordParityResult(body, options).then((request) => request(this.axios, this.basePath));
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1084
1156
|
/**
|
|
1085
1157
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
1086
1158
|
* @summary 낙찰 결과 전송
|
|
@@ -112,6 +112,14 @@ export declare const PartnerV1ApiAxiosParamCreator: (configuration?: Configurati
|
|
|
112
112
|
* @throws {RequiredError}
|
|
113
113
|
*/
|
|
114
114
|
markBidFailed: (markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
115
|
+
/**
|
|
116
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
117
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
118
|
+
* @param {object} body
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
recordParityResult: (body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
115
123
|
/**
|
|
116
124
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
117
125
|
* @summary 낙찰 결과 전송
|
|
@@ -232,6 +240,14 @@ export declare const PartnerV1ApiFp: (configuration?: Configuration) => {
|
|
|
232
240
|
* @throws {RequiredError}
|
|
233
241
|
*/
|
|
234
242
|
markBidFailed(markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BidFailedResponseDto>>;
|
|
243
|
+
/**
|
|
244
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
245
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
246
|
+
* @param {object} body
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
recordParityResult(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
235
251
|
/**
|
|
236
252
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
237
253
|
* @summary 낙찰 결과 전송
|
|
@@ -352,6 +368,14 @@ export declare const PartnerV1ApiFactory: (configuration?: Configuration, basePa
|
|
|
352
368
|
* @throws {RequiredError}
|
|
353
369
|
*/
|
|
354
370
|
markBidFailed(markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<BidFailedResponseDto>;
|
|
371
|
+
/**
|
|
372
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
373
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
374
|
+
* @param {object} body
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
recordParityResult(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
355
379
|
/**
|
|
356
380
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
357
381
|
* @summary 낙찰 결과 전송
|
|
@@ -472,6 +496,14 @@ export declare class PartnerV1Api extends BaseAPI {
|
|
|
472
496
|
* @throws {RequiredError}
|
|
473
497
|
*/
|
|
474
498
|
markBidFailed(markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BidFailedResponseDto, any, {}>>;
|
|
499
|
+
/**
|
|
500
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
501
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
502
|
+
* @param {object} body
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
*/
|
|
506
|
+
recordParityResult(body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
475
507
|
/**
|
|
476
508
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
477
509
|
* @summary 낙찰 결과 전송
|
|
@@ -350,6 +350,39 @@ const PartnerV1ApiAxiosParamCreator = function (configuration) {
|
|
|
350
350
|
options: localVarRequestOptions,
|
|
351
351
|
};
|
|
352
352
|
}),
|
|
353
|
+
/**
|
|
354
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
355
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
356
|
+
* @param {object} body
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
recordParityResult: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
361
|
+
// verify required parameter 'body' is not null or undefined
|
|
362
|
+
(0, common_1.assertParamExists)('recordParityResult', 'body', body);
|
|
363
|
+
const localVarPath = `/v1/parity-results`;
|
|
364
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
365
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
366
|
+
let baseOptions;
|
|
367
|
+
if (configuration) {
|
|
368
|
+
baseOptions = configuration.baseOptions;
|
|
369
|
+
}
|
|
370
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
371
|
+
const localVarHeaderParameter = {};
|
|
372
|
+
const localVarQueryParameter = {};
|
|
373
|
+
// authentication partner-oauth2 required
|
|
374
|
+
// http bearer authentication required
|
|
375
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
376
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
377
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
380
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
381
|
+
return {
|
|
382
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
383
|
+
options: localVarRequestOptions,
|
|
384
|
+
};
|
|
385
|
+
}),
|
|
353
386
|
/**
|
|
354
387
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
355
388
|
* @summary 낙찰 결과 전송
|
|
@@ -676,6 +709,22 @@ const PartnerV1ApiFp = function (configuration) {
|
|
|
676
709
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
677
710
|
});
|
|
678
711
|
},
|
|
712
|
+
/**
|
|
713
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
714
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
715
|
+
* @param {object} body
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
recordParityResult(body, options) {
|
|
720
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
721
|
+
var _a, _b, _c;
|
|
722
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.recordParityResult(body, 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['PartnerV1Api.recordParityResult']) === 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
|
+
},
|
|
679
728
|
/**
|
|
680
729
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
681
730
|
* @summary 낙찰 결과 전송
|
|
@@ -858,6 +907,16 @@ const PartnerV1ApiFactory = function (configuration, basePath, axios) {
|
|
|
858
907
|
markBidFailed(markBidFailedRequestDto, options) {
|
|
859
908
|
return localVarFp.markBidFailed(markBidFailedRequestDto, options).then((request) => request(axios, basePath));
|
|
860
909
|
},
|
|
910
|
+
/**
|
|
911
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
912
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
913
|
+
* @param {object} body
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
recordParityResult(body, options) {
|
|
918
|
+
return localVarFp.recordParityResult(body, options).then((request) => request(axios, basePath));
|
|
919
|
+
},
|
|
861
920
|
/**
|
|
862
921
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
863
922
|
* @summary 낙찰 결과 전송
|
|
@@ -1008,6 +1067,16 @@ class PartnerV1Api extends base_1.BaseAPI {
|
|
|
1008
1067
|
markBidFailed(markBidFailedRequestDto, options) {
|
|
1009
1068
|
return (0, exports.PartnerV1ApiFp)(this.configuration).markBidFailed(markBidFailedRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1010
1069
|
}
|
|
1070
|
+
/**
|
|
1071
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
1072
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
1073
|
+
* @param {object} body
|
|
1074
|
+
* @param {*} [options] Override http request option.
|
|
1075
|
+
* @throws {RequiredError}
|
|
1076
|
+
*/
|
|
1077
|
+
recordParityResult(body, options) {
|
|
1078
|
+
return (0, exports.PartnerV1ApiFp)(this.configuration).recordParityResult(body, options).then((request) => request(this.axios, this.basePath));
|
|
1079
|
+
}
|
|
1011
1080
|
/**
|
|
1012
1081
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
1013
1082
|
* @summary 낙찰 결과 전송
|
|
@@ -112,6 +112,14 @@ export declare const PartnerV1ApiAxiosParamCreator: (configuration?: Configurati
|
|
|
112
112
|
* @throws {RequiredError}
|
|
113
113
|
*/
|
|
114
114
|
markBidFailed: (markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
115
|
+
/**
|
|
116
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
117
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
118
|
+
* @param {object} body
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
recordParityResult: (body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
115
123
|
/**
|
|
116
124
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
117
125
|
* @summary 낙찰 결과 전송
|
|
@@ -232,6 +240,14 @@ export declare const PartnerV1ApiFp: (configuration?: Configuration) => {
|
|
|
232
240
|
* @throws {RequiredError}
|
|
233
241
|
*/
|
|
234
242
|
markBidFailed(markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BidFailedResponseDto>>;
|
|
243
|
+
/**
|
|
244
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
245
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
246
|
+
* @param {object} body
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
recordParityResult(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
235
251
|
/**
|
|
236
252
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
237
253
|
* @summary 낙찰 결과 전송
|
|
@@ -352,6 +368,14 @@ export declare const PartnerV1ApiFactory: (configuration?: Configuration, basePa
|
|
|
352
368
|
* @throws {RequiredError}
|
|
353
369
|
*/
|
|
354
370
|
markBidFailed(markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<BidFailedResponseDto>;
|
|
371
|
+
/**
|
|
372
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
373
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
374
|
+
* @param {object} body
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
recordParityResult(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
355
379
|
/**
|
|
356
380
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
357
381
|
* @summary 낙찰 결과 전송
|
|
@@ -472,6 +496,14 @@ export declare class PartnerV1Api extends BaseAPI {
|
|
|
472
496
|
* @throws {RequiredError}
|
|
473
497
|
*/
|
|
474
498
|
markBidFailed(markBidFailedRequestDto: MarkBidFailedRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BidFailedResponseDto, any, {}>>;
|
|
499
|
+
/**
|
|
500
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
501
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
502
|
+
* @param {object} body
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
*/
|
|
506
|
+
recordParityResult(body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
475
507
|
/**
|
|
476
508
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
477
509
|
* @summary 낙찰 결과 전송
|
|
@@ -347,6 +347,39 @@ export const PartnerV1ApiAxiosParamCreator = function (configuration) {
|
|
|
347
347
|
options: localVarRequestOptions,
|
|
348
348
|
};
|
|
349
349
|
}),
|
|
350
|
+
/**
|
|
351
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
352
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
353
|
+
* @param {object} body
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
recordParityResult: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
358
|
+
// verify required parameter 'body' is not null or undefined
|
|
359
|
+
assertParamExists('recordParityResult', 'body', body);
|
|
360
|
+
const localVarPath = `/v1/parity-results`;
|
|
361
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
362
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
363
|
+
let baseOptions;
|
|
364
|
+
if (configuration) {
|
|
365
|
+
baseOptions = configuration.baseOptions;
|
|
366
|
+
}
|
|
367
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
368
|
+
const localVarHeaderParameter = {};
|
|
369
|
+
const localVarQueryParameter = {};
|
|
370
|
+
// authentication partner-oauth2 required
|
|
371
|
+
// http bearer authentication required
|
|
372
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
373
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
374
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
375
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
376
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
377
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
378
|
+
return {
|
|
379
|
+
url: toPathString(localVarUrlObj),
|
|
380
|
+
options: localVarRequestOptions,
|
|
381
|
+
};
|
|
382
|
+
}),
|
|
350
383
|
/**
|
|
351
384
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
352
385
|
* @summary 낙찰 결과 전송
|
|
@@ -672,6 +705,22 @@ export const PartnerV1ApiFp = function (configuration) {
|
|
|
672
705
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
673
706
|
});
|
|
674
707
|
},
|
|
708
|
+
/**
|
|
709
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
710
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
711
|
+
* @param {object} body
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
*/
|
|
715
|
+
recordParityResult(body, options) {
|
|
716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
+
var _a, _b, _c;
|
|
718
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.recordParityResult(body, options);
|
|
719
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
720
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV1Api.recordParityResult']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
722
|
+
});
|
|
723
|
+
},
|
|
675
724
|
/**
|
|
676
725
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
677
726
|
* @summary 낙찰 결과 전송
|
|
@@ -853,6 +902,16 @@ export const PartnerV1ApiFactory = function (configuration, basePath, axios) {
|
|
|
853
902
|
markBidFailed(markBidFailedRequestDto, options) {
|
|
854
903
|
return localVarFp.markBidFailed(markBidFailedRequestDto, options).then((request) => request(axios, basePath));
|
|
855
904
|
},
|
|
905
|
+
/**
|
|
906
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
907
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
908
|
+
* @param {object} body
|
|
909
|
+
* @param {*} [options] Override http request option.
|
|
910
|
+
* @throws {RequiredError}
|
|
911
|
+
*/
|
|
912
|
+
recordParityResult(body, options) {
|
|
913
|
+
return localVarFp.recordParityResult(body, options).then((request) => request(axios, basePath));
|
|
914
|
+
},
|
|
856
915
|
/**
|
|
857
916
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
858
917
|
* @summary 낙찰 결과 전송
|
|
@@ -1002,6 +1061,16 @@ export class PartnerV1Api extends BaseAPI {
|
|
|
1002
1061
|
markBidFailed(markBidFailedRequestDto, options) {
|
|
1003
1062
|
return PartnerV1ApiFp(this.configuration).markBidFailed(markBidFailedRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1004
1063
|
}
|
|
1064
|
+
/**
|
|
1065
|
+
* V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
1066
|
+
* @summary V5→V6 마이그레이션 패리티 결과 기록
|
|
1067
|
+
* @param {object} body
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
*/
|
|
1071
|
+
recordParityResult(body, options) {
|
|
1072
|
+
return PartnerV1ApiFp(this.configuration).recordParityResult(body, options).then((request) => request(this.axios, this.basePath));
|
|
1073
|
+
}
|
|
1005
1074
|
/**
|
|
1006
1075
|
* 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
1007
1076
|
* @summary 낙찰 결과 전송
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export interface BidDocumentDto {
|
|
13
13
|
/**
|
|
14
|
-
* 서류 코드(paperCode).
|
|
14
|
+
* 서류 코드(paperCode). 생략 시 backend 가 paperName 으로 해소.
|
|
15
15
|
*/
|
|
16
|
-
'paperCode'
|
|
16
|
+
'paperCode'?: number;
|
|
17
17
|
/**
|
|
18
18
|
* 서류명.
|
|
19
19
|
*/
|
|
20
20
|
'paperName': string;
|
|
21
21
|
/**
|
|
22
|
-
* 자동생성 여부.
|
|
22
|
+
* 자동생성 여부. 생략 시 backend 가 paper master 기준으로 파생.
|
|
23
23
|
*/
|
|
24
|
-
'isAutoGenerated'
|
|
24
|
+
'isAutoGenerated'?: boolean;
|
|
25
25
|
}
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export interface BidDocumentDto {
|
|
13
13
|
/**
|
|
14
|
-
* 서류 코드(paperCode).
|
|
14
|
+
* 서류 코드(paperCode). 생략 시 backend 가 paperName 으로 해소.
|
|
15
15
|
*/
|
|
16
|
-
'paperCode'
|
|
16
|
+
'paperCode'?: number;
|
|
17
17
|
/**
|
|
18
18
|
* 서류명.
|
|
19
19
|
*/
|
|
20
20
|
'paperName': string;
|
|
21
21
|
/**
|
|
22
|
-
* 자동생성 여부.
|
|
22
|
+
* 자동생성 여부. 생략 시 backend 가 paper master 기준으로 파생.
|
|
23
23
|
*/
|
|
24
|
-
'isAutoGenerated'
|
|
24
|
+
'isAutoGenerated'?: boolean;
|
|
25
25
|
}
|
package/docs/BidDocumentDto.md
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**paperCode** | **number** | 서류 코드(paperCode). | [default to undefined]
|
|
8
|
+
**paperCode** | **number** | 서류 코드(paperCode). 생략 시 backend 가 paperName 으로 해소. | [optional] [default to undefined]
|
|
9
9
|
**paperName** | **string** | 서류명. | [default to undefined]
|
|
10
|
-
**isAutoGenerated** | **boolean** | 자동생성 여부. | [default to undefined]
|
|
10
|
+
**isAutoGenerated** | **boolean** | 자동생성 여부. 생략 시 backend 가 paper master 기준으로 파생. | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
package/docs/PartnerV1Api.md
CHANGED
|
@@ -13,6 +13,7 @@ All URIs are relative to *http://localhost*
|
|
|
13
13
|
|[**getBidStatement**](#getbidstatement) | **GET** /v1/bids/{bidId}/statement | 거래명세서 조회|
|
|
14
14
|
|[**healthControllerCheck**](#healthcontrollercheck) | **GET** /v1/health | Partner API 헬스체크|
|
|
15
15
|
|[**markBidFailed**](#markbidfailed) | **POST** /v1/awards/fail | 유찰 처리|
|
|
16
|
+
|[**recordParityResult**](#recordparityresult) | **POST** /v1/parity-results | V5→V6 마이그레이션 패리티 결과 기록|
|
|
16
17
|
|[**registerAward**](#registeraward) | **POST** /v1/awards | 낙찰 결과 전송|
|
|
17
18
|
|[**registerBid**](#registerbid) | **POST** /v1/bids | 입찰 정보 전송(등록)|
|
|
18
19
|
|[**requestSplitInvoice**](#requestsplitinvoice) | **POST** /v1/invoices/split-requests | 계산서 분할 발급 청구|
|
|
@@ -487,6 +488,57 @@ const { status, data } = await apiInstance.markBidFailed(
|
|
|
487
488
|
|
|
488
489
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
489
490
|
|
|
491
|
+
# **recordParityResult**
|
|
492
|
+
> recordParityResult(body)
|
|
493
|
+
|
|
494
|
+
V5↔V6 응답 비교 불일치(verdict)를 적재한다. scope parity:write. V5 cutover 시 제거 예정(한시적 계약).
|
|
495
|
+
|
|
496
|
+
### Example
|
|
497
|
+
|
|
498
|
+
```typescript
|
|
499
|
+
import {
|
|
500
|
+
PartnerV1Api,
|
|
501
|
+
Configuration
|
|
502
|
+
} from '@cmarket/partner-sdk';
|
|
503
|
+
|
|
504
|
+
const configuration = new Configuration();
|
|
505
|
+
const apiInstance = new PartnerV1Api(configuration);
|
|
506
|
+
|
|
507
|
+
let body: object; //
|
|
508
|
+
|
|
509
|
+
const { status, data } = await apiInstance.recordParityResult(
|
|
510
|
+
body
|
|
511
|
+
);
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
### Parameters
|
|
515
|
+
|
|
516
|
+
|Name | Type | Description | Notes|
|
|
517
|
+
|------------- | ------------- | ------------- | -------------|
|
|
518
|
+
| **body** | **object**| | |
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
### Return type
|
|
522
|
+
|
|
523
|
+
void (empty response body)
|
|
524
|
+
|
|
525
|
+
### Authorization
|
|
526
|
+
|
|
527
|
+
[partner-oauth2](../README.md#partner-oauth2)
|
|
528
|
+
|
|
529
|
+
### HTTP request headers
|
|
530
|
+
|
|
531
|
+
- **Content-Type**: application/json
|
|
532
|
+
- **Accept**: Not defined
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
### HTTP response details
|
|
536
|
+
| Status code | Description | Response headers |
|
|
537
|
+
|-------------|-------------|------------------|
|
|
538
|
+
|**204** | 적재 완료(본문 없음). | - |
|
|
539
|
+
|
|
540
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
541
|
+
|
|
490
542
|
# **registerAward**
|
|
491
543
|
> AwardRegisteredResponseDto registerAward(registerAwardRequestDto)
|
|
492
544
|
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
|
|
17
17
|
export interface BidDocumentDto {
|
|
18
18
|
/**
|
|
19
|
-
* 서류 코드(paperCode).
|
|
19
|
+
* 서류 코드(paperCode). 생략 시 backend 가 paperName 으로 해소.
|
|
20
20
|
*/
|
|
21
|
-
'paperCode'
|
|
21
|
+
'paperCode'?: number;
|
|
22
22
|
/**
|
|
23
23
|
* 서류명.
|
|
24
24
|
*/
|
|
25
25
|
'paperName': string;
|
|
26
26
|
/**
|
|
27
|
-
* 자동생성 여부.
|
|
27
|
+
* 자동생성 여부. 생략 시 backend 가 paper master 기준으로 파생.
|
|
28
28
|
*/
|
|
29
|
-
'isAutoGenerated'
|
|
29
|
+
'isAutoGenerated'?: boolean;
|
|
30
30
|
}
|
|
31
31
|
|