@emilgroup/payment-sdk-node 1.0.1 → 1.2.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 (129) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +3 -3
  3. package/api/bank-accounts-api.ts +1 -1
  4. package/api/payment-methods-api.ts +1 -1
  5. package/api/payment-reminders-api.ts +560 -0
  6. package/api/payment-service-providers-api.ts +1 -1
  7. package/api/payment-setup-api.ts +1 -1
  8. package/api/payments-api.ts +1 -1
  9. package/api/webhooks-api.ts +1 -1
  10. package/api.ts +3 -1
  11. package/base.ts +23 -33
  12. package/common.ts +62 -1
  13. package/configuration.ts +1 -1
  14. package/dist/api/bank-accounts-api.d.ts +1 -1
  15. package/dist/api/bank-accounts-api.js +2 -2
  16. package/dist/api/payment-methods-api.d.ts +1 -1
  17. package/dist/api/payment-methods-api.js +2 -2
  18. package/dist/api/payment-reminders-api.d.ts +317 -0
  19. package/dist/api/payment-reminders-api.js +542 -0
  20. package/dist/api/payment-service-providers-api.d.ts +1 -1
  21. package/dist/api/payment-service-providers-api.js +2 -2
  22. package/dist/api/payment-setup-api.d.ts +1 -1
  23. package/dist/api/payment-setup-api.js +2 -2
  24. package/dist/api/payments-api.d.ts +1 -1
  25. package/dist/api/payments-api.js +2 -2
  26. package/dist/api/webhooks-api.d.ts +1 -1
  27. package/dist/api/webhooks-api.js +2 -2
  28. package/dist/api.d.ts +2 -1
  29. package/dist/api.js +2 -1
  30. package/dist/base.d.ts +2 -3
  31. package/dist/base.js +20 -22
  32. package/dist/common.d.ts +27 -1
  33. package/dist/common.js +36 -3
  34. package/dist/configuration.d.ts +1 -1
  35. package/dist/configuration.js +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +1 -1
  39. package/dist/models/complete-braintree-payment-setup-request-dto.js +1 -1
  40. package/dist/models/complete-payment-setup-request-dto.d.ts +1 -1
  41. package/dist/models/complete-payment-setup-request-dto.js +1 -1
  42. package/dist/models/complete-payment-setup-response-class.d.ts +1 -1
  43. package/dist/models/complete-payment-setup-response-class.js +1 -1
  44. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +9 -3
  45. package/dist/models/complete-stripe-payment-setup-request-dto.js +1 -1
  46. package/dist/models/create-bank-account-request-dto.d.ts +1 -1
  47. package/dist/models/create-bank-account-request-dto.js +1 -1
  48. package/dist/models/create-payment-method-response-class.d.ts +1 -1
  49. package/dist/models/create-payment-method-response-class.js +1 -1
  50. package/dist/models/create-payment-reminder-request-dto.d.ts +63 -0
  51. package/dist/models/create-payment-reminder-request-dto.js +24 -0
  52. package/dist/models/create-payment-request-dto.d.ts +7 -1
  53. package/dist/models/create-payment-request-dto.js +1 -1
  54. package/dist/models/create-payment-response-class.d.ts +1 -1
  55. package/dist/models/create-payment-response-class.js +1 -1
  56. package/dist/models/create-psp-payment-method-request-dto.d.ts +2 -2
  57. package/dist/models/create-psp-payment-method-request-dto.js +1 -1
  58. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +30 -0
  59. package/dist/models/deactivate-payment-reminder-request-dto.js +21 -0
  60. package/dist/models/get-payment-method-response-class.d.ts +1 -1
  61. package/dist/models/get-payment-method-response-class.js +1 -1
  62. package/dist/models/get-payment-response-class.d.ts +1 -1
  63. package/dist/models/get-payment-response-class.js +1 -1
  64. package/dist/models/get-request-dto.d.ts +1 -1
  65. package/dist/models/get-request-dto.js +1 -1
  66. package/dist/models/index.d.ts +4 -0
  67. package/dist/models/index.js +4 -0
  68. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +9 -3
  69. package/dist/models/initiate-braintree-payment-setup-request-dto.js +1 -1
  70. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +1 -1
  71. package/dist/models/initiate-braintree-payment-setup-response-class.js +1 -1
  72. package/dist/models/initiate-payment-setup-request-dto.d.ts +1 -1
  73. package/dist/models/initiate-payment-setup-request-dto.js +1 -1
  74. package/dist/models/initiate-payment-setup-response-class.d.ts +1 -1
  75. package/dist/models/initiate-payment-setup-response-class.js +1 -1
  76. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +9 -3
  77. package/dist/models/initiate-stripe-payment-setup-request-dto.js +1 -1
  78. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +1 -1
  79. package/dist/models/initiate-stripe-payment-setup-response-class.js +1 -1
  80. package/dist/models/list-payment-methods-response-class.d.ts +1 -1
  81. package/dist/models/list-payment-methods-response-class.js +1 -1
  82. package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
  83. package/dist/models/list-payment-reminders-response-class.js +15 -0
  84. package/dist/models/list-payments-response-class.d.ts +1 -1
  85. package/dist/models/list-payments-response-class.js +1 -1
  86. package/dist/models/payment-class.d.ts +1 -1
  87. package/dist/models/payment-class.js +1 -1
  88. package/dist/models/payment-method-class.d.ts +1 -1
  89. package/dist/models/payment-method-class.js +1 -1
  90. package/dist/models/payment-reminder-class.d.ts +108 -0
  91. package/dist/models/payment-reminder-class.js +32 -0
  92. package/dist/models/sepa-direct-dto.d.ts +1 -1
  93. package/dist/models/sepa-direct-dto.js +1 -1
  94. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -2
  95. package/dist/models/validate-pspconfig-request-dto.js +1 -1
  96. package/dist/models/validate-pspconfig-response-class.d.ts +1 -1
  97. package/dist/models/validate-pspconfig-response-class.js +1 -1
  98. package/index.ts +1 -1
  99. package/models/complete-braintree-payment-setup-request-dto.ts +1 -1
  100. package/models/complete-payment-setup-request-dto.ts +1 -1
  101. package/models/complete-payment-setup-response-class.ts +1 -1
  102. package/models/complete-stripe-payment-setup-request-dto.ts +9 -3
  103. package/models/create-bank-account-request-dto.ts +1 -1
  104. package/models/create-payment-method-response-class.ts +1 -1
  105. package/models/create-payment-reminder-request-dto.ts +72 -0
  106. package/models/create-payment-request-dto.ts +7 -1
  107. package/models/create-payment-response-class.ts +1 -1
  108. package/models/create-psp-payment-method-request-dto.ts +1 -1
  109. package/models/deactivate-payment-reminder-request-dto.ts +39 -0
  110. package/models/get-payment-method-response-class.ts +1 -1
  111. package/models/get-payment-response-class.ts +1 -1
  112. package/models/get-request-dto.ts +1 -1
  113. package/models/index.ts +4 -0
  114. package/models/initiate-braintree-payment-setup-request-dto.ts +9 -3
  115. package/models/initiate-braintree-payment-setup-response-class.ts +1 -1
  116. package/models/initiate-payment-setup-request-dto.ts +1 -1
  117. package/models/initiate-payment-setup-response-class.ts +1 -1
  118. package/models/initiate-stripe-payment-setup-request-dto.ts +9 -3
  119. package/models/initiate-stripe-payment-setup-response-class.ts +1 -1
  120. package/models/list-payment-methods-response-class.ts +1 -1
  121. package/models/list-payment-reminders-response-class.ts +37 -0
  122. package/models/list-payments-response-class.ts +1 -1
  123. package/models/payment-class.ts +1 -1
  124. package/models/payment-method-class.ts +1 -1
  125. package/models/payment-reminder-class.ts +118 -0
  126. package/models/sepa-direct-dto.ts +1 -1
  127. package/models/validate-pspconfig-request-dto.ts +1 -1
  128. package/models/validate-pspconfig-response-class.ts +1 -1
  129. package/package.json +2 -3
@@ -5,6 +5,7 @@ README.md
5
5
  api.ts
6
6
  api/bank-accounts-api.ts
7
7
  api/payment-methods-api.ts
8
+ api/payment-reminders-api.ts
8
9
  api/payment-service-providers-api.ts
9
10
  api/payment-setup-api.ts
10
11
  api/payments-api.ts
@@ -20,9 +21,11 @@ models/complete-payment-setup-response-class.ts
20
21
  models/complete-stripe-payment-setup-request-dto.ts
21
22
  models/create-bank-account-request-dto.ts
22
23
  models/create-payment-method-response-class.ts
24
+ models/create-payment-reminder-request-dto.ts
23
25
  models/create-payment-request-dto.ts
24
26
  models/create-payment-response-class.ts
25
27
  models/create-psp-payment-method-request-dto.ts
28
+ models/deactivate-payment-reminder-request-dto.ts
26
29
  models/get-payment-method-response-class.ts
27
30
  models/get-payment-response-class.ts
28
31
  models/get-request-dto.ts
@@ -34,9 +37,11 @@ models/initiate-payment-setup-response-class.ts
34
37
  models/initiate-stripe-payment-setup-request-dto.ts
35
38
  models/initiate-stripe-payment-setup-response-class.ts
36
39
  models/list-payment-methods-response-class.ts
40
+ models/list-payment-reminders-response-class.ts
37
41
  models/list-payments-response-class.ts
38
42
  models/payment-class.ts
39
43
  models/payment-method-class.ts
44
+ models/payment-reminder-class.ts
40
45
  models/sepa-direct-dto.ts
41
46
  models/validate-pspconfig-request-dto.ts
42
47
  models/validate-pspconfig-response-class.ts
package/README.md CHANGED
@@ -10,18 +10,18 @@ Module system
10
10
  * CommonJS
11
11
  * ES6 module system
12
12
 
13
- Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
13
+ Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)). For more information, you can go to [Emil Api documentation](https://emil.stoplight.io/docs/emil-api/).
14
14
 
15
15
  ## Consuming
16
16
 
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk-node@1.0.1 --save
20
+ npm install @emilgroup/payment-sdk-node@1.2.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.0.1
24
+ yarn add @emilgroup/payment-sdk-node@1.2.0
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -0,0 +1,560 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreatePaymentReminderRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { DeactivatePaymentReminderRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { ListPaymentRemindersResponseClass } from '../models';
29
+ // URLSearchParams not necessarily used
30
+ // @ts-ignore
31
+ import { URL, URLSearchParams } from 'url';
32
+ const FormData = require('form-data');
33
+ /**
34
+ * PaymentRemindersApi - axios parameter creator
35
+ * @export
36
+ */
37
+ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Configuration) {
38
+ return {
39
+ /**
40
+ * This will create a payment reminder in the database.
41
+ * @summary Create the payment-reminder
42
+ * @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
43
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ createPaymentReminder: async (createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48
+ // verify required parameter 'createPaymentReminderRequestDto' is not null or undefined
49
+ assertParamExists('createPaymentReminder', 'createPaymentReminderRequestDto', createPaymentReminderRequestDto)
50
+ const localVarPath = `/paymentservice/v1/payment-reminders`;
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ let baseAccessToken;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ baseAccessToken = configuration.accessToken;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication bearer required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
69
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ }
71
+
72
+
73
+
74
+ localVarHeaderParameter['Content-Type'] = 'application/json';
75
+
76
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
77
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
+ localVarRequestOptions.data = serializeDataIfNeeded(createPaymentReminderRequestDto, localVarRequestOptions, configuration)
80
+
81
+ return {
82
+ url: toPathString(localVarUrlObj),
83
+ options: localVarRequestOptions,
84
+ };
85
+ },
86
+ /**
87
+ * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
88
+ * @summary Update the payment-reminder
89
+ * @param {string} code Unique identifier for the object.
90
+ * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
91
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ deactivatePaymentReminder: async (code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
+ // verify required parameter 'code' is not null or undefined
97
+ assertParamExists('deactivatePaymentReminder', 'code', code)
98
+ // verify required parameter 'deactivatePaymentReminderRequestDto' is not null or undefined
99
+ assertParamExists('deactivatePaymentReminder', 'deactivatePaymentReminderRequestDto', deactivatePaymentReminderRequestDto)
100
+ const localVarPath = `/paymentservice/v1/payment-reminders/{code}/deactivate`
101
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ let baseAccessToken;
106
+ if (configuration) {
107
+ baseOptions = configuration.baseOptions;
108
+ baseAccessToken = configuration.accessToken;
109
+ }
110
+
111
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
112
+ const localVarHeaderParameter = {} as any;
113
+ const localVarQueryParameter = {} as any;
114
+
115
+ // authentication bearer required
116
+ // http bearer authentication required
117
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
118
+
119
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
120
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
121
+ }
122
+
123
+
124
+
125
+ localVarHeaderParameter['Content-Type'] = 'application/json';
126
+
127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
130
+ localVarRequestOptions.data = serializeDataIfNeeded(deactivatePaymentReminderRequestDto, localVarRequestOptions, configuration)
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
139
+ * @summary Retrieve the payment reminder
140
+ * @param {string} code Unique identifier for the object.
141
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ getPolicy: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'code' is not null or undefined
147
+ assertParamExists('getPolicy', 'code', code)
148
+ const localVarPath = `/paymentservice/v1/payment-reminders/{code}`
149
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152
+ let baseOptions;
153
+ let baseAccessToken;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ baseAccessToken = configuration.accessToken;
157
+ }
158
+
159
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
160
+ const localVarHeaderParameter = {} as any;
161
+ const localVarQueryParameter = {} as any;
162
+
163
+ // authentication bearer required
164
+ // http bearer authentication required
165
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
166
+
167
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
168
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
169
+ }
170
+
171
+
172
+
173
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
174
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
175
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
176
+
177
+ return {
178
+ url: toPathString(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ },
182
+ /**
183
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
184
+ * @summary List payment reminders
185
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
186
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
187
+ * @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.
188
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
189
+ * @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.
190
+ * @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.
191
+ * @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.
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ listPaymentReminders: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
196
+ const localVarPath = `/paymentservice/v1/payment-reminders`;
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ let baseAccessToken;
201
+ if (configuration) {
202
+ baseOptions = configuration.baseOptions;
203
+ baseAccessToken = configuration.accessToken;
204
+ }
205
+
206
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
207
+ const localVarHeaderParameter = {} as any;
208
+ const localVarQueryParameter = {} as any;
209
+
210
+ // authentication bearer required
211
+ // http bearer authentication required
212
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
213
+
214
+ if (pageSize !== undefined) {
215
+ localVarQueryParameter['pageSize'] = pageSize;
216
+ }
217
+
218
+ if (pageToken !== undefined) {
219
+ localVarQueryParameter['pageToken'] = pageToken;
220
+ }
221
+
222
+ if (filter !== undefined) {
223
+ localVarQueryParameter['filter'] = filter;
224
+ }
225
+
226
+ if (search !== undefined) {
227
+ localVarQueryParameter['search'] = search;
228
+ }
229
+
230
+ if (order !== undefined) {
231
+ localVarQueryParameter['order'] = order;
232
+ }
233
+
234
+ if (expand !== undefined) {
235
+ localVarQueryParameter['expand'] = expand;
236
+ }
237
+
238
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
239
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
240
+ }
241
+
242
+
243
+
244
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
246
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
247
+
248
+ return {
249
+ url: toPathString(localVarUrlObj),
250
+ options: localVarRequestOptions,
251
+ };
252
+ },
253
+ }
254
+ };
255
+
256
+ /**
257
+ * PaymentRemindersApi - functional programming interface
258
+ * @export
259
+ */
260
+ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
261
+ const localVarAxiosParamCreator = PaymentRemindersApiAxiosParamCreator(configuration)
262
+ return {
263
+ /**
264
+ * This will create a payment reminder in the database.
265
+ * @summary Create the payment-reminder
266
+ * @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
267
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
272
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
273
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
274
+ },
275
+ /**
276
+ * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
277
+ * @summary Update the payment-reminder
278
+ * @param {string} code Unique identifier for the object.
279
+ * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
280
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
285
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
286
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
287
+ },
288
+ /**
289
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
290
+ * @summary Retrieve the payment reminder
291
+ * @param {string} code Unique identifier for the object.
292
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
297
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
298
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
299
+ },
300
+ /**
301
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
302
+ * @summary List payment reminders
303
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
304
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
305
+ * @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.
306
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
307
+ * @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.
308
+ * @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.
309
+ * @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.
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options);
315
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
316
+ },
317
+ }
318
+ };
319
+
320
+ /**
321
+ * PaymentRemindersApi - factory interface
322
+ * @export
323
+ */
324
+ export const PaymentRemindersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
325
+ const localVarFp = PaymentRemindersApiFp(configuration)
326
+ return {
327
+ /**
328
+ * This will create a payment reminder in the database.
329
+ * @summary Create the payment-reminder
330
+ * @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
331
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
336
+ return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
337
+ },
338
+ /**
339
+ * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
340
+ * @summary Update the payment-reminder
341
+ * @param {string} code Unique identifier for the object.
342
+ * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
343
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
348
+ return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
349
+ },
350
+ /**
351
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
352
+ * @summary Retrieve the payment reminder
353
+ * @param {string} code Unique identifier for the object.
354
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<object> {
359
+ return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
360
+ },
361
+ /**
362
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
363
+ * @summary List payment reminders
364
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
366
+ * @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.
367
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
368
+ * @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.
369
+ * @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.
370
+ * @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.
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
375
+ return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
376
+ },
377
+ };
378
+ };
379
+
380
+ /**
381
+ * Request parameters for createPaymentReminder operation in PaymentRemindersApi.
382
+ * @export
383
+ * @interface PaymentRemindersApiCreatePaymentReminderRequest
384
+ */
385
+ export interface PaymentRemindersApiCreatePaymentReminderRequest {
386
+ /**
387
+ *
388
+ * @type {CreatePaymentReminderRequestDto}
389
+ * @memberof PaymentRemindersApiCreatePaymentReminder
390
+ */
391
+ readonly createPaymentReminderRequestDto: CreatePaymentReminderRequestDto
392
+
393
+ /**
394
+ * Bearer Token: provided by the login endpoint under the name accessToken.
395
+ * @type {string}
396
+ * @memberof PaymentRemindersApiCreatePaymentReminder
397
+ */
398
+ readonly authorization?: string
399
+ }
400
+
401
+ /**
402
+ * Request parameters for deactivatePaymentReminder operation in PaymentRemindersApi.
403
+ * @export
404
+ * @interface PaymentRemindersApiDeactivatePaymentReminderRequest
405
+ */
406
+ export interface PaymentRemindersApiDeactivatePaymentReminderRequest {
407
+ /**
408
+ * Unique identifier for the object.
409
+ * @type {string}
410
+ * @memberof PaymentRemindersApiDeactivatePaymentReminder
411
+ */
412
+ readonly code: string
413
+
414
+ /**
415
+ *
416
+ * @type {DeactivatePaymentReminderRequestDto}
417
+ * @memberof PaymentRemindersApiDeactivatePaymentReminder
418
+ */
419
+ readonly deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto
420
+
421
+ /**
422
+ * Bearer Token: provided by the login endpoint under the name accessToken.
423
+ * @type {string}
424
+ * @memberof PaymentRemindersApiDeactivatePaymentReminder
425
+ */
426
+ readonly authorization?: string
427
+ }
428
+
429
+ /**
430
+ * Request parameters for getPolicy operation in PaymentRemindersApi.
431
+ * @export
432
+ * @interface PaymentRemindersApiGetPolicyRequest
433
+ */
434
+ export interface PaymentRemindersApiGetPolicyRequest {
435
+ /**
436
+ * Unique identifier for the object.
437
+ * @type {string}
438
+ * @memberof PaymentRemindersApiGetPolicy
439
+ */
440
+ readonly code: string
441
+
442
+ /**
443
+ * Bearer Token: provided by the login endpoint under the name accessToken.
444
+ * @type {string}
445
+ * @memberof PaymentRemindersApiGetPolicy
446
+ */
447
+ readonly authorization?: string
448
+ }
449
+
450
+ /**
451
+ * Request parameters for listPaymentReminders operation in PaymentRemindersApi.
452
+ * @export
453
+ * @interface PaymentRemindersApiListPaymentRemindersRequest
454
+ */
455
+ export interface PaymentRemindersApiListPaymentRemindersRequest {
456
+ /**
457
+ * Bearer Token: provided by the login endpoint under the name accessToken.
458
+ * @type {string}
459
+ * @memberof PaymentRemindersApiListPaymentReminders
460
+ */
461
+ readonly authorization?: string
462
+
463
+ /**
464
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
465
+ * @type {any}
466
+ * @memberof PaymentRemindersApiListPaymentReminders
467
+ */
468
+ readonly pageSize?: any
469
+
470
+ /**
471
+ * 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.
472
+ * @type {any}
473
+ * @memberof PaymentRemindersApiListPaymentReminders
474
+ */
475
+ readonly pageToken?: any
476
+
477
+ /**
478
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
479
+ * @type {any}
480
+ * @memberof PaymentRemindersApiListPaymentReminders
481
+ */
482
+ readonly filter?: any
483
+
484
+ /**
485
+ * 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.
486
+ * @type {any}
487
+ * @memberof PaymentRemindersApiListPaymentReminders
488
+ */
489
+ readonly search?: any
490
+
491
+ /**
492
+ * 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.
493
+ * @type {any}
494
+ * @memberof PaymentRemindersApiListPaymentReminders
495
+ */
496
+ readonly order?: any
497
+
498
+ /**
499
+ * 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.
500
+ * @type {any}
501
+ * @memberof PaymentRemindersApiListPaymentReminders
502
+ */
503
+ readonly expand?: any
504
+ }
505
+
506
+ /**
507
+ * PaymentRemindersApi - object-oriented interface
508
+ * @export
509
+ * @class PaymentRemindersApi
510
+ * @extends {BaseAPI}
511
+ */
512
+ export class PaymentRemindersApi extends BaseAPI {
513
+ /**
514
+ * This will create a payment reminder in the database.
515
+ * @summary Create the payment-reminder
516
+ * @param {PaymentRemindersApiCreatePaymentReminderRequest} requestParameters Request parameters.
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ * @memberof PaymentRemindersApi
520
+ */
521
+ public createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig) {
522
+ return PaymentRemindersApiFp(this.configuration).createPaymentReminder(requestParameters.createPaymentReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
523
+ }
524
+
525
+ /**
526
+ * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
527
+ * @summary Update the payment-reminder
528
+ * @param {PaymentRemindersApiDeactivatePaymentReminderRequest} requestParameters Request parameters.
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ * @memberof PaymentRemindersApi
532
+ */
533
+ public deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig) {
534
+ return PaymentRemindersApiFp(this.configuration).deactivatePaymentReminder(requestParameters.code, requestParameters.deactivatePaymentReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
535
+ }
536
+
537
+ /**
538
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
539
+ * @summary Retrieve the payment reminder
540
+ * @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ * @memberof PaymentRemindersApi
544
+ */
545
+ public getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig) {
546
+ return PaymentRemindersApiFp(this.configuration).getPolicy(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
547
+ }
548
+
549
+ /**
550
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
551
+ * @summary List payment reminders
552
+ * @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ * @memberof PaymentRemindersApi
556
+ */
557
+ public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
558
+ return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
559
+ }
560
+ }
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech