@finverse/sdk-typescript 0.0.168 → 0.0.169

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
@@ -7002,6 +7002,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7002
7002
  * @throws {RequiredError}
7003
7003
  */
7004
7004
  createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
7005
+ /**
7006
+ * Create mandate for an existing sender account
7007
+ * @param {string} senderAccountId The Finverse ID of the sender account
7008
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
7009
+ * @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.
7010
+ * @param {*} [options] Override http request option.
7011
+ * @throws {RequiredError}
7012
+ */
7013
+ createMandateForExistingSender: (senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7005
7014
  /**
7006
7015
  * Create payment link
7007
7016
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -7111,6 +7120,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7111
7120
  * @throws {RequiredError}
7112
7121
  */
7113
7122
  createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
7123
+ /**
7124
+ * Create mandate for an existing sender account
7125
+ * @param {string} senderAccountId The Finverse ID of the sender account
7126
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
7127
+ * @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.
7128
+ * @param {*} [options] Override http request option.
7129
+ * @throws {RequiredError}
7130
+ */
7131
+ createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMandateResponse>>;
7114
7132
  /**
7115
7133
  * Create payment link
7116
7134
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -7220,6 +7238,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7220
7238
  * @throws {RequiredError}
7221
7239
  */
7222
7240
  createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
7241
+ /**
7242
+ * Create mandate for an existing sender account
7243
+ * @param {string} senderAccountId The Finverse ID of the sender account
7244
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
7245
+ * @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.
7246
+ * @param {*} [options] Override http request option.
7247
+ * @throws {RequiredError}
7248
+ */
7249
+ createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: any): AxiosPromise<CreateMandateResponse>;
7223
7250
  /**
7224
7251
  * Create payment link
7225
7252
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -7334,6 +7361,16 @@ export interface DefaultApiInterface {
7334
7361
  * @memberof DefaultApiInterface
7335
7362
  */
7336
7363
  createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
7364
+ /**
7365
+ * Create mandate for an existing sender account
7366
+ * @param {string} senderAccountId The Finverse ID of the sender account
7367
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
7368
+ * @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.
7369
+ * @param {*} [options] Override http request option.
7370
+ * @throws {RequiredError}
7371
+ * @memberof DefaultApiInterface
7372
+ */
7373
+ createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
7337
7374
  /**
7338
7375
  * Create payment link
7339
7376
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -7458,6 +7495,16 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
7458
7495
  * @memberof DefaultApi
7459
7496
  */
7460
7497
  createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
7498
+ /**
7499
+ * Create mandate for an existing sender account
7500
+ * @param {string} senderAccountId The Finverse ID of the sender account
7501
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
7502
+ * @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.
7503
+ * @param {*} [options] Override http request option.
7504
+ * @throws {RequiredError}
7505
+ * @memberof DefaultApi
7506
+ */
7507
+ createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
7461
7508
  /**
7462
7509
  * Create payment link
7463
7510
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
package/dist/api.js CHANGED
@@ -2113,6 +2113,45 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2113
2113
  options: localVarRequestOptions,
2114
2114
  };
2115
2115
  }),
2116
+ /**
2117
+ * Create mandate for an existing sender account
2118
+ * @param {string} senderAccountId The Finverse ID of the sender account
2119
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
2120
+ * @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.
2121
+ * @param {*} [options] Override http request option.
2122
+ * @throws {RequiredError}
2123
+ */
2124
+ createMandateForExistingSender: (senderAccountId, createMandateRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
2125
+ // verify required parameter 'senderAccountId' is not null or undefined
2126
+ common_1.assertParamExists('createMandateForExistingSender', 'senderAccountId', senderAccountId);
2127
+ // verify required parameter 'createMandateRequest' is not null or undefined
2128
+ common_1.assertParamExists('createMandateForExistingSender', 'createMandateRequest', createMandateRequest);
2129
+ const localVarPath = `/mandates/sender_account/{senderAccountId}`.replace(`{${'senderAccountId'}}`, encodeURIComponent(String(senderAccountId)));
2130
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2131
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2132
+ let baseOptions;
2133
+ if (configuration) {
2134
+ baseOptions = configuration.baseOptions;
2135
+ }
2136
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2137
+ const localVarHeaderParameter = {};
2138
+ const localVarQueryParameter = {};
2139
+ // authentication Oauth2 required
2140
+ // oauth required
2141
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2142
+ if (idempotencyKey !== undefined && idempotencyKey !== null) {
2143
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
2144
+ }
2145
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2146
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2147
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2148
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2149
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMandateRequest, localVarRequestOptions, configuration);
2150
+ return {
2151
+ url: common_1.toPathString(localVarUrlObj),
2152
+ options: localVarRequestOptions,
2153
+ };
2154
+ }),
2116
2155
  /**
2117
2156
  * Create payment link
2118
2157
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -2509,6 +2548,20 @@ exports.DefaultApiFp = function (configuration) {
2509
2548
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2510
2549
  });
2511
2550
  },
2551
+ /**
2552
+ * Create mandate for an existing sender account
2553
+ * @param {string} senderAccountId The Finverse ID of the sender account
2554
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
2555
+ * @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.
2556
+ * @param {*} [options] Override http request option.
2557
+ * @throws {RequiredError}
2558
+ */
2559
+ createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
2560
+ return __awaiter(this, void 0, void 0, function* () {
2561
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options);
2562
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2563
+ });
2564
+ },
2512
2565
  /**
2513
2566
  * Create payment link
2514
2567
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -2676,6 +2729,19 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2676
2729
  createFpsToken(options) {
2677
2730
  return localVarFp.createFpsToken(options).then((request) => request(axios, basePath));
2678
2731
  },
2732
+ /**
2733
+ * Create mandate for an existing sender account
2734
+ * @param {string} senderAccountId The Finverse ID of the sender account
2735
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
2736
+ * @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.
2737
+ * @param {*} [options] Override http request option.
2738
+ * @throws {RequiredError}
2739
+ */
2740
+ createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
2741
+ return localVarFp
2742
+ .createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options)
2743
+ .then((request) => request(axios, basePath));
2744
+ },
2679
2745
  /**
2680
2746
  * Create payment link
2681
2747
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -2836,6 +2902,20 @@ class DefaultApi extends base_1.BaseAPI {
2836
2902
  .createFpsToken(options)
2837
2903
  .then((request) => request(this.axios, this.basePath));
2838
2904
  }
2905
+ /**
2906
+ * Create mandate for an existing sender account
2907
+ * @param {string} senderAccountId The Finverse ID of the sender account
2908
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
2909
+ * @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.
2910
+ * @param {*} [options] Override http request option.
2911
+ * @throws {RequiredError}
2912
+ * @memberof DefaultApi
2913
+ */
2914
+ createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
2915
+ return exports.DefaultApiFp(this.configuration)
2916
+ .createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options)
2917
+ .then((request) => request(this.axios, this.basePath));
2918
+ }
2839
2919
  /**
2840
2920
  * Create payment link
2841
2921
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.168",
3
+ "version": "0.0.169",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [