@finverse/sdk-typescript 0.0.282 → 0.0.283

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
@@ -8682,7 +8682,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
8682
8682
  */
8683
8683
  cancelPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8684
8684
  /**
8685
- * cancel payment on payment link
8685
+ * cancel payment on payment link (Deprecated, should use unlink instead)
8686
8686
  * @param {*} [options] Override http request option.
8687
8687
  * @throws {RequiredError}
8688
8688
  */
@@ -8890,6 +8890,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
8890
8890
  * @throws {RequiredError}
8891
8891
  */
8892
8892
  setAutopayConsent: (setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8893
+ /**
8894
+ * Unlink payment on payment link
8895
+ * @param {*} [options] Override http request option.
8896
+ * @throws {RequiredError}
8897
+ */
8898
+ unlinkPaymentPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
8893
8899
  /**
8894
8900
  * Update a payment user
8895
8901
  * @param {string} paymentUserId
@@ -8912,7 +8918,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
8912
8918
  */
8913
8919
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
8914
8920
  /**
8915
- * cancel payment on payment link
8921
+ * cancel payment on payment link (Deprecated, should use unlink instead)
8916
8922
  * @param {*} [options] Override http request option.
8917
8923
  * @throws {RequiredError}
8918
8924
  */
@@ -9120,6 +9126,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
9120
9126
  * @throws {RequiredError}
9121
9127
  */
9122
9128
  setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
9129
+ /**
9130
+ * Unlink payment on payment link
9131
+ * @param {*} [options] Override http request option.
9132
+ * @throws {RequiredError}
9133
+ */
9134
+ unlinkPaymentPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
9123
9135
  /**
9124
9136
  * Update a payment user
9125
9137
  * @param {string} paymentUserId
@@ -9142,7 +9154,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
9142
9154
  */
9143
9155
  cancelPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
9144
9156
  /**
9145
- * cancel payment on payment link
9157
+ * cancel payment on payment link (Deprecated, should use unlink instead)
9146
9158
  * @param {*} [options] Override http request option.
9147
9159
  * @throws {RequiredError}
9148
9160
  */
@@ -9350,6 +9362,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
9350
9362
  * @throws {RequiredError}
9351
9363
  */
9352
9364
  setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: any): AxiosPromise<void>;
9365
+ /**
9366
+ * Unlink payment on payment link
9367
+ * @param {*} [options] Override http request option.
9368
+ * @throws {RequiredError}
9369
+ */
9370
+ unlinkPaymentPaymentLink(options?: any): AxiosPromise<void>;
9353
9371
  /**
9354
9372
  * Update a payment user
9355
9373
  * @param {string} paymentUserId
@@ -9374,7 +9392,7 @@ export interface DefaultApiInterface {
9374
9392
  */
9375
9393
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
9376
9394
  /**
9377
- * cancel payment on payment link
9395
+ * cancel payment on payment link (Deprecated, should use unlink instead)
9378
9396
  * @param {*} [options] Override http request option.
9379
9397
  * @throws {RequiredError}
9380
9398
  * @memberof DefaultApiInterface
@@ -9609,6 +9627,13 @@ export interface DefaultApiInterface {
9609
9627
  * @memberof DefaultApiInterface
9610
9628
  */
9611
9629
  setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
9630
+ /**
9631
+ * Unlink payment on payment link
9632
+ * @param {*} [options] Override http request option.
9633
+ * @throws {RequiredError}
9634
+ * @memberof DefaultApiInterface
9635
+ */
9636
+ unlinkPaymentPaymentLink(options?: AxiosRequestConfig): AxiosPromise<void>;
9612
9637
  /**
9613
9638
  * Update a payment user
9614
9639
  * @param {string} paymentUserId
@@ -9635,7 +9660,7 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
9635
9660
  */
9636
9661
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
9637
9662
  /**
9638
- * cancel payment on payment link
9663
+ * cancel payment on payment link (Deprecated, should use unlink instead)
9639
9664
  * @param {*} [options] Override http request option.
9640
9665
  * @throws {RequiredError}
9641
9666
  * @memberof DefaultApi
@@ -9870,6 +9895,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
9870
9895
  * @memberof DefaultApi
9871
9896
  */
9872
9897
  setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
9898
+ /**
9899
+ * Unlink payment on payment link
9900
+ * @param {*} [options] Override http request option.
9901
+ * @throws {RequiredError}
9902
+ * @memberof DefaultApi
9903
+ */
9904
+ unlinkPaymentPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
9873
9905
  /**
9874
9906
  * Update a payment user
9875
9907
  * @param {string} paymentUserId
package/dist/api.js CHANGED
@@ -2146,7 +2146,7 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2146
2146
  };
2147
2147
  }),
2148
2148
  /**
2149
- * cancel payment on payment link
2149
+ * cancel payment on payment link (Deprecated, should use unlink instead)
2150
2150
  * @param {*} [options] Override http request option.
2151
2151
  * @throws {RequiredError}
2152
2152
  */
@@ -3075,6 +3075,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
3075
3075
  options: localVarRequestOptions,
3076
3076
  };
3077
3077
  }),
3078
+ /**
3079
+ * Unlink payment on payment link
3080
+ * @param {*} [options] Override http request option.
3081
+ * @throws {RequiredError}
3082
+ */
3083
+ unlinkPaymentPaymentLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
3084
+ const localVarPath = `/payment_link/fvlink/payment/unlink`;
3085
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3086
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3087
+ let baseOptions;
3088
+ if (configuration) {
3089
+ baseOptions = configuration.baseOptions;
3090
+ }
3091
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3092
+ const localVarHeaderParameter = {};
3093
+ const localVarQueryParameter = {};
3094
+ // authentication Oauth2 required
3095
+ // oauth required
3096
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
3097
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3098
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3099
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3100
+ return {
3101
+ url: common_1.toPathString(localVarUrlObj),
3102
+ options: localVarRequestOptions,
3103
+ };
3104
+ }),
3078
3105
  /**
3079
3106
  * Update a payment user
3080
3107
  * @param {string} paymentUserId
@@ -3132,7 +3159,7 @@ exports.DefaultApiFp = function (configuration) {
3132
3159
  });
3133
3160
  },
3134
3161
  /**
3135
- * cancel payment on payment link
3162
+ * cancel payment on payment link (Deprecated, should use unlink instead)
3136
3163
  * @param {*} [options] Override http request option.
3137
3164
  * @throws {RequiredError}
3138
3165
  */
@@ -3475,6 +3502,17 @@ exports.DefaultApiFp = function (configuration) {
3475
3502
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3476
3503
  });
3477
3504
  },
3505
+ /**
3506
+ * Unlink payment on payment link
3507
+ * @param {*} [options] Override http request option.
3508
+ * @throws {RequiredError}
3509
+ */
3510
+ unlinkPaymentPaymentLink(options) {
3511
+ return __awaiter(this, void 0, void 0, function* () {
3512
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unlinkPaymentPaymentLink(options);
3513
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3514
+ });
3515
+ },
3478
3516
  /**
3479
3517
  * Update a payment user
3480
3518
  * @param {string} paymentUserId
@@ -3507,7 +3545,7 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
3507
3545
  return localVarFp.cancelPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
3508
3546
  },
3509
3547
  /**
3510
- * cancel payment on payment link
3548
+ * cancel payment on payment link (Deprecated, should use unlink instead)
3511
3549
  * @param {*} [options] Override http request option.
3512
3550
  * @throws {RequiredError}
3513
3551
  */
@@ -3791,6 +3829,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
3791
3829
  .setAutopayConsent(setAutopayConsentRequest, options)
3792
3830
  .then((request) => request(axios, basePath));
3793
3831
  },
3832
+ /**
3833
+ * Unlink payment on payment link
3834
+ * @param {*} [options] Override http request option.
3835
+ * @throws {RequiredError}
3836
+ */
3837
+ unlinkPaymentPaymentLink(options) {
3838
+ return localVarFp.unlinkPaymentPaymentLink(options).then((request) => request(axios, basePath));
3839
+ },
3794
3840
  /**
3795
3841
  * Update a payment user
3796
3842
  * @param {string} paymentUserId
@@ -3825,7 +3871,7 @@ class DefaultApi extends base_1.BaseAPI {
3825
3871
  .then((request) => request(this.axios, this.basePath));
3826
3872
  }
3827
3873
  /**
3828
- * cancel payment on payment link
3874
+ * cancel payment on payment link (Deprecated, should use unlink instead)
3829
3875
  * @param {*} [options] Override http request option.
3830
3876
  * @throws {RequiredError}
3831
3877
  * @memberof DefaultApi
@@ -4168,6 +4214,17 @@ class DefaultApi extends base_1.BaseAPI {
4168
4214
  .setAutopayConsent(setAutopayConsentRequest, options)
4169
4215
  .then((request) => request(this.axios, this.basePath));
4170
4216
  }
4217
+ /**
4218
+ * Unlink payment on payment link
4219
+ * @param {*} [options] Override http request option.
4220
+ * @throws {RequiredError}
4221
+ * @memberof DefaultApi
4222
+ */
4223
+ unlinkPaymentPaymentLink(options) {
4224
+ return exports.DefaultApiFp(this.configuration)
4225
+ .unlinkPaymentPaymentLink(options)
4226
+ .then((request) => request(this.axios, this.basePath));
4227
+ }
4171
4228
  /**
4172
4229
  * Update a payment user
4173
4230
  * @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.283",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [