@emilgroup/payment-sdk 1.14.1-beta.50 → 1.14.1-beta.52
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 +6 -0
- package/README.md +2 -2
- package/api/credit-allocation-api.ts +456 -0
- package/api.ts +2 -0
- package/dist/api/credit-allocation-api.d.ts +263 -0
- package/dist/api/credit-allocation-api.js +445 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/billing-address-dto.d.ts +2 -16
- package/dist/models/billing-address-dto.js +0 -14
- package/dist/models/create-credit-allocation-request-dto.d.ts +54 -0
- package/dist/models/create-credit-allocation-request-dto.js +21 -0
- package/dist/models/create-credit-allocation-response-class.d.ts +25 -0
- package/dist/models/create-credit-allocation-response-class.js +15 -0
- package/dist/models/credit-allocation-class.d.ts +115 -0
- package/dist/models/credit-allocation-class.js +21 -0
- package/dist/models/exceeding-credit-class.d.ts +6 -0
- package/dist/models/get-credit-allocation-response-class.d.ts +25 -0
- package/dist/models/get-credit-allocation-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/list-credit-allocations-response-class.d.ts +43 -0
- package/dist/models/list-credit-allocations-response-class.js +15 -0
- package/models/billing-address-dto.ts +2 -19
- package/models/create-credit-allocation-request-dto.ts +63 -0
- package/models/create-credit-allocation-response-class.ts +31 -0
- package/models/credit-allocation-class.ts +124 -0
- package/models/exceeding-credit-class.ts +6 -0
- package/models/get-credit-allocation-response-class.ts +31 -0
- package/models/index.ts +5 -0
- package/models/list-credit-allocations-response-class.ts +49 -0
- package/package.json +1 -1
|
@@ -0,0 +1,263 @@
|
|
|
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 { CreateCreditAllocationRequestDto } from '../models';
|
|
16
|
+
import { CreateCreditAllocationResponseClass } from '../models';
|
|
17
|
+
import { GetCreditAllocationResponseClass } from '../models';
|
|
18
|
+
import { ListCreditAllocationsResponseClass } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* CreditAllocationApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const CreditAllocationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
* Create a credit allocation for existing exceeding credits. **Required Permissions** \"payment-management.payments.create\", \"accounting-management.financial-accounts.view\"
|
|
26
|
+
* @summary Create the credit allocation
|
|
27
|
+
* @param {CreateCreditAllocationRequestDto} createCreditAllocationRequestDto
|
|
28
|
+
* @param {string} [authorization] Bearer Token
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
createAllocateCredit: (createCreditAllocationRequestDto: CreateCreditAllocationRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
/**
|
|
34
|
+
* Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
|
|
35
|
+
* @summary Retrieve the credit allocation entry
|
|
36
|
+
* @param {string} code Code of the credit allocation to get
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
getCreditAllocation: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
44
|
+
* @summary List credit allocations
|
|
45
|
+
* @param {string} [authorization] Bearer Token
|
|
46
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
47
|
+
* @param {string} [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.
|
|
48
|
+
* @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, policyCode, createdAt, updatedAt</i>
|
|
49
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, policyCode</i>
|
|
50
|
+
* @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, updatedAt</i>
|
|
51
|
+
* @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: exceedingCredits<i>
|
|
52
|
+
* @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, policyCode, createdAt, updatedAt</i>
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
listCreditAllocations: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* CreditAllocationApi - functional programming interface
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
export declare const CreditAllocationApiFp: (configuration?: Configuration) => {
|
|
63
|
+
/**
|
|
64
|
+
* Create a credit allocation for existing exceeding credits. **Required Permissions** \"payment-management.payments.create\", \"accounting-management.financial-accounts.view\"
|
|
65
|
+
* @summary Create the credit allocation
|
|
66
|
+
* @param {CreateCreditAllocationRequestDto} createCreditAllocationRequestDto
|
|
67
|
+
* @param {string} [authorization] Bearer Token
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
createAllocateCredit(createCreditAllocationRequestDto: CreateCreditAllocationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCreditAllocationResponseClass>>;
|
|
72
|
+
/**
|
|
73
|
+
* Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
|
|
74
|
+
* @summary Retrieve the credit allocation entry
|
|
75
|
+
* @param {string} code Code of the credit allocation to get
|
|
76
|
+
* @param {string} [authorization] Bearer Token
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
getCreditAllocation(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCreditAllocationResponseClass>>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
83
|
+
* @summary List credit allocations
|
|
84
|
+
* @param {string} [authorization] Bearer Token
|
|
85
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
86
|
+
* @param {string} [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 {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, policyCode, createdAt, updatedAt</i>
|
|
88
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, policyCode</i>
|
|
89
|
+
* @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, updatedAt</i>
|
|
90
|
+
* @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: exceedingCredits<i>
|
|
91
|
+
* @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, policyCode, createdAt, updatedAt</i>
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
listCreditAllocations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCreditAllocationsResponseClass>>;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* CreditAllocationApi - factory interface
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const CreditAllocationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
102
|
+
/**
|
|
103
|
+
* Create a credit allocation for existing exceeding credits. **Required Permissions** \"payment-management.payments.create\", \"accounting-management.financial-accounts.view\"
|
|
104
|
+
* @summary Create the credit allocation
|
|
105
|
+
* @param {CreateCreditAllocationRequestDto} createCreditAllocationRequestDto
|
|
106
|
+
* @param {string} [authorization] Bearer Token
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
createAllocateCredit(createCreditAllocationRequestDto: CreateCreditAllocationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCreditAllocationResponseClass>;
|
|
111
|
+
/**
|
|
112
|
+
* Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
|
|
113
|
+
* @summary Retrieve the credit allocation entry
|
|
114
|
+
* @param {string} code Code of the credit allocation to get
|
|
115
|
+
* @param {string} [authorization] Bearer Token
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
getCreditAllocation(code: string, authorization?: string, options?: any): AxiosPromise<GetCreditAllocationResponseClass>;
|
|
120
|
+
/**
|
|
121
|
+
* Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
122
|
+
* @summary List credit allocations
|
|
123
|
+
* @param {string} [authorization] Bearer Token
|
|
124
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
125
|
+
* @param {string} [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.
|
|
126
|
+
* @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, policyCode, createdAt, updatedAt</i>
|
|
127
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, policyCode</i>
|
|
128
|
+
* @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, updatedAt</i>
|
|
129
|
+
* @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: exceedingCredits<i>
|
|
130
|
+
* @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, policyCode, createdAt, updatedAt</i>
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
listCreditAllocations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCreditAllocationsResponseClass>;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Request parameters for createAllocateCredit operation in CreditAllocationApi.
|
|
138
|
+
* @export
|
|
139
|
+
* @interface CreditAllocationApiCreateAllocateCreditRequest
|
|
140
|
+
*/
|
|
141
|
+
export interface CreditAllocationApiCreateAllocateCreditRequest {
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {CreateCreditAllocationRequestDto}
|
|
145
|
+
* @memberof CreditAllocationApiCreateAllocateCredit
|
|
146
|
+
*/
|
|
147
|
+
readonly createCreditAllocationRequestDto: CreateCreditAllocationRequestDto;
|
|
148
|
+
/**
|
|
149
|
+
* Bearer Token
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof CreditAllocationApiCreateAllocateCredit
|
|
152
|
+
*/
|
|
153
|
+
readonly authorization?: string;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Request parameters for getCreditAllocation operation in CreditAllocationApi.
|
|
157
|
+
* @export
|
|
158
|
+
* @interface CreditAllocationApiGetCreditAllocationRequest
|
|
159
|
+
*/
|
|
160
|
+
export interface CreditAllocationApiGetCreditAllocationRequest {
|
|
161
|
+
/**
|
|
162
|
+
* Code of the credit allocation to get
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof CreditAllocationApiGetCreditAllocation
|
|
165
|
+
*/
|
|
166
|
+
readonly code: string;
|
|
167
|
+
/**
|
|
168
|
+
* Bearer Token
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @memberof CreditAllocationApiGetCreditAllocation
|
|
171
|
+
*/
|
|
172
|
+
readonly authorization?: string;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Request parameters for listCreditAllocations operation in CreditAllocationApi.
|
|
176
|
+
* @export
|
|
177
|
+
* @interface CreditAllocationApiListCreditAllocationsRequest
|
|
178
|
+
*/
|
|
179
|
+
export interface CreditAllocationApiListCreditAllocationsRequest {
|
|
180
|
+
/**
|
|
181
|
+
* Bearer Token
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof CreditAllocationApiListCreditAllocations
|
|
184
|
+
*/
|
|
185
|
+
readonly authorization?: string;
|
|
186
|
+
/**
|
|
187
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
188
|
+
* @type {number}
|
|
189
|
+
* @memberof CreditAllocationApiListCreditAllocations
|
|
190
|
+
*/
|
|
191
|
+
readonly pageSize?: number;
|
|
192
|
+
/**
|
|
193
|
+
* 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.
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof CreditAllocationApiListCreditAllocations
|
|
196
|
+
*/
|
|
197
|
+
readonly pageToken?: string;
|
|
198
|
+
/**
|
|
199
|
+
* 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, policyCode, createdAt, updatedAt</i>
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof CreditAllocationApiListCreditAllocations
|
|
202
|
+
*/
|
|
203
|
+
readonly filter?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, policyCode</i>
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof CreditAllocationApiListCreditAllocations
|
|
208
|
+
*/
|
|
209
|
+
readonly search?: string;
|
|
210
|
+
/**
|
|
211
|
+
* 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, updatedAt</i>
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof CreditAllocationApiListCreditAllocations
|
|
214
|
+
*/
|
|
215
|
+
readonly order?: string;
|
|
216
|
+
/**
|
|
217
|
+
* 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: exceedingCredits<i>
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof CreditAllocationApiListCreditAllocations
|
|
220
|
+
*/
|
|
221
|
+
readonly expand?: string;
|
|
222
|
+
/**
|
|
223
|
+
* 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, policyCode, createdAt, updatedAt</i>
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof CreditAllocationApiListCreditAllocations
|
|
226
|
+
*/
|
|
227
|
+
readonly filters?: string;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* CreditAllocationApi - object-oriented interface
|
|
231
|
+
* @export
|
|
232
|
+
* @class CreditAllocationApi
|
|
233
|
+
* @extends {BaseAPI}
|
|
234
|
+
*/
|
|
235
|
+
export declare class CreditAllocationApi extends BaseAPI {
|
|
236
|
+
/**
|
|
237
|
+
* Create a credit allocation for existing exceeding credits. **Required Permissions** \"payment-management.payments.create\", \"accounting-management.financial-accounts.view\"
|
|
238
|
+
* @summary Create the credit allocation
|
|
239
|
+
* @param {CreditAllocationApiCreateAllocateCreditRequest} requestParameters Request parameters.
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
* @memberof CreditAllocationApi
|
|
243
|
+
*/
|
|
244
|
+
createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}>>;
|
|
245
|
+
/**
|
|
246
|
+
* Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
|
|
247
|
+
* @summary Retrieve the credit allocation entry
|
|
248
|
+
* @param {CreditAllocationApiGetCreditAllocationRequest} requestParameters Request parameters.
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
* @memberof CreditAllocationApi
|
|
252
|
+
*/
|
|
253
|
+
getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}>>;
|
|
254
|
+
/**
|
|
255
|
+
* Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
256
|
+
* @summary List credit allocations
|
|
257
|
+
* @param {CreditAllocationApiListCreditAllocationsRequest} requestParameters Request parameters.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof CreditAllocationApi
|
|
261
|
+
*/
|
|
262
|
+
listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}>>;
|
|
263
|
+
}
|