@finverse/sdk-typescript 0.0.282 → 0.0.284

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 +32 -32
  2. package/dist/api.js +57 -57
  3. package/package.json +2 -2
package/dist/api.d.ts CHANGED
@@ -8681,12 +8681,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
8681
8681
  * @throws {RequiredError}
8682
8682
  */
8683
8683
  cancelPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8684
- /**
8685
- * cancel payment on payment link
8686
- * @param {*} [options] Override http request option.
8687
- * @throws {RequiredError}
8688
- */
8689
- cancelPaymentPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
8690
8684
  /**
8691
8685
  * Cancel Payout by payout_id
8692
8686
  * @param {string} payoutId payout id
@@ -8890,6 +8884,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
8890
8884
  * @throws {RequiredError}
8891
8885
  */
8892
8886
  setAutopayConsent: (setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8887
+ /**
8888
+ * Unlink payment on payment link
8889
+ * @param {*} [options] Override http request option.
8890
+ * @throws {RequiredError}
8891
+ */
8892
+ unlinkPaymentPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
8893
8893
  /**
8894
8894
  * Update a payment user
8895
8895
  * @param {string} paymentUserId
@@ -8911,12 +8911,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
8911
8911
  * @throws {RequiredError}
8912
8912
  */
8913
8913
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
8914
- /**
8915
- * cancel payment on payment link
8916
- * @param {*} [options] Override http request option.
8917
- * @throws {RequiredError}
8918
- */
8919
- cancelPaymentPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8920
8914
  /**
8921
8915
  * Cancel Payout by payout_id
8922
8916
  * @param {string} payoutId payout id
@@ -9120,6 +9114,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
9120
9114
  * @throws {RequiredError}
9121
9115
  */
9122
9116
  setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
9117
+ /**
9118
+ * Unlink payment on payment link
9119
+ * @param {*} [options] Override http request option.
9120
+ * @throws {RequiredError}
9121
+ */
9122
+ unlinkPaymentPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
9123
9123
  /**
9124
9124
  * Update a payment user
9125
9125
  * @param {string} paymentUserId
@@ -9141,12 +9141,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
9141
9141
  * @throws {RequiredError}
9142
9142
  */
9143
9143
  cancelPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
9144
- /**
9145
- * cancel payment on payment link
9146
- * @param {*} [options] Override http request option.
9147
- * @throws {RequiredError}
9148
- */
9149
- cancelPaymentPaymentLink(options?: any): AxiosPromise<void>;
9150
9144
  /**
9151
9145
  * Cancel Payout by payout_id
9152
9146
  * @param {string} payoutId payout id
@@ -9350,6 +9344,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
9350
9344
  * @throws {RequiredError}
9351
9345
  */
9352
9346
  setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: any): AxiosPromise<void>;
9347
+ /**
9348
+ * Unlink payment on payment link
9349
+ * @param {*} [options] Override http request option.
9350
+ * @throws {RequiredError}
9351
+ */
9352
+ unlinkPaymentPaymentLink(options?: any): AxiosPromise<void>;
9353
9353
  /**
9354
9354
  * Update a payment user
9355
9355
  * @param {string} paymentUserId
@@ -9373,13 +9373,6 @@ export interface DefaultApiInterface {
9373
9373
  * @memberof DefaultApiInterface
9374
9374
  */
9375
9375
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
9376
- /**
9377
- * cancel payment on payment link
9378
- * @param {*} [options] Override http request option.
9379
- * @throws {RequiredError}
9380
- * @memberof DefaultApiInterface
9381
- */
9382
- cancelPaymentPaymentLink(options?: AxiosRequestConfig): AxiosPromise<void>;
9383
9376
  /**
9384
9377
  * Cancel Payout by payout_id
9385
9378
  * @param {string} payoutId payout id
@@ -9609,6 +9602,13 @@ export interface DefaultApiInterface {
9609
9602
  * @memberof DefaultApiInterface
9610
9603
  */
9611
9604
  setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
9605
+ /**
9606
+ * Unlink payment on payment link
9607
+ * @param {*} [options] Override http request option.
9608
+ * @throws {RequiredError}
9609
+ * @memberof DefaultApiInterface
9610
+ */
9611
+ unlinkPaymentPaymentLink(options?: AxiosRequestConfig): AxiosPromise<void>;
9612
9612
  /**
9613
9613
  * Update a payment user
9614
9614
  * @param {string} paymentUserId
@@ -9634,13 +9634,6 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
9634
9634
  * @memberof DefaultApi
9635
9635
  */
9636
9636
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
9637
- /**
9638
- * cancel payment on payment link
9639
- * @param {*} [options] Override http request option.
9640
- * @throws {RequiredError}
9641
- * @memberof DefaultApi
9642
- */
9643
- cancelPaymentPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
9644
9637
  /**
9645
9638
  * Cancel Payout by payout_id
9646
9639
  * @param {string} payoutId payout id
@@ -9870,6 +9863,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
9870
9863
  * @memberof DefaultApi
9871
9864
  */
9872
9865
  setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
9866
+ /**
9867
+ * Unlink payment on payment link
9868
+ * @param {*} [options] Override http request option.
9869
+ * @throws {RequiredError}
9870
+ * @memberof DefaultApi
9871
+ */
9872
+ unlinkPaymentPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
9873
9873
  /**
9874
9874
  * Update a payment user
9875
9875
  * @param {string} paymentUserId
package/dist/api.js CHANGED
@@ -2145,33 +2145,6 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2145
2145
  options: localVarRequestOptions,
2146
2146
  };
2147
2147
  }),
2148
- /**
2149
- * cancel payment on payment link
2150
- * @param {*} [options] Override http request option.
2151
- * @throws {RequiredError}
2152
- */
2153
- cancelPaymentPaymentLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2154
- const localVarPath = `/payment_link/fvlink/payment/cancel`;
2155
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2156
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2157
- let baseOptions;
2158
- if (configuration) {
2159
- baseOptions = configuration.baseOptions;
2160
- }
2161
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2162
- const localVarHeaderParameter = {};
2163
- const localVarQueryParameter = {};
2164
- // authentication Oauth2 required
2165
- // oauth required
2166
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2167
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2168
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2169
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2170
- return {
2171
- url: common_1.toPathString(localVarUrlObj),
2172
- options: localVarRequestOptions,
2173
- };
2174
- }),
2175
2148
  /**
2176
2149
  * Cancel Payout by payout_id
2177
2150
  * @param {string} payoutId payout id
@@ -3075,6 +3048,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
3075
3048
  options: localVarRequestOptions,
3076
3049
  };
3077
3050
  }),
3051
+ /**
3052
+ * Unlink payment on payment link
3053
+ * @param {*} [options] Override http request option.
3054
+ * @throws {RequiredError}
3055
+ */
3056
+ unlinkPaymentPaymentLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
3057
+ const localVarPath = `/payment_link/fvlink/payment/unlink`;
3058
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3059
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3060
+ let baseOptions;
3061
+ if (configuration) {
3062
+ baseOptions = configuration.baseOptions;
3063
+ }
3064
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3065
+ const localVarHeaderParameter = {};
3066
+ const localVarQueryParameter = {};
3067
+ // authentication Oauth2 required
3068
+ // oauth required
3069
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
3070
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3072
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3073
+ return {
3074
+ url: common_1.toPathString(localVarUrlObj),
3075
+ options: localVarRequestOptions,
3076
+ };
3077
+ }),
3078
3078
  /**
3079
3079
  * Update a payment user
3080
3080
  * @param {string} paymentUserId
@@ -3131,17 +3131,6 @@ exports.DefaultApiFp = function (configuration) {
3131
3131
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3132
3132
  });
3133
3133
  },
3134
- /**
3135
- * cancel payment on payment link
3136
- * @param {*} [options] Override http request option.
3137
- * @throws {RequiredError}
3138
- */
3139
- cancelPaymentPaymentLink(options) {
3140
- return __awaiter(this, void 0, void 0, function* () {
3141
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPaymentPaymentLink(options);
3142
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3143
- });
3144
- },
3145
3134
  /**
3146
3135
  * Cancel Payout by payout_id
3147
3136
  * @param {string} payoutId payout id
@@ -3475,6 +3464,17 @@ exports.DefaultApiFp = function (configuration) {
3475
3464
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3476
3465
  });
3477
3466
  },
3467
+ /**
3468
+ * Unlink payment on payment link
3469
+ * @param {*} [options] Override http request option.
3470
+ * @throws {RequiredError}
3471
+ */
3472
+ unlinkPaymentPaymentLink(options) {
3473
+ return __awaiter(this, void 0, void 0, function* () {
3474
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unlinkPaymentPaymentLink(options);
3475
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3476
+ });
3477
+ },
3478
3478
  /**
3479
3479
  * Update a payment user
3480
3480
  * @param {string} paymentUserId
@@ -3506,14 +3506,6 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
3506
3506
  cancelPaymentLink(paymentLinkId, options) {
3507
3507
  return localVarFp.cancelPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
3508
3508
  },
3509
- /**
3510
- * cancel payment on payment link
3511
- * @param {*} [options] Override http request option.
3512
- * @throws {RequiredError}
3513
- */
3514
- cancelPaymentPaymentLink(options) {
3515
- return localVarFp.cancelPaymentPaymentLink(options).then((request) => request(axios, basePath));
3516
- },
3517
3509
  /**
3518
3510
  * Cancel Payout by payout_id
3519
3511
  * @param {string} payoutId payout id
@@ -3791,6 +3783,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
3791
3783
  .setAutopayConsent(setAutopayConsentRequest, options)
3792
3784
  .then((request) => request(axios, basePath));
3793
3785
  },
3786
+ /**
3787
+ * Unlink payment on payment link
3788
+ * @param {*} [options] Override http request option.
3789
+ * @throws {RequiredError}
3790
+ */
3791
+ unlinkPaymentPaymentLink(options) {
3792
+ return localVarFp.unlinkPaymentPaymentLink(options).then((request) => request(axios, basePath));
3793
+ },
3794
3794
  /**
3795
3795
  * Update a payment user
3796
3796
  * @param {string} paymentUserId
@@ -3824,17 +3824,6 @@ class DefaultApi extends base_1.BaseAPI {
3824
3824
  .cancelPaymentLink(paymentLinkId, options)
3825
3825
  .then((request) => request(this.axios, this.basePath));
3826
3826
  }
3827
- /**
3828
- * cancel payment on payment link
3829
- * @param {*} [options] Override http request option.
3830
- * @throws {RequiredError}
3831
- * @memberof DefaultApi
3832
- */
3833
- cancelPaymentPaymentLink(options) {
3834
- return exports.DefaultApiFp(this.configuration)
3835
- .cancelPaymentPaymentLink(options)
3836
- .then((request) => request(this.axios, this.basePath));
3837
- }
3838
3827
  /**
3839
3828
  * Cancel Payout by payout_id
3840
3829
  * @param {string} payoutId payout id
@@ -4168,6 +4157,17 @@ class DefaultApi extends base_1.BaseAPI {
4168
4157
  .setAutopayConsent(setAutopayConsentRequest, options)
4169
4158
  .then((request) => request(this.axios, this.basePath));
4170
4159
  }
4160
+ /**
4161
+ * Unlink payment on payment link
4162
+ * @param {*} [options] Override http request option.
4163
+ * @throws {RequiredError}
4164
+ * @memberof DefaultApi
4165
+ */
4166
+ unlinkPaymentPaymentLink(options) {
4167
+ return exports.DefaultApiFp(this.configuration)
4168
+ .unlinkPaymentPaymentLink(options)
4169
+ .then((request) => request(this.axios, this.basePath));
4170
+ }
4171
4171
  /**
4172
4172
  * Update a payment user
4173
4173
  * @param {string} paymentUserId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.282",
3
+ "version": "0.0.284",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -25,7 +25,7 @@
25
25
  "@types/mocha": "^10.0.10",
26
26
  "@types/node": "^12.11.5",
27
27
  "axios-mock-adapter": "^1.21.2",
28
- "chai": "^5.1.2",
28
+ "chai": "^5.2.0",
29
29
  "mocha": "^11.1.0",
30
30
  "ts-node": "^10.9.2",
31
31
  "typescript": "^3.6.4"