@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.
Files changed (160) hide show
  1. package/.openapi-generator/FILES +58 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/bank-accounts-api.ts +337 -0
  6. package/api/default-api.ts +120 -0
  7. package/api/payment-methods-api.ts +577 -0
  8. package/api/payment-reminders-api.ts +556 -0
  9. package/api/payment-service-providers-api.ts +161 -0
  10. package/api/payment-setup-api.ts +264 -0
  11. package/api/payments-api.ts +489 -0
  12. package/api/webhooks-api.ts +150 -0
  13. package/api.ts +41 -0
  14. package/base.ts +251 -0
  15. package/common.ts +198 -0
  16. package/configuration.ts +101 -0
  17. package/dist/api/bank-accounts-api.d.ts +197 -0
  18. package/dist/api/bank-accounts-api.js +347 -0
  19. package/dist/api/default-api.d.ts +66 -0
  20. package/dist/api/default-api.js +196 -0
  21. package/dist/api/payment-methods-api.d.ts +327 -0
  22. package/dist/api/payment-methods-api.js +547 -0
  23. package/dist/api/payment-reminders-api.d.ts +317 -0
  24. package/dist/api/payment-reminders-api.js +538 -0
  25. package/dist/api/payment-service-providers-api.d.ts +93 -0
  26. package/dist/api/payment-service-providers-api.js +220 -0
  27. package/dist/api/payment-setup-api.d.ts +146 -0
  28. package/dist/api/payment-setup-api.js +309 -0
  29. package/dist/api/payments-api.d.ts +281 -0
  30. package/dist/api/payments-api.js +461 -0
  31. package/dist/api/webhooks-api.d.ts +91 -0
  32. package/dist/api/webhooks-api.js +209 -0
  33. package/dist/api.d.ts +19 -0
  34. package/dist/api.js +37 -0
  35. package/dist/base.d.ts +74 -0
  36. package/dist/base.js +298 -0
  37. package/dist/common.d.ts +91 -0
  38. package/dist/common.js +276 -0
  39. package/dist/configuration.d.ts +83 -0
  40. package/dist/configuration.js +44 -0
  41. package/dist/index.d.ts +15 -0
  42. package/dist/index.js +36 -0
  43. package/dist/models/bank-account-class.d.ts +54 -0
  44. package/dist/models/bank-account-class.js +15 -0
  45. package/dist/models/billing-profile-dto.d.ts +38 -0
  46. package/dist/models/billing-profile-dto.js +15 -0
  47. package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
  48. package/dist/models/billing-profile-limited-response-dto.js +15 -0
  49. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  50. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  51. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  52. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  53. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  54. package/dist/models/complete-payment-setup-response-class.js +15 -0
  55. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  56. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  57. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  58. package/dist/models/create-bank-account-request-dto.js +15 -0
  59. package/dist/models/create-payment-method-response-class.d.ts +25 -0
  60. package/dist/models/create-payment-method-response-class.js +15 -0
  61. package/dist/models/create-payment-reminder-request-dto.d.ts +65 -0
  62. package/dist/models/create-payment-reminder-request-dto.js +26 -0
  63. package/dist/models/create-payment-request-dto.d.ts +72 -0
  64. package/dist/models/create-payment-request-dto.js +15 -0
  65. package/dist/models/create-payment-response-class.d.ts +25 -0
  66. package/dist/models/create-payment-response-class.js +15 -0
  67. package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
  68. package/dist/models/create-psp-payment-method-request-dto.js +32 -0
  69. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +30 -0
  70. package/dist/models/deactivate-payment-reminder-request-dto.js +21 -0
  71. package/dist/models/get-payment-method-response-class.d.ts +25 -0
  72. package/dist/models/get-payment-method-response-class.js +15 -0
  73. package/dist/models/get-payment-response-class.d.ts +25 -0
  74. package/dist/models/get-payment-response-class.js +15 -0
  75. package/dist/models/get-request-dto.d.ts +30 -0
  76. package/dist/models/get-request-dto.js +15 -0
  77. package/dist/models/index.d.ts +37 -0
  78. package/dist/models/index.js +53 -0
  79. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  80. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  81. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  82. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  83. package/dist/models/initiate-payment-setup-request-dto.d.ts +44 -0
  84. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  85. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  86. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  87. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  88. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  89. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  90. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  91. package/dist/models/inline-response200.d.ts +54 -0
  92. package/dist/models/inline-response200.js +15 -0
  93. package/dist/models/inline-response503.d.ts +54 -0
  94. package/dist/models/inline-response503.js +15 -0
  95. package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
  96. package/dist/models/list-bank-accounts-response-class.js +15 -0
  97. package/dist/models/list-payment-methods-response-class.d.ts +31 -0
  98. package/dist/models/list-payment-methods-response-class.js +15 -0
  99. package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
  100. package/dist/models/list-payment-reminders-response-class.js +15 -0
  101. package/dist/models/list-payments-response-class.d.ts +31 -0
  102. package/dist/models/list-payments-response-class.js +15 -0
  103. package/dist/models/payment-class.d.ts +103 -0
  104. package/dist/models/payment-class.js +15 -0
  105. package/dist/models/payment-method-class.d.ts +60 -0
  106. package/dist/models/payment-method-class.js +15 -0
  107. package/dist/models/payment-reminder-class.d.ts +112 -0
  108. package/dist/models/payment-reminder-class.js +36 -0
  109. package/dist/models/sepa-direct-dto.d.ts +24 -0
  110. package/dist/models/sepa-direct-dto.js +15 -0
  111. package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
  112. package/dist/models/symphony-profile-limited-response-dto.js +15 -0
  113. package/dist/models/transaction-class.d.ts +54 -0
  114. package/dist/models/transaction-class.js +15 -0
  115. package/dist/models/validate-pspconfig-request-dto.d.ts +43 -0
  116. package/dist/models/validate-pspconfig-request-dto.js +22 -0
  117. package/dist/models/validate-pspconfig-response-class.d.ts +24 -0
  118. package/dist/models/validate-pspconfig-response-class.js +15 -0
  119. package/git_push.sh +57 -0
  120. package/index.ts +19 -0
  121. package/models/bank-account-class.ts +60 -0
  122. package/models/billing-profile-dto.ts +44 -0
  123. package/models/billing-profile-limited-response-dto.ts +60 -0
  124. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  125. package/models/complete-payment-setup-request-dto.ts +38 -0
  126. package/models/complete-payment-setup-response-class.ts +31 -0
  127. package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
  128. package/models/create-bank-account-request-dto.ts +36 -0
  129. package/models/create-payment-method-response-class.ts +31 -0
  130. package/models/create-payment-reminder-request-dto.ts +74 -0
  131. package/models/create-payment-request-dto.ts +78 -0
  132. package/models/create-payment-response-class.ts +31 -0
  133. package/models/create-psp-payment-method-request-dto.ts +70 -0
  134. package/models/deactivate-payment-reminder-request-dto.ts +39 -0
  135. package/models/get-payment-method-response-class.ts +31 -0
  136. package/models/get-payment-response-class.ts +31 -0
  137. package/models/get-request-dto.ts +36 -0
  138. package/models/index.ts +37 -0
  139. package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
  140. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  141. package/models/initiate-payment-setup-request-dto.ts +50 -0
  142. package/models/initiate-payment-setup-response-class.ts +38 -0
  143. package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
  144. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  145. package/models/inline-response200.ts +48 -0
  146. package/models/inline-response503.ts +48 -0
  147. package/models/list-bank-accounts-response-class.ts +37 -0
  148. package/models/list-payment-methods-response-class.ts +37 -0
  149. package/models/list-payment-reminders-response-class.ts +37 -0
  150. package/models/list-payments-response-class.ts +37 -0
  151. package/models/payment-class.ts +109 -0
  152. package/models/payment-method-class.ts +66 -0
  153. package/models/payment-reminder-class.ts +122 -0
  154. package/models/sepa-direct-dto.ts +30 -0
  155. package/models/symphony-profile-limited-response-dto.ts +48 -0
  156. package/models/transaction-class.ts +60 -0
  157. package/models/validate-pspconfig-request-dto.ts +52 -0
  158. package/models/validate-pspconfig-response-class.ts +30 -0
  159. package/package.json +27 -0
  160. package/tsconfig.json +22 -0
@@ -0,0 +1,197 @@
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 { CreateBankAccountRequestDto } from '../models';
16
+ import { ListBankAccountsResponseClass } from '../models';
17
+ /**
18
+ * BankAccountsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * Creates a bank account for a specified account.
24
+ * @summary Create a bank account
25
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
26
+ * @param {string} [authorization] Bearer Token
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
33
+ * @summary List bank accounts
34
+ * @param {string} [authorization] Bearer Token
35
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
36
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
37
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
38
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
39
+ * @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.
40
+ * @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.
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ };
46
+ /**
47
+ * BankAccountsApi - functional programming interface
48
+ * @export
49
+ */
50
+ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
51
+ /**
52
+ * Creates a bank account for a specified account.
53
+ * @summary Create a bank account
54
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
55
+ * @param {string} [authorization] Bearer Token
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
60
+ /**
61
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
62
+ * @summary List bank accounts
63
+ * @param {string} [authorization] Bearer Token
64
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
65
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
66
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
67
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
68
+ * @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.
69
+ * @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.
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
74
+ };
75
+ /**
76
+ * BankAccountsApi - factory interface
77
+ * @export
78
+ */
79
+ export declare const BankAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
80
+ /**
81
+ * Creates a bank account for a specified account.
82
+ * @summary Create a bank account
83
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
84
+ * @param {string} [authorization] Bearer Token
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
89
+ /**
90
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
91
+ * @summary List bank accounts
92
+ * @param {string} [authorization] Bearer Token
93
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
94
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
95
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
96
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
97
+ * @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.
98
+ * @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.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
103
+ };
104
+ /**
105
+ * Request parameters for createBankAccount operation in BankAccountsApi.
106
+ * @export
107
+ * @interface BankAccountsApiCreateBankAccountRequest
108
+ */
109
+ export interface BankAccountsApiCreateBankAccountRequest {
110
+ /**
111
+ *
112
+ * @type {CreateBankAccountRequestDto}
113
+ * @memberof BankAccountsApiCreateBankAccount
114
+ */
115
+ readonly createBankAccountRequestDto: CreateBankAccountRequestDto;
116
+ /**
117
+ * Bearer Token
118
+ * @type {string}
119
+ * @memberof BankAccountsApiCreateBankAccount
120
+ */
121
+ readonly authorization?: string;
122
+ }
123
+ /**
124
+ * Request parameters for listBankAccounts operation in BankAccountsApi.
125
+ * @export
126
+ * @interface BankAccountsApiListBankAccountsRequest
127
+ */
128
+ export interface BankAccountsApiListBankAccountsRequest {
129
+ /**
130
+ * Bearer Token
131
+ * @type {string}
132
+ * @memberof BankAccountsApiListBankAccounts
133
+ */
134
+ readonly authorization?: string;
135
+ /**
136
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
137
+ * @type {any}
138
+ * @memberof BankAccountsApiListBankAccounts
139
+ */
140
+ readonly pageSize?: any;
141
+ /**
142
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
143
+ * @type {any}
144
+ * @memberof BankAccountsApiListBankAccounts
145
+ */
146
+ readonly pageToken?: any;
147
+ /**
148
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
149
+ * @type {any}
150
+ * @memberof BankAccountsApiListBankAccounts
151
+ */
152
+ readonly filter?: any;
153
+ /**
154
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
155
+ * @type {any}
156
+ * @memberof BankAccountsApiListBankAccounts
157
+ */
158
+ readonly search?: any;
159
+ /**
160
+ * 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.
161
+ * @type {any}
162
+ * @memberof BankAccountsApiListBankAccounts
163
+ */
164
+ readonly order?: any;
165
+ /**
166
+ * 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.
167
+ * @type {any}
168
+ * @memberof BankAccountsApiListBankAccounts
169
+ */
170
+ readonly expand?: any;
171
+ }
172
+ /**
173
+ * BankAccountsApi - object-oriented interface
174
+ * @export
175
+ * @class BankAccountsApi
176
+ * @extends {BaseAPI}
177
+ */
178
+ export declare class BankAccountsApi extends BaseAPI {
179
+ /**
180
+ * Creates a bank account for a specified account.
181
+ * @summary Create a bank account
182
+ * @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ * @memberof BankAccountsApi
186
+ */
187
+ createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
188
+ /**
189
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
190
+ * @summary List bank accounts
191
+ * @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ * @memberof BankAccountsApi
195
+ */
196
+ listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
197
+ }
@@ -0,0 +1,347 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.BankAccountsApi = exports.BankAccountsApiFactory = exports.BankAccountsApiFp = exports.BankAccountsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * BankAccountsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var BankAccountsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Creates a bank account for a specified account.
97
+ * @summary Create a bank account
98
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createBankAccount: function (createBankAccountRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createBankAccountRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
112
+ localVarPath = "/paymentservice/v1/bank-accounts";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBankAccountRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
146
+ * @summary List bank accounts
147
+ * @param {string} [authorization] Bearer Token
148
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
149
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
150
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
151
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
152
+ * @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.
153
+ * @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.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ localVarPath = "/paymentservice/v1/bank-accounts";
165
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
166
+ if (configuration) {
167
+ baseOptions = configuration.baseOptions;
168
+ baseAccessToken = configuration.accessToken;
169
+ }
170
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
171
+ localVarHeaderParameter = {};
172
+ localVarQueryParameter = {};
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ case 1:
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ _a.sent();
180
+ if (pageSize !== undefined) {
181
+ localVarQueryParameter['pageSize'] = pageSize;
182
+ }
183
+ if (pageToken !== undefined) {
184
+ localVarQueryParameter['pageToken'] = pageToken;
185
+ }
186
+ if (filter !== undefined) {
187
+ localVarQueryParameter['filter'] = filter;
188
+ }
189
+ if (search !== undefined) {
190
+ localVarQueryParameter['search'] = search;
191
+ }
192
+ if (order !== undefined) {
193
+ localVarQueryParameter['order'] = order;
194
+ }
195
+ if (expand !== undefined) {
196
+ localVarQueryParameter['expand'] = expand;
197
+ }
198
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
199
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
200
+ }
201
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
202
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
204
+ return [2 /*return*/, {
205
+ url: (0, common_1.toPathString)(localVarUrlObj),
206
+ options: localVarRequestOptions,
207
+ }];
208
+ }
209
+ });
210
+ });
211
+ },
212
+ };
213
+ };
214
+ exports.BankAccountsApiAxiosParamCreator = BankAccountsApiAxiosParamCreator;
215
+ /**
216
+ * BankAccountsApi - functional programming interface
217
+ * @export
218
+ */
219
+ var BankAccountsApiFp = function (configuration) {
220
+ var localVarAxiosParamCreator = (0, exports.BankAccountsApiAxiosParamCreator)(configuration);
221
+ return {
222
+ /**
223
+ * Creates a bank account for a specified account.
224
+ * @summary Create a bank account
225
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
226
+ * @param {string} [authorization] Bearer Token
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ createBankAccount: function (createBankAccountRequestDto, authorization, options) {
231
+ return __awaiter(this, void 0, void 0, function () {
232
+ var localVarAxiosArgs;
233
+ return __generator(this, function (_a) {
234
+ switch (_a.label) {
235
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options)];
236
+ case 1:
237
+ localVarAxiosArgs = _a.sent();
238
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
239
+ }
240
+ });
241
+ });
242
+ },
243
+ /**
244
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
245
+ * @summary List bank accounts
246
+ * @param {string} [authorization] Bearer Token
247
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
248
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
249
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
250
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
251
+ * @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.
252
+ * @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.
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
257
+ return __awaiter(this, void 0, void 0, function () {
258
+ var localVarAxiosArgs;
259
+ return __generator(this, function (_a) {
260
+ switch (_a.label) {
261
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
262
+ case 1:
263
+ localVarAxiosArgs = _a.sent();
264
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
265
+ }
266
+ });
267
+ });
268
+ },
269
+ };
270
+ };
271
+ exports.BankAccountsApiFp = BankAccountsApiFp;
272
+ /**
273
+ * BankAccountsApi - factory interface
274
+ * @export
275
+ */
276
+ var BankAccountsApiFactory = function (configuration, basePath, axios) {
277
+ var localVarFp = (0, exports.BankAccountsApiFp)(configuration);
278
+ return {
279
+ /**
280
+ * Creates a bank account for a specified account.
281
+ * @summary Create a bank account
282
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
283
+ * @param {string} [authorization] Bearer Token
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ createBankAccount: function (createBankAccountRequestDto, authorization, options) {
288
+ return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
289
+ },
290
+ /**
291
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
292
+ * @summary List bank accounts
293
+ * @param {string} [authorization] Bearer Token
294
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
295
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
296
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
297
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
298
+ * @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.
299
+ * @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.
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
304
+ return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
305
+ },
306
+ };
307
+ };
308
+ exports.BankAccountsApiFactory = BankAccountsApiFactory;
309
+ /**
310
+ * BankAccountsApi - object-oriented interface
311
+ * @export
312
+ * @class BankAccountsApi
313
+ * @extends {BaseAPI}
314
+ */
315
+ var BankAccountsApi = /** @class */ (function (_super) {
316
+ __extends(BankAccountsApi, _super);
317
+ function BankAccountsApi() {
318
+ return _super !== null && _super.apply(this, arguments) || this;
319
+ }
320
+ /**
321
+ * Creates a bank account for a specified account.
322
+ * @summary Create a bank account
323
+ * @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof BankAccountsApi
327
+ */
328
+ BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
329
+ var _this = this;
330
+ return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
331
+ };
332
+ /**
333
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
334
+ * @summary List bank accounts
335
+ * @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ * @memberof BankAccountsApi
339
+ */
340
+ BankAccountsApi.prototype.listBankAccounts = function (requestParameters, options) {
341
+ var _this = this;
342
+ if (requestParameters === void 0) { requestParameters = {}; }
343
+ return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
344
+ };
345
+ return BankAccountsApi;
346
+ }(base_1.BaseAPI));
347
+ exports.BankAccountsApi = BankAccountsApi;
@@ -0,0 +1,66 @@
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 { InlineResponse200 } from '../models';
16
+ /**
17
+ * DefaultApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * DefaultApi - functional programming interface
30
+ * @export
31
+ */
32
+ export declare const DefaultApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
39
+ };
40
+ /**
41
+ * DefaultApi - factory interface
42
+ * @export
43
+ */
44
+ export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
+ /**
46
+ *
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ check(options?: any): AxiosPromise<InlineResponse200>;
51
+ };
52
+ /**
53
+ * DefaultApi - object-oriented interface
54
+ * @export
55
+ * @class DefaultApi
56
+ * @extends {BaseAPI}
57
+ */
58
+ export declare class DefaultApi extends BaseAPI {
59
+ /**
60
+ *
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof DefaultApi
64
+ */
65
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
66
+ }