@emilgroup/payment-sdk-node 1.12.1 → 1.13.1-beta.0
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 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +17 -21
- package/api/bank-transaction-api.ts +134 -42
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +38 -42
- package/api/payment-reminders-api.ts +9 -13
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +26 -28
- package/api/refunds-api.ts +16 -14
- package/api/tenant-bank-account-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +13 -15
- package/dist/api/bank-accounts-api.js +13 -13
- package/dist/api/bank-transaction-api.d.ts +86 -33
- package/dist/api/bank-transaction-api.js +122 -29
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +28 -32
- package/dist/api/payment-methods-api.js +29 -25
- package/dist/api/payment-reminders-api.d.ts +13 -15
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +22 -25
- package/dist/api/payments-api.js +17 -13
- package/dist/api/refunds-api.d.ts +11 -11
- package/dist/api/refunds-api.js +12 -10
- package/dist/api/tenant-bank-account-api.d.ts +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +0 -30
- package/dist/models/index.js +0 -30
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -30
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/bank-account-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-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.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-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/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-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-response-class.d.ts +0 -25
- package/dist/models/get-payment-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 -44
- 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-transaction-request-dto.d.ts +0 -30
- package/dist/models/link-bank-transaction-request-dto.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-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/payment-class.d.ts +0 -103
- 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 -112
- package/dist/models/payment-reminder-class.js +0 -36
- 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/models/bank-account-class.ts +0 -60
- 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-request-dto.ts +0 -36
- package/models/create-payment-method-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/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-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 -50
- 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-transaction-request-dto.ts +0 -36
- package/models/list-bank-accounts-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/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: z
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -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
|
|
@@ -23,20 +19,20 @@ import { InitiatePaymentSetupResponseClass } from '../models';
|
|
|
23
19
|
export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
20
|
/**
|
|
25
21
|
*
|
|
26
|
-
* @param {
|
|
22
|
+
* @param {object} body
|
|
27
23
|
* @param {string} [authorization] Bearer Token
|
|
28
24
|
* @param {*} [options] Override http request option.
|
|
29
25
|
* @throws {RequiredError}
|
|
30
26
|
*/
|
|
31
|
-
completePaymentSetup: (
|
|
27
|
+
completePaymentSetup: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
28
|
/**
|
|
33
29
|
*
|
|
34
|
-
* @param {
|
|
30
|
+
* @param {object} body
|
|
35
31
|
* @param {string} [authorization] Bearer Token
|
|
36
32
|
* @param {*} [options] Override http request option.
|
|
37
33
|
* @throws {RequiredError}
|
|
38
34
|
*/
|
|
39
|
-
initiatePaymentSetup: (
|
|
35
|
+
initiatePaymentSetup: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
36
|
};
|
|
41
37
|
/**
|
|
42
38
|
* PaymentSetupApi - functional programming interface
|
|
@@ -45,20 +41,20 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
|
|
|
45
41
|
export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
|
|
46
42
|
/**
|
|
47
43
|
*
|
|
48
|
-
* @param {
|
|
44
|
+
* @param {object} body
|
|
49
45
|
* @param {string} [authorization] Bearer Token
|
|
50
46
|
* @param {*} [options] Override http request option.
|
|
51
47
|
* @throws {RequiredError}
|
|
52
48
|
*/
|
|
53
|
-
completePaymentSetup(
|
|
49
|
+
completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
54
50
|
/**
|
|
55
51
|
*
|
|
56
|
-
* @param {
|
|
52
|
+
* @param {object} body
|
|
57
53
|
* @param {string} [authorization] Bearer Token
|
|
58
54
|
* @param {*} [options] Override http request option.
|
|
59
55
|
* @throws {RequiredError}
|
|
60
56
|
*/
|
|
61
|
-
initiatePaymentSetup(
|
|
57
|
+
initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
62
58
|
};
|
|
63
59
|
/**
|
|
64
60
|
* PaymentSetupApi - factory interface
|
|
@@ -67,20 +63,20 @@ export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
|
|
|
67
63
|
export declare const PaymentSetupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
68
64
|
/**
|
|
69
65
|
*
|
|
70
|
-
* @param {
|
|
66
|
+
* @param {object} body
|
|
71
67
|
* @param {string} [authorization] Bearer Token
|
|
72
68
|
* @param {*} [options] Override http request option.
|
|
73
69
|
* @throws {RequiredError}
|
|
74
70
|
*/
|
|
75
|
-
completePaymentSetup(
|
|
71
|
+
completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
76
72
|
/**
|
|
77
73
|
*
|
|
78
|
-
* @param {
|
|
74
|
+
* @param {object} body
|
|
79
75
|
* @param {string} [authorization] Bearer Token
|
|
80
76
|
* @param {*} [options] Override http request option.
|
|
81
77
|
* @throws {RequiredError}
|
|
82
78
|
*/
|
|
83
|
-
initiatePaymentSetup(
|
|
79
|
+
initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
84
80
|
};
|
|
85
81
|
/**
|
|
86
82
|
* Request parameters for completePaymentSetup operation in PaymentSetupApi.
|
|
@@ -90,10 +86,10 @@ export declare const PaymentSetupApiFactory: (configuration?: Configuration, bas
|
|
|
90
86
|
export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
91
87
|
/**
|
|
92
88
|
*
|
|
93
|
-
* @type {
|
|
89
|
+
* @type {object}
|
|
94
90
|
* @memberof PaymentSetupApiCompletePaymentSetup
|
|
95
91
|
*/
|
|
96
|
-
readonly
|
|
92
|
+
readonly body: object;
|
|
97
93
|
/**
|
|
98
94
|
* Bearer Token
|
|
99
95
|
* @type {string}
|
|
@@ -109,10 +105,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
|
109
105
|
export interface PaymentSetupApiInitiatePaymentSetupRequest {
|
|
110
106
|
/**
|
|
111
107
|
*
|
|
112
|
-
* @type {
|
|
108
|
+
* @type {object}
|
|
113
109
|
* @memberof PaymentSetupApiInitiatePaymentSetup
|
|
114
110
|
*/
|
|
115
|
-
readonly
|
|
111
|
+
readonly body: object;
|
|
116
112
|
/**
|
|
117
113
|
* Bearer Token
|
|
118
114
|
* @type {string}
|
|
@@ -134,7 +130,7 @@ export declare class PaymentSetupApi extends BaseAPI {
|
|
|
134
130
|
* @throws {RequiredError}
|
|
135
131
|
* @memberof PaymentSetupApi
|
|
136
132
|
*/
|
|
137
|
-
completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
133
|
+
completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
138
134
|
/**
|
|
139
135
|
*
|
|
140
136
|
* @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
@@ -142,5 +138,5 @@ export declare class PaymentSetupApi extends BaseAPI {
|
|
|
142
138
|
* @throws {RequiredError}
|
|
143
139
|
* @memberof PaymentSetupApi
|
|
144
140
|
*/
|
|
145
|
-
initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
141
|
+
initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
146
142
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: z
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -98,20 +98,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
|
-
* @param {
|
|
101
|
+
* @param {object} body
|
|
102
102
|
* @param {string} [authorization] Bearer Token
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
completePaymentSetup: function (
|
|
106
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
107
107
|
if (options === void 0) { options = {}; }
|
|
108
108
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
109
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
110
|
return __generator(this, function (_a) {
|
|
111
111
|
switch (_a.label) {
|
|
112
112
|
case 0:
|
|
113
|
-
// verify required parameter '
|
|
114
|
-
(0, common_1.assertParamExists)('completePaymentSetup', '
|
|
113
|
+
// verify required parameter 'body' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('completePaymentSetup', 'body', body);
|
|
115
115
|
localVarPath = "/paymentservice/v1/payment-setup/complete";
|
|
116
116
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
117
|
if (configuration) {
|
|
@@ -135,7 +135,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
135
135
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
136
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
137
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
138
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
139
139
|
return [2 /*return*/, {
|
|
140
140
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
141
|
options: localVarRequestOptions,
|
|
@@ -146,20 +146,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
},
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
|
-
* @param {
|
|
149
|
+
* @param {object} body
|
|
150
150
|
* @param {string} [authorization] Bearer Token
|
|
151
151
|
* @param {*} [options] Override http request option.
|
|
152
152
|
* @throws {RequiredError}
|
|
153
153
|
*/
|
|
154
|
-
initiatePaymentSetup: function (
|
|
154
|
+
initiatePaymentSetup: function (body, authorization, options) {
|
|
155
155
|
if (options === void 0) { options = {}; }
|
|
156
156
|
return __awaiter(_this, void 0, void 0, function () {
|
|
157
157
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
158
158
|
return __generator(this, function (_a) {
|
|
159
159
|
switch (_a.label) {
|
|
160
160
|
case 0:
|
|
161
|
-
// verify required parameter '
|
|
162
|
-
(0, common_1.assertParamExists)('initiatePaymentSetup', '
|
|
161
|
+
// verify required parameter 'body' is not null or undefined
|
|
162
|
+
(0, common_1.assertParamExists)('initiatePaymentSetup', 'body', body);
|
|
163
163
|
localVarPath = "/paymentservice/v1/payment-setup/initiate";
|
|
164
164
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
165
165
|
if (configuration) {
|
|
@@ -183,7 +183,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
183
183
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
184
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
185
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
186
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
187
187
|
return [2 /*return*/, {
|
|
188
188
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
189
|
options: localVarRequestOptions,
|
|
@@ -204,17 +204,17 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
204
204
|
return {
|
|
205
205
|
/**
|
|
206
206
|
*
|
|
207
|
-
* @param {
|
|
207
|
+
* @param {object} body
|
|
208
208
|
* @param {string} [authorization] Bearer Token
|
|
209
209
|
* @param {*} [options] Override http request option.
|
|
210
210
|
* @throws {RequiredError}
|
|
211
211
|
*/
|
|
212
|
-
completePaymentSetup: function (
|
|
212
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
213
213
|
return __awaiter(this, void 0, void 0, function () {
|
|
214
214
|
var localVarAxiosArgs;
|
|
215
215
|
return __generator(this, function (_a) {
|
|
216
216
|
switch (_a.label) {
|
|
217
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(
|
|
217
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(body, authorization, options)];
|
|
218
218
|
case 1:
|
|
219
219
|
localVarAxiosArgs = _a.sent();
|
|
220
220
|
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
|
/**
|
|
226
226
|
*
|
|
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)];
|
|
@@ -254,23 +254,23 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
254
254
|
return {
|
|
255
255
|
/**
|
|
256
256
|
*
|
|
257
|
-
* @param {
|
|
257
|
+
* @param {object} body
|
|
258
258
|
* @param {string} [authorization] Bearer Token
|
|
259
259
|
* @param {*} [options] Override http request option.
|
|
260
260
|
* @throws {RequiredError}
|
|
261
261
|
*/
|
|
262
|
-
completePaymentSetup: function (
|
|
263
|
-
return localVarFp.completePaymentSetup(
|
|
262
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
263
|
+
return localVarFp.completePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
264
264
|
},
|
|
265
265
|
/**
|
|
266
266
|
*
|
|
267
|
-
* @param {
|
|
267
|
+
* @param {object} body
|
|
268
268
|
* @param {string} [authorization] Bearer Token
|
|
269
269
|
* @param {*} [options] Override http request option.
|
|
270
270
|
* @throws {RequiredError}
|
|
271
271
|
*/
|
|
272
|
-
initiatePaymentSetup: function (
|
|
273
|
-
return localVarFp.initiatePaymentSetup(
|
|
272
|
+
initiatePaymentSetup: function (body, authorization, options) {
|
|
273
|
+
return localVarFp.initiatePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
274
274
|
},
|
|
275
275
|
};
|
|
276
276
|
};
|
|
@@ -295,7 +295,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
|
|
|
295
295
|
*/
|
|
296
296
|
PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
|
|
297
297
|
var _this = this;
|
|
298
|
-
return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.
|
|
298
|
+
return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
299
299
|
};
|
|
300
300
|
/**
|
|
301
301
|
*
|
|
@@ -306,7 +306,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
|
|
|
306
306
|
*/
|
|
307
307
|
PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
308
308
|
var _this = this;
|
|
309
|
-
return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.
|
|
309
|
+
return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
310
310
|
};
|
|
311
311
|
return PaymentSetupApi;
|
|
312
312
|
}(base_1.BaseAPI));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: z
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -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
|
|
@@ -35,13 +32,13 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
35
32
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
36
33
|
* @summary Retrieve a payment
|
|
37
34
|
* @param {string} code Unique identifier for the object.
|
|
35
|
+
* @param {string} expand Fields to expand response by
|
|
36
|
+
* @param {string} expand2 Fields to expand response by
|
|
38
37
|
* @param {string} [authorization] Bearer Token
|
|
39
|
-
* @param {string} [expand] Fields to expand response by
|
|
40
|
-
* @param {string} [expand2] Fields to expand response by
|
|
41
38
|
* @param {*} [options] Override http request option.
|
|
42
39
|
* @throws {RequiredError}
|
|
43
40
|
*/
|
|
44
|
-
getPayment: (code: string,
|
|
41
|
+
getPayment: (code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
42
|
/**
|
|
46
43
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
47
44
|
* @summary List payments
|
|
@@ -71,18 +68,18 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
71
68
|
* @param {*} [options] Override http request option.
|
|
72
69
|
* @throws {RequiredError}
|
|
73
70
|
*/
|
|
74
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
71
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
75
72
|
/**
|
|
76
73
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
77
74
|
* @summary Retrieve a payment
|
|
78
75
|
* @param {string} code Unique identifier for the object.
|
|
76
|
+
* @param {string} expand Fields to expand response by
|
|
77
|
+
* @param {string} expand2 Fields to expand response by
|
|
79
78
|
* @param {string} [authorization] Bearer Token
|
|
80
|
-
* @param {string} [expand] Fields to expand response by
|
|
81
|
-
* @param {string} [expand2] Fields to expand response by
|
|
82
79
|
* @param {*} [options] Override http request option.
|
|
83
80
|
* @throws {RequiredError}
|
|
84
81
|
*/
|
|
85
|
-
getPayment(code: string,
|
|
82
|
+
getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
86
83
|
/**
|
|
87
84
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
88
85
|
* @summary List payments
|
|
@@ -96,7 +93,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
96
93
|
* @param {*} [options] Override http request option.
|
|
97
94
|
* @throws {RequiredError}
|
|
98
95
|
*/
|
|
99
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
96
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
100
97
|
};
|
|
101
98
|
/**
|
|
102
99
|
* PaymentsApi - factory interface
|
|
@@ -112,18 +109,18 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
112
109
|
* @param {*} [options] Override http request option.
|
|
113
110
|
* @throws {RequiredError}
|
|
114
111
|
*/
|
|
115
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
112
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
116
113
|
/**
|
|
117
114
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
118
115
|
* @summary Retrieve a payment
|
|
119
116
|
* @param {string} code Unique identifier for the object.
|
|
117
|
+
* @param {string} expand Fields to expand response by
|
|
118
|
+
* @param {string} expand2 Fields to expand response by
|
|
120
119
|
* @param {string} [authorization] Bearer Token
|
|
121
|
-
* @param {string} [expand] Fields to expand response by
|
|
122
|
-
* @param {string} [expand2] Fields to expand response by
|
|
123
120
|
* @param {*} [options] Override http request option.
|
|
124
121
|
* @throws {RequiredError}
|
|
125
122
|
*/
|
|
126
|
-
getPayment(code: string,
|
|
123
|
+
getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
127
124
|
/**
|
|
128
125
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
129
126
|
* @summary List payments
|
|
@@ -137,7 +134,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
137
134
|
* @param {*} [options] Override http request option.
|
|
138
135
|
* @throws {RequiredError}
|
|
139
136
|
*/
|
|
140
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
137
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void>;
|
|
141
138
|
};
|
|
142
139
|
/**
|
|
143
140
|
* Request parameters for createPayment operation in PaymentsApi.
|
|
@@ -177,23 +174,23 @@ export interface PaymentsApiGetPaymentRequest {
|
|
|
177
174
|
*/
|
|
178
175
|
readonly code: string;
|
|
179
176
|
/**
|
|
180
|
-
*
|
|
177
|
+
* Fields to expand response by
|
|
181
178
|
* @type {string}
|
|
182
179
|
* @memberof PaymentsApiGetPayment
|
|
183
180
|
*/
|
|
184
|
-
readonly
|
|
181
|
+
readonly expand: string;
|
|
185
182
|
/**
|
|
186
183
|
* Fields to expand response by
|
|
187
184
|
* @type {string}
|
|
188
185
|
* @memberof PaymentsApiGetPayment
|
|
189
186
|
*/
|
|
190
|
-
readonly
|
|
187
|
+
readonly expand2: string;
|
|
191
188
|
/**
|
|
192
|
-
*
|
|
189
|
+
* Bearer Token
|
|
193
190
|
* @type {string}
|
|
194
191
|
* @memberof PaymentsApiGetPayment
|
|
195
192
|
*/
|
|
196
|
-
readonly
|
|
193
|
+
readonly authorization?: string;
|
|
197
194
|
}
|
|
198
195
|
/**
|
|
199
196
|
* Request parameters for listPayments operation in PaymentsApi.
|
|
@@ -259,7 +256,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
259
256
|
* @throws {RequiredError}
|
|
260
257
|
* @memberof PaymentsApi
|
|
261
258
|
*/
|
|
262
|
-
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
259
|
+
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
263
260
|
/**
|
|
264
261
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
265
262
|
* @summary Retrieve a payment
|
|
@@ -268,7 +265,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
268
265
|
* @throws {RequiredError}
|
|
269
266
|
* @memberof PaymentsApi
|
|
270
267
|
*/
|
|
271
|
-
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
268
|
+
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
272
269
|
/**
|
|
273
270
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
274
271
|
* @summary List payments
|
|
@@ -277,5 +274,5 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
277
274
|
* @throws {RequiredError}
|
|
278
275
|
* @memberof PaymentsApi
|
|
279
276
|
*/
|
|
280
|
-
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
277
|
+
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
281
278
|
}
|
package/dist/api/payments-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: z
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -155,13 +155,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
155
155
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
156
156
|
* @summary Retrieve a payment
|
|
157
157
|
* @param {string} code Unique identifier for the object.
|
|
158
|
+
* @param {string} expand Fields to expand response by
|
|
159
|
+
* @param {string} expand2 Fields to expand response by
|
|
158
160
|
* @param {string} [authorization] Bearer Token
|
|
159
|
-
* @param {string} [expand] Fields to expand response by
|
|
160
|
-
* @param {string} [expand2] Fields to expand response by
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
164
|
-
getPayment: function (code,
|
|
164
|
+
getPayment: function (code, expand, expand2, authorization, options) {
|
|
165
165
|
if (options === void 0) { options = {}; }
|
|
166
166
|
return __awaiter(_this, void 0, void 0, function () {
|
|
167
167
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -170,6 +170,10 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
170
170
|
case 0:
|
|
171
171
|
// verify required parameter 'code' is not null or undefined
|
|
172
172
|
(0, common_1.assertParamExists)('getPayment', 'code', code);
|
|
173
|
+
// verify required parameter 'expand' is not null or undefined
|
|
174
|
+
(0, common_1.assertParamExists)('getPayment', 'expand', expand);
|
|
175
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
176
|
+
(0, common_1.assertParamExists)('getPayment', 'expand2', expand2);
|
|
173
177
|
localVarPath = "/paymentservice/v1/payments/{code}";
|
|
174
178
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
175
179
|
if (configuration) {
|
|
@@ -313,18 +317,18 @@ var PaymentsApiFp = function (configuration) {
|
|
|
313
317
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
314
318
|
* @summary Retrieve a payment
|
|
315
319
|
* @param {string} code Unique identifier for the object.
|
|
320
|
+
* @param {string} expand Fields to expand response by
|
|
321
|
+
* @param {string} expand2 Fields to expand response by
|
|
316
322
|
* @param {string} [authorization] Bearer Token
|
|
317
|
-
* @param {string} [expand] Fields to expand response by
|
|
318
|
-
* @param {string} [expand2] Fields to expand response by
|
|
319
323
|
* @param {*} [options] Override http request option.
|
|
320
324
|
* @throws {RequiredError}
|
|
321
325
|
*/
|
|
322
|
-
getPayment: function (code,
|
|
326
|
+
getPayment: function (code, expand, expand2, authorization, options) {
|
|
323
327
|
return __awaiter(this, void 0, void 0, function () {
|
|
324
328
|
var localVarAxiosArgs;
|
|
325
329
|
return __generator(this, function (_a) {
|
|
326
330
|
switch (_a.label) {
|
|
327
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code,
|
|
331
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options)];
|
|
328
332
|
case 1:
|
|
329
333
|
localVarAxiosArgs = _a.sent();
|
|
330
334
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -384,14 +388,14 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
384
388
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
385
389
|
* @summary Retrieve a payment
|
|
386
390
|
* @param {string} code Unique identifier for the object.
|
|
391
|
+
* @param {string} expand Fields to expand response by
|
|
392
|
+
* @param {string} expand2 Fields to expand response by
|
|
387
393
|
* @param {string} [authorization] Bearer Token
|
|
388
|
-
* @param {string} [expand] Fields to expand response by
|
|
389
|
-
* @param {string} [expand2] Fields to expand response by
|
|
390
394
|
* @param {*} [options] Override http request option.
|
|
391
395
|
* @throws {RequiredError}
|
|
392
396
|
*/
|
|
393
|
-
getPayment: function (code,
|
|
394
|
-
return localVarFp.getPayment(code,
|
|
397
|
+
getPayment: function (code, expand, expand2, authorization, options) {
|
|
398
|
+
return localVarFp.getPayment(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
395
399
|
},
|
|
396
400
|
/**
|
|
397
401
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -445,7 +449,7 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
445
449
|
*/
|
|
446
450
|
PaymentsApi.prototype.getPayment = function (requestParameters, options) {
|
|
447
451
|
var _this = this;
|
|
448
|
-
return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
452
|
+
return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
449
453
|
};
|
|
450
454
|
/**
|
|
451
455
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: z
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -33,12 +33,12 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
33
33
|
*
|
|
34
34
|
* @param {string} code
|
|
35
35
|
* @param {string} code2 Unique identifier for the object.
|
|
36
|
+
* @param {string} expand Fields to expand response by
|
|
36
37
|
* @param {string} [authorization] Bearer Token
|
|
37
|
-
* @param {string} [expand] Fields to expand response by
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
getRefund: (code: string, code2: string,
|
|
41
|
+
getRefund: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @param {string} [authorization] Bearer Token
|
|
@@ -70,12 +70,12 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
70
70
|
*
|
|
71
71
|
* @param {string} code
|
|
72
72
|
* @param {string} code2 Unique identifier for the object.
|
|
73
|
+
* @param {string} expand Fields to expand response by
|
|
73
74
|
* @param {string} [authorization] Bearer Token
|
|
74
|
-
* @param {string} [expand] Fields to expand response by
|
|
75
75
|
* @param {*} [options] Override http request option.
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
*/
|
|
78
|
-
getRefund(code: string, code2: string,
|
|
78
|
+
getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>>;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @param {string} [authorization] Bearer Token
|
|
@@ -107,12 +107,12 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
|
|
|
107
107
|
*
|
|
108
108
|
* @param {string} code
|
|
109
109
|
* @param {string} code2 Unique identifier for the object.
|
|
110
|
+
* @param {string} expand Fields to expand response by
|
|
110
111
|
* @param {string} [authorization] Bearer Token
|
|
111
|
-
* @param {string} [expand] Fields to expand response by
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
113
113
|
* @throws {RequiredError}
|
|
114
114
|
*/
|
|
115
|
-
getRefund(code: string, code2: string,
|
|
115
|
+
getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass>;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @param {string} [authorization] Bearer Token
|
|
@@ -165,17 +165,17 @@ export interface RefundsApiGetRefundRequest {
|
|
|
165
165
|
*/
|
|
166
166
|
readonly code2: string;
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* Fields to expand response by
|
|
169
169
|
* @type {string}
|
|
170
170
|
* @memberof RefundsApiGetRefund
|
|
171
171
|
*/
|
|
172
|
-
readonly
|
|
172
|
+
readonly expand: string;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* Bearer Token
|
|
175
175
|
* @type {string}
|
|
176
176
|
* @memberof RefundsApiGetRefund
|
|
177
177
|
*/
|
|
178
|
-
readonly
|
|
178
|
+
readonly authorization?: string;
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
181
|
* Request parameters for listRefunds operation in RefundsApi.
|