@finverse/sdk-typescript 0.0.180 → 0.0.181

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
@@ -5259,12 +5259,6 @@ export interface PayoutSnapshotResponse {
5259
5259
  * @memberof PayoutSnapshotResponse
5260
5260
  */
5261
5261
  payout_id?: string;
5262
- /**
5263
- *
5264
- * @type {string}
5265
- * @memberof PayoutSnapshotResponse
5266
- */
5267
- transaction_reference_id?: string;
5268
5262
  /**
5269
5263
  *
5270
5264
  * @type {string}
@@ -5319,12 +5313,6 @@ export interface PayoutSnapshotResponse {
5319
5313
  * @memberof PayoutSnapshotResponse
5320
5314
  */
5321
5315
  currency?: string;
5322
- /**
5323
- *
5324
- * @type {string}
5325
- * @memberof PayoutSnapshotResponse
5326
- */
5327
- description?: string;
5328
5316
  /**
5329
5317
  *
5330
5318
  * @type {PayoutSnapshotPaymentAccount}
@@ -7238,11 +7226,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7238
7226
  createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7239
7227
  /**
7240
7228
  * Create a scheduled payout
7229
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
7241
7230
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7242
7231
  * @param {*} [options] Override http request option.
7243
7232
  * @throws {RequiredError}
7244
7233
  */
7245
- createScheduledPayout: (createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7234
+ createScheduledPayout: (idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7246
7235
  /**
7247
7236
  * Get a customer-specific list of institutions for Finverse Link
7248
7237
  * @param {*} [options] Override http request option.
@@ -7362,11 +7351,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7362
7351
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
7363
7352
  /**
7364
7353
  * Create a scheduled payout
7354
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
7365
7355
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7366
7356
  * @param {*} [options] Override http request option.
7367
7357
  * @throws {RequiredError}
7368
7358
  */
7369
- createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
7359
+ createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
7370
7360
  /**
7371
7361
  * Get a customer-specific list of institutions for Finverse Link
7372
7362
  * @param {*} [options] Override http request option.
@@ -7486,11 +7476,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7486
7476
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
7487
7477
  /**
7488
7478
  * Create a scheduled payout
7479
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
7489
7480
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7490
7481
  * @param {*} [options] Override http request option.
7491
7482
  * @throws {RequiredError}
7492
7483
  */
7493
- createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: any): AxiosPromise<PayoutSnapshotResponse>;
7484
+ createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: any): AxiosPromise<PayoutSnapshotResponse>;
7494
7485
  /**
7495
7486
  * Get a customer-specific list of institutions for Finverse Link
7496
7487
  * @param {*} [options] Override http request option.
@@ -7619,12 +7610,13 @@ export interface DefaultApiInterface {
7619
7610
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
7620
7611
  /**
7621
7612
  * Create a scheduled payout
7613
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
7622
7614
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7623
7615
  * @param {*} [options] Override http request option.
7624
7616
  * @throws {RequiredError}
7625
7617
  * @memberof DefaultApiInterface
7626
7618
  */
7627
- createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
7619
+ createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
7628
7620
  /**
7629
7621
  * Get a customer-specific list of institutions for Finverse Link
7630
7622
  * @param {*} [options] Override http request option.
@@ -7760,12 +7752,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
7760
7752
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
7761
7753
  /**
7762
7754
  * Create a scheduled payout
7755
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
7763
7756
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7764
7757
  * @param {*} [options] Override http request option.
7765
7758
  * @throws {RequiredError}
7766
7759
  * @memberof DefaultApi
7767
7760
  */
7768
- createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
7761
+ createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
7769
7762
  /**
7770
7763
  * Get a customer-specific list of institutions for Finverse Link
7771
7764
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -2243,11 +2243,14 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2243
2243
  }),
2244
2244
  /**
2245
2245
  * Create a scheduled payout
2246
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
2246
2247
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2247
2248
  * @param {*} [options] Override http request option.
2248
2249
  * @throws {RequiredError}
2249
2250
  */
2250
- createScheduledPayout: (createScheduledPayoutRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2251
+ createScheduledPayout: (idempotencyKey, createScheduledPayoutRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2252
+ // verify required parameter 'idempotencyKey' is not null or undefined
2253
+ common_1.assertParamExists('createScheduledPayout', 'idempotencyKey', idempotencyKey);
2251
2254
  // verify required parameter 'createScheduledPayoutRequest' is not null or undefined
2252
2255
  common_1.assertParamExists('createScheduledPayout', 'createScheduledPayoutRequest', createScheduledPayoutRequest);
2253
2256
  const localVarPath = `/payouts/scheduled`;
@@ -2263,6 +2266,9 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2263
2266
  // authentication Oauth2 required
2264
2267
  // oauth required
2265
2268
  yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2269
+ if (idempotencyKey !== undefined && idempotencyKey !== null) {
2270
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
2271
+ }
2266
2272
  localVarHeaderParameter['Content-Type'] = 'application/json';
2267
2273
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2268
2274
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2628,13 +2634,14 @@ exports.DefaultApiFp = function (configuration) {
2628
2634
  },
2629
2635
  /**
2630
2636
  * Create a scheduled payout
2637
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
2631
2638
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2632
2639
  * @param {*} [options] Override http request option.
2633
2640
  * @throws {RequiredError}
2634
2641
  */
2635
- createScheduledPayout(createScheduledPayoutRequest, options) {
2642
+ createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
2636
2643
  return __awaiter(this, void 0, void 0, function* () {
2637
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createScheduledPayout(createScheduledPayoutRequest, options);
2644
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options);
2638
2645
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2639
2646
  });
2640
2647
  },
@@ -2814,13 +2821,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2814
2821
  },
2815
2822
  /**
2816
2823
  * Create a scheduled payout
2824
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
2817
2825
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2818
2826
  * @param {*} [options] Override http request option.
2819
2827
  * @throws {RequiredError}
2820
2828
  */
2821
- createScheduledPayout(createScheduledPayoutRequest, options) {
2829
+ createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
2822
2830
  return localVarFp
2823
- .createScheduledPayout(createScheduledPayoutRequest, options)
2831
+ .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
2824
2832
  .then((request) => request(axios, basePath));
2825
2833
  },
2826
2834
  /**
@@ -3003,14 +3011,15 @@ class DefaultApi extends base_1.BaseAPI {
3003
3011
  }
3004
3012
  /**
3005
3013
  * Create a scheduled payout
3014
+ * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3006
3015
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
3007
3016
  * @param {*} [options] Override http request option.
3008
3017
  * @throws {RequiredError}
3009
3018
  * @memberof DefaultApi
3010
3019
  */
3011
- createScheduledPayout(createScheduledPayoutRequest, options) {
3020
+ createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
3012
3021
  return exports.DefaultApiFp(this.configuration)
3013
- .createScheduledPayout(createScheduledPayoutRequest, options)
3022
+ .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
3014
3023
  .then((request) => request(this.axios, this.basePath));
3015
3024
  }
3016
3025
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.180",
3
+ "version": "0.0.181",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [