@emilgroup/payment-sdk 1.4.1-beta.38 → 1.4.1-beta.39
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/.openapi-generator/FILES +0 -51
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +24 -74
- package/api/bank-transaction-api.ts +26 -64
- package/api/payment-methods-api.ts +30 -80
- package/api/payment-reminders-api.ts +20 -70
- package/api/payment-setup-api.ts +28 -36
- package/api/payments-api.ts +18 -66
- package/api/refunds-api.ts +22 -56
- package/api/tenant-bank-account-api.ts +18 -46
- package/dist/api/bank-accounts-api.d.ts +25 -56
- package/dist/api/bank-accounts-api.js +11 -29
- package/dist/api/bank-transaction-api.d.ts +24 -47
- package/dist/api/bank-transaction-api.js +12 -24
- package/dist/api/payment-methods-api.d.ts +22 -53
- package/dist/api/payment-methods-api.js +23 -41
- package/dist/api/payment-reminders-api.d.ts +19 -50
- package/dist/api/payment-reminders-api.js +11 -29
- package/dist/api/payment-setup-api.d.ts +18 -22
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +16 -46
- package/dist/api/payments-api.js +11 -29
- package/dist/api/refunds-api.d.ts +18 -39
- package/dist/api/refunds-api.js +12 -24
- package/dist/api/tenant-bank-account-api.d.ts +11 -29
- package/dist/api/tenant-bank-account-api.js +12 -24
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +12 -0
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/index.d.ts +0 -51
- package/dist/models/index.js +0 -51
- package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +12 -0
- package/dist/models/tenant-bank-account-class.d.ts +12 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
- package/dist/models/validate-pspconfig-request-dto.js +0 -7
- package/models/bank-transaction-class-without-expand-properties.ts +12 -0
- package/models/create-bank-account-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +3 -3
- package/models/index.ts +0 -51
- package/models/tenant-bank-account-class-without-expand-properties.ts +12 -0
- package/models/tenant-bank-account-class.ts +12 -0
- package/models/validate-pspconfig-request-dto.ts +1 -11
- package/package.json +1 -1
- package/dist/models/bank-account-class-without-expand-properties.d.ts +0 -72
- package/dist/models/bank-account-class-without-expand-properties.js +0 -15
- package/dist/models/bank-account-class.d.ts +0 -79
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/bank-transaction-class.d.ts +0 -128
- package/dist/models/bank-transaction-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-response-class.d.ts +0 -25
- package/dist/models/create-bank-account-response-class.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/create-payment-reminder-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/deactivated-payment-reminder-class.d.ts +0 -90
- package/dist/models/deactivated-payment-reminder-class.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/get-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/import-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/import-bank-transactions-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -50
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/link-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/link-bank-transactions-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class-without-expand-properties.d.ts +0 -102
- package/dist/models/payment-class-without-expand-properties.js +0 -15
- package/dist/models/payment-class.d.ts +0 -109
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -90
- package/dist/models/payment-reminder-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/refund-class-without-expand-properties.d.ts +0 -99
- package/dist/models/refund-class-without-expand-properties.js +0 -29
- package/dist/models/refund-class.d.ts +0 -106
- package/dist/models/refund-class.js +0 -29
- package/dist/models/refund-item-class.d.ts +0 -102
- package/dist/models/refund-item-class.js +0 -15
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/dist/models/unlink-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/unlink-bank-transactions-response-class.js +0 -15
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -96
- package/dist/models/unlinked-bank-transaction-response-class.js +0 -15
- package/dist/models/update-bank-account-response-class.d.ts +0 -25
- package/dist/models/update-bank-account-response-class.js +0 -15
- package/models/bank-account-class-without-expand-properties.ts +0 -78
- package/models/bank-account-class.ts +0 -85
- package/models/bank-transaction-class.ts +0 -134
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-response-class.ts +0 -31
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-reminder-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/deactivated-payment-reminder-class.ts +0 -96
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/import-bank-transactions-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -56
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/link-bank-transactions-response-class.ts +0 -31
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class-without-expand-properties.ts +0 -108
- package/models/payment-class.ts +0 -115
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -96
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class-without-expand-properties.ts +0 -109
- package/models/refund-class.ts +0 -116
- package/models/refund-item-class.ts +0 -108
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/transaction-class.ts +0 -60
- package/models/unlink-bank-transactions-response-class.ts +0 -31
- package/models/unlinked-bank-transaction-response-class.ts +0 -102
- package/models/update-bank-account-response-class.ts +0 -31
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CompletePaymentSetupRequestDto } from '../models';
|
|
16
|
-
import { CompletePaymentSetupResponseClass } from '../models';
|
|
17
|
-
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
18
|
-
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
19
15
|
/**
|
|
20
16
|
* PaymentSetupApi - axios parameter creator
|
|
21
17
|
* @export
|
|
@@ -24,21 +20,21 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
|
|
|
24
20
|
/**
|
|
25
21
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
26
22
|
* @summary Complete a payment setup
|
|
27
|
-
* @param {
|
|
23
|
+
* @param {object} body
|
|
28
24
|
* @param {string} [authorization] Bearer Token
|
|
29
25
|
* @param {*} [options] Override http request option.
|
|
30
26
|
* @throws {RequiredError}
|
|
31
27
|
*/
|
|
32
|
-
completePaymentSetup: (
|
|
28
|
+
completePaymentSetup: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
29
|
/**
|
|
34
30
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
35
31
|
* @summary Initiate a payment setup
|
|
36
|
-
* @param {
|
|
32
|
+
* @param {object} body
|
|
37
33
|
* @param {string} [authorization] Bearer Token
|
|
38
34
|
* @param {*} [options] Override http request option.
|
|
39
35
|
* @throws {RequiredError}
|
|
40
36
|
*/
|
|
41
|
-
initiatePaymentSetup: (
|
|
37
|
+
initiatePaymentSetup: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
38
|
};
|
|
43
39
|
/**
|
|
44
40
|
* PaymentSetupApi - functional programming interface
|
|
@@ -48,21 +44,21 @@ export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
|
|
|
48
44
|
/**
|
|
49
45
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
50
46
|
* @summary Complete a payment setup
|
|
51
|
-
* @param {
|
|
47
|
+
* @param {object} body
|
|
52
48
|
* @param {string} [authorization] Bearer Token
|
|
53
49
|
* @param {*} [options] Override http request option.
|
|
54
50
|
* @throws {RequiredError}
|
|
55
51
|
*/
|
|
56
|
-
completePaymentSetup(
|
|
52
|
+
completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
57
53
|
/**
|
|
58
54
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
59
55
|
* @summary Initiate a payment setup
|
|
60
|
-
* @param {
|
|
56
|
+
* @param {object} body
|
|
61
57
|
* @param {string} [authorization] Bearer Token
|
|
62
58
|
* @param {*} [options] Override http request option.
|
|
63
59
|
* @throws {RequiredError}
|
|
64
60
|
*/
|
|
65
|
-
initiatePaymentSetup(
|
|
61
|
+
initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
66
62
|
};
|
|
67
63
|
/**
|
|
68
64
|
* PaymentSetupApi - factory interface
|
|
@@ -72,21 +68,21 @@ export declare const PaymentSetupApiFactory: (configuration?: Configuration, bas
|
|
|
72
68
|
/**
|
|
73
69
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
74
70
|
* @summary Complete a payment setup
|
|
75
|
-
* @param {
|
|
71
|
+
* @param {object} body
|
|
76
72
|
* @param {string} [authorization] Bearer Token
|
|
77
73
|
* @param {*} [options] Override http request option.
|
|
78
74
|
* @throws {RequiredError}
|
|
79
75
|
*/
|
|
80
|
-
completePaymentSetup(
|
|
76
|
+
completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
81
77
|
/**
|
|
82
78
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
83
79
|
* @summary Initiate a payment setup
|
|
84
|
-
* @param {
|
|
80
|
+
* @param {object} body
|
|
85
81
|
* @param {string} [authorization] Bearer Token
|
|
86
82
|
* @param {*} [options] Override http request option.
|
|
87
83
|
* @throws {RequiredError}
|
|
88
84
|
*/
|
|
89
|
-
initiatePaymentSetup(
|
|
85
|
+
initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
90
86
|
};
|
|
91
87
|
/**
|
|
92
88
|
* Request parameters for completePaymentSetup operation in PaymentSetupApi.
|
|
@@ -96,10 +92,10 @@ export declare const PaymentSetupApiFactory: (configuration?: Configuration, bas
|
|
|
96
92
|
export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
97
93
|
/**
|
|
98
94
|
*
|
|
99
|
-
* @type {
|
|
95
|
+
* @type {object}
|
|
100
96
|
* @memberof PaymentSetupApiCompletePaymentSetup
|
|
101
97
|
*/
|
|
102
|
-
readonly
|
|
98
|
+
readonly body: object;
|
|
103
99
|
/**
|
|
104
100
|
* Bearer Token
|
|
105
101
|
* @type {string}
|
|
@@ -115,10 +111,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
|
115
111
|
export interface PaymentSetupApiInitiatePaymentSetupRequest {
|
|
116
112
|
/**
|
|
117
113
|
*
|
|
118
|
-
* @type {
|
|
114
|
+
* @type {object}
|
|
119
115
|
* @memberof PaymentSetupApiInitiatePaymentSetup
|
|
120
116
|
*/
|
|
121
|
-
readonly
|
|
117
|
+
readonly body: object;
|
|
122
118
|
/**
|
|
123
119
|
* Bearer Token
|
|
124
120
|
* @type {string}
|
|
@@ -141,7 +137,7 @@ export declare class PaymentSetupApi extends BaseAPI {
|
|
|
141
137
|
* @throws {RequiredError}
|
|
142
138
|
* @memberof PaymentSetupApi
|
|
143
139
|
*/
|
|
144
|
-
completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
140
|
+
completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
145
141
|
/**
|
|
146
142
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
147
143
|
* @summary Initiate a payment setup
|
|
@@ -150,5 +146,5 @@ export declare class PaymentSetupApi extends BaseAPI {
|
|
|
150
146
|
* @throws {RequiredError}
|
|
151
147
|
* @memberof PaymentSetupApi
|
|
152
148
|
*/
|
|
153
|
-
initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
149
|
+
initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
154
150
|
}
|
|
@@ -95,20 +95,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
97
97
|
* @summary Complete a payment setup
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {object} body
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
completePaymentSetup: function (
|
|
103
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
(0, common_1.assertParamExists)('completePaymentSetup', '
|
|
110
|
+
// verify required parameter 'body' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('completePaymentSetup', 'body', body);
|
|
112
112
|
localVarPath = "/paymentservice/v1/payment-setup/complete";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
@@ -132,7 +132,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
134
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
136
136
|
return [2 /*return*/, {
|
|
137
137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
138
|
options: localVarRequestOptions,
|
|
@@ -144,20 +144,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
144
144
|
/**
|
|
145
145
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
146
146
|
* @summary Initiate a payment setup
|
|
147
|
-
* @param {
|
|
147
|
+
* @param {object} body
|
|
148
148
|
* @param {string} [authorization] Bearer Token
|
|
149
149
|
* @param {*} [options] Override http request option.
|
|
150
150
|
* @throws {RequiredError}
|
|
151
151
|
*/
|
|
152
|
-
initiatePaymentSetup: function (
|
|
152
|
+
initiatePaymentSetup: function (body, authorization, options) {
|
|
153
153
|
if (options === void 0) { options = {}; }
|
|
154
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
155
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
156
|
return __generator(this, function (_a) {
|
|
157
157
|
switch (_a.label) {
|
|
158
158
|
case 0:
|
|
159
|
-
// verify required parameter '
|
|
160
|
-
(0, common_1.assertParamExists)('initiatePaymentSetup', '
|
|
159
|
+
// verify required parameter 'body' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('initiatePaymentSetup', 'body', body);
|
|
161
161
|
localVarPath = "/paymentservice/v1/payment-setup/initiate";
|
|
162
162
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
163
|
if (configuration) {
|
|
@@ -181,7 +181,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
181
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
183
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
184
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
185
185
|
return [2 /*return*/, {
|
|
186
186
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
187
|
options: localVarRequestOptions,
|
|
@@ -203,17 +203,17 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
203
203
|
/**
|
|
204
204
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
205
205
|
* @summary Complete a payment setup
|
|
206
|
-
* @param {
|
|
206
|
+
* @param {object} body
|
|
207
207
|
* @param {string} [authorization] Bearer Token
|
|
208
208
|
* @param {*} [options] Override http request option.
|
|
209
209
|
* @throws {RequiredError}
|
|
210
210
|
*/
|
|
211
|
-
completePaymentSetup: function (
|
|
211
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
212
212
|
return __awaiter(this, void 0, void 0, function () {
|
|
213
213
|
var localVarAxiosArgs;
|
|
214
214
|
return __generator(this, function (_a) {
|
|
215
215
|
switch (_a.label) {
|
|
216
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(
|
|
216
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(body, authorization, options)];
|
|
217
217
|
case 1:
|
|
218
218
|
localVarAxiosArgs = _a.sent();
|
|
219
219
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -224,17 +224,17 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
224
224
|
/**
|
|
225
225
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
226
226
|
* @summary Initiate a payment setup
|
|
227
|
-
* @param {
|
|
227
|
+
* @param {object} body
|
|
228
228
|
* @param {string} [authorization] Bearer Token
|
|
229
229
|
* @param {*} [options] Override http request option.
|
|
230
230
|
* @throws {RequiredError}
|
|
231
231
|
*/
|
|
232
|
-
initiatePaymentSetup: function (
|
|
232
|
+
initiatePaymentSetup: function (body, authorization, options) {
|
|
233
233
|
return __awaiter(this, void 0, void 0, function () {
|
|
234
234
|
var localVarAxiosArgs;
|
|
235
235
|
return __generator(this, function (_a) {
|
|
236
236
|
switch (_a.label) {
|
|
237
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(
|
|
237
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options)];
|
|
238
238
|
case 1:
|
|
239
239
|
localVarAxiosArgs = _a.sent();
|
|
240
240
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -255,24 +255,24 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
255
255
|
/**
|
|
256
256
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
257
257
|
* @summary Complete a payment setup
|
|
258
|
-
* @param {
|
|
258
|
+
* @param {object} body
|
|
259
259
|
* @param {string} [authorization] Bearer Token
|
|
260
260
|
* @param {*} [options] Override http request option.
|
|
261
261
|
* @throws {RequiredError}
|
|
262
262
|
*/
|
|
263
|
-
completePaymentSetup: function (
|
|
264
|
-
return localVarFp.completePaymentSetup(
|
|
263
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
264
|
+
return localVarFp.completePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
265
265
|
},
|
|
266
266
|
/**
|
|
267
267
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
268
268
|
* @summary Initiate a payment setup
|
|
269
|
-
* @param {
|
|
269
|
+
* @param {object} body
|
|
270
270
|
* @param {string} [authorization] Bearer Token
|
|
271
271
|
* @param {*} [options] Override http request option.
|
|
272
272
|
* @throws {RequiredError}
|
|
273
273
|
*/
|
|
274
|
-
initiatePaymentSetup: function (
|
|
275
|
-
return localVarFp.initiatePaymentSetup(
|
|
274
|
+
initiatePaymentSetup: function (body, authorization, options) {
|
|
275
|
+
return localVarFp.initiatePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
276
276
|
},
|
|
277
277
|
};
|
|
278
278
|
};
|
|
@@ -298,7 +298,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
|
|
|
298
298
|
*/
|
|
299
299
|
PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
|
|
300
300
|
var _this = this;
|
|
301
|
-
return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.
|
|
301
|
+
return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
302
302
|
};
|
|
303
303
|
/**
|
|
304
304
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
@@ -310,7 +310,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
|
|
|
310
310
|
*/
|
|
311
311
|
PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
312
312
|
var _this = this;
|
|
313
|
-
return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.
|
|
313
|
+
return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
314
314
|
};
|
|
315
315
|
return PaymentSetupApi;
|
|
316
316
|
}(base_1.BaseAPI));
|
|
@@ -13,9 +13,6 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreatePaymentRequestDto } from '../models';
|
|
16
|
-
import { CreatePaymentResponseClass } from '../models';
|
|
17
|
-
import { GetPaymentResponseClass } from '../models';
|
|
18
|
-
import { ListPaymentsResponseClass } from '../models';
|
|
19
16
|
/**
|
|
20
17
|
* PaymentsApi - axios parameter creator
|
|
21
18
|
* @export
|
|
@@ -45,17 +42,14 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
45
42
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
46
43
|
* @summary List payments
|
|
47
44
|
* @param {string} [authorization] Bearer Token
|
|
48
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
49
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
50
45
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
51
|
-
* @param {
|
|
46
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
52
47
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
53
48
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
54
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
55
49
|
* @param {*} [options] Override http request option.
|
|
56
50
|
* @throws {RequiredError}
|
|
57
51
|
*/
|
|
58
|
-
listPayments: (authorization?: string,
|
|
52
|
+
listPayments: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
53
|
};
|
|
60
54
|
/**
|
|
61
55
|
* PaymentsApi - functional programming interface
|
|
@@ -71,7 +65,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
71
65
|
* @param {*} [options] Override http request option.
|
|
72
66
|
* @throws {RequiredError}
|
|
73
67
|
*/
|
|
74
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
68
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
75
69
|
/**
|
|
76
70
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
77
71
|
* @summary Retrieve the payment
|
|
@@ -81,22 +75,19 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
81
75
|
* @param {*} [options] Override http request option.
|
|
82
76
|
* @throws {RequiredError}
|
|
83
77
|
*/
|
|
84
|
-
getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
78
|
+
getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
85
79
|
/**
|
|
86
80
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
87
81
|
* @summary List payments
|
|
88
82
|
* @param {string} [authorization] Bearer Token
|
|
89
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
90
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
91
83
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
92
|
-
* @param {
|
|
84
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
93
85
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
94
86
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
95
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
96
87
|
* @param {*} [options] Override http request option.
|
|
97
88
|
* @throws {RequiredError}
|
|
98
89
|
*/
|
|
99
|
-
listPayments(authorization?: string,
|
|
90
|
+
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
100
91
|
};
|
|
101
92
|
/**
|
|
102
93
|
* PaymentsApi - factory interface
|
|
@@ -112,7 +103,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
112
103
|
* @param {*} [options] Override http request option.
|
|
113
104
|
* @throws {RequiredError}
|
|
114
105
|
*/
|
|
115
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
106
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
116
107
|
/**
|
|
117
108
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
118
109
|
* @summary Retrieve the payment
|
|
@@ -122,22 +113,19 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
122
113
|
* @param {*} [options] Override http request option.
|
|
123
114
|
* @throws {RequiredError}
|
|
124
115
|
*/
|
|
125
|
-
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
116
|
+
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
126
117
|
/**
|
|
127
118
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
128
119
|
* @summary List payments
|
|
129
120
|
* @param {string} [authorization] Bearer Token
|
|
130
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
131
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
132
121
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
133
|
-
* @param {
|
|
122
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
134
123
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
135
124
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
136
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
137
125
|
* @param {*} [options] Override http request option.
|
|
138
126
|
* @throws {RequiredError}
|
|
139
127
|
*/
|
|
140
|
-
listPayments(authorization?: string,
|
|
128
|
+
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
141
129
|
};
|
|
142
130
|
/**
|
|
143
131
|
* Request parameters for createPayment operation in PaymentsApi.
|
|
@@ -201,18 +189,6 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
201
189
|
* @memberof PaymentsApiListPayments
|
|
202
190
|
*/
|
|
203
191
|
readonly authorization?: string;
|
|
204
|
-
/**
|
|
205
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
206
|
-
* @type {any}
|
|
207
|
-
* @memberof PaymentsApiListPayments
|
|
208
|
-
*/
|
|
209
|
-
readonly pageSize?: any;
|
|
210
|
-
/**
|
|
211
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
212
|
-
* @type {any}
|
|
213
|
-
* @memberof PaymentsApiListPayments
|
|
214
|
-
*/
|
|
215
|
-
readonly pageToken?: any;
|
|
216
192
|
/**
|
|
217
193
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
218
194
|
* @type {string}
|
|
@@ -220,11 +196,11 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
220
196
|
*/
|
|
221
197
|
readonly filter?: string;
|
|
222
198
|
/**
|
|
223
|
-
*
|
|
224
|
-
* @type {
|
|
199
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
200
|
+
* @type {string}
|
|
225
201
|
* @memberof PaymentsApiListPayments
|
|
226
202
|
*/
|
|
227
|
-
readonly
|
|
203
|
+
readonly filters?: string;
|
|
228
204
|
/**
|
|
229
205
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
230
206
|
* @type {string}
|
|
@@ -237,12 +213,6 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
237
213
|
* @memberof PaymentsApiListPayments
|
|
238
214
|
*/
|
|
239
215
|
readonly expand?: string;
|
|
240
|
-
/**
|
|
241
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
242
|
-
* @type {string}
|
|
243
|
-
* @memberof PaymentsApiListPayments
|
|
244
|
-
*/
|
|
245
|
-
readonly filters?: string;
|
|
246
216
|
}
|
|
247
217
|
/**
|
|
248
218
|
* PaymentsApi - object-oriented interface
|
|
@@ -259,7 +229,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
259
229
|
* @throws {RequiredError}
|
|
260
230
|
* @memberof PaymentsApi
|
|
261
231
|
*/
|
|
262
|
-
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
232
|
+
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
263
233
|
/**
|
|
264
234
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
265
235
|
* @summary Retrieve the payment
|
|
@@ -268,7 +238,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
268
238
|
* @throws {RequiredError}
|
|
269
239
|
* @memberof PaymentsApi
|
|
270
240
|
*/
|
|
271
|
-
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
241
|
+
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
272
242
|
/**
|
|
273
243
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
274
244
|
* @summary List payments
|
|
@@ -277,5 +247,5 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
277
247
|
* @throws {RequiredError}
|
|
278
248
|
* @memberof PaymentsApi
|
|
279
249
|
*/
|
|
280
|
-
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
250
|
+
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
281
251
|
}
|
package/dist/api/payments-api.js
CHANGED
|
@@ -203,17 +203,14 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
203
203
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
204
204
|
* @summary List payments
|
|
205
205
|
* @param {string} [authorization] Bearer Token
|
|
206
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
207
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
208
206
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
209
|
-
* @param {
|
|
207
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
210
208
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
211
209
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
212
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
213
210
|
* @param {*} [options] Override http request option.
|
|
214
211
|
* @throws {RequiredError}
|
|
215
212
|
*/
|
|
216
|
-
listPayments: function (authorization,
|
|
213
|
+
listPayments: function (authorization, filter, filters, order, expand, options) {
|
|
217
214
|
if (options === void 0) { options = {}; }
|
|
218
215
|
return __awaiter(_this, void 0, void 0, function () {
|
|
219
216
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -236,17 +233,11 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
236
233
|
// authentication bearer required
|
|
237
234
|
// http bearer authentication required
|
|
238
235
|
_a.sent();
|
|
239
|
-
if (pageSize !== undefined) {
|
|
240
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
241
|
-
}
|
|
242
|
-
if (pageToken !== undefined) {
|
|
243
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
244
|
-
}
|
|
245
236
|
if (filter !== undefined) {
|
|
246
237
|
localVarQueryParameter['filter'] = filter;
|
|
247
238
|
}
|
|
248
|
-
if (
|
|
249
|
-
localVarQueryParameter['
|
|
239
|
+
if (filters !== undefined) {
|
|
240
|
+
localVarQueryParameter['filters'] = filters;
|
|
250
241
|
}
|
|
251
242
|
if (order !== undefined) {
|
|
252
243
|
localVarQueryParameter['order'] = order;
|
|
@@ -254,9 +245,6 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
254
245
|
if (expand !== undefined) {
|
|
255
246
|
localVarQueryParameter['expand'] = expand;
|
|
256
247
|
}
|
|
257
|
-
if (filters !== undefined) {
|
|
258
|
-
localVarQueryParameter['filters'] = filters;
|
|
259
|
-
}
|
|
260
248
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
261
249
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
262
250
|
}
|
|
@@ -329,22 +317,19 @@ var PaymentsApiFp = function (configuration) {
|
|
|
329
317
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
330
318
|
* @summary List payments
|
|
331
319
|
* @param {string} [authorization] Bearer Token
|
|
332
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
333
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
334
320
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
335
|
-
* @param {
|
|
321
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
336
322
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
337
323
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
338
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
339
324
|
* @param {*} [options] Override http request option.
|
|
340
325
|
* @throws {RequiredError}
|
|
341
326
|
*/
|
|
342
|
-
listPayments: function (authorization,
|
|
327
|
+
listPayments: function (authorization, filter, filters, order, expand, options) {
|
|
343
328
|
return __awaiter(this, void 0, void 0, function () {
|
|
344
329
|
var localVarAxiosArgs;
|
|
345
330
|
return __generator(this, function (_a) {
|
|
346
331
|
switch (_a.label) {
|
|
347
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPayments(authorization,
|
|
332
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options)];
|
|
348
333
|
case 1:
|
|
349
334
|
localVarAxiosArgs = _a.sent();
|
|
350
335
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -390,18 +375,15 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
390
375
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
391
376
|
* @summary List payments
|
|
392
377
|
* @param {string} [authorization] Bearer Token
|
|
393
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
394
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
395
378
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
396
|
-
* @param {
|
|
379
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
397
380
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
398
381
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
399
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
400
382
|
* @param {*} [options] Override http request option.
|
|
401
383
|
* @throws {RequiredError}
|
|
402
384
|
*/
|
|
403
|
-
listPayments: function (authorization,
|
|
404
|
-
return localVarFp.listPayments(authorization,
|
|
385
|
+
listPayments: function (authorization, filter, filters, order, expand, options) {
|
|
386
|
+
return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
405
387
|
},
|
|
406
388
|
};
|
|
407
389
|
};
|
|
@@ -452,7 +434,7 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
452
434
|
PaymentsApi.prototype.listPayments = function (requestParameters, options) {
|
|
453
435
|
var _this = this;
|
|
454
436
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
455
|
-
return (0, exports.PaymentsApiFp)(this.configuration).listPayments(requestParameters.authorization, requestParameters.
|
|
437
|
+
return (0, exports.PaymentsApiFp)(this.configuration).listPayments(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
456
438
|
};
|
|
457
439
|
return PaymentsApi;
|
|
458
440
|
}(base_1.BaseAPI));
|