@finverse/sdk-typescript 0.0.267 → 0.0.269
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 +99 -0
- package/dist/api.js +124 -1
- package/package.json +4 -4
package/dist/api.d.ts
CHANGED
|
@@ -5183,6 +5183,41 @@ export interface PaymentDetailsReferences {
|
|
|
5183
5183
|
*/
|
|
5184
5184
|
finverse_transaction_reference?: string;
|
|
5185
5185
|
}
|
|
5186
|
+
/**
|
|
5187
|
+
*
|
|
5188
|
+
* @export
|
|
5189
|
+
* @interface PaymentFvLinkResponse
|
|
5190
|
+
*/
|
|
5191
|
+
export interface PaymentFvLinkResponse {
|
|
5192
|
+
/**
|
|
5193
|
+
*
|
|
5194
|
+
* @type {string}
|
|
5195
|
+
* @memberof PaymentFvLinkResponse
|
|
5196
|
+
*/
|
|
5197
|
+
payment_id?: string;
|
|
5198
|
+
/**
|
|
5199
|
+
*
|
|
5200
|
+
* @type {string}
|
|
5201
|
+
* @memberof PaymentFvLinkResponse
|
|
5202
|
+
*/
|
|
5203
|
+
status?: PaymentFvLinkResponseStatusEnum;
|
|
5204
|
+
/**
|
|
5205
|
+
*
|
|
5206
|
+
* @type {FvEmbeddedErrorModel}
|
|
5207
|
+
* @memberof PaymentFvLinkResponse
|
|
5208
|
+
*/
|
|
5209
|
+
error?: FvEmbeddedErrorModel;
|
|
5210
|
+
}
|
|
5211
|
+
export declare const PaymentFvLinkResponseStatusEnum: {
|
|
5212
|
+
readonly AuthorizationRequired: "AUTHORIZATION_REQUIRED";
|
|
5213
|
+
readonly Authorizing: "AUTHORIZING";
|
|
5214
|
+
readonly Processing: "PROCESSING";
|
|
5215
|
+
readonly Submitted: "SUBMITTED";
|
|
5216
|
+
readonly Executed: "EXECUTED";
|
|
5217
|
+
readonly Failed: "FAILED";
|
|
5218
|
+
readonly Revoked: "REVOKED";
|
|
5219
|
+
};
|
|
5220
|
+
export declare type PaymentFvLinkResponseStatusEnum = (typeof PaymentFvLinkResponseStatusEnum)[keyof typeof PaymentFvLinkResponseStatusEnum];
|
|
5186
5221
|
/**
|
|
5187
5222
|
*
|
|
5188
5223
|
* @export
|
|
@@ -8529,6 +8564,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
8529
8564
|
* @throws {RequiredError}
|
|
8530
8565
|
*/
|
|
8531
8566
|
cancelPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8567
|
+
/**
|
|
8568
|
+
* cancel payment on payment link
|
|
8569
|
+
* @param {*} [options] Override http request option.
|
|
8570
|
+
* @throws {RequiredError}
|
|
8571
|
+
*/
|
|
8572
|
+
cancelPaymentPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8532
8573
|
/**
|
|
8533
8574
|
* Cancel Payout by payout_id
|
|
8534
8575
|
* @param {string} payoutId payout id
|
|
@@ -8639,6 +8680,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
8639
8680
|
* @throws {RequiredError}
|
|
8640
8681
|
*/
|
|
8641
8682
|
getPaymentMethodPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8683
|
+
/**
|
|
8684
|
+
* Get payment (if exists) on the payment link for front-end
|
|
8685
|
+
* @param {*} [options] Override http request option.
|
|
8686
|
+
* @throws {RequiredError}
|
|
8687
|
+
*/
|
|
8688
|
+
getPaymentPaymentLink: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8642
8689
|
/**
|
|
8643
8690
|
* Get payout by payout_id
|
|
8644
8691
|
* @param {string} payoutId payout id
|
|
@@ -8738,6 +8785,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
8738
8785
|
* @throws {RequiredError}
|
|
8739
8786
|
*/
|
|
8740
8787
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
|
|
8788
|
+
/**
|
|
8789
|
+
* cancel payment on payment link
|
|
8790
|
+
* @param {*} [options] Override http request option.
|
|
8791
|
+
* @throws {RequiredError}
|
|
8792
|
+
*/
|
|
8793
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8741
8794
|
/**
|
|
8742
8795
|
* Cancel Payout by payout_id
|
|
8743
8796
|
* @param {string} payoutId payout id
|
|
@@ -8848,6 +8901,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
8848
8901
|
* @throws {RequiredError}
|
|
8849
8902
|
*/
|
|
8850
8903
|
getPaymentMethodPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodFvLinkResponse>>;
|
|
8904
|
+
/**
|
|
8905
|
+
* Get payment (if exists) on the payment link for front-end
|
|
8906
|
+
* @param {*} [options] Override http request option.
|
|
8907
|
+
* @throws {RequiredError}
|
|
8908
|
+
*/
|
|
8909
|
+
getPaymentPaymentLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentFvLinkResponse>>;
|
|
8851
8910
|
/**
|
|
8852
8911
|
* Get payout by payout_id
|
|
8853
8912
|
* @param {string} payoutId payout id
|
|
@@ -8947,6 +9006,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
8947
9006
|
* @throws {RequiredError}
|
|
8948
9007
|
*/
|
|
8949
9008
|
cancelPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
|
|
9009
|
+
/**
|
|
9010
|
+
* cancel payment on payment link
|
|
9011
|
+
* @param {*} [options] Override http request option.
|
|
9012
|
+
* @throws {RequiredError}
|
|
9013
|
+
*/
|
|
9014
|
+
cancelPaymentPaymentLink(options?: any): AxiosPromise<void>;
|
|
8950
9015
|
/**
|
|
8951
9016
|
* Cancel Payout by payout_id
|
|
8952
9017
|
* @param {string} payoutId payout id
|
|
@@ -9057,6 +9122,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
9057
9122
|
* @throws {RequiredError}
|
|
9058
9123
|
*/
|
|
9059
9124
|
getPaymentMethodPaymentLink(options?: any): AxiosPromise<PaymentMethodFvLinkResponse>;
|
|
9125
|
+
/**
|
|
9126
|
+
* Get payment (if exists) on the payment link for front-end
|
|
9127
|
+
* @param {*} [options] Override http request option.
|
|
9128
|
+
* @throws {RequiredError}
|
|
9129
|
+
*/
|
|
9130
|
+
getPaymentPaymentLink(options?: any): AxiosPromise<PaymentFvLinkResponse>;
|
|
9060
9131
|
/**
|
|
9061
9132
|
* Get payout by payout_id
|
|
9062
9133
|
* @param {string} payoutId payout id
|
|
@@ -9158,6 +9229,13 @@ export interface DefaultApiInterface {
|
|
|
9158
9229
|
* @memberof DefaultApiInterface
|
|
9159
9230
|
*/
|
|
9160
9231
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
|
|
9232
|
+
/**
|
|
9233
|
+
* cancel payment on payment link
|
|
9234
|
+
* @param {*} [options] Override http request option.
|
|
9235
|
+
* @throws {RequiredError}
|
|
9236
|
+
* @memberof DefaultApiInterface
|
|
9237
|
+
*/
|
|
9238
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
9161
9239
|
/**
|
|
9162
9240
|
* Cancel Payout by payout_id
|
|
9163
9241
|
* @param {string} payoutId payout id
|
|
@@ -9284,6 +9362,13 @@ export interface DefaultApiInterface {
|
|
|
9284
9362
|
* @memberof DefaultApiInterface
|
|
9285
9363
|
*/
|
|
9286
9364
|
getPaymentMethodPaymentLink(options?: AxiosRequestConfig): AxiosPromise<PaymentMethodFvLinkResponse>;
|
|
9365
|
+
/**
|
|
9366
|
+
* Get payment (if exists) on the payment link for front-end
|
|
9367
|
+
* @param {*} [options] Override http request option.
|
|
9368
|
+
* @throws {RequiredError}
|
|
9369
|
+
* @memberof DefaultApiInterface
|
|
9370
|
+
*/
|
|
9371
|
+
getPaymentPaymentLink(options?: AxiosRequestConfig): AxiosPromise<PaymentFvLinkResponse>;
|
|
9287
9372
|
/**
|
|
9288
9373
|
* Get payout by payout_id
|
|
9289
9374
|
* @param {string} payoutId payout id
|
|
@@ -9395,6 +9480,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
9395
9480
|
* @memberof DefaultApi
|
|
9396
9481
|
*/
|
|
9397
9482
|
cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
|
|
9483
|
+
/**
|
|
9484
|
+
* cancel payment on payment link
|
|
9485
|
+
* @param {*} [options] Override http request option.
|
|
9486
|
+
* @throws {RequiredError}
|
|
9487
|
+
* @memberof DefaultApi
|
|
9488
|
+
*/
|
|
9489
|
+
cancelPaymentPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
9398
9490
|
/**
|
|
9399
9491
|
* Cancel Payout by payout_id
|
|
9400
9492
|
* @param {string} payoutId payout id
|
|
@@ -9521,6 +9613,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
9521
9613
|
* @memberof DefaultApi
|
|
9522
9614
|
*/
|
|
9523
9615
|
getPaymentMethodPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentMethodFvLinkResponse>>;
|
|
9616
|
+
/**
|
|
9617
|
+
* Get payment (if exists) on the payment link for front-end
|
|
9618
|
+
* @param {*} [options] Override http request option.
|
|
9619
|
+
* @throws {RequiredError}
|
|
9620
|
+
* @memberof DefaultApi
|
|
9621
|
+
*/
|
|
9622
|
+
getPaymentPaymentLink(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentFvLinkResponse>>;
|
|
9524
9623
|
/**
|
|
9525
9624
|
* Get payout by payout_id
|
|
9526
9625
|
* @param {string} payoutId payout id
|
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.UpdateTestPaymentStatusRequestStatusEnum = exports.UpdatePaymentUserRequestUserTypeEnum = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = exports.RefreshLoginIdentityLinkCustomizationsLanguageEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentLinkCustomizationsLanguageEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.ManualPaymentConfirmationResponseStatusEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.MandateAuthLinkCustomizationsLanguageEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestLanguageEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FvEmbeddedErrorModelTypeEnum = exports.FeePaidByEnum = exports.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateMandateRequestWithDdaReferenceStatusEnum = exports.CreateCardRequestStatusEnum = exports.CardFvLinkResponseStatusEnum = 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.UpdateTestPaymentStatusRequestStatusEnum = exports.UpdatePaymentUserRequestUserTypeEnum = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = exports.RefreshLoginIdentityLinkCustomizationsLanguageEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentLinkCustomizationsLanguageEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentFvLinkResponseStatusEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.ManualPaymentConfirmationResponseStatusEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.MandateAuthLinkCustomizationsLanguageEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestLanguageEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FvEmbeddedErrorModelTypeEnum = exports.FeePaidByEnum = exports.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateMandateRequestWithDdaReferenceStatusEnum = exports.CreateCardRequestStatusEnum = exports.CardFvLinkResponseStatusEnum = 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
|
|
@@ -264,6 +264,15 @@ exports.PaymentAccountDetailsAccountTypeEnum = {
|
|
|
264
264
|
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
265
265
|
SettlementAccount: 'SETTLEMENT_ACCOUNT',
|
|
266
266
|
};
|
|
267
|
+
exports.PaymentFvLinkResponseStatusEnum = {
|
|
268
|
+
AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
|
|
269
|
+
Authorizing: 'AUTHORIZING',
|
|
270
|
+
Processing: 'PROCESSING',
|
|
271
|
+
Submitted: 'SUBMITTED',
|
|
272
|
+
Executed: 'EXECUTED',
|
|
273
|
+
Failed: 'FAILED',
|
|
274
|
+
Revoked: 'REVOKED',
|
|
275
|
+
};
|
|
267
276
|
exports.PaymentInfoPaymentsSupportedEnum = {
|
|
268
277
|
Mandate: 'MANDATE',
|
|
269
278
|
DebitAuthorization: 'DEBIT_AUTHORIZATION',
|
|
@@ -2059,6 +2068,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2059
2068
|
options: localVarRequestOptions,
|
|
2060
2069
|
};
|
|
2061
2070
|
}),
|
|
2071
|
+
/**
|
|
2072
|
+
* cancel payment on payment link
|
|
2073
|
+
* @param {*} [options] Override http request option.
|
|
2074
|
+
* @throws {RequiredError}
|
|
2075
|
+
*/
|
|
2076
|
+
cancelPaymentPaymentLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2077
|
+
const localVarPath = `/payment_link/fvlink/payment/cancel`;
|
|
2078
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2079
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2080
|
+
let baseOptions;
|
|
2081
|
+
if (configuration) {
|
|
2082
|
+
baseOptions = configuration.baseOptions;
|
|
2083
|
+
}
|
|
2084
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2085
|
+
const localVarHeaderParameter = {};
|
|
2086
|
+
const localVarQueryParameter = {};
|
|
2087
|
+
// authentication Oauth2 required
|
|
2088
|
+
// oauth required
|
|
2089
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2090
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2092
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2093
|
+
return {
|
|
2094
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2095
|
+
options: localVarRequestOptions,
|
|
2096
|
+
};
|
|
2097
|
+
}),
|
|
2062
2098
|
/**
|
|
2063
2099
|
* Cancel Payout by payout_id
|
|
2064
2100
|
* @param {string} payoutId payout id
|
|
@@ -2556,6 +2592,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2556
2592
|
options: localVarRequestOptions,
|
|
2557
2593
|
};
|
|
2558
2594
|
}),
|
|
2595
|
+
/**
|
|
2596
|
+
* Get payment (if exists) on the payment link for front-end
|
|
2597
|
+
* @param {*} [options] Override http request option.
|
|
2598
|
+
* @throws {RequiredError}
|
|
2599
|
+
*/
|
|
2600
|
+
getPaymentPaymentLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2601
|
+
const localVarPath = `/payment_link/fvlink/payment`;
|
|
2602
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2603
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2604
|
+
let baseOptions;
|
|
2605
|
+
if (configuration) {
|
|
2606
|
+
baseOptions = configuration.baseOptions;
|
|
2607
|
+
}
|
|
2608
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2609
|
+
const localVarHeaderParameter = {};
|
|
2610
|
+
const localVarQueryParameter = {};
|
|
2611
|
+
// authentication Oauth2 required
|
|
2612
|
+
// oauth required
|
|
2613
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2614
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2615
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2616
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2617
|
+
return {
|
|
2618
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2619
|
+
options: localVarRequestOptions,
|
|
2620
|
+
};
|
|
2621
|
+
}),
|
|
2559
2622
|
/**
|
|
2560
2623
|
* Get payout by payout_id
|
|
2561
2624
|
* @param {string} payoutId payout id
|
|
@@ -2953,6 +3016,17 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
2953
3016
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2954
3017
|
});
|
|
2955
3018
|
},
|
|
3019
|
+
/**
|
|
3020
|
+
* cancel payment on payment link
|
|
3021
|
+
* @param {*} [options] Override http request option.
|
|
3022
|
+
* @throws {RequiredError}
|
|
3023
|
+
*/
|
|
3024
|
+
cancelPaymentPaymentLink(options) {
|
|
3025
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPaymentPaymentLink(options);
|
|
3027
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3028
|
+
});
|
|
3029
|
+
},
|
|
2956
3030
|
/**
|
|
2957
3031
|
* Cancel Payout by payout_id
|
|
2958
3032
|
* @param {string} payoutId payout id
|
|
@@ -3143,6 +3217,17 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
3143
3217
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3144
3218
|
});
|
|
3145
3219
|
},
|
|
3220
|
+
/**
|
|
3221
|
+
* Get payment (if exists) on the payment link for front-end
|
|
3222
|
+
* @param {*} [options] Override http request option.
|
|
3223
|
+
* @throws {RequiredError}
|
|
3224
|
+
*/
|
|
3225
|
+
getPaymentPaymentLink(options) {
|
|
3226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3227
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentPaymentLink(options);
|
|
3228
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3229
|
+
});
|
|
3230
|
+
},
|
|
3146
3231
|
/**
|
|
3147
3232
|
* Get payout by payout_id
|
|
3148
3233
|
* @param {string} payoutId payout id
|
|
@@ -3292,6 +3377,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3292
3377
|
cancelPaymentLink(paymentLinkId, options) {
|
|
3293
3378
|
return localVarFp.cancelPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
|
|
3294
3379
|
},
|
|
3380
|
+
/**
|
|
3381
|
+
* cancel payment on payment link
|
|
3382
|
+
* @param {*} [options] Override http request option.
|
|
3383
|
+
* @throws {RequiredError}
|
|
3384
|
+
*/
|
|
3385
|
+
cancelPaymentPaymentLink(options) {
|
|
3386
|
+
return localVarFp.cancelPaymentPaymentLink(options).then((request) => request(axios, basePath));
|
|
3387
|
+
},
|
|
3295
3388
|
/**
|
|
3296
3389
|
* Cancel Payout by payout_id
|
|
3297
3390
|
* @param {string} payoutId payout id
|
|
@@ -3448,6 +3541,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3448
3541
|
getPaymentMethodPaymentLink(options) {
|
|
3449
3542
|
return localVarFp.getPaymentMethodPaymentLink(options).then((request) => request(axios, basePath));
|
|
3450
3543
|
},
|
|
3544
|
+
/**
|
|
3545
|
+
* Get payment (if exists) on the payment link for front-end
|
|
3546
|
+
* @param {*} [options] Override http request option.
|
|
3547
|
+
* @throws {RequiredError}
|
|
3548
|
+
*/
|
|
3549
|
+
getPaymentPaymentLink(options) {
|
|
3550
|
+
return localVarFp.getPaymentPaymentLink(options).then((request) => request(axios, basePath));
|
|
3551
|
+
},
|
|
3451
3552
|
/**
|
|
3452
3553
|
* Get payout by payout_id
|
|
3453
3554
|
* @param {string} payoutId payout id
|
|
@@ -3583,6 +3684,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3583
3684
|
.cancelPaymentLink(paymentLinkId, options)
|
|
3584
3685
|
.then((request) => request(this.axios, this.basePath));
|
|
3585
3686
|
}
|
|
3687
|
+
/**
|
|
3688
|
+
* cancel payment on payment link
|
|
3689
|
+
* @param {*} [options] Override http request option.
|
|
3690
|
+
* @throws {RequiredError}
|
|
3691
|
+
* @memberof DefaultApi
|
|
3692
|
+
*/
|
|
3693
|
+
cancelPaymentPaymentLink(options) {
|
|
3694
|
+
return exports.DefaultApiFp(this.configuration)
|
|
3695
|
+
.cancelPaymentPaymentLink(options)
|
|
3696
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3697
|
+
}
|
|
3586
3698
|
/**
|
|
3587
3699
|
* Cancel Payout by payout_id
|
|
3588
3700
|
* @param {string} payoutId payout id
|
|
@@ -3773,6 +3885,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3773
3885
|
.getPaymentMethodPaymentLink(options)
|
|
3774
3886
|
.then((request) => request(this.axios, this.basePath));
|
|
3775
3887
|
}
|
|
3888
|
+
/**
|
|
3889
|
+
* Get payment (if exists) on the payment link for front-end
|
|
3890
|
+
* @param {*} [options] Override http request option.
|
|
3891
|
+
* @throws {RequiredError}
|
|
3892
|
+
* @memberof DefaultApi
|
|
3893
|
+
*/
|
|
3894
|
+
getPaymentPaymentLink(options) {
|
|
3895
|
+
return exports.DefaultApiFp(this.configuration)
|
|
3896
|
+
.getPaymentPaymentLink(options)
|
|
3897
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3898
|
+
}
|
|
3776
3899
|
/**
|
|
3777
3900
|
* Get payout by payout_id
|
|
3778
3901
|
* @param {string} payoutId payout id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.269",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"axios": "^0.21.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/chai": "^5.0.
|
|
24
|
+
"@types/chai": "^5.0.1",
|
|
25
25
|
"@types/mocha": "^10.0.9",
|
|
26
26
|
"@types/node": "^12.11.5",
|
|
27
27
|
"axios-mock-adapter": "^1.21.2",
|
|
28
|
-
"chai": "^5.1.
|
|
29
|
-
"mocha": "^10.
|
|
28
|
+
"chai": "^5.1.2",
|
|
29
|
+
"mocha": "^10.8.2",
|
|
30
30
|
"ts-node": "^10.9.2",
|
|
31
31
|
"typescript": "^3.6.4"
|
|
32
32
|
},
|