@emilgroup/payment-sdk 1.0.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 +58 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/bank-accounts-api.ts +337 -0
- package/api/default-api.ts +120 -0
- package/api/payment-methods-api.ts +577 -0
- package/api/payment-reminders-api.ts +556 -0
- package/api/payment-service-providers-api.ts +161 -0
- package/api/payment-setup-api.ts +264 -0
- package/api/payments-api.ts +489 -0
- package/api/webhooks-api.ts +150 -0
- package/api.ts +41 -0
- package/base.ts +251 -0
- package/common.ts +198 -0
- package/configuration.ts +101 -0
- package/dist/api/bank-accounts-api.d.ts +197 -0
- package/dist/api/bank-accounts-api.js +347 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api/payment-methods-api.d.ts +327 -0
- package/dist/api/payment-methods-api.js +547 -0
- package/dist/api/payment-reminders-api.d.ts +317 -0
- package/dist/api/payment-reminders-api.js +538 -0
- package/dist/api/payment-service-providers-api.d.ts +93 -0
- package/dist/api/payment-service-providers-api.js +220 -0
- package/dist/api/payment-setup-api.d.ts +146 -0
- package/dist/api/payment-setup-api.js +309 -0
- package/dist/api/payments-api.d.ts +281 -0
- package/dist/api/payments-api.js +461 -0
- package/dist/api/webhooks-api.d.ts +91 -0
- package/dist/api/webhooks-api.js +209 -0
- package/dist/api.d.ts +19 -0
- package/dist/api.js +37 -0
- package/dist/base.d.ts +74 -0
- package/dist/base.js +298 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/bank-account-class.d.ts +54 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/billing-profile-dto.d.ts +38 -0
- package/dist/models/billing-profile-dto.js +15 -0
- package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
- package/dist/models/billing-profile-limited-response-dto.js +15 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-payment-method-response-class.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +65 -0
- package/dist/models/create-payment-reminder-request-dto.js +26 -0
- package/dist/models/create-payment-request-dto.d.ts +72 -0
- package/dist/models/create-payment-request-dto.js +15 -0
- package/dist/models/create-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +30 -0
- package/dist/models/deactivate-payment-reminder-request-dto.js +21 -0
- package/dist/models/get-payment-method-response-class.d.ts +25 -0
- package/dist/models/get-payment-method-response-class.js +15 -0
- package/dist/models/get-payment-response-class.d.ts +25 -0
- package/dist/models/get-payment-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +30 -0
- package/dist/models/get-request-dto.js +15 -0
- package/dist/models/index.d.ts +37 -0
- package/dist/models/index.js +53 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +44 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/list-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-payment-methods-response-class.js +15 -0
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +31 -0
- package/dist/models/list-payments-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +103 -0
- package/dist/models/payment-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +60 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/payment-reminder-class.d.ts +112 -0
- package/dist/models/payment-reminder-class.js +36 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
- package/dist/models/symphony-profile-limited-response-dto.js +15 -0
- package/dist/models/transaction-class.d.ts +54 -0
- package/dist/models/transaction-class.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +43 -0
- package/dist/models/validate-pspconfig-request-dto.js +22 -0
- package/dist/models/validate-pspconfig-response-class.d.ts +24 -0
- package/dist/models/validate-pspconfig-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/bank-account-class.ts +60 -0
- package/models/billing-profile-dto.ts +44 -0
- package/models/billing-profile-limited-response-dto.ts +60 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-reminder-request-dto.ts +74 -0
- package/models/create-payment-request-dto.ts +78 -0
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +70 -0
- package/models/deactivate-payment-reminder-request-dto.ts +39 -0
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-request-dto.ts +36 -0
- package/models/index.ts +37 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +50 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-payment-methods-response-class.ts +37 -0
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +37 -0
- package/models/payment-class.ts +109 -0
- package/models/payment-method-class.ts +66 -0
- package/models/payment-reminder-class.ts +122 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/transaction-class.ts +60 -0
- package/models/validate-pspconfig-request-dto.ts +52 -0
- package/models/validate-pspconfig-response-class.ts +30 -0
- package/package.json +27 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePaymentRequestDto } from '../models';
|
|
16
|
+
import { CreatePaymentResponseClass } from '../models';
|
|
17
|
+
import { GetPaymentResponseClass } from '../models';
|
|
18
|
+
import { ListPaymentsResponseClass } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* PaymentsApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
* Creates a payment for a specified account. This function is idempotent.
|
|
26
|
+
* @summary Create a payment
|
|
27
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
28
|
+
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
29
|
+
* @param {string} [authorization] Bearer Token
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
createPayment: (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
|
+
/**
|
|
35
|
+
* 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
|
+
* @summary Retrieve a payment
|
|
37
|
+
* @param {string} code Unique identifier for the object.
|
|
38
|
+
* @param {string} [authorization] Bearer Token
|
|
39
|
+
* @param {string} [expand] Fields to expand response by
|
|
40
|
+
* @param {string} [expand2] Fields to expand response by
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
getPayment: (code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
* 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
|
+
* @summary List payments
|
|
48
|
+
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
50
|
+
* @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.
|
|
51
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
52
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
53
|
+
* @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.
|
|
54
|
+
* @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.
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
listPayments: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* PaymentsApi - functional programming interface
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
65
|
+
/**
|
|
66
|
+
* Creates a payment for a specified account. This function is idempotent.
|
|
67
|
+
* @summary Create a payment
|
|
68
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
69
|
+
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
70
|
+
* @param {string} [authorization] Bearer Token
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
|
|
75
|
+
/**
|
|
76
|
+
* 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
|
+
* @summary Retrieve a payment
|
|
78
|
+
* @param {string} code Unique identifier for the object.
|
|
79
|
+
* @param {string} [authorization] Bearer Token
|
|
80
|
+
* @param {string} [expand] Fields to expand response by
|
|
81
|
+
* @param {string} [expand2] Fields to expand response by
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>>;
|
|
86
|
+
/**
|
|
87
|
+
* 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
|
+
* @summary List payments
|
|
89
|
+
* @param {string} [authorization] Bearer Token
|
|
90
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
91
|
+
* @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.
|
|
92
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
93
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
94
|
+
* @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.
|
|
95
|
+
* @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.
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>>;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* PaymentsApi - factory interface
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export declare const PaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
106
|
+
/**
|
|
107
|
+
* Creates a payment for a specified account. This function is idempotent.
|
|
108
|
+
* @summary Create a payment
|
|
109
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
110
|
+
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
111
|
+
* @param {string} [authorization] Bearer Token
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
|
|
116
|
+
/**
|
|
117
|
+
* 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
|
+
* @summary Retrieve a payment
|
|
119
|
+
* @param {string} code Unique identifier for the object.
|
|
120
|
+
* @param {string} [authorization] Bearer Token
|
|
121
|
+
* @param {string} [expand] Fields to expand response by
|
|
122
|
+
* @param {string} [expand2] Fields to expand response by
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentResponseClass>;
|
|
127
|
+
/**
|
|
128
|
+
* 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
|
+
* @summary List payments
|
|
130
|
+
* @param {string} [authorization] Bearer Token
|
|
131
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
132
|
+
* @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.
|
|
133
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
134
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
135
|
+
* @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.
|
|
136
|
+
* @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.
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPaymentsResponseClass>;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Request parameters for createPayment operation in PaymentsApi.
|
|
144
|
+
* @export
|
|
145
|
+
* @interface PaymentsApiCreatePaymentRequest
|
|
146
|
+
*/
|
|
147
|
+
export interface PaymentsApiCreatePaymentRequest {
|
|
148
|
+
/**
|
|
149
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof PaymentsApiCreatePayment
|
|
152
|
+
*/
|
|
153
|
+
readonly idempotencyKey: string;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {CreatePaymentRequestDto}
|
|
157
|
+
* @memberof PaymentsApiCreatePayment
|
|
158
|
+
*/
|
|
159
|
+
readonly createPaymentRequestDto: CreatePaymentRequestDto;
|
|
160
|
+
/**
|
|
161
|
+
* Bearer Token
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof PaymentsApiCreatePayment
|
|
164
|
+
*/
|
|
165
|
+
readonly authorization?: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Request parameters for getPayment operation in PaymentsApi.
|
|
169
|
+
* @export
|
|
170
|
+
* @interface PaymentsApiGetPaymentRequest
|
|
171
|
+
*/
|
|
172
|
+
export interface PaymentsApiGetPaymentRequest {
|
|
173
|
+
/**
|
|
174
|
+
* Unique identifier for the object.
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof PaymentsApiGetPayment
|
|
177
|
+
*/
|
|
178
|
+
readonly code: string;
|
|
179
|
+
/**
|
|
180
|
+
* Bearer Token
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof PaymentsApiGetPayment
|
|
183
|
+
*/
|
|
184
|
+
readonly authorization?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Fields to expand response by
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof PaymentsApiGetPayment
|
|
189
|
+
*/
|
|
190
|
+
readonly expand?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Fields to expand response by
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof PaymentsApiGetPayment
|
|
195
|
+
*/
|
|
196
|
+
readonly expand2?: string;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Request parameters for listPayments operation in PaymentsApi.
|
|
200
|
+
* @export
|
|
201
|
+
* @interface PaymentsApiListPaymentsRequest
|
|
202
|
+
*/
|
|
203
|
+
export interface PaymentsApiListPaymentsRequest {
|
|
204
|
+
/**
|
|
205
|
+
* Bearer Token
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof PaymentsApiListPayments
|
|
208
|
+
*/
|
|
209
|
+
readonly authorization?: string;
|
|
210
|
+
/**
|
|
211
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
212
|
+
* @type {any}
|
|
213
|
+
* @memberof PaymentsApiListPayments
|
|
214
|
+
*/
|
|
215
|
+
readonly pageSize?: any;
|
|
216
|
+
/**
|
|
217
|
+
* 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.
|
|
218
|
+
* @type {any}
|
|
219
|
+
* @memberof PaymentsApiListPayments
|
|
220
|
+
*/
|
|
221
|
+
readonly pageToken?: any;
|
|
222
|
+
/**
|
|
223
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
224
|
+
* @type {any}
|
|
225
|
+
* @memberof PaymentsApiListPayments
|
|
226
|
+
*/
|
|
227
|
+
readonly filter?: any;
|
|
228
|
+
/**
|
|
229
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
230
|
+
* @type {any}
|
|
231
|
+
* @memberof PaymentsApiListPayments
|
|
232
|
+
*/
|
|
233
|
+
readonly search?: any;
|
|
234
|
+
/**
|
|
235
|
+
* 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.
|
|
236
|
+
* @type {any}
|
|
237
|
+
* @memberof PaymentsApiListPayments
|
|
238
|
+
*/
|
|
239
|
+
readonly order?: any;
|
|
240
|
+
/**
|
|
241
|
+
* 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.
|
|
242
|
+
* @type {any}
|
|
243
|
+
* @memberof PaymentsApiListPayments
|
|
244
|
+
*/
|
|
245
|
+
readonly expand?: any;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* PaymentsApi - object-oriented interface
|
|
249
|
+
* @export
|
|
250
|
+
* @class PaymentsApi
|
|
251
|
+
* @extends {BaseAPI}
|
|
252
|
+
*/
|
|
253
|
+
export declare class PaymentsApi extends BaseAPI {
|
|
254
|
+
/**
|
|
255
|
+
* Creates a payment for a specified account. This function is idempotent.
|
|
256
|
+
* @summary Create a payment
|
|
257
|
+
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof PaymentsApi
|
|
261
|
+
*/
|
|
262
|
+
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
|
|
263
|
+
/**
|
|
264
|
+
* 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
|
+
* @summary Retrieve a payment
|
|
266
|
+
* @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
* @memberof PaymentsApi
|
|
270
|
+
*/
|
|
271
|
+
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any>>;
|
|
272
|
+
/**
|
|
273
|
+
* 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
|
+
* @summary List payments
|
|
275
|
+
* @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
* @memberof PaymentsApi
|
|
279
|
+
*/
|
|
280
|
+
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any>>;
|
|
281
|
+
}
|