@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.30
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 +10 -27
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +497 -43
- package/api/bank-transaction-api.ts +89 -53
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +62 -173
- package/api/payment-reminders-api.ts +21 -25
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +54 -59
- package/api/refunds-api.ts +20 -18
- package/api/tenant-bank-account-api.ts +71 -61
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +6 -2
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +295 -45
- package/dist/api/bank-accounts-api.js +412 -24
- package/dist/api/bank-transaction-api.d.ts +65 -45
- package/dist/api/bank-transaction-api.js +55 -40
- 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 +48 -107
- package/dist/api/payment-methods-api.js +51 -143
- package/dist/api/payment-reminders-api.d.ts +25 -27
- package/dist/api/payment-reminders-api.js +12 -12
- 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 +46 -49
- package/dist/api/payments-api.js +43 -41
- package/dist/api/refunds-api.d.ts +15 -15
- package/dist/api/refunds-api.js +15 -13
- package/dist/api/tenant-bank-account-api.d.ts +70 -57
- package/dist/api/tenant-bank-account-api.js +56 -42
- 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 +2 -1
- package/dist/base.js +5 -2
- 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-account-class.d.ts +23 -4
- package/dist/models/bank-account-class.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +7 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +15 -3
- package/dist/models/create-bank-account-request-dto.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/create-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/{complete-payment-setup-request-dto.js → create-tenant-bank-account-response-class.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-account-response-class.d.ts +25 -0
- package/dist/models/{billing-profile-dto.js → get-bank-account-response-class.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 +10 -27
- package/dist/models/index.js +10 -27
- 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/link-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → link-bank-transaction-request-dto-rest.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/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/{billing-profile-limited-response-dto.js → list-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/primary-bank-account-response-class.d.ts +42 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +2 -1
- package/dist/models/refund-class.js +3 -2
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- 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/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- 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-account-class.ts +23 -4
- package/models/bank-transaction-response-class.ts +7 -1
- package/models/create-bank-account-request-dto.ts +15 -3
- 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/create-tenant-bank-account-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-account-response-class.ts +31 -0
- 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 +10 -27
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/primary-bank-account-response-class.ts +48 -0
- package/models/refund-class.ts +3 -2
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-bank-account-response-class.ts +31 -0
- 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/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- 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-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/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/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-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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Emil Payment Service
|
|
3
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
* Contact: kontakt@emil.de
|
|
@@ -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 { CreatePaymentMethodResponseClass } from '../models';
|
|
16
|
-
import { CreatePspPaymentMethodRequestDto } from '../models';
|
|
17
|
-
import { GetPaymentMethodResponseClass } from '../models';
|
|
18
|
-
import { ListPaymentMethodsResponseClass } from '../models';
|
|
19
15
|
/**
|
|
20
16
|
* PaymentMethodsApi - axios parameter creator
|
|
21
17
|
* @export
|
|
@@ -23,41 +19,32 @@ import { ListPaymentMethodsResponseClass } from '../models';
|
|
|
23
19
|
export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
20
|
/**
|
|
25
21
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
26
|
-
* @summary Create the payment
|
|
27
|
-
* @param {
|
|
22
|
+
* @summary Create the payment method
|
|
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
|
-
createPaymentMethod: (
|
|
33
|
-
/**
|
|
34
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
35
|
-
* @summary Delete a payment method
|
|
36
|
-
* @param {number} id Unique identifier for payment method
|
|
37
|
-
* @param {string} [authorization] Bearer Token
|
|
38
|
-
* @param {*} [options] Override http request option.
|
|
39
|
-
* @throws {RequiredError}
|
|
40
|
-
*/
|
|
41
|
-
deletePaymentMethod: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
29
|
/**
|
|
43
30
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
44
|
-
* @summary Retrieve
|
|
45
|
-
* @param {string} code
|
|
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
|
|
46
35
|
* @param {string} [authorization] Bearer Token
|
|
47
|
-
* @param {string} [expand] Fields to expand response by
|
|
48
|
-
* @param {string} [expand2] Fields to expand response by
|
|
49
36
|
* @param {*} [options] Override http request option.
|
|
50
37
|
* @throws {RequiredError}
|
|
51
38
|
*/
|
|
52
|
-
getPaymentMethod: (code: string,
|
|
39
|
+
getPaymentMethod: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
40
|
/**
|
|
54
|
-
* Returns a list of payment methods you
|
|
41
|
+
* 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.
|
|
55
42
|
* @summary List payment methods
|
|
56
43
|
* @param {string} [authorization] Bearer Token
|
|
57
44
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
58
45
|
* @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.
|
|
59
46
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
60
|
-
* @param {any} [search]
|
|
47
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
61
48
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
62
49
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
63
50
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -73,48 +60,39 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
73
60
|
export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
74
61
|
/**
|
|
75
62
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
76
|
-
* @summary Create the payment
|
|
77
|
-
* @param {
|
|
78
|
-
* @param {string} [authorization] Bearer Token
|
|
79
|
-
* @param {*} [options] Override http request option.
|
|
80
|
-
* @throws {RequiredError}
|
|
81
|
-
*/
|
|
82
|
-
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>>;
|
|
83
|
-
/**
|
|
84
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
85
|
-
* @summary Delete a payment method
|
|
86
|
-
* @param {number} id Unique identifier for payment method
|
|
63
|
+
* @summary Create the payment method
|
|
64
|
+
* @param {object} body
|
|
87
65
|
* @param {string} [authorization] Bearer Token
|
|
88
66
|
* @param {*} [options] Override http request option.
|
|
89
67
|
* @throws {RequiredError}
|
|
90
68
|
*/
|
|
91
|
-
|
|
69
|
+
createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
92
70
|
/**
|
|
93
71
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
94
|
-
* @summary Retrieve
|
|
95
|
-
* @param {string} code
|
|
72
|
+
* @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
|
|
96
76
|
* @param {string} [authorization] Bearer Token
|
|
97
|
-
* @param {string} [expand] Fields to expand response by
|
|
98
|
-
* @param {string} [expand2] Fields to expand response by
|
|
99
77
|
* @param {*} [options] Override http request option.
|
|
100
78
|
* @throws {RequiredError}
|
|
101
79
|
*/
|
|
102
|
-
getPaymentMethod(code: string,
|
|
80
|
+
getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
103
81
|
/**
|
|
104
|
-
* Returns a list of payment methods you
|
|
82
|
+
* 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.
|
|
105
83
|
* @summary List payment methods
|
|
106
84
|
* @param {string} [authorization] Bearer Token
|
|
107
85
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
108
86
|
* @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.
|
|
109
87
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
110
|
-
* @param {any} [search]
|
|
88
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
111
89
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
112
90
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
113
91
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
114
92
|
* @param {*} [options] Override http request option.
|
|
115
93
|
* @throws {RequiredError}
|
|
116
94
|
*/
|
|
117
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
95
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
118
96
|
};
|
|
119
97
|
/**
|
|
120
98
|
* PaymentMethodsApi - factory interface
|
|
@@ -123,48 +101,39 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
123
101
|
export declare const PaymentMethodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
124
102
|
/**
|
|
125
103
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
126
|
-
* @summary Create the payment
|
|
127
|
-
* @param {
|
|
104
|
+
* @summary Create the payment method
|
|
105
|
+
* @param {object} body
|
|
128
106
|
* @param {string} [authorization] Bearer Token
|
|
129
107
|
* @param {*} [options] Override http request option.
|
|
130
108
|
* @throws {RequiredError}
|
|
131
109
|
*/
|
|
132
|
-
createPaymentMethod(
|
|
133
|
-
/**
|
|
134
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
135
|
-
* @summary Delete a payment method
|
|
136
|
-
* @param {number} id Unique identifier for payment method
|
|
137
|
-
* @param {string} [authorization] Bearer Token
|
|
138
|
-
* @param {*} [options] Override http request option.
|
|
139
|
-
* @throws {RequiredError}
|
|
140
|
-
*/
|
|
141
|
-
deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void>;
|
|
110
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
142
111
|
/**
|
|
143
112
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
144
|
-
* @summary Retrieve
|
|
145
|
-
* @param {string} code
|
|
113
|
+
* @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
|
|
146
117
|
* @param {string} [authorization] Bearer Token
|
|
147
|
-
* @param {string} [expand] Fields to expand response by
|
|
148
|
-
* @param {string} [expand2] Fields to expand response by
|
|
149
118
|
* @param {*} [options] Override http request option.
|
|
150
119
|
* @throws {RequiredError}
|
|
151
120
|
*/
|
|
152
|
-
getPaymentMethod(code: string,
|
|
121
|
+
getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
153
122
|
/**
|
|
154
|
-
* Returns a list of payment methods you
|
|
123
|
+
* 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.
|
|
155
124
|
* @summary List payment methods
|
|
156
125
|
* @param {string} [authorization] Bearer Token
|
|
157
126
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
158
127
|
* @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.
|
|
159
128
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
160
|
-
* @param {any} [search]
|
|
129
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
161
130
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
162
131
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
163
132
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
164
133
|
* @param {*} [options] Override http request option.
|
|
165
134
|
* @throws {RequiredError}
|
|
166
135
|
*/
|
|
167
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
136
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
|
|
168
137
|
};
|
|
169
138
|
/**
|
|
170
139
|
* Request parameters for createPaymentMethod operation in PaymentMethodsApi.
|
|
@@ -174,10 +143,10 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
174
143
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
175
144
|
/**
|
|
176
145
|
*
|
|
177
|
-
* @type {
|
|
146
|
+
* @type {object}
|
|
178
147
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
179
148
|
*/
|
|
180
|
-
readonly
|
|
149
|
+
readonly body: object;
|
|
181
150
|
/**
|
|
182
151
|
* Bearer Token
|
|
183
152
|
* @type {string}
|
|
@@ -185,25 +154,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
|
185
154
|
*/
|
|
186
155
|
readonly authorization?: string;
|
|
187
156
|
}
|
|
188
|
-
/**
|
|
189
|
-
* Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
|
|
190
|
-
* @export
|
|
191
|
-
* @interface PaymentMethodsApiDeletePaymentMethodRequest
|
|
192
|
-
*/
|
|
193
|
-
export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
194
|
-
/**
|
|
195
|
-
* Unique identifier for payment method
|
|
196
|
-
* @type {number}
|
|
197
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
198
|
-
*/
|
|
199
|
-
readonly id: number;
|
|
200
|
-
/**
|
|
201
|
-
* Bearer Token
|
|
202
|
-
* @type {string}
|
|
203
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
204
|
-
*/
|
|
205
|
-
readonly authorization?: string;
|
|
206
|
-
}
|
|
207
157
|
/**
|
|
208
158
|
* Request parameters for getPaymentMethod operation in PaymentMethodsApi.
|
|
209
159
|
* @export
|
|
@@ -211,29 +161,29 @@ export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
|
211
161
|
*/
|
|
212
162
|
export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
213
163
|
/**
|
|
214
|
-
*
|
|
164
|
+
*
|
|
215
165
|
* @type {string}
|
|
216
166
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
217
167
|
*/
|
|
218
168
|
readonly code: string;
|
|
219
169
|
/**
|
|
220
|
-
*
|
|
170
|
+
* Unique identifier for the object.
|
|
221
171
|
* @type {string}
|
|
222
172
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
223
173
|
*/
|
|
224
|
-
readonly
|
|
174
|
+
readonly code2: string;
|
|
225
175
|
/**
|
|
226
176
|
* Fields to expand response by
|
|
227
177
|
* @type {string}
|
|
228
178
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
229
179
|
*/
|
|
230
|
-
readonly expand
|
|
180
|
+
readonly expand: string;
|
|
231
181
|
/**
|
|
232
|
-
*
|
|
182
|
+
* Bearer Token
|
|
233
183
|
* @type {string}
|
|
234
184
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
235
185
|
*/
|
|
236
|
-
readonly
|
|
186
|
+
readonly authorization?: string;
|
|
237
187
|
}
|
|
238
188
|
/**
|
|
239
189
|
* Request parameters for listPaymentMethods operation in PaymentMethodsApi.
|
|
@@ -266,7 +216,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
266
216
|
*/
|
|
267
217
|
readonly filter?: any;
|
|
268
218
|
/**
|
|
269
|
-
*
|
|
219
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
270
220
|
* @type {any}
|
|
271
221
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
272
222
|
*/
|
|
@@ -299,38 +249,29 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
299
249
|
export declare class PaymentMethodsApi extends BaseAPI {
|
|
300
250
|
/**
|
|
301
251
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
302
|
-
* @summary Create the payment
|
|
252
|
+
* @summary Create the payment method
|
|
303
253
|
* @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
|
|
304
254
|
* @param {*} [options] Override http request option.
|
|
305
255
|
* @throws {RequiredError}
|
|
306
256
|
* @memberof PaymentMethodsApi
|
|
307
257
|
*/
|
|
308
|
-
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
309
|
-
/**
|
|
310
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
311
|
-
* @summary Delete a payment method
|
|
312
|
-
* @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
|
|
313
|
-
* @param {*} [options] Override http request option.
|
|
314
|
-
* @throws {RequiredError}
|
|
315
|
-
* @memberof PaymentMethodsApi
|
|
316
|
-
*/
|
|
317
|
-
deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
258
|
+
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
318
259
|
/**
|
|
319
260
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
320
|
-
* @summary Retrieve
|
|
261
|
+
* @summary Retrieve the payment method
|
|
321
262
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
322
263
|
* @param {*} [options] Override http request option.
|
|
323
264
|
* @throws {RequiredError}
|
|
324
265
|
* @memberof PaymentMethodsApi
|
|
325
266
|
*/
|
|
326
|
-
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
267
|
+
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
327
268
|
/**
|
|
328
|
-
* Returns a list of payment methods you
|
|
269
|
+
* 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.
|
|
329
270
|
* @summary List payment methods
|
|
330
271
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
331
272
|
* @param {*} [options] Override http request option.
|
|
332
273
|
* @throws {RequiredError}
|
|
333
274
|
* @memberof PaymentMethodsApi
|
|
334
275
|
*/
|
|
335
|
-
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
276
|
+
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
336
277
|
}
|