@finverse/sdk-typescript 0.0.84 → 0.0.85
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 +118 -0
- package/dist/api.js +82 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -815,6 +815,49 @@ export declare const CreatePaymentRequestTypeEnum: {
|
|
|
815
815
|
readonly Single: "SINGLE";
|
|
816
816
|
};
|
|
817
817
|
export declare type CreatePaymentRequestTypeEnum = typeof CreatePaymentRequestTypeEnum[keyof typeof CreatePaymentRequestTypeEnum];
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @export
|
|
821
|
+
* @interface CreatePayoutInstructionRequest
|
|
822
|
+
*/
|
|
823
|
+
export interface CreatePayoutInstructionRequest {
|
|
824
|
+
/**
|
|
825
|
+
* The mandate used to execute payments for this payout instruction. Currency for the mandate must be supported by the recipient account
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof CreatePayoutInstructionRequest
|
|
828
|
+
*/
|
|
829
|
+
mandate_id: string;
|
|
830
|
+
/**
|
|
831
|
+
* The recipient account to receive the payment
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof CreatePayoutInstructionRequest
|
|
834
|
+
*/
|
|
835
|
+
recipient_account_id: string;
|
|
836
|
+
/**
|
|
837
|
+
* 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.
|
|
838
|
+
* @type {number}
|
|
839
|
+
* @memberof CreatePayoutInstructionRequest
|
|
840
|
+
*/
|
|
841
|
+
amount: number;
|
|
842
|
+
/**
|
|
843
|
+
* YYYY-MM-DD, date (in UTC) to execute the payment, must be 1 day later than current date
|
|
844
|
+
* @type {string}
|
|
845
|
+
* @memberof CreatePayoutInstructionRequest
|
|
846
|
+
*/
|
|
847
|
+
date: string;
|
|
848
|
+
/**
|
|
849
|
+
* A description for the payment (that will appear as the transaction description on bank statements)
|
|
850
|
+
* @type {string}
|
|
851
|
+
* @memberof CreatePayoutInstructionRequest
|
|
852
|
+
*/
|
|
853
|
+
description?: string;
|
|
854
|
+
/**
|
|
855
|
+
* The currency code as defined in ISO 4217.
|
|
856
|
+
* @type {string}
|
|
857
|
+
* @memberof CreatePayoutInstructionRequest
|
|
858
|
+
*/
|
|
859
|
+
currency: string;
|
|
860
|
+
}
|
|
818
861
|
/**
|
|
819
862
|
*
|
|
820
863
|
* @export
|
|
@@ -3663,6 +3706,39 @@ export declare const PaymentScheduleFrequencyEnum: {
|
|
|
3663
3706
|
readonly Yearly: "YEARLY";
|
|
3664
3707
|
};
|
|
3665
3708
|
export declare type PaymentScheduleFrequencyEnum = typeof PaymentScheduleFrequencyEnum[keyof typeof PaymentScheduleFrequencyEnum];
|
|
3709
|
+
/**
|
|
3710
|
+
*
|
|
3711
|
+
* @export
|
|
3712
|
+
* @interface PayoutInstructionResponse
|
|
3713
|
+
*/
|
|
3714
|
+
export interface PayoutInstructionResponse {
|
|
3715
|
+
/**
|
|
3716
|
+
* Finverse Payout Instruction ID
|
|
3717
|
+
* @type {string}
|
|
3718
|
+
* @memberof PayoutInstructionResponse
|
|
3719
|
+
*/
|
|
3720
|
+
payout_instruction_id: string;
|
|
3721
|
+
/**
|
|
3722
|
+
* Possible values - CREATED, PROCESSING, EXECUTED, CANCELLED, FAILED.
|
|
3723
|
+
* @type {string}
|
|
3724
|
+
* @memberof PayoutInstructionResponse
|
|
3725
|
+
*/
|
|
3726
|
+
status: PayoutInstructionResponseStatusEnum;
|
|
3727
|
+
/**
|
|
3728
|
+
*
|
|
3729
|
+
* @type {FvErrorModel}
|
|
3730
|
+
* @memberof PayoutInstructionResponse
|
|
3731
|
+
*/
|
|
3732
|
+
error?: FvErrorModel;
|
|
3733
|
+
}
|
|
3734
|
+
export declare const PayoutInstructionResponseStatusEnum: {
|
|
3735
|
+
readonly Created: "CREATED";
|
|
3736
|
+
readonly Processing: "PROCESSING";
|
|
3737
|
+
readonly Executed: "EXECUTED";
|
|
3738
|
+
readonly Cancelled: "CANCELLED";
|
|
3739
|
+
readonly Failed: "FAILED";
|
|
3740
|
+
};
|
|
3741
|
+
export declare type PayoutInstructionResponseStatusEnum = typeof PayoutInstructionResponseStatusEnum[keyof typeof PayoutInstructionResponseStatusEnum];
|
|
3666
3742
|
/**
|
|
3667
3743
|
*
|
|
3668
3744
|
* @export
|
|
@@ -4479,6 +4555,14 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
4479
4555
|
* @throws {RequiredError}
|
|
4480
4556
|
*/
|
|
4481
4557
|
createPaymentInstruction: (paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4558
|
+
/**
|
|
4559
|
+
* Create new Payout instruction
|
|
4560
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
4561
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
4562
|
+
* @param {*} [options] Override http request option.
|
|
4563
|
+
* @throws {RequiredError}
|
|
4564
|
+
*/
|
|
4565
|
+
createPayoutInstruction: (createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4482
4566
|
/**
|
|
4483
4567
|
* Create Recipients
|
|
4484
4568
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
@@ -4608,6 +4692,14 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
4608
4692
|
* @throws {RequiredError}
|
|
4609
4693
|
*/
|
|
4610
4694
|
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentInstructionResponse>>;
|
|
4695
|
+
/**
|
|
4696
|
+
* Create new Payout instruction
|
|
4697
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
4698
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
4699
|
+
* @param {*} [options] Override http request option.
|
|
4700
|
+
* @throws {RequiredError}
|
|
4701
|
+
*/
|
|
4702
|
+
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
|
|
4611
4703
|
/**
|
|
4612
4704
|
* Create Recipients
|
|
4613
4705
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
@@ -4737,6 +4829,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
4737
4829
|
* @throws {RequiredError}
|
|
4738
4830
|
*/
|
|
4739
4831
|
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: any): AxiosPromise<CreatePaymentInstructionResponse>;
|
|
4832
|
+
/**
|
|
4833
|
+
* Create new Payout instruction
|
|
4834
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
4835
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
4836
|
+
* @param {*} [options] Override http request option.
|
|
4837
|
+
* @throws {RequiredError}
|
|
4838
|
+
*/
|
|
4839
|
+
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
|
|
4740
4840
|
/**
|
|
4741
4841
|
* Create Recipients
|
|
4742
4842
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
@@ -4870,6 +4970,15 @@ export interface CustomerApiInterface {
|
|
|
4870
4970
|
* @memberof CustomerApiInterface
|
|
4871
4971
|
*/
|
|
4872
4972
|
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentInstructionResponse>;
|
|
4973
|
+
/**
|
|
4974
|
+
* Create new Payout instruction
|
|
4975
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
4976
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
4977
|
+
* @param {*} [options] Override http request option.
|
|
4978
|
+
* @throws {RequiredError}
|
|
4979
|
+
* @memberof CustomerApiInterface
|
|
4980
|
+
*/
|
|
4981
|
+
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
|
|
4873
4982
|
/**
|
|
4874
4983
|
* Create Recipients
|
|
4875
4984
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
@@ -5018,6 +5127,15 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
5018
5127
|
* @memberof CustomerApi
|
|
5019
5128
|
*/
|
|
5020
5129
|
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentInstructionResponse>>;
|
|
5130
|
+
/**
|
|
5131
|
+
* Create new Payout instruction
|
|
5132
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
5133
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
5134
|
+
* @param {*} [options] Override http request option.
|
|
5135
|
+
* @throws {RequiredError}
|
|
5136
|
+
* @memberof CustomerApi
|
|
5137
|
+
*/
|
|
5138
|
+
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
|
|
5021
5139
|
/**
|
|
5022
5140
|
* Create Recipients
|
|
5023
5141
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.RecipientAccountAccountTypeEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderSenderTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreateMandateSenderSenderTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
25
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.RecipientAccountAccountTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderSenderTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreateMandateSenderSenderTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -204,6 +204,13 @@ exports.PaymentScheduleFrequencyEnum = {
|
|
|
204
204
|
Quarterly: 'QUARTERLY',
|
|
205
205
|
Yearly: 'YEARLY',
|
|
206
206
|
};
|
|
207
|
+
exports.PayoutInstructionResponseStatusEnum = {
|
|
208
|
+
Created: 'CREATED',
|
|
209
|
+
Processing: 'PROCESSING',
|
|
210
|
+
Executed: 'EXECUTED',
|
|
211
|
+
Cancelled: 'CANCELLED',
|
|
212
|
+
Failed: 'FAILED',
|
|
213
|
+
};
|
|
207
214
|
exports.RecipientAccountAccountTypeEnum = {
|
|
208
215
|
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
209
216
|
};
|
|
@@ -340,6 +347,42 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
340
347
|
options: localVarRequestOptions,
|
|
341
348
|
};
|
|
342
349
|
}),
|
|
350
|
+
/**
|
|
351
|
+
* Create new Payout instruction
|
|
352
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
353
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
createPayoutInstruction: (createPayoutInstructionRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
// verify required parameter 'createPayoutInstructionRequest' is not null or undefined
|
|
359
|
+
common_1.assertParamExists('createPayoutInstruction', 'createPayoutInstructionRequest', createPayoutInstructionRequest);
|
|
360
|
+
const localVarPath = `/payout_instruction`;
|
|
361
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
362
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
363
|
+
let baseOptions;
|
|
364
|
+
if (configuration) {
|
|
365
|
+
baseOptions = configuration.baseOptions;
|
|
366
|
+
}
|
|
367
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
368
|
+
const localVarHeaderParameter = {};
|
|
369
|
+
const localVarQueryParameter = {};
|
|
370
|
+
// authentication Oauth2 required
|
|
371
|
+
// oauth required
|
|
372
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
373
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null) {
|
|
374
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
375
|
+
}
|
|
376
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
377
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
380
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPayoutInstructionRequest, localVarRequestOptions, configuration);
|
|
381
|
+
return {
|
|
382
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
383
|
+
options: localVarRequestOptions,
|
|
384
|
+
};
|
|
385
|
+
}),
|
|
343
386
|
/**
|
|
344
387
|
* Create Recipients
|
|
345
388
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
@@ -829,6 +872,19 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
829
872
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
830
873
|
});
|
|
831
874
|
},
|
|
875
|
+
/**
|
|
876
|
+
* Create new Payout instruction
|
|
877
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
878
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
879
|
+
* @param {*} [options] Override http request option.
|
|
880
|
+
* @throws {RequiredError}
|
|
881
|
+
*/
|
|
882
|
+
createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options) {
|
|
883
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options);
|
|
885
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
886
|
+
});
|
|
887
|
+
},
|
|
832
888
|
/**
|
|
833
889
|
* Create Recipients
|
|
834
890
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
@@ -1043,6 +1099,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1043
1099
|
.createPaymentInstruction(paymentInstruction, options)
|
|
1044
1100
|
.then((request) => request(axios, basePath));
|
|
1045
1101
|
},
|
|
1102
|
+
/**
|
|
1103
|
+
* Create new Payout instruction
|
|
1104
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
1105
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
1106
|
+
* @param {*} [options] Override http request option.
|
|
1107
|
+
* @throws {RequiredError}
|
|
1108
|
+
*/
|
|
1109
|
+
createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options) {
|
|
1110
|
+
return localVarFp
|
|
1111
|
+
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1112
|
+
.then((request) => request(axios, basePath));
|
|
1113
|
+
},
|
|
1046
1114
|
/**
|
|
1047
1115
|
* Create Recipients
|
|
1048
1116
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|
|
@@ -1226,6 +1294,19 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1226
1294
|
.createPaymentInstruction(paymentInstruction, options)
|
|
1227
1295
|
.then((request) => request(this.axios, this.basePath));
|
|
1228
1296
|
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Create new Payout instruction
|
|
1299
|
+
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
1300
|
+
* @param {string} [idempotencyKey] A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
1301
|
+
* @param {*} [options] Override http request option.
|
|
1302
|
+
* @throws {RequiredError}
|
|
1303
|
+
* @memberof CustomerApi
|
|
1304
|
+
*/
|
|
1305
|
+
createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options) {
|
|
1306
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1307
|
+
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1308
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1309
|
+
}
|
|
1229
1310
|
/**
|
|
1230
1311
|
* Create Recipients
|
|
1231
1312
|
* @param {CreateRecipientRequest} createRecipientRequest request body for creating recipient
|