@finverse/sdk-typescript 0.0.299 → 0.0.300

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
@@ -9213,6 +9213,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
9213
9213
  * @throws {RequiredError}
9214
9214
  */
9215
9215
  createScheduledPayout: (idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9216
+ /**
9217
+ * Demote payment attempt
9218
+ * @param {*} [options] Override http request option.
9219
+ * @throws {RequiredError}
9220
+ */
9221
+ demotePaymentAttempt: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9216
9222
  /**
9217
9223
  * Download the balance statement for the ledger (CSV)
9218
9224
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -9461,6 +9467,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
9461
9467
  * @throws {RequiredError}
9462
9468
  */
9463
9469
  createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
9470
+ /**
9471
+ * Demote payment attempt
9472
+ * @param {*} [options] Override http request option.
9473
+ * @throws {RequiredError}
9474
+ */
9475
+ demotePaymentAttempt(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
9464
9476
  /**
9465
9477
  * Download the balance statement for the ledger (CSV)
9466
9478
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -9709,6 +9721,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
9709
9721
  * @throws {RequiredError}
9710
9722
  */
9711
9723
  createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
9724
+ /**
9725
+ * Demote payment attempt
9726
+ * @param {*} [options] Override http request option.
9727
+ * @throws {RequiredError}
9728
+ */
9729
+ demotePaymentAttempt(options?: RawAxiosRequestConfig): AxiosPromise<void>;
9712
9730
  /**
9713
9731
  * Download the balance statement for the ledger (CSV)
9714
9732
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -9970,6 +9988,13 @@ export interface DefaultApiInterface {
9970
9988
  * @memberof DefaultApiInterface
9971
9989
  */
9972
9990
  createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
9991
+ /**
9992
+ * Demote payment attempt
9993
+ * @param {*} [options] Override http request option.
9994
+ * @throws {RequiredError}
9995
+ * @memberof DefaultApiInterface
9996
+ */
9997
+ demotePaymentAttempt(options?: RawAxiosRequestConfig): AxiosPromise<void>;
9973
9998
  /**
9974
9999
  * Download the balance statement for the ledger (CSV)
9975
10000
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -10250,6 +10275,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
10250
10275
  * @memberof DefaultApi
10251
10276
  */
10252
10277
  createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse, any>>;
10278
+ /**
10279
+ * Demote payment attempt
10280
+ * @param {*} [options] Override http request option.
10281
+ * @throws {RequiredError}
10282
+ * @memberof DefaultApi
10283
+ */
10284
+ demotePaymentAttempt(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
10253
10285
  /**
10254
10286
  * Download the balance statement for the ledger (CSV)
10255
10287
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
package/dist/api.js CHANGED
@@ -2707,6 +2707,33 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2707
2707
  options: localVarRequestOptions,
2708
2708
  };
2709
2709
  }),
2710
+ /**
2711
+ * Demote payment attempt
2712
+ * @param {*} [options] Override http request option.
2713
+ * @throws {RequiredError}
2714
+ */
2715
+ demotePaymentAttempt: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2716
+ const localVarPath = `/payment_link/fvlink/payment_attempt/demote`;
2717
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2718
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2719
+ let baseOptions;
2720
+ if (configuration) {
2721
+ baseOptions = configuration.baseOptions;
2722
+ }
2723
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2724
+ const localVarHeaderParameter = {};
2725
+ const localVarQueryParameter = {};
2726
+ // authentication Oauth2 required
2727
+ // oauth required
2728
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
2729
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2730
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2731
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2732
+ return {
2733
+ url: (0, common_1.toPathString)(localVarUrlObj),
2734
+ options: localVarRequestOptions,
2735
+ };
2736
+ }),
2710
2737
  /**
2711
2738
  * Download the balance statement for the ledger (CSV)
2712
2739
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -3593,6 +3620,20 @@ const DefaultApiFp = function (configuration) {
3593
3620
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3594
3621
  });
3595
3622
  },
3623
+ /**
3624
+ * Demote payment attempt
3625
+ * @param {*} [options] Override http request option.
3626
+ * @throws {RequiredError}
3627
+ */
3628
+ demotePaymentAttempt(options) {
3629
+ return __awaiter(this, void 0, void 0, function* () {
3630
+ var _a, _b, _c;
3631
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.demotePaymentAttempt(options);
3632
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3633
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.demotePaymentAttempt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3634
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3635
+ });
3636
+ },
3596
3637
  /**
3597
3638
  * Download the balance statement for the ledger (CSV)
3598
3639
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -4025,6 +4066,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4025
4066
  .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
4026
4067
  .then((request) => request(axios, basePath));
4027
4068
  },
4069
+ /**
4070
+ * Demote payment attempt
4071
+ * @param {*} [options] Override http request option.
4072
+ * @throws {RequiredError}
4073
+ */
4074
+ demotePaymentAttempt(options) {
4075
+ return localVarFp.demotePaymentAttempt(options).then((request) => request(axios, basePath));
4076
+ },
4028
4077
  /**
4029
4078
  * Download the balance statement for the ledger (CSV)
4030
4079
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -4387,6 +4436,17 @@ class DefaultApi extends base_1.BaseAPI {
4387
4436
  .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
4388
4437
  .then((request) => request(this.axios, this.basePath));
4389
4438
  }
4439
+ /**
4440
+ * Demote payment attempt
4441
+ * @param {*} [options] Override http request option.
4442
+ * @throws {RequiredError}
4443
+ * @memberof DefaultApi
4444
+ */
4445
+ demotePaymentAttempt(options) {
4446
+ return (0, exports.DefaultApiFp)(this.configuration)
4447
+ .demotePaymentAttempt(options)
4448
+ .then((request) => request(this.axios, this.basePath));
4449
+ }
4390
4450
  /**
4391
4451
  * Download the balance statement for the ledger (CSV)
4392
4452
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.299",
3
+ "version": "0.0.300",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {