@finverse/sdk-typescript 0.0.41 → 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.
Files changed (3) hide show
  1. package/dist/api.d.ts +26 -10
  2. package/dist/api.js +32 -14
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -1007,6 +1007,12 @@ export interface GetPaymentResponse {
1007
1007
  * @memberof GetPaymentResponse
1008
1008
  */
1009
1009
  type?: GetPaymentResponseTypeEnum;
1010
+ /**
1011
+ * Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
1012
+ * @type {string}
1013
+ * @memberof GetPaymentResponse
1014
+ */
1015
+ last_update?: string;
1010
1016
  /**
1011
1017
  * Possible values - CREATED, AUTHORIZED, SUBMITTED, EXECUTED, FAILED, REJECTED, CANCELLED.
1012
1018
  * @type {string}
@@ -3028,17 +3034,19 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3028
3034
  /**
3029
3035
  * CREATE Mandate
3030
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.
3031
3038
  * @param {*} [options] Override http request option.
3032
3039
  * @throws {RequiredError}
3033
3040
  */
3034
- createMandate: (createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3041
+ createMandate: (createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3035
3042
  /**
3036
3043
  * Create new Payment
3037
3044
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3045
+ * @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.
3038
3046
  * @param {*} [options] Override http request option.
3039
3047
  * @throws {RequiredError}
3040
3048
  */
3041
- createPayment: (createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3049
+ createPayment: (createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3042
3050
  /**
3043
3051
  * Create a new payment instruction to be used when linking to perform new payment
3044
3052
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -3121,17 +3129,19 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3121
3129
  /**
3122
3130
  * CREATE Mandate
3123
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.
3124
3133
  * @param {*} [options] Override http request option.
3125
3134
  * @throws {RequiredError}
3126
3135
  */
3127
- 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>>;
3128
3137
  /**
3129
3138
  * Create new Payment
3130
3139
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3140
+ * @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
3141
  * @param {*} [options] Override http request option.
3132
3142
  * @throws {RequiredError}
3133
3143
  */
3134
- createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponse>>;
3144
+ createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponse>>;
3135
3145
  /**
3136
3146
  * Create a new payment instruction to be used when linking to perform new payment
3137
3147
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -3214,17 +3224,19 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3214
3224
  /**
3215
3225
  * CREATE Mandate
3216
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.
3217
3228
  * @param {*} [options] Override http request option.
3218
3229
  * @throws {RequiredError}
3219
3230
  */
3220
- createMandate(createMandateRequest: CreateMandateRequest, options?: any): AxiosPromise<CreateMandateResponse>;
3231
+ createMandate(createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: any): AxiosPromise<CreateMandateResponse>;
3221
3232
  /**
3222
3233
  * Create new Payment
3223
3234
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3235
+ * @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.
3224
3236
  * @param {*} [options] Override http request option.
3225
3237
  * @throws {RequiredError}
3226
3238
  */
3227
- createPayment(createPaymentRequest: CreatePaymentRequest, options?: any): AxiosPromise<CreatePaymentResponse>;
3239
+ createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: any): AxiosPromise<CreatePaymentResponse>;
3228
3240
  /**
3229
3241
  * Create a new payment instruction to be used when linking to perform new payment
3230
3242
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -3308,19 +3320,21 @@ export interface CustomerApiInterface {
3308
3320
  /**
3309
3321
  * CREATE Mandate
3310
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.
3311
3324
  * @param {*} [options] Override http request option.
3312
3325
  * @throws {RequiredError}
3313
3326
  * @memberof CustomerApiInterface
3314
3327
  */
3315
- createMandate(createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
3328
+ createMandate(createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
3316
3329
  /**
3317
3330
  * Create new Payment
3318
3331
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3332
+ * @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.
3319
3333
  * @param {*} [options] Override http request option.
3320
3334
  * @throws {RequiredError}
3321
3335
  * @memberof CustomerApiInterface
3322
3336
  */
3323
- createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentResponse>;
3337
+ createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentResponse>;
3324
3338
  /**
3325
3339
  * Create a new payment instruction to be used when linking to perform new payment
3326
3340
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -3415,19 +3429,21 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3415
3429
  /**
3416
3430
  * CREATE Mandate
3417
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.
3418
3433
  * @param {*} [options] Override http request option.
3419
3434
  * @throws {RequiredError}
3420
3435
  * @memberof CustomerApi
3421
3436
  */
3422
- createMandate(createMandateRequest: CreateMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
3437
+ createMandate(createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
3423
3438
  /**
3424
3439
  * Create new Payment
3425
3440
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
3441
+ * @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.
3426
3442
  * @param {*} [options] Override http request option.
3427
3443
  * @throws {RequiredError}
3428
3444
  * @memberof CustomerApi
3429
3445
  */
3430
- createPayment(createPaymentRequest: CreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponse>>;
3446
+ createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponse>>;
3431
3447
  /**
3432
3448
  * Create a new payment instruction to be used when linking to perform new payment
3433
3449
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
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 : {};
@@ -124,10 +128,11 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
124
128
  /**
125
129
  * Create new Payment
126
130
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
131
+ * @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.
127
132
  * @param {*} [options] Override http request option.
128
133
  * @throws {RequiredError}
129
134
  */
130
- createPayment: (createPaymentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
135
+ createPayment: (createPaymentRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
131
136
  // verify required parameter 'createPaymentRequest' is not null or undefined
132
137
  common_1.assertParamExists('createPayment', 'createPaymentRequest', createPaymentRequest);
133
138
  const localVarPath = `/payments`;
@@ -143,6 +148,9 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
143
148
  // authentication Oauth2 required
144
149
  // oauth required
145
150
  yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
151
+ if (idempotencyKey !== undefined && idempotencyKey !== null) {
152
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
153
+ }
146
154
  localVarHeaderParameter['Content-Type'] = 'application/json';
147
155
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
148
156
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -484,24 +492,26 @@ exports.CustomerApiFp = function (configuration) {
484
492
  /**
485
493
  * CREATE Mandate
486
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.
487
496
  * @param {*} [options] Override http request option.
488
497
  * @throws {RequiredError}
489
498
  */
490
- createMandate(createMandateRequest, options) {
499
+ createMandate(createMandateRequest, idempotencyKey, options) {
491
500
  return __awaiter(this, void 0, void 0, function* () {
492
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandate(createMandateRequest, options);
501
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandate(createMandateRequest, idempotencyKey, options);
493
502
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
494
503
  });
495
504
  },
496
505
  /**
497
506
  * Create new Payment
498
507
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
508
+ * @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.
499
509
  * @param {*} [options] Override http request option.
500
510
  * @throws {RequiredError}
501
511
  */
502
- createPayment(createPaymentRequest, options) {
512
+ createPayment(createPaymentRequest, idempotencyKey, options) {
503
513
  return __awaiter(this, void 0, void 0, function* () {
504
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayment(createPaymentRequest, options);
514
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayment(createPaymentRequest, idempotencyKey, options);
505
515
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
506
516
  });
507
517
  },
@@ -640,20 +650,26 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
640
650
  /**
641
651
  * CREATE Mandate
642
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.
643
654
  * @param {*} [options] Override http request option.
644
655
  * @throws {RequiredError}
645
656
  */
646
- createMandate(createMandateRequest, options) {
647
- 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));
648
661
  },
649
662
  /**
650
663
  * Create new Payment
651
664
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
665
+ * @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.
652
666
  * @param {*} [options] Override http request option.
653
667
  * @throws {RequiredError}
654
668
  */
655
- createPayment(createPaymentRequest, options) {
656
- return localVarFp.createPayment(createPaymentRequest, options).then((request) => request(axios, basePath));
669
+ createPayment(createPaymentRequest, idempotencyKey, options) {
670
+ return localVarFp
671
+ .createPayment(createPaymentRequest, idempotencyKey, options)
672
+ .then((request) => request(axios, basePath));
657
673
  },
658
674
  /**
659
675
  * Create a new payment instruction to be used when linking to perform new payment
@@ -766,25 +782,27 @@ class CustomerApi extends base_1.BaseAPI {
766
782
  /**
767
783
  * CREATE Mandate
768
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.
769
786
  * @param {*} [options] Override http request option.
770
787
  * @throws {RequiredError}
771
788
  * @memberof CustomerApi
772
789
  */
773
- createMandate(createMandateRequest, options) {
790
+ createMandate(createMandateRequest, idempotencyKey, options) {
774
791
  return exports.CustomerApiFp(this.configuration)
775
- .createMandate(createMandateRequest, options)
792
+ .createMandate(createMandateRequest, idempotencyKey, options)
776
793
  .then((request) => request(this.axios, this.basePath));
777
794
  }
778
795
  /**
779
796
  * Create new Payment
780
797
  * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
798
+ * @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.
781
799
  * @param {*} [options] Override http request option.
782
800
  * @throws {RequiredError}
783
801
  * @memberof CustomerApi
784
802
  */
785
- createPayment(createPaymentRequest, options) {
803
+ createPayment(createPaymentRequest, idempotencyKey, options) {
786
804
  return exports.CustomerApiFp(this.configuration)
787
- .createPayment(createPaymentRequest, options)
805
+ .createPayment(createPaymentRequest, idempotencyKey, options)
788
806
  .then((request) => request(this.axios, this.basePath));
789
807
  }
790
808
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.41",
3
+ "version": "0.0.44",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [