@finverse/sdk-typescript 0.0.169 → 0.0.171

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 +61 -20
  2. package/dist/api.js +18 -22
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -1021,6 +1021,39 @@ export declare const CreateMandateSenderUserTypeEnum: {
1021
1021
  readonly Business: "BUSINESS";
1022
1022
  };
1023
1023
  export declare type CreateMandateSenderUserTypeEnum = (typeof CreateMandateSenderUserTypeEnum)[keyof typeof CreateMandateSenderUserTypeEnum];
1024
+ /**
1025
+ *
1026
+ * @export
1027
+ * @interface CreateMandateWithSenderAccountRequest
1028
+ */
1029
+ export interface CreateMandateWithSenderAccountRequest {
1030
+ /**
1031
+ *
1032
+ * @type {MandateRecipientRequest}
1033
+ * @memberof CreateMandateWithSenderAccountRequest
1034
+ */
1035
+ recipient_account: MandateRecipientRequest;
1036
+ /**
1037
+ *
1038
+ * @type {MandateSenderAccountRequest}
1039
+ * @memberof CreateMandateWithSenderAccountRequest
1040
+ */
1041
+ sender_account: MandateSenderAccountRequest;
1042
+ /**
1043
+ *
1044
+ * @type {MandateDetails}
1045
+ * @memberof CreateMandateWithSenderAccountRequest
1046
+ */
1047
+ mandate_details: MandateDetails;
1048
+ /**
1049
+ * Additional attributes of the mandate in key:value format (e.g. mandate_internal_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
1050
+ * @type {{ [key: string]: string; }}
1051
+ * @memberof CreateMandateWithSenderAccountRequest
1052
+ */
1053
+ metadata?: {
1054
+ [key: string]: string;
1055
+ };
1056
+ }
1024
1057
  /**
1025
1058
  *
1026
1059
  * @export
@@ -4072,6 +4105,19 @@ export declare const MandateSenderAccountAccountTypeEnum: {
4072
4105
  readonly ExternalAccount: "EXTERNAL_ACCOUNT";
4073
4106
  };
4074
4107
  export declare type MandateSenderAccountAccountTypeEnum = (typeof MandateSenderAccountAccountTypeEnum)[keyof typeof MandateSenderAccountAccountTypeEnum];
4108
+ /**
4109
+ *
4110
+ * @export
4111
+ * @interface MandateSenderAccountRequest
4112
+ */
4113
+ export interface MandateSenderAccountRequest {
4114
+ /**
4115
+ * account ID assigned by Finverse
4116
+ * @type {string}
4117
+ * @memberof MandateSenderAccountRequest
4118
+ */
4119
+ account_id: string;
4120
+ }
4075
4121
  /**
4076
4122
  *
4077
4123
  * @export
@@ -7004,13 +7050,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7004
7050
  createFpsToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
7005
7051
  /**
7006
7052
  * 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.
7053
+ * @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.
7054
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
7010
7055
  * @param {*} [options] Override http request option.
7011
7056
  * @throws {RequiredError}
7012
7057
  */
7013
- createMandateForExistingSender: (senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7058
+ createMandateForExistingSender: (idempotencyKey: string, createMandateRequest: CreateMandateWithSenderAccountRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7014
7059
  /**
7015
7060
  * Create payment link
7016
7061
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -7122,13 +7167,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7122
7167
  createFpsToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFpsTokenResponse>>;
7123
7168
  /**
7124
7169
  * 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.
7170
+ * @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.
7171
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
7128
7172
  * @param {*} [options] Override http request option.
7129
7173
  * @throws {RequiredError}
7130
7174
  */
7131
- createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMandateResponse>>;
7175
+ createMandateForExistingSender(idempotencyKey: string, createMandateRequest: CreateMandateWithSenderAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMandateResponse>>;
7132
7176
  /**
7133
7177
  * Create payment link
7134
7178
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -7240,13 +7284,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7240
7284
  createFpsToken(options?: any): AxiosPromise<CreateFpsTokenResponse>;
7241
7285
  /**
7242
7286
  * 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.
7287
+ * @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.
7288
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
7246
7289
  * @param {*} [options] Override http request option.
7247
7290
  * @throws {RequiredError}
7248
7291
  */
7249
- createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: any): AxiosPromise<CreateMandateResponse>;
7292
+ createMandateForExistingSender(idempotencyKey: string, createMandateRequest: CreateMandateWithSenderAccountRequest, options?: any): AxiosPromise<CreateMandateResponse>;
7250
7293
  /**
7251
7294
  * Create payment link
7252
7295
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -7363,14 +7406,13 @@ export interface DefaultApiInterface {
7363
7406
  createFpsToken(options?: AxiosRequestConfig): AxiosPromise<CreateFpsTokenResponse>;
7364
7407
  /**
7365
7408
  * 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.
7409
+ * @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.
7410
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
7369
7411
  * @param {*} [options] Override http request option.
7370
7412
  * @throws {RequiredError}
7371
7413
  * @memberof DefaultApiInterface
7372
7414
  */
7373
- createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
7415
+ createMandateForExistingSender(idempotencyKey: string, createMandateRequest: CreateMandateWithSenderAccountRequest, options?: AxiosRequestConfig): AxiosPromise<CreateMandateResponse>;
7374
7416
  /**
7375
7417
  * Create payment link
7376
7418
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
@@ -7497,14 +7539,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
7497
7539
  createFpsToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFpsTokenResponse>>;
7498
7540
  /**
7499
7541
  * 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.
7542
+ * @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.
7543
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
7503
7544
  * @param {*} [options] Override http request option.
7504
7545
  * @throws {RequiredError}
7505
7546
  * @memberof DefaultApi
7506
7547
  */
7507
- createMandateForExistingSender(senderAccountId: string, createMandateRequest: CreateMandateRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
7548
+ createMandateForExistingSender(idempotencyKey: string, createMandateRequest: CreateMandateWithSenderAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMandateResponse>>;
7508
7549
  /**
7509
7550
  * Create payment link
7510
7551
  * @param {CreatePaymentLinkRequest} createPaymentLinkRequest Parameters required to create a payment link
package/dist/api.js CHANGED
@@ -2115,18 +2115,17 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2115
2115
  }),
2116
2116
  /**
2117
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.
2118
+ * @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.
2119
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
2121
2120
  * @param {*} [options] Override http request option.
2122
2121
  * @throws {RequiredError}
2123
2122
  */
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);
2123
+ createMandateForExistingSender: (idempotencyKey, createMandateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2124
+ // verify required parameter 'idempotencyKey' is not null or undefined
2125
+ common_1.assertParamExists('createMandateForExistingSender', 'idempotencyKey', idempotencyKey);
2127
2126
  // verify required parameter 'createMandateRequest' is not null or undefined
2128
2127
  common_1.assertParamExists('createMandateForExistingSender', 'createMandateRequest', createMandateRequest);
2129
- const localVarPath = `/mandates/sender_account/{senderAccountId}`.replace(`{${'senderAccountId'}}`, encodeURIComponent(String(senderAccountId)));
2128
+ const localVarPath = `/mandates/sender_account`;
2130
2129
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2131
2130
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2132
2131
  let baseOptions;
@@ -2550,15 +2549,14 @@ exports.DefaultApiFp = function (configuration) {
2550
2549
  },
2551
2550
  /**
2552
2551
  * 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.
2552
+ * @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.
2553
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
2556
2554
  * @param {*} [options] Override http request option.
2557
2555
  * @throws {RequiredError}
2558
2556
  */
2559
- createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
2557
+ createMandateForExistingSender(idempotencyKey, createMandateRequest, options) {
2560
2558
  return __awaiter(this, void 0, void 0, function* () {
2561
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options);
2559
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandateForExistingSender(idempotencyKey, createMandateRequest, options);
2562
2560
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2563
2561
  });
2564
2562
  },
@@ -2731,15 +2729,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2731
2729
  },
2732
2730
  /**
2733
2731
  * 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.
2732
+ * @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.
2733
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
2737
2734
  * @param {*} [options] Override http request option.
2738
2735
  * @throws {RequiredError}
2739
2736
  */
2740
- createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
2737
+ createMandateForExistingSender(idempotencyKey, createMandateRequest, options) {
2741
2738
  return localVarFp
2742
- .createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options)
2739
+ .createMandateForExistingSender(idempotencyKey, createMandateRequest, options)
2743
2740
  .then((request) => request(axios, basePath));
2744
2741
  },
2745
2742
  /**
@@ -2904,16 +2901,15 @@ class DefaultApi extends base_1.BaseAPI {
2904
2901
  }
2905
2902
  /**
2906
2903
  * 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.
2904
+ * @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.
2905
+ * @param {CreateMandateWithSenderAccountRequest} createMandateRequest request body for creating mandate
2910
2906
  * @param {*} [options] Override http request option.
2911
2907
  * @throws {RequiredError}
2912
2908
  * @memberof DefaultApi
2913
2909
  */
2914
- createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options) {
2910
+ createMandateForExistingSender(idempotencyKey, createMandateRequest, options) {
2915
2911
  return exports.DefaultApiFp(this.configuration)
2916
- .createMandateForExistingSender(senderAccountId, createMandateRequest, idempotencyKey, options)
2912
+ .createMandateForExistingSender(idempotencyKey, createMandateRequest, options)
2917
2913
  .then((request) => request(this.axios, this.basePath));
2918
2914
  }
2919
2915
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.169",
3
+ "version": "0.0.171",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [