@finverse/sdk-typescript 0.0.43 → 0.0.44

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/dist/api.d.ts CHANGED
@@ -3034,10 +3034,11 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3034
3034
  /**
3035
3035
  * CREATE Mandate
3036
3036
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3037
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3037
3038
  * @param {*} [options] Override http request option.
3038
3039
  * @throws {RequiredError}
3039
3040
  */
3040
- createMandate: (createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3041
+ createMandate: (createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3041
3042
  /**
3042
3043
  * Create new Payment
3043
3044
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3128,10 +3129,11 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3128
3129
  /**
3129
3130
  * CREATE Mandate
3130
3131
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3132
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3131
3133
  * @param {*} [options] Override http request option.
3132
3134
  * @throws {RequiredError}
3133
3135
  */
3134
- createMandate(createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMandateResponse>>;
3136
+ createMandate(createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMandateResponse>>;
3135
3137
  /**
3136
3138
  * Create new Payment
3137
3139
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3222,10 +3224,11 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3222
3224
  /**
3223
3225
  * CREATE Mandate
3224
3226
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3227
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3225
3228
  * @param {*} [options] Override http request option.
3226
3229
  * @throws {RequiredError}
3227
3230
  */
3228
- createMandate(createMandateRequest: CreateMandateRequest, options?: any): AxiosPromise<CreateMandateResponse>;
3231
+ createMandate(createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: any): AxiosPromise<CreateMandateResponse>;
3229
3232
  /**
3230
3233
  * Create new Payment
3231
3234
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3317,11 +3320,12 @@ export interface CustomerApiInterface {
3317
3320
  /**
3318
3321
  * CREATE Mandate
3319
3322
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3323
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3320
3324
  * @param {*} [options] Override http request option.
3321
3325
  * @throws {RequiredError}
3322
3326
  * @memberof CustomerApiInterface
3323
3327
  */
3324
- createMandate(createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
3328
+ createMandate(createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
3325
3329
  /**
3326
3330
  * Create new Payment
3327
3331
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
@@ -3425,11 +3429,12 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3425
3429
  /**
3426
3430
  * CREATE Mandate
3427
3431
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
3432
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3428
3433
  * @param {*} [options] Override http request option.
3429
3434
  * @throws {RequiredError}
3430
3435
  * @memberof CustomerApi
3431
3436
  */
3432
- createMandate(createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
3437
+ createMandate(createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
3433
3438
  /**
3434
3439
  * Create new Payment
3435
3440
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
package/dist/api.js CHANGED
@@ -92,10 +92,11 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
92
92
  /**
93
93
  * CREATE Mandate
94
94
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
95
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
95
96
  * @param {*} [options] Override http request option.
96
97
  * @throws {RequiredError}
97
98
  */
98
- createMandate: (createMandateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
99
+ createMandate: (createMandateRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
99
100
  // verify required parameter 'createMandateRequest' is not null or undefined
100
101
  common_1.assertParamExists('createMandate', 'createMandateRequest', createMandateRequest);
101
102
  const localVarPath = `/mandates`;
@@ -111,6 +112,9 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
111
112
  // authentication Oauth2 required
112
113
  // oauth required
113
114
  yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
115
+ if (idempotencyKey !== undefined && idempotencyKey !== null) {
116
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
117
+ }
114
118
  localVarHeaderParameter['Content-Type'] = 'application/json';
115
119
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
116
120
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -488,12 +492,13 @@ exports.CustomerApiFp = function (configuration) {
488
492
  /**
489
493
  * CREATE Mandate
490
494
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
495
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
491
496
  * @param {*} [options] Override http request option.
492
497
  * @throws {RequiredError}
493
498
  */
494
- createMandate(createMandateRequest, options) {
499
+ createMandate(createMandateRequest, idempotencyKey, options) {
495
500
  return __awaiter(this, void 0, void 0, function* () {
496
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandate(createMandateRequest, options);
501
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandate(createMandateRequest, idempotencyKey, options);
497
502
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
498
503
  });
499
504
  },
@@ -645,11 +650,14 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
645
650
  /**
646
651
  * CREATE Mandate
647
652
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
653
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
648
654
  * @param {*} [options] Override http request option.
649
655
  * @throws {RequiredError}
650
656
  */
651
- createMandate(createMandateRequest, options) {
652
- return localVarFp.createMandate(createMandateRequest, options).then((request) => request(axios, basePath));
657
+ createMandate(createMandateRequest, idempotencyKey, options) {
658
+ return localVarFp
659
+ .createMandate(createMandateRequest, idempotencyKey, options)
660
+ .then((request) => request(axios, basePath));
653
661
  },
654
662
  /**
655
663
  * Create new Payment
@@ -774,13 +782,14 @@ class CustomerApi extends base_1.BaseAPI {
774
782
  /**
775
783
  * CREATE Mandate
776
784
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
785
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. If missing we will generate a random one. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
777
786
  * @param {*} [options] Override http request option.
778
787
  * @throws {RequiredError}
779
788
  * @memberof CustomerApi
780
789
  */
781
- createMandate(createMandateRequest, options) {
790
+ createMandate(createMandateRequest, idempotencyKey, options) {
782
791
  return exports.CustomerApiFp(this.configuration)
783
- .createMandate(createMandateRequest, options)
792
+ .createMandate(createMandateRequest, idempotencyKey, options)
784
793
  .then((request) => request(this.axios, this.basePath));
785
794
  }
786
795
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [