@emilgroup/payment-sdk 1.7.0 → 1.7.1-beta.1

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 (40) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/payment-methods-api.ts +4 -4
  4. package/api/payment-reminders-api.ts +4 -4
  5. package/api/webhooks-api.ts +25 -10
  6. package/dist/api/payment-methods-api.d.ts +4 -4
  7. package/dist/api/payment-methods-api.js +3 -3
  8. package/dist/api/payment-reminders-api.d.ts +4 -4
  9. package/dist/api/payment-reminders-api.js +3 -3
  10. package/dist/api/webhooks-api.d.ts +16 -7
  11. package/dist/api/webhooks-api.js +16 -9
  12. package/dist/models/card-details-dto.d.ts +42 -0
  13. package/dist/models/card-details-dto.js +15 -0
  14. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +97 -0
  15. package/dist/models/complete-adyen-payment-setup-request-dto.js +32 -0
  16. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  17. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
  18. package/dist/models/index.d.ts +4 -0
  19. package/dist/models/index.js +4 -0
  20. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +30 -0
  21. package/dist/models/initiate-adyen-payment-setup-request-dto.js +15 -0
  22. package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
  23. package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
  24. package/dist/models/initiate-payment-setup-request-dto.d.ts +7 -0
  25. package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
  26. package/dist/models/payment-method-class.d.ts +6 -0
  27. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -0
  28. package/dist/models/validate-pspconfig-request-dto.js +2 -1
  29. package/models/card-details-dto.ts +48 -0
  30. package/models/complete-adyen-payment-setup-request-dto.ts +106 -0
  31. package/models/complete-payment-setup-request-dto.ts +7 -0
  32. package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
  33. package/models/index.ts +4 -0
  34. package/models/initiate-adyen-payment-setup-request-dto.ts +36 -0
  35. package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
  36. package/models/initiate-payment-setup-request-dto.ts +7 -0
  37. package/models/initiate-payment-setup-response-class.ts +7 -0
  38. package/models/payment-method-class.ts +6 -0
  39. package/models/validate-pspconfig-request-dto.ts +2 -1
  40. package/package.json +1 -1
@@ -24,6 +24,8 @@ models/bank-transaction-class-without-expand-properties.ts
24
24
  models/bank-transaction-class.ts
25
25
  models/billing-profile-dto.ts
26
26
  models/billing-profile-limited-response-dto.ts
27
+ models/card-details-dto.ts
28
+ models/complete-adyen-payment-setup-request-dto.ts
27
29
  models/complete-braintree-payment-setup-request-dto.ts
28
30
  models/complete-payment-setup-request-dto.ts
29
31
  models/complete-payment-setup-response-class.ts
@@ -52,6 +54,8 @@ models/get-refund-response-class.ts
52
54
  models/get-tenant-bank-account-response-class.ts
53
55
  models/import-bank-transactions-response-class.ts
54
56
  models/index.ts
57
+ models/initiate-adyen-payment-setup-request-dto.ts
58
+ models/initiate-adyen-payment-setup-response-class.ts
55
59
  models/initiate-braintree-payment-setup-request-dto.ts
56
60
  models/initiate-braintree-payment-setup-response-class.ts
57
61
  models/initiate-payment-setup-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
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@1.7.0 --save
20
+ npm install @emilgroup/payment-sdk@1.7.1-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.7.0
24
+ yarn add @emilgroup/payment-sdk@1.7.1-beta.1
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -133,7 +133,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
133
133
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
134
134
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
135
135
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
136
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
136
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
137
137
  * @param {*} [options] Override http request option.
138
138
  * @throws {RequiredError}
139
139
  */
@@ -228,7 +228,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
228
228
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
229
229
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
230
230
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
231
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
231
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
232
232
  * @param {*} [options] Override http request option.
233
233
  * @throws {RequiredError}
234
234
  */
@@ -275,7 +275,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
275
275
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
276
276
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
277
277
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
278
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
278
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
279
279
  * @param {*} [options] Override http request option.
280
280
  * @throws {RequiredError}
281
281
  */
@@ -362,7 +362,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
362
362
  readonly order?: string
363
363
 
364
364
  /**
365
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
365
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
366
366
  * @type {string}
367
367
  * @memberof PaymentMethodsApiListPaymentMethods
368
368
  */
@@ -188,7 +188,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
188
188
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
189
189
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
190
190
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
191
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
191
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
192
192
  * @param {*} [options] Override http request option.
193
193
  * @throws {RequiredError}
194
194
  */
@@ -296,7 +296,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
296
296
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
297
297
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
298
298
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
299
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
299
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
300
300
  * @param {*} [options] Override http request option.
301
301
  * @throws {RequiredError}
302
302
  */
@@ -355,7 +355,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
355
355
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
356
356
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
357
357
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
358
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
358
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
359
359
  * @param {*} [options] Override http request option.
360
360
  * @throws {RequiredError}
361
361
  */
@@ -470,7 +470,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
470
470
  readonly order?: string
471
471
 
472
472
  /**
473
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
473
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
474
474
  * @type {string}
475
475
  * @memberof PaymentRemindersApiListPaymentReminders
476
476
  */
@@ -29,19 +29,22 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
29
29
  /**
30
30
  * This will processes the webhook from external payment service provider.
31
31
  * @summary Handle the webhook from PSP
32
- * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
32
+ * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
33
33
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
34
34
  * @param {string} productSlug
35
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
35
36
  * @param {*} [options] Override http request option.
36
37
  * @throws {RequiredError}
37
38
  */
38
- postWebhook: async (pspType: string, tenantSlug: string, productSlug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ postWebhook: async (pspType: string, tenantSlug: string, productSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
40
  // verify required parameter 'pspType' is not null or undefined
40
41
  assertParamExists('postWebhook', 'pspType', pspType)
41
42
  // verify required parameter 'tenantSlug' is not null or undefined
42
43
  assertParamExists('postWebhook', 'tenantSlug', tenantSlug)
43
44
  // verify required parameter 'productSlug' is not null or undefined
44
45
  assertParamExists('postWebhook', 'productSlug', productSlug)
46
+ // verify required parameter 'body' is not null or undefined
47
+ assertParamExists('postWebhook', 'body', body)
45
48
  const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}`
46
49
  .replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
47
50
  .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
@@ -61,9 +64,12 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
61
64
 
62
65
 
63
66
 
67
+ localVarHeaderParameter['Content-Type'] = 'application/json';
68
+
64
69
  setSearchParams(localVarUrlObj, localVarQueryParameter);
65
70
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
71
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
67
73
 
68
74
  return {
69
75
  url: toPathString(localVarUrlObj),
@@ -83,14 +89,15 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
83
89
  /**
84
90
  * This will processes the webhook from external payment service provider.
85
91
  * @summary Handle the webhook from PSP
86
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
92
+ * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
87
93
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
88
94
  * @param {string} productSlug
95
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
89
96
  * @param {*} [options] Override http request option.
90
97
  * @throws {RequiredError}
91
98
  */
92
- async postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
93
- const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, options);
99
+ async postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
100
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options);
94
101
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
95
102
  },
96
103
  }
@@ -106,14 +113,15 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
106
113
  /**
107
114
  * This will processes the webhook from external payment service provider.
108
115
  * @summary Handle the webhook from PSP
109
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
116
+ * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
110
117
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
111
118
  * @param {string} productSlug
119
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
112
120
  * @param {*} [options] Override http request option.
113
121
  * @throws {RequiredError}
114
122
  */
115
- postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: any): AxiosPromise<void> {
116
- return localVarFp.postWebhook(pspType, tenantSlug, productSlug, options).then((request) => request(axios, basePath));
123
+ postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void> {
124
+ return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then((request) => request(axios, basePath));
117
125
  },
118
126
  };
119
127
  };
@@ -125,7 +133,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
125
133
  */
126
134
  export interface WebhooksApiPostWebhookRequest {
127
135
  /**
128
- * The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
136
+ * The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
129
137
  * @type {string}
130
138
  * @memberof WebhooksApiPostWebhook
131
139
  */
@@ -144,6 +152,13 @@ export interface WebhooksApiPostWebhookRequest {
144
152
  * @memberof WebhooksApiPostWebhook
145
153
  */
146
154
  readonly productSlug: string
155
+
156
+ /**
157
+ * Accepts a webhook payload. The structure may vary depending on the payment service provider.
158
+ * @type {object}
159
+ * @memberof WebhooksApiPostWebhook
160
+ */
161
+ readonly body: object
147
162
  }
148
163
 
149
164
  /**
@@ -162,6 +177,6 @@ export class WebhooksApi extends BaseAPI {
162
177
  * @memberof WebhooksApi
163
178
  */
164
179
  public postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig) {
165
- return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, options).then((request) => request(this.axios, this.basePath));
180
+ return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
166
181
  }
167
182
  }
@@ -46,7 +46,7 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
46
46
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
47
47
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
48
48
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
49
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
49
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
52
52
  */
@@ -82,7 +82,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
82
82
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
83
83
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
84
84
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
85
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
85
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
86
86
  * @param {*} [options] Override http request option.
87
87
  * @throws {RequiredError}
88
88
  */
@@ -118,7 +118,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
118
118
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
119
119
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
120
120
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
121
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
121
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
122
122
  * @param {*} [options] Override http request option.
123
123
  * @throws {RequiredError}
124
124
  */
@@ -193,7 +193,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
193
193
  */
194
194
  readonly order?: string;
195
195
  /**
196
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
196
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
197
197
  * @type {string}
198
198
  * @memberof PaymentMethodsApiListPaymentMethods
199
199
  */
@@ -196,7 +196,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
196
196
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
197
197
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
198
198
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
199
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
199
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
200
200
  * @param {*} [options] Override http request option.
201
201
  * @throws {RequiredError}
202
202
  */
@@ -308,7 +308,7 @@ var PaymentMethodsApiFp = function (configuration) {
308
308
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
309
309
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
310
310
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
311
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
311
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
312
312
  * @param {*} [options] Override http request option.
313
313
  * @throws {RequiredError}
314
314
  */
@@ -364,7 +364,7 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
364
364
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
365
365
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, productSlug&lt;/i&gt;
366
366
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
367
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
367
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
368
368
  * @param {*} [options] Override http request option.
369
369
  * @throws {RequiredError}
370
370
  */
@@ -58,7 +58,7 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
58
58
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
59
59
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
60
60
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
61
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
61
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
62
62
  * @param {*} [options] Override http request option.
63
63
  * @throws {RequiredError}
64
64
  */
@@ -104,7 +104,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
104
104
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
105
105
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
106
106
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
107
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
107
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
110
  */
@@ -150,7 +150,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
150
150
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
151
151
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
152
152
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
153
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
153
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
154
154
  * @param {*} [options] Override http request option.
155
155
  * @throws {RequiredError}
156
156
  */
@@ -250,7 +250,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
250
250
  */
251
251
  readonly order?: string;
252
252
  /**
253
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
253
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
254
254
  * @type {string}
255
255
  * @memberof PaymentRemindersApiListPaymentReminders
256
256
  */
@@ -249,7 +249,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
249
249
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
250
250
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
251
251
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
252
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
252
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
253
253
  * @param {*} [options] Override http request option.
254
254
  * @throws {RequiredError}
255
255
  */
@@ -383,7 +383,7 @@ var PaymentRemindersApiFp = function (configuration) {
383
383
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
384
384
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
385
385
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
386
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
386
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
387
387
  * @param {*} [options] Override http request option.
388
388
  * @throws {RequiredError}
389
389
  */
@@ -451,7 +451,7 @@ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
451
451
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
452
452
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
453
453
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
454
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
454
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
455
455
  * @param {*} [options] Override http request option.
456
456
  * @throws {RequiredError}
457
457
  */
@@ -20,13 +20,14 @@ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuratio
20
20
  /**
21
21
  * This will processes the webhook from external payment service provider.
22
22
  * @summary Handle the webhook from PSP
23
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
23
+ * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
24
24
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
25
25
  * @param {string} productSlug
26
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
26
27
  * @param {*} [options] Override http request option.
27
28
  * @throws {RequiredError}
28
29
  */
29
- postWebhook: (pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ postWebhook: (pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
31
  };
31
32
  /**
32
33
  * WebhooksApi - functional programming interface
@@ -36,13 +37,14 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
36
37
  /**
37
38
  * This will processes the webhook from external payment service provider.
38
39
  * @summary Handle the webhook from PSP
39
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
40
+ * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
40
41
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
41
42
  * @param {string} productSlug
43
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
42
44
  * @param {*} [options] Override http request option.
43
45
  * @throws {RequiredError}
44
46
  */
45
- postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
47
+ postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
46
48
  };
47
49
  /**
48
50
  * WebhooksApi - factory interface
@@ -52,13 +54,14 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
52
54
  /**
53
55
  * This will processes the webhook from external payment service provider.
54
56
  * @summary Handle the webhook from PSP
55
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
57
+ * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
56
58
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
57
59
  * @param {string} productSlug
60
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
58
61
  * @param {*} [options] Override http request option.
59
62
  * @throws {RequiredError}
60
63
  */
61
- postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: any): AxiosPromise<void>;
64
+ postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void>;
62
65
  };
63
66
  /**
64
67
  * Request parameters for postWebhook operation in WebhooksApi.
@@ -67,7 +70,7 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
67
70
  */
68
71
  export interface WebhooksApiPostWebhookRequest {
69
72
  /**
70
- * The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
73
+ * The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
71
74
  * @type {string}
72
75
  * @memberof WebhooksApiPostWebhook
73
76
  */
@@ -84,6 +87,12 @@ export interface WebhooksApiPostWebhookRequest {
84
87
  * @memberof WebhooksApiPostWebhook
85
88
  */
86
89
  readonly productSlug: string;
90
+ /**
91
+ * Accepts a webhook payload. The structure may vary depending on the payment service provider.
92
+ * @type {object}
93
+ * @memberof WebhooksApiPostWebhook
94
+ */
95
+ readonly body: object;
87
96
  }
88
97
  /**
89
98
  * WebhooksApi - object-oriented interface
@@ -95,13 +95,14 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * This will processes the webhook from external payment service provider.
97
97
  * @summary Handle the webhook from PSP
98
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
98
+ * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
99
99
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
100
100
  * @param {string} productSlug
101
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
101
102
  * @param {*} [options] Override http request option.
102
103
  * @throws {RequiredError}
103
104
  */
104
- postWebhook: function (pspType, tenantSlug, productSlug, options) {
105
+ postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
105
106
  if (options === void 0) { options = {}; }
106
107
  return __awaiter(_this, void 0, void 0, function () {
107
108
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -112,6 +113,8 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
112
113
  (0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
113
114
  // verify required parameter 'productSlug' is not null or undefined
114
115
  (0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
116
+ // verify required parameter 'body' is not null or undefined
117
+ (0, common_1.assertParamExists)('postWebhook', 'body', body);
115
118
  localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
116
119
  .replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
117
120
  .replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
@@ -124,9 +127,11 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
124
127
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
125
128
  localVarHeaderParameter = {};
126
129
  localVarQueryParameter = {};
130
+ localVarHeaderParameter['Content-Type'] = 'application/json';
127
131
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
132
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
133
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
130
135
  return [2 /*return*/, {
131
136
  url: (0, common_1.toPathString)(localVarUrlObj),
132
137
  options: localVarRequestOptions,
@@ -147,18 +152,19 @@ var WebhooksApiFp = function (configuration) {
147
152
  /**
148
153
  * This will processes the webhook from external payment service provider.
149
154
  * @summary Handle the webhook from PSP
150
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
155
+ * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
151
156
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
152
157
  * @param {string} productSlug
158
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
153
159
  * @param {*} [options] Override http request option.
154
160
  * @throws {RequiredError}
155
161
  */
156
- postWebhook: function (pspType, tenantSlug, productSlug, options) {
162
+ postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
157
163
  return __awaiter(this, void 0, void 0, function () {
158
164
  var localVarAxiosArgs;
159
165
  return __generator(this, function (_a) {
160
166
  switch (_a.label) {
161
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, options)];
167
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options)];
162
168
  case 1:
163
169
  localVarAxiosArgs = _a.sent();
164
170
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -179,14 +185,15 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
179
185
  /**
180
186
  * This will processes the webhook from external payment service provider.
181
187
  * @summary Handle the webhook from PSP
182
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis&lt;/i&gt;
188
+ * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
183
189
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
184
190
  * @param {string} productSlug
191
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
185
192
  * @param {*} [options] Override http request option.
186
193
  * @throws {RequiredError}
187
194
  */
188
- postWebhook: function (pspType, tenantSlug, productSlug, options) {
189
- return localVarFp.postWebhook(pspType, tenantSlug, productSlug, options).then(function (request) { return request(axios, basePath); });
195
+ postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
196
+ return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
190
197
  },
191
198
  };
192
199
  };
@@ -212,7 +219,7 @@ var WebhooksApi = /** @class */ (function (_super) {
212
219
  */
213
220
  WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
214
221
  var _this = this;
215
- return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
222
+ return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
216
223
  };
217
224
  return WebhooksApi;
218
225
  }(base_1.BaseAPI));
@@ -0,0 +1,42 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CardDetailsDto
16
+ */
17
+ export interface CardDetailsDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CardDetailsDto
22
+ */
23
+ 'encryptedCardNumber': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CardDetailsDto
28
+ */
29
+ 'encryptedExpiryMonth': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CardDetailsDto
34
+ */
35
+ 'encryptedExpiryYear': string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CardDetailsDto
40
+ */
41
+ 'encryptedSecurityCode': string;
42
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });