@emilgroup/payment-sdk 1.4.1-beta.30 → 1.4.1-beta.31
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 +5 -15
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +34 -38
- package/api/bank-transaction-api.ts +73 -77
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/payment-methods-api.ts +52 -70
- package/api/payment-reminders-api.ts +63 -49
- package/api/payments-api.ts +52 -70
- package/api/refunds-api.ts +76 -88
- package/api/tenant-bank-account-api.ts +79 -63
- package/api/webhooks-api.ts +16 -12
- package/api.ts +2 -2
- package/dist/api/bank-accounts-api.d.ts +37 -39
- package/dist/api/bank-accounts-api.js +18 -18
- package/dist/api/bank-transaction-api.d.ts +77 -79
- package/dist/api/bank-transaction-api.js +45 -45
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- package/dist/api/payment-methods-api.d.ts +49 -58
- package/dist/api/payment-methods-api.js +32 -42
- package/dist/api/payment-reminders-api.d.ts +55 -46
- package/dist/api/payment-reminders-api.js +40 -34
- package/dist/api/payments-api.d.ts +49 -58
- package/dist/api/payments-api.js +32 -42
- package/dist/api/refunds-api.d.ts +76 -76
- package/dist/api/refunds-api.js +51 -49
- package/dist/api/tenant-bank-account-api.d.ts +71 -61
- package/dist/api/tenant-bank-account-api.js +51 -45
- package/dist/api/webhooks-api.d.ts +16 -12
- package/dist/api/webhooks-api.js +14 -10
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +20 -34
- package/dist/models/create-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/get-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/index.d.ts +4 -14
- package/dist/models/index.js +4 -14
- package/dist/models/list-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +10 -10
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/{get-bank-account-response-class.d.ts → update-tenant-bank-account-response-class.d.ts} +7 -7
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +20 -34
- package/models/create-tenant-bank-account-response-class.ts +4 -4
- package/models/get-tenant-bank-account-response-class.ts +4 -4
- package/models/index.ts +4 -14
- package/models/list-tenant-bank-account-response-class.ts +5 -5
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +10 -10
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/{create-refund-response-class.ts → update-tenant-bank-account-response-class.ts} +7 -7
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -73
- package/dist/models/create-refund-response-class.d.ts +0 -25
- 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-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/get-request-dto.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-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-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.d.ts +0 -105
- package/dist/models/refund-class.js +0 -29
- package/dist/models/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-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.ts +0 -79
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class.ts +0 -115
- package/models/transaction-class.ts +0 -60
- package/models/update-bank-account-response-class.ts +0 -31
- /package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +0 -0
- /package/dist/models/{bank-transaction-response-class.js → tenant-bank-account-class-without-expand-properties.js} +0 -0
- /package/dist/models/{create-refund-response-class.js → tenant-bank-account-class.js} +0 -0
- /package/dist/models/{get-bank-account-response-class.js → update-tenant-bank-account-response-class.js} +0 -0
|
@@ -27,31 +27,30 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
27
27
|
*/
|
|
28
28
|
createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
29
|
/**
|
|
30
|
-
* Retrieves the details of
|
|
30
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
31
31
|
* @summary Retrieve the payment method
|
|
32
|
-
* @param {string} code
|
|
33
|
-
* @param {string} code2 Unique identifier for the object.
|
|
34
|
-
* @param {string} expand Fields to expand response by
|
|
32
|
+
* @param {string} code Unique identifier for the object.
|
|
35
33
|
* @param {string} [authorization] Bearer Token
|
|
34
|
+
* @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: .<i>
|
|
36
35
|
* @param {*} [options] Override http request option.
|
|
37
36
|
* @throws {RequiredError}
|
|
38
37
|
*/
|
|
39
|
-
getPaymentMethod: (code: string,
|
|
38
|
+
getPaymentMethod: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
39
|
/**
|
|
41
|
-
* Returns a list of payment methods you have previously created.
|
|
40
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
42
41
|
* @summary List payment methods
|
|
43
42
|
* @param {string} [authorization] Bearer Token
|
|
44
43
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
45
44
|
* @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.
|
|
46
|
-
* @param {
|
|
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</i>
|
|
47
46
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
48
|
-
* @param {
|
|
49
|
-
* @param {
|
|
50
|
-
* @param {
|
|
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</i>
|
|
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: .<i>
|
|
49
|
+
* @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</i>
|
|
51
50
|
* @param {*} [options] Override http request option.
|
|
52
51
|
* @throws {RequiredError}
|
|
53
52
|
*/
|
|
54
|
-
listPaymentMethods: (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
53
|
+
listPaymentMethods: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
54
|
};
|
|
56
55
|
/**
|
|
57
56
|
* PaymentMethodsApi - functional programming interface
|
|
@@ -68,31 +67,30 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
68
67
|
*/
|
|
69
68
|
createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
70
69
|
/**
|
|
71
|
-
* Retrieves the details of
|
|
70
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
72
71
|
* @summary Retrieve the payment method
|
|
73
|
-
* @param {string} code
|
|
74
|
-
* @param {string} code2 Unique identifier for the object.
|
|
75
|
-
* @param {string} expand Fields to expand response by
|
|
72
|
+
* @param {string} code Unique identifier for the object.
|
|
76
73
|
* @param {string} [authorization] Bearer Token
|
|
74
|
+
* @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: .<i>
|
|
77
75
|
* @param {*} [options] Override http request option.
|
|
78
76
|
* @throws {RequiredError}
|
|
79
77
|
*/
|
|
80
|
-
getPaymentMethod(code: string,
|
|
78
|
+
getPaymentMethod(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
81
79
|
/**
|
|
82
|
-
* Returns a list of payment methods you have previously created.
|
|
80
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
83
81
|
* @summary List payment methods
|
|
84
82
|
* @param {string} [authorization] Bearer Token
|
|
85
83
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
86
84
|
* @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.
|
|
87
|
-
* @param {
|
|
85
|
+
* @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</i>
|
|
88
86
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
89
|
-
* @param {
|
|
90
|
-
* @param {
|
|
91
|
-
* @param {
|
|
87
|
+
* @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</i>
|
|
88
|
+
* @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: .<i>
|
|
89
|
+
* @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</i>
|
|
92
90
|
* @param {*} [options] Override http request option.
|
|
93
91
|
* @throws {RequiredError}
|
|
94
92
|
*/
|
|
95
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
93
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
96
94
|
};
|
|
97
95
|
/**
|
|
98
96
|
* PaymentMethodsApi - factory interface
|
|
@@ -109,31 +107,30 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
109
107
|
*/
|
|
110
108
|
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
111
109
|
/**
|
|
112
|
-
* Retrieves the details of
|
|
110
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
113
111
|
* @summary Retrieve the payment method
|
|
114
|
-
* @param {string} code
|
|
115
|
-
* @param {string} code2 Unique identifier for the object.
|
|
116
|
-
* @param {string} expand Fields to expand response by
|
|
112
|
+
* @param {string} code Unique identifier for the object.
|
|
117
113
|
* @param {string} [authorization] Bearer Token
|
|
114
|
+
* @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: .<i>
|
|
118
115
|
* @param {*} [options] Override http request option.
|
|
119
116
|
* @throws {RequiredError}
|
|
120
117
|
*/
|
|
121
|
-
getPaymentMethod(code: string,
|
|
118
|
+
getPaymentMethod(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
122
119
|
/**
|
|
123
|
-
* Returns a list of payment methods you have previously created.
|
|
120
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
124
121
|
* @summary List payment methods
|
|
125
122
|
* @param {string} [authorization] Bearer Token
|
|
126
123
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
127
124
|
* @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.
|
|
128
|
-
* @param {
|
|
125
|
+
* @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</i>
|
|
129
126
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
130
|
-
* @param {
|
|
131
|
-
* @param {
|
|
132
|
-
* @param {
|
|
127
|
+
* @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</i>
|
|
128
|
+
* @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: .<i>
|
|
129
|
+
* @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</i>
|
|
133
130
|
* @param {*} [options] Override http request option.
|
|
134
131
|
* @throws {RequiredError}
|
|
135
132
|
*/
|
|
136
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
133
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
|
|
137
134
|
};
|
|
138
135
|
/**
|
|
139
136
|
* Request parameters for createPaymentMethod operation in PaymentMethodsApi.
|
|
@@ -160,30 +157,24 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
|
160
157
|
* @interface PaymentMethodsApiGetPaymentMethodRequest
|
|
161
158
|
*/
|
|
162
159
|
export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
* @type {string}
|
|
166
|
-
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
167
|
-
*/
|
|
168
|
-
readonly code: string;
|
|
169
160
|
/**
|
|
170
161
|
* Unique identifier for the object.
|
|
171
162
|
* @type {string}
|
|
172
163
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
173
164
|
*/
|
|
174
|
-
readonly
|
|
165
|
+
readonly code: string;
|
|
175
166
|
/**
|
|
176
|
-
*
|
|
167
|
+
* Bearer Token
|
|
177
168
|
* @type {string}
|
|
178
169
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
179
170
|
*/
|
|
180
|
-
readonly
|
|
171
|
+
readonly authorization?: string;
|
|
181
172
|
/**
|
|
182
|
-
*
|
|
173
|
+
* 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: .<i>
|
|
183
174
|
* @type {string}
|
|
184
175
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
185
176
|
*/
|
|
186
|
-
readonly
|
|
177
|
+
readonly expand?: string;
|
|
187
178
|
}
|
|
188
179
|
/**
|
|
189
180
|
* Request parameters for listPaymentMethods operation in PaymentMethodsApi.
|
|
@@ -210,11 +201,11 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
210
201
|
*/
|
|
211
202
|
readonly pageToken?: any;
|
|
212
203
|
/**
|
|
213
|
-
* Filter the response by one or multiple fields.
|
|
214
|
-
* @type {
|
|
204
|
+
* 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</i>
|
|
205
|
+
* @type {string}
|
|
215
206
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
216
207
|
*/
|
|
217
|
-
readonly filter?:
|
|
208
|
+
readonly filter?: string;
|
|
218
209
|
/**
|
|
219
210
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
220
211
|
* @type {any}
|
|
@@ -222,23 +213,23 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
222
213
|
*/
|
|
223
214
|
readonly search?: any;
|
|
224
215
|
/**
|
|
225
|
-
*
|
|
226
|
-
* @type {
|
|
216
|
+
* 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</i>
|
|
217
|
+
* @type {string}
|
|
227
218
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
228
219
|
*/
|
|
229
|
-
readonly order?:
|
|
220
|
+
readonly order?: string;
|
|
230
221
|
/**
|
|
231
|
-
*
|
|
232
|
-
* @type {
|
|
222
|
+
* 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: .<i>
|
|
223
|
+
* @type {string}
|
|
233
224
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
234
225
|
*/
|
|
235
|
-
readonly expand?:
|
|
226
|
+
readonly expand?: string;
|
|
236
227
|
/**
|
|
237
|
-
* Filters the response by one or multiple fields.
|
|
238
|
-
* @type {
|
|
228
|
+
* 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</i>
|
|
229
|
+
* @type {string}
|
|
239
230
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
240
231
|
*/
|
|
241
|
-
readonly filters?:
|
|
232
|
+
readonly filters?: string;
|
|
242
233
|
}
|
|
243
234
|
/**
|
|
244
235
|
* PaymentMethodsApi - object-oriented interface
|
|
@@ -257,7 +248,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
257
248
|
*/
|
|
258
249
|
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
259
250
|
/**
|
|
260
|
-
* Retrieves the details of
|
|
251
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
261
252
|
* @summary Retrieve the payment method
|
|
262
253
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
263
254
|
* @param {*} [options] Override http request option.
|
|
@@ -266,7 +257,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
266
257
|
*/
|
|
267
258
|
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
268
259
|
/**
|
|
269
|
-
* Returns a list of payment methods you have previously created.
|
|
260
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
270
261
|
* @summary List payment methods
|
|
271
262
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
272
263
|
* @param {*} [options] Override http request option.
|
|
@@ -142,16 +142,15 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
* Retrieves the details of
|
|
145
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
146
146
|
* @summary Retrieve the payment method
|
|
147
|
-
* @param {string} code
|
|
148
|
-
* @param {string} code2 Unique identifier for the object.
|
|
149
|
-
* @param {string} expand Fields to expand response by
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
150
148
|
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* @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: .<i>
|
|
151
150
|
* @param {*} [options] Override http request option.
|
|
152
151
|
* @throws {RequiredError}
|
|
153
152
|
*/
|
|
154
|
-
getPaymentMethod: function (code,
|
|
153
|
+
getPaymentMethod: function (code, authorization, expand, options) {
|
|
155
154
|
if (options === void 0) { options = {}; }
|
|
156
155
|
return __awaiter(_this, void 0, void 0, function () {
|
|
157
156
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -160,10 +159,6 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
160
159
|
case 0:
|
|
161
160
|
// verify required parameter 'code' is not null or undefined
|
|
162
161
|
(0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
|
|
163
|
-
// verify required parameter 'code2' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('getPaymentMethod', 'code2', code2);
|
|
165
|
-
// verify required parameter 'expand' is not null or undefined
|
|
166
|
-
(0, common_1.assertParamExists)('getPaymentMethod', 'expand', expand);
|
|
167
162
|
localVarPath = "/paymentservice/v1/payment-methods/{code}"
|
|
168
163
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
169
164
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -181,9 +176,6 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
181
176
|
// authentication bearer required
|
|
182
177
|
// http bearer authentication required
|
|
183
178
|
_a.sent();
|
|
184
|
-
if (code2 !== undefined) {
|
|
185
|
-
localVarQueryParameter['code'] = code2;
|
|
186
|
-
}
|
|
187
179
|
if (expand !== undefined) {
|
|
188
180
|
localVarQueryParameter['expand'] = expand;
|
|
189
181
|
}
|
|
@@ -202,16 +194,16 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
202
194
|
});
|
|
203
195
|
},
|
|
204
196
|
/**
|
|
205
|
-
* Returns a list of payment methods you have previously created.
|
|
197
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
206
198
|
* @summary List payment methods
|
|
207
199
|
* @param {string} [authorization] Bearer Token
|
|
208
200
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
209
201
|
* @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.
|
|
210
|
-
* @param {
|
|
202
|
+
* @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</i>
|
|
211
203
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
212
|
-
* @param {
|
|
213
|
-
* @param {
|
|
214
|
-
* @param {
|
|
204
|
+
* @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</i>
|
|
205
|
+
* @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: .<i>
|
|
206
|
+
* @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</i>
|
|
215
207
|
* @param {*} [options] Override http request option.
|
|
216
208
|
* @throws {RequiredError}
|
|
217
209
|
*/
|
|
@@ -305,21 +297,20 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
305
297
|
});
|
|
306
298
|
},
|
|
307
299
|
/**
|
|
308
|
-
* Retrieves the details of
|
|
300
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
309
301
|
* @summary Retrieve the payment method
|
|
310
|
-
* @param {string} code
|
|
311
|
-
* @param {string} code2 Unique identifier for the object.
|
|
312
|
-
* @param {string} expand Fields to expand response by
|
|
302
|
+
* @param {string} code Unique identifier for the object.
|
|
313
303
|
* @param {string} [authorization] Bearer Token
|
|
304
|
+
* @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: .<i>
|
|
314
305
|
* @param {*} [options] Override http request option.
|
|
315
306
|
* @throws {RequiredError}
|
|
316
307
|
*/
|
|
317
|
-
getPaymentMethod: function (code,
|
|
308
|
+
getPaymentMethod: function (code, authorization, expand, options) {
|
|
318
309
|
return __awaiter(this, void 0, void 0, function () {
|
|
319
310
|
var localVarAxiosArgs;
|
|
320
311
|
return __generator(this, function (_a) {
|
|
321
312
|
switch (_a.label) {
|
|
322
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code,
|
|
313
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, authorization, expand, options)];
|
|
323
314
|
case 1:
|
|
324
315
|
localVarAxiosArgs = _a.sent();
|
|
325
316
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -328,16 +319,16 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
328
319
|
});
|
|
329
320
|
},
|
|
330
321
|
/**
|
|
331
|
-
* Returns a list of payment methods you have previously created.
|
|
322
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
332
323
|
* @summary List payment methods
|
|
333
324
|
* @param {string} [authorization] Bearer Token
|
|
334
325
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
335
326
|
* @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.
|
|
336
|
-
* @param {
|
|
327
|
+
* @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</i>
|
|
337
328
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
338
|
-
* @param {
|
|
339
|
-
* @param {
|
|
340
|
-
* @param {
|
|
329
|
+
* @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</i>
|
|
330
|
+
* @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: .<i>
|
|
331
|
+
* @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</i>
|
|
341
332
|
* @param {*} [options] Override http request option.
|
|
342
333
|
* @throws {RequiredError}
|
|
343
334
|
*/
|
|
@@ -376,29 +367,28 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
376
367
|
return localVarFp.createPaymentMethod(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
377
368
|
},
|
|
378
369
|
/**
|
|
379
|
-
* Retrieves the details of
|
|
370
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
380
371
|
* @summary Retrieve the payment method
|
|
381
|
-
* @param {string} code
|
|
382
|
-
* @param {string} code2 Unique identifier for the object.
|
|
383
|
-
* @param {string} expand Fields to expand response by
|
|
372
|
+
* @param {string} code Unique identifier for the object.
|
|
384
373
|
* @param {string} [authorization] Bearer Token
|
|
374
|
+
* @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: .<i>
|
|
385
375
|
* @param {*} [options] Override http request option.
|
|
386
376
|
* @throws {RequiredError}
|
|
387
377
|
*/
|
|
388
|
-
getPaymentMethod: function (code,
|
|
389
|
-
return localVarFp.getPaymentMethod(code,
|
|
378
|
+
getPaymentMethod: function (code, authorization, expand, options) {
|
|
379
|
+
return localVarFp.getPaymentMethod(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
390
380
|
},
|
|
391
381
|
/**
|
|
392
|
-
* Returns a list of payment methods you have previously created.
|
|
382
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
393
383
|
* @summary List payment methods
|
|
394
384
|
* @param {string} [authorization] Bearer Token
|
|
395
385
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
396
386
|
* @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.
|
|
397
|
-
* @param {
|
|
387
|
+
* @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</i>
|
|
398
388
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
399
|
-
* @param {
|
|
400
|
-
* @param {
|
|
401
|
-
* @param {
|
|
389
|
+
* @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</i>
|
|
390
|
+
* @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: .<i>
|
|
391
|
+
* @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</i>
|
|
402
392
|
* @param {*} [options] Override http request option.
|
|
403
393
|
* @throws {RequiredError}
|
|
404
394
|
*/
|
|
@@ -432,7 +422,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
432
422
|
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
433
423
|
};
|
|
434
424
|
/**
|
|
435
|
-
* Retrieves the details of
|
|
425
|
+
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
436
426
|
* @summary Retrieve the payment method
|
|
437
427
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
438
428
|
* @param {*} [options] Override http request option.
|
|
@@ -441,10 +431,10 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
441
431
|
*/
|
|
442
432
|
PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
|
|
443
433
|
var _this = this;
|
|
444
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
434
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
445
435
|
};
|
|
446
436
|
/**
|
|
447
|
-
* Returns a list of payment methods you have previously created.
|
|
437
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
448
438
|
* @summary List payment methods
|
|
449
439
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
450
440
|
* @param {*} [options] Override http request option.
|