@finverse/sdk-typescript 0.0.146 → 0.0.148

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
@@ -4019,7 +4019,7 @@ export interface PaymentLinkDetails {
4019
4019
  * @type {string}
4020
4020
  * @memberof PaymentLinkDetails
4021
4021
  */
4022
- external_invoice_id?: string;
4022
+ external_invoice_number?: string;
4023
4023
  }
4024
4024
  /**
4025
4025
  *
@@ -6113,6 +6113,13 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6113
6113
  * @export
6114
6114
  */
6115
6115
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
6116
+ /**
6117
+ * Cancel a payment link
6118
+ * @param {string} paymentLinkId The payment link id
6119
+ * @param {*} [options] Override http request option.
6120
+ * @throws {RequiredError}
6121
+ */
6122
+ cancelPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6116
6123
  /**
6117
6124
  * Submit manual payment confirmation
6118
6125
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -6209,6 +6216,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
6209
6216
  * @export
6210
6217
  */
6211
6218
  export declare const DefaultApiFp: (configuration?: Configuration) => {
6219
+ /**
6220
+ * Cancel a payment link
6221
+ * @param {string} paymentLinkId The payment link id
6222
+ * @param {*} [options] Override http request option.
6223
+ * @throws {RequiredError}
6224
+ */
6225
+ cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
6212
6226
  /**
6213
6227
  * Submit manual payment confirmation
6214
6228
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -6305,6 +6319,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
6305
6319
  * @export
6306
6320
  */
6307
6321
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6322
+ /**
6323
+ * Cancel a payment link
6324
+ * @param {string} paymentLinkId The payment link id
6325
+ * @param {*} [options] Override http request option.
6326
+ * @throws {RequiredError}
6327
+ */
6328
+ cancelPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
6308
6329
  /**
6309
6330
  * Submit manual payment confirmation
6310
6331
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -6402,6 +6423,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
6402
6423
  * @interface DefaultApi
6403
6424
  */
6404
6425
  export interface DefaultApiInterface {
6426
+ /**
6427
+ * Cancel a payment link
6428
+ * @param {string} paymentLinkId The payment link id
6429
+ * @param {*} [options] Override http request option.
6430
+ * @throws {RequiredError}
6431
+ * @memberof DefaultApiInterface
6432
+ */
6433
+ cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
6405
6434
  /**
6406
6435
  * Submit manual payment confirmation
6407
6436
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -6511,6 +6540,14 @@ export interface DefaultApiInterface {
6511
6540
  * @extends {BaseAPI}
6512
6541
  */
6513
6542
  export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
6543
+ /**
6544
+ * Cancel a payment link
6545
+ * @param {string} paymentLinkId The payment link id
6546
+ * @param {*} [options] Override http request option.
6547
+ * @throws {RequiredError}
6548
+ * @memberof DefaultApi
6549
+ */
6550
+ cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
6514
6551
  /**
6515
6552
  * Submit manual payment confirmation
6516
6553
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
package/dist/api.js CHANGED
@@ -1585,6 +1585,36 @@ exports.CustomerApi = CustomerApi;
1585
1585
  */
1586
1586
  exports.DefaultApiAxiosParamCreator = function (configuration) {
1587
1587
  return {
1588
+ /**
1589
+ * Cancel a payment link
1590
+ * @param {string} paymentLinkId The payment link id
1591
+ * @param {*} [options] Override http request option.
1592
+ * @throws {RequiredError}
1593
+ */
1594
+ cancelPaymentLink: (paymentLinkId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1595
+ // verify required parameter 'paymentLinkId' is not null or undefined
1596
+ common_1.assertParamExists('cancelPaymentLink', 'paymentLinkId', paymentLinkId);
1597
+ const localVarPath = `/payment_links/{paymentLinkId}/cancel`.replace(`{${'paymentLinkId'}}`, encodeURIComponent(String(paymentLinkId)));
1598
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1599
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1600
+ let baseOptions;
1601
+ if (configuration) {
1602
+ baseOptions = configuration.baseOptions;
1603
+ }
1604
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1605
+ const localVarHeaderParameter = {};
1606
+ const localVarQueryParameter = {};
1607
+ // authentication Oauth2 required
1608
+ // oauth required
1609
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1610
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1611
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1612
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1613
+ return {
1614
+ url: common_1.toPathString(localVarUrlObj),
1615
+ options: localVarRequestOptions,
1616
+ };
1617
+ }),
1588
1618
  /**
1589
1619
  * Submit manual payment confirmation
1590
1620
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -1994,6 +2024,18 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
1994
2024
  exports.DefaultApiFp = function (configuration) {
1995
2025
  const localVarAxiosParamCreator = exports.DefaultApiAxiosParamCreator(configuration);
1996
2026
  return {
2027
+ /**
2028
+ * Cancel a payment link
2029
+ * @param {string} paymentLinkId The payment link id
2030
+ * @param {*} [options] Override http request option.
2031
+ * @throws {RequiredError}
2032
+ */
2033
+ cancelPaymentLink(paymentLinkId, options) {
2034
+ return __awaiter(this, void 0, void 0, function* () {
2035
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPaymentLink(paymentLinkId, options);
2036
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2037
+ });
2038
+ },
1997
2039
  /**
1998
2040
  * Submit manual payment confirmation
1999
2041
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -2148,6 +2190,15 @@ exports.DefaultApiFp = function (configuration) {
2148
2190
  exports.DefaultApiFactory = function (configuration, basePath, axios) {
2149
2191
  const localVarFp = exports.DefaultApiFp(configuration);
2150
2192
  return {
2193
+ /**
2194
+ * Cancel a payment link
2195
+ * @param {string} paymentLinkId The payment link id
2196
+ * @param {*} [options] Override http request option.
2197
+ * @throws {RequiredError}
2198
+ */
2199
+ cancelPaymentLink(paymentLinkId, options) {
2200
+ return localVarFp.cancelPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
2201
+ },
2151
2202
  /**
2152
2203
  * Submit manual payment confirmation
2153
2204
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -2281,6 +2332,18 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2281
2332
  * @extends {BaseAPI}
2282
2333
  */
2283
2334
  class DefaultApi extends base_1.BaseAPI {
2335
+ /**
2336
+ * Cancel a payment link
2337
+ * @param {string} paymentLinkId The payment link id
2338
+ * @param {*} [options] Override http request option.
2339
+ * @throws {RequiredError}
2340
+ * @memberof DefaultApi
2341
+ */
2342
+ cancelPaymentLink(paymentLinkId, options) {
2343
+ return exports.DefaultApiFp(this.configuration)
2344
+ .cancelPaymentLink(paymentLinkId, options)
2345
+ .then((request) => request(this.axios, this.basePath));
2346
+ }
2284
2347
  /**
2285
2348
  * Submit manual payment confirmation
2286
2349
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.146",
3
+ "version": "0.0.148",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [