@finverse/sdk-typescript 0.0.85 → 0.0.87

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 +110 -0
  2. package/dist/api.js +128 -0
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -3724,6 +3724,42 @@ export interface PayoutInstructionResponse {
3724
3724
  * @memberof PayoutInstructionResponse
3725
3725
  */
3726
3726
  status: PayoutInstructionResponseStatusEnum;
3727
+ /**
3728
+ * The mandate used to execute payments for this payout instruction. Currency for the mandate must be supported by the recipient account
3729
+ * @type {string}
3730
+ * @memberof PayoutInstructionResponse
3731
+ */
3732
+ mandate_id?: string;
3733
+ /**
3734
+ * The recipient account to receive the payment
3735
+ * @type {string}
3736
+ * @memberof PayoutInstructionResponse
3737
+ */
3738
+ recipient_account_id?: string;
3739
+ /**
3740
+ * Amount to be paid, in currency\'s smallest unit or “minor unit”, as defined in ISO 4217. For example, HKD 100.01 is represented as amount = 10001 (minor unit = cents). For currencies without minor units (e.g. VND, JPY), the amount is represented as is, without modification. For example, VND 15101 is represented as amount = 15101.
3741
+ * @type {number}
3742
+ * @memberof PayoutInstructionResponse
3743
+ */
3744
+ amount?: number;
3745
+ /**
3746
+ * YYYY-MM-DD, date (in UTC) to execute the payment, must be 1 day later than current date
3747
+ * @type {string}
3748
+ * @memberof PayoutInstructionResponse
3749
+ */
3750
+ date?: string;
3751
+ /**
3752
+ * A description for the payment (that will appear as the transaction description on bank statements)
3753
+ * @type {string}
3754
+ * @memberof PayoutInstructionResponse
3755
+ */
3756
+ description?: string;
3757
+ /**
3758
+ * The currency code as defined in ISO 4217.
3759
+ * @type {string}
3760
+ * @memberof PayoutInstructionResponse
3761
+ */
3762
+ currency?: string;
3727
3763
  /**
3728
3764
  *
3729
3765
  * @type {FvErrorModel}
@@ -4532,6 +4568,13 @@ export interface UserMessage {
4532
4568
  * @export
4533
4569
  */
4534
4570
  export declare const CustomerApiAxiosParamCreator: (configuration?: Configuration) => {
4571
+ /**
4572
+ * Cancel Payout Instruction by payout_instruction_id
4573
+ * @param {string} payoutInstructionId payout instruction id
4574
+ * @param {*} [options] Override http request option.
4575
+ * @throws {RequiredError}
4576
+ */
4577
+ cancelPayoutInstruction: (payoutInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4535
4578
  /**
4536
4579
  * CREATE Mandate
4537
4580
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -4632,6 +4675,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4632
4675
  * @throws {RequiredError}
4633
4676
  */
4634
4677
  getPaymentInstruction: (paymentInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4678
+ /**
4679
+ * Get Payout Instruction details by payout_instruction_id
4680
+ * @param {string} payoutInstructionId payout instruction id
4681
+ * @param {*} [options] Override http request option.
4682
+ * @throws {RequiredError}
4683
+ */
4684
+ getPayoutInstruction: (payoutInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4635
4685
  /**
4636
4686
  * Get a list of institutions
4637
4687
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -4669,6 +4719,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
4669
4719
  * @export
4670
4720
  */
4671
4721
  export declare const CustomerApiFp: (configuration?: Configuration) => {
4722
+ /**
4723
+ * Cancel Payout Instruction by payout_instruction_id
4724
+ * @param {string} payoutInstructionId payout instruction id
4725
+ * @param {*} [options] Override http request option.
4726
+ * @throws {RequiredError}
4727
+ */
4728
+ cancelPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4672
4729
  /**
4673
4730
  * CREATE Mandate
4674
4731
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -4769,6 +4826,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
4769
4826
  * @throws {RequiredError}
4770
4827
  */
4771
4828
  getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentInstructionsResponse>>;
4829
+ /**
4830
+ * Get Payout Instruction details by payout_instruction_id
4831
+ * @param {string} payoutInstructionId payout instruction id
4832
+ * @param {*} [options] Override http request option.
4833
+ * @throws {RequiredError}
4834
+ */
4835
+ getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
4772
4836
  /**
4773
4837
  * Get a list of institutions
4774
4838
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -4806,6 +4870,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
4806
4870
  * @export
4807
4871
  */
4808
4872
  export declare const CustomerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4873
+ /**
4874
+ * Cancel Payout Instruction by payout_instruction_id
4875
+ * @param {string} payoutInstructionId payout instruction id
4876
+ * @param {*} [options] Override http request option.
4877
+ * @throws {RequiredError}
4878
+ */
4879
+ cancelPayoutInstruction(payoutInstructionId: string, options?: any): AxiosPromise<void>;
4809
4880
  /**
4810
4881
  * CREATE Mandate
4811
4882
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -4906,6 +4977,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
4906
4977
  * @throws {RequiredError}
4907
4978
  */
4908
4979
  getPaymentInstruction(paymentInstructionId: string, options?: any): AxiosPromise<GetPaymentInstructionsResponse>;
4980
+ /**
4981
+ * Get Payout Instruction details by payout_instruction_id
4982
+ * @param {string} payoutInstructionId payout instruction id
4983
+ * @param {*} [options] Override http request option.
4984
+ * @throws {RequiredError}
4985
+ */
4986
+ getPayoutInstruction(payoutInstructionId: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
4909
4987
  /**
4910
4988
  * Get a list of institutions
4911
4989
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -4944,6 +5022,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
4944
5022
  * @interface CustomerApi
4945
5023
  */
4946
5024
  export interface CustomerApiInterface {
5025
+ /**
5026
+ * Cancel Payout Instruction by payout_instruction_id
5027
+ * @param {string} payoutInstructionId payout instruction id
5028
+ * @param {*} [options] Override http request option.
5029
+ * @throws {RequiredError}
5030
+ * @memberof CustomerApiInterface
5031
+ */
5032
+ cancelPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
4947
5033
  /**
4948
5034
  * CREATE Mandate
4949
5035
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -5058,6 +5144,14 @@ export interface CustomerApiInterface {
5058
5144
  * @memberof CustomerApiInterface
5059
5145
  */
5060
5146
  getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<GetPaymentInstructionsResponse>;
5147
+ /**
5148
+ * Get Payout Instruction details by payout_instruction_id
5149
+ * @param {string} payoutInstructionId payout instruction id
5150
+ * @param {*} [options] Override http request option.
5151
+ * @throws {RequiredError}
5152
+ * @memberof CustomerApiInterface
5153
+ */
5154
+ getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
5061
5155
  /**
5062
5156
  * Get a list of institutions
5063
5157
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -5101,6 +5195,14 @@ export interface CustomerApiInterface {
5101
5195
  * @extends {BaseAPI}
5102
5196
  */
5103
5197
  export declare class CustomerApi extends BaseAPI implements CustomerApiInterface {
5198
+ /**
5199
+ * Cancel Payout Instruction by payout_instruction_id
5200
+ * @param {string} payoutInstructionId payout instruction id
5201
+ * @param {*} [options] Override http request option.
5202
+ * @throws {RequiredError}
5203
+ * @memberof CustomerApi
5204
+ */
5205
+ cancelPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
5104
5206
  /**
5105
5207
  * CREATE Mandate
5106
5208
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -5215,6 +5317,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
5215
5317
  * @memberof CustomerApi
5216
5318
  */
5217
5319
  getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentInstructionsResponse>>;
5320
+ /**
5321
+ * Get Payout Instruction details by payout_instruction_id
5322
+ * @param {string} payoutInstructionId payout instruction id
5323
+ * @param {*} [options] Override http request option.
5324
+ * @throws {RequiredError}
5325
+ * @memberof CustomerApi
5326
+ */
5327
+ getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
5218
5328
  /**
5219
5329
  * Get a list of institutions
5220
5330
  * @param {string} [country] (Deprecated) The country the institution belongs to
package/dist/api.js CHANGED
@@ -243,6 +243,36 @@ exports.TransactionLimitsPeriodEnum = {
243
243
  */
244
244
  exports.CustomerApiAxiosParamCreator = function (configuration) {
245
245
  return {
246
+ /**
247
+ * Cancel Payout Instruction by payout_instruction_id
248
+ * @param {string} payoutInstructionId payout instruction id
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ cancelPayoutInstruction: (payoutInstructionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
253
+ // verify required parameter 'payoutInstructionId' is not null or undefined
254
+ common_1.assertParamExists('cancelPayoutInstruction', 'payoutInstructionId', payoutInstructionId);
255
+ const localVarPath = `/payout_instruction/{payoutInstructionId}/cancel`.replace(`{${'payoutInstructionId'}}`, encodeURIComponent(String(payoutInstructionId)));
256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
257
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
258
+ let baseOptions;
259
+ if (configuration) {
260
+ baseOptions = configuration.baseOptions;
261
+ }
262
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
263
+ const localVarHeaderParameter = {};
264
+ const localVarQueryParameter = {};
265
+ // authentication Oauth2 required
266
+ // oauth required
267
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
268
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
271
+ return {
272
+ url: common_1.toPathString(localVarUrlObj),
273
+ options: localVarRequestOptions,
274
+ };
275
+ }),
246
276
  /**
247
277
  * CREATE Mandate
248
278
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -686,6 +716,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
686
716
  options: localVarRequestOptions,
687
717
  };
688
718
  }),
719
+ /**
720
+ * Get Payout Instruction details by payout_instruction_id
721
+ * @param {string} payoutInstructionId payout instruction id
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ getPayoutInstruction: (payoutInstructionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
726
+ // verify required parameter 'payoutInstructionId' is not null or undefined
727
+ common_1.assertParamExists('getPayoutInstruction', 'payoutInstructionId', payoutInstructionId);
728
+ const localVarPath = `/payout_instruction/{payoutInstructionId}`.replace(`{${'payoutInstructionId'}}`, encodeURIComponent(String(payoutInstructionId)));
729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
730
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
731
+ let baseOptions;
732
+ if (configuration) {
733
+ baseOptions = configuration.baseOptions;
734
+ }
735
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
736
+ const localVarHeaderParameter = {};
737
+ const localVarQueryParameter = {};
738
+ // authentication Oauth2 required
739
+ // oauth required
740
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
741
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
742
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
743
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
744
+ return {
745
+ url: common_1.toPathString(localVarUrlObj),
746
+ options: localVarRequestOptions,
747
+ };
748
+ }),
689
749
  /**
690
750
  * Get a list of institutions
691
751
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -834,6 +894,18 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
834
894
  exports.CustomerApiFp = function (configuration) {
835
895
  const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
836
896
  return {
897
+ /**
898
+ * Cancel Payout Instruction by payout_instruction_id
899
+ * @param {string} payoutInstructionId payout instruction id
900
+ * @param {*} [options] Override http request option.
901
+ * @throws {RequiredError}
902
+ */
903
+ cancelPayoutInstruction(payoutInstructionId, options) {
904
+ return __awaiter(this, void 0, void 0, function* () {
905
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPayoutInstruction(payoutInstructionId, options);
906
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
907
+ });
908
+ },
837
909
  /**
838
910
  * CREATE Mandate
839
911
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -1004,6 +1076,18 @@ exports.CustomerApiFp = function (configuration) {
1004
1076
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1005
1077
  });
1006
1078
  },
1079
+ /**
1080
+ * Get Payout Instruction details by payout_instruction_id
1081
+ * @param {string} payoutInstructionId payout instruction id
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ getPayoutInstruction(payoutInstructionId, options) {
1086
+ return __awaiter(this, void 0, void 0, function* () {
1087
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayoutInstruction(payoutInstructionId, options);
1088
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1089
+ });
1090
+ },
1007
1091
  /**
1008
1092
  * Get a list of institutions
1009
1093
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1064,6 +1148,17 @@ exports.CustomerApiFp = function (configuration) {
1064
1148
  exports.CustomerApiFactory = function (configuration, basePath, axios) {
1065
1149
  const localVarFp = exports.CustomerApiFp(configuration);
1066
1150
  return {
1151
+ /**
1152
+ * Cancel Payout Instruction by payout_instruction_id
1153
+ * @param {string} payoutInstructionId payout instruction id
1154
+ * @param {*} [options] Override http request option.
1155
+ * @throws {RequiredError}
1156
+ */
1157
+ cancelPayoutInstruction(payoutInstructionId, options) {
1158
+ return localVarFp
1159
+ .cancelPayoutInstruction(payoutInstructionId, options)
1160
+ .then((request) => request(axios, basePath));
1161
+ },
1067
1162
  /**
1068
1163
  * CREATE Mandate
1069
1164
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -1204,6 +1299,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1204
1299
  .getPaymentInstruction(paymentInstructionId, options)
1205
1300
  .then((request) => request(axios, basePath));
1206
1301
  },
1302
+ /**
1303
+ * Get Payout Instruction details by payout_instruction_id
1304
+ * @param {string} payoutInstructionId payout instruction id
1305
+ * @param {*} [options] Override http request option.
1306
+ * @throws {RequiredError}
1307
+ */
1308
+ getPayoutInstruction(payoutInstructionId, options) {
1309
+ return localVarFp.getPayoutInstruction(payoutInstructionId, options).then((request) => request(axios, basePath));
1310
+ },
1207
1311
  /**
1208
1312
  * Get a list of institutions
1209
1313
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1256,6 +1360,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1256
1360
  * @extends {BaseAPI}
1257
1361
  */
1258
1362
  class CustomerApi extends base_1.BaseAPI {
1363
+ /**
1364
+ * Cancel Payout Instruction by payout_instruction_id
1365
+ * @param {string} payoutInstructionId payout instruction id
1366
+ * @param {*} [options] Override http request option.
1367
+ * @throws {RequiredError}
1368
+ * @memberof CustomerApi
1369
+ */
1370
+ cancelPayoutInstruction(payoutInstructionId, options) {
1371
+ return exports.CustomerApiFp(this.configuration)
1372
+ .cancelPayoutInstruction(payoutInstructionId, options)
1373
+ .then((request) => request(this.axios, this.basePath));
1374
+ }
1259
1375
  /**
1260
1376
  * CREATE Mandate
1261
1377
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -1426,6 +1542,18 @@ class CustomerApi extends base_1.BaseAPI {
1426
1542
  .getPaymentInstruction(paymentInstructionId, options)
1427
1543
  .then((request) => request(this.axios, this.basePath));
1428
1544
  }
1545
+ /**
1546
+ * Get Payout Instruction details by payout_instruction_id
1547
+ * @param {string} payoutInstructionId payout instruction id
1548
+ * @param {*} [options] Override http request option.
1549
+ * @throws {RequiredError}
1550
+ * @memberof CustomerApi
1551
+ */
1552
+ getPayoutInstruction(payoutInstructionId, options) {
1553
+ return exports.CustomerApiFp(this.configuration)
1554
+ .getPayoutInstruction(payoutInstructionId, options)
1555
+ .then((request) => request(this.axios, this.basePath));
1556
+ }
1429
1557
  /**
1430
1558
  * Get a list of institutions
1431
1559
  * @param {string} [country] (Deprecated) The country the institution belongs to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [