@emilgroup/payment-sdk 1.4.1-beta.33 → 1.4.1-beta.35

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 (179) hide show
  1. package/.openapi-generator/FILES +0 -50
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +12 -20
  4. package/api/bank-transaction-api.ts +10 -20
  5. package/api/payment-methods-api.ts +18 -26
  6. package/api/payment-reminders-api.ts +8 -16
  7. package/api/payment-setup-api.ts +28 -36
  8. package/api/payments-api.ts +6 -12
  9. package/api/refunds-api.ts +6 -12
  10. package/dist/api/bank-accounts-api.d.ts +18 -22
  11. package/dist/api/bank-transaction-api.d.ts +15 -20
  12. package/dist/api/payment-methods-api.d.ts +15 -19
  13. package/dist/api/payment-methods-api.js +12 -12
  14. package/dist/api/payment-reminders-api.d.ts +12 -16
  15. package/dist/api/payment-setup-api.d.ts +18 -22
  16. package/dist/api/payment-setup-api.js +24 -24
  17. package/dist/api/payments-api.d.ts +9 -12
  18. package/dist/api/refunds-api.d.ts +9 -12
  19. package/dist/models/create-bank-account-request-dto.d.ts +2 -2
  20. package/dist/models/create-payment-request-dto.d.ts +3 -3
  21. package/dist/models/index.d.ts +0 -50
  22. package/dist/models/index.js +0 -50
  23. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  24. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  25. package/models/create-bank-account-request-dto.ts +2 -2
  26. package/models/create-payment-request-dto.ts +3 -3
  27. package/models/index.ts +0 -50
  28. package/models/validate-pspconfig-request-dto.ts +1 -11
  29. package/package.json +1 -1
  30. package/dist/models/bank-account-class-without-expand-properties.d.ts +0 -72
  31. package/dist/models/bank-account-class-without-expand-properties.js +0 -15
  32. package/dist/models/bank-account-class.d.ts +0 -79
  33. package/dist/models/bank-account-class.js +0 -15
  34. package/dist/models/bank-transaction-class.d.ts +0 -128
  35. package/dist/models/bank-transaction-class.js +0 -15
  36. package/dist/models/billing-profile-dto.d.ts +0 -38
  37. package/dist/models/billing-profile-dto.js +0 -15
  38. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  39. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  40. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  41. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  42. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  43. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  44. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  45. package/dist/models/complete-payment-setup-response-class.js +0 -15
  46. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  47. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  48. package/dist/models/create-bank-account-response-class.d.ts +0 -25
  49. package/dist/models/create-bank-account-response-class.js +0 -15
  50. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  51. package/dist/models/create-payment-method-response-class.js +0 -15
  52. package/dist/models/create-payment-reminder-response-class.d.ts +0 -25
  53. package/dist/models/create-payment-reminder-response-class.js +0 -15
  54. package/dist/models/create-payment-response-class.d.ts +0 -25
  55. package/dist/models/create-payment-response-class.js +0 -15
  56. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  57. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  58. package/dist/models/create-refund-response-class.d.ts +0 -25
  59. package/dist/models/create-refund-response-class.js +0 -15
  60. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  61. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  62. package/dist/models/deactivated-payment-reminder-class.d.ts +0 -90
  63. package/dist/models/deactivated-payment-reminder-class.js +0 -15
  64. package/dist/models/get-bank-account-response-class.d.ts +0 -25
  65. package/dist/models/get-bank-account-response-class.js +0 -15
  66. package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
  67. package/dist/models/get-bank-transactions-response-class.js +0 -15
  68. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  69. package/dist/models/get-payment-method-response-class.js +0 -15
  70. package/dist/models/get-payment-reminder-response-class.d.ts +0 -25
  71. package/dist/models/get-payment-reminder-response-class.js +0 -15
  72. package/dist/models/get-payment-response-class.d.ts +0 -25
  73. package/dist/models/get-payment-response-class.js +0 -15
  74. package/dist/models/get-refund-response-class.d.ts +0 -25
  75. package/dist/models/get-refund-response-class.js +0 -15
  76. package/dist/models/import-bank-transactions-response-class.d.ts +0 -25
  77. package/dist/models/import-bank-transactions-response-class.js +0 -15
  78. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  79. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  80. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  81. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  82. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -50
  83. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  84. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  85. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  86. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  87. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  88. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  89. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  90. package/dist/models/link-bank-transactions-response-class.d.ts +0 -25
  91. package/dist/models/link-bank-transactions-response-class.js +0 -15
  92. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  93. package/dist/models/list-bank-accounts-response-class.js +0 -15
  94. package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
  95. package/dist/models/list-bank-transactions-response-class.js +0 -15
  96. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  97. package/dist/models/list-payment-methods-response-class.js +0 -15
  98. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  99. package/dist/models/list-payment-reminders-response-class.js +0 -15
  100. package/dist/models/list-payments-response-class.d.ts +0 -31
  101. package/dist/models/list-payments-response-class.js +0 -15
  102. package/dist/models/list-refunds-response-class.d.ts +0 -31
  103. package/dist/models/list-refunds-response-class.js +0 -15
  104. package/dist/models/payment-class-without-expand-properties.d.ts +0 -102
  105. package/dist/models/payment-class-without-expand-properties.js +0 -15
  106. package/dist/models/payment-class.d.ts +0 -109
  107. package/dist/models/payment-class.js +0 -15
  108. package/dist/models/payment-method-class.d.ts +0 -66
  109. package/dist/models/payment-method-class.js +0 -15
  110. package/dist/models/payment-reminder-class.d.ts +0 -90
  111. package/dist/models/payment-reminder-class.js +0 -15
  112. package/dist/models/primary-bank-account-response-class.d.ts +0 -42
  113. package/dist/models/primary-bank-account-response-class.js +0 -15
  114. package/dist/models/refund-class-without-expand-properties.d.ts +0 -99
  115. package/dist/models/refund-class-without-expand-properties.js +0 -29
  116. package/dist/models/refund-class.d.ts +0 -99
  117. package/dist/models/refund-class.js +0 -29
  118. package/dist/models/sepa-direct-dto.d.ts +0 -24
  119. package/dist/models/sepa-direct-dto.js +0 -15
  120. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  121. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  122. package/dist/models/transaction-class.d.ts +0 -54
  123. package/dist/models/transaction-class.js +0 -15
  124. package/dist/models/unlink-bank-transactions-response-class.d.ts +0 -25
  125. package/dist/models/unlink-bank-transactions-response-class.js +0 -15
  126. package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -96
  127. package/dist/models/unlinked-bank-transaction-response-class.js +0 -15
  128. package/dist/models/update-bank-account-response-class.d.ts +0 -25
  129. package/dist/models/update-bank-account-response-class.js +0 -15
  130. package/models/bank-account-class-without-expand-properties.ts +0 -78
  131. package/models/bank-account-class.ts +0 -85
  132. package/models/bank-transaction-class.ts +0 -134
  133. package/models/billing-profile-dto.ts +0 -44
  134. package/models/billing-profile-limited-response-dto.ts +0 -60
  135. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  136. package/models/complete-payment-setup-request-dto.ts +0 -38
  137. package/models/complete-payment-setup-response-class.ts +0 -31
  138. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  139. package/models/create-bank-account-response-class.ts +0 -31
  140. package/models/create-payment-method-response-class.ts +0 -31
  141. package/models/create-payment-reminder-response-class.ts +0 -31
  142. package/models/create-payment-response-class.ts +0 -31
  143. package/models/create-psp-payment-method-request-dto.ts +0 -70
  144. package/models/create-refund-response-class.ts +0 -31
  145. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  146. package/models/deactivated-payment-reminder-class.ts +0 -96
  147. package/models/get-bank-account-response-class.ts +0 -31
  148. package/models/get-bank-transactions-response-class.ts +0 -31
  149. package/models/get-payment-method-response-class.ts +0 -31
  150. package/models/get-payment-reminder-response-class.ts +0 -31
  151. package/models/get-payment-response-class.ts +0 -31
  152. package/models/get-refund-response-class.ts +0 -31
  153. package/models/import-bank-transactions-response-class.ts +0 -31
  154. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  155. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  156. package/models/initiate-payment-setup-request-dto.ts +0 -56
  157. package/models/initiate-payment-setup-response-class.ts +0 -38
  158. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  159. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  160. package/models/link-bank-transactions-response-class.ts +0 -31
  161. package/models/list-bank-accounts-response-class.ts +0 -37
  162. package/models/list-bank-transactions-response-class.ts +0 -37
  163. package/models/list-payment-methods-response-class.ts +0 -37
  164. package/models/list-payment-reminders-response-class.ts +0 -37
  165. package/models/list-payments-response-class.ts +0 -37
  166. package/models/list-refunds-response-class.ts +0 -37
  167. package/models/payment-class-without-expand-properties.ts +0 -108
  168. package/models/payment-class.ts +0 -115
  169. package/models/payment-method-class.ts +0 -72
  170. package/models/payment-reminder-class.ts +0 -96
  171. package/models/primary-bank-account-response-class.ts +0 -48
  172. package/models/refund-class-without-expand-properties.ts +0 -109
  173. package/models/refund-class.ts +0 -109
  174. package/models/sepa-direct-dto.ts +0 -30
  175. package/models/symphony-profile-limited-response-dto.ts +0 -48
  176. package/models/transaction-class.ts +0 -60
  177. package/models/unlink-bank-transactions-response-class.ts +0 -31
  178. package/models/unlinked-bank-transaction-response-class.ts +0 -102
  179. package/models/update-bank-account-response-class.ts +0 -31
@@ -12,10 +12,6 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CreatePaymentMethodResponseClass } from '../models';
16
- import { CreatePspPaymentMethodRequestDto } from '../models';
17
- import { GetPaymentMethodResponseClass } from '../models';
18
- import { ListPaymentMethodsResponseClass } from '../models';
19
15
  /**
20
16
  * PaymentMethodsApi - axios parameter creator
21
17
  * @export
@@ -24,12 +20,12 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
24
20
  /**
25
21
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
26
22
  * @summary Create the payment method
27
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
23
+ * @param {object} body
28
24
  * @param {string} [authorization] Bearer Token
29
25
  * @param {*} [options] Override http request option.
30
26
  * @throws {RequiredError}
31
27
  */
32
- createPaymentMethod: (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
29
  /**
34
30
  * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
35
31
  * @summary Retrieve the payment method
@@ -64,12 +60,12 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
64
60
  /**
65
61
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
66
62
  * @summary Create the payment method
67
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
63
+ * @param {object} body
68
64
  * @param {string} [authorization] Bearer Token
69
65
  * @param {*} [options] Override http request option.
70
66
  * @throws {RequiredError}
71
67
  */
72
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>>;
68
+ createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
73
69
  /**
74
70
  * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
75
71
  * @summary Retrieve the payment method
@@ -79,7 +75,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
79
75
  * @param {*} [options] Override http request option.
80
76
  * @throws {RequiredError}
81
77
  */
82
- getPaymentMethod(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>>;
78
+ getPaymentMethod(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
83
79
  /**
84
80
  * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
85
81
  * @summary List payment methods
@@ -94,7 +90,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
94
90
  * @param {*} [options] Override http request option.
95
91
  * @throws {RequiredError}
96
92
  */
97
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>>;
93
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
98
94
  };
99
95
  /**
100
96
  * PaymentMethodsApi - factory interface
@@ -104,12 +100,12 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
104
100
  /**
105
101
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
106
102
  * @summary Create the payment method
107
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
103
+ * @param {object} body
108
104
  * @param {string} [authorization] Bearer Token
109
105
  * @param {*} [options] Override http request option.
110
106
  * @throws {RequiredError}
111
107
  */
112
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass>;
108
+ createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
113
109
  /**
114
110
  * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
115
111
  * @summary Retrieve the payment method
@@ -119,7 +115,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
119
115
  * @param {*} [options] Override http request option.
120
116
  * @throws {RequiredError}
121
117
  */
122
- getPaymentMethod(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass>;
118
+ getPaymentMethod(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
123
119
  /**
124
120
  * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
125
121
  * @summary List payment methods
@@ -134,7 +130,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
134
130
  * @param {*} [options] Override http request option.
135
131
  * @throws {RequiredError}
136
132
  */
137
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentMethodsResponseClass>;
133
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
138
134
  };
139
135
  /**
140
136
  * Request parameters for createPaymentMethod operation in PaymentMethodsApi.
@@ -144,10 +140,10 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
144
140
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
145
141
  /**
146
142
  *
147
- * @type {CreatePspPaymentMethodRequestDto}
143
+ * @type {object}
148
144
  * @memberof PaymentMethodsApiCreatePaymentMethod
149
145
  */
150
- readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto;
146
+ readonly body: object;
151
147
  /**
152
148
  * Bearer Token
153
149
  * @type {string}
@@ -250,7 +246,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
250
246
  * @throws {RequiredError}
251
247
  * @memberof PaymentMethodsApi
252
248
  */
253
- createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any>>;
249
+ createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
254
250
  /**
255
251
  * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
256
252
  * @summary Retrieve the payment method
@@ -259,7 +255,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
259
255
  * @throws {RequiredError}
260
256
  * @memberof PaymentMethodsApi
261
257
  */
262
- getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any>>;
258
+ getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
263
259
  /**
264
260
  * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
265
261
  * @summary List payment methods
@@ -268,5 +264,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
268
264
  * @throws {RequiredError}
269
265
  * @memberof PaymentMethodsApi
270
266
  */
271
- listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any>>;
267
+ listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
272
268
  }
@@ -95,20 +95,20 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
97
97
  * @summary Create the payment method
98
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
98
+ * @param {object} body
99
99
  * @param {string} [authorization] Bearer Token
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- createPaymentMethod: function (createPspPaymentMethodRequestDto, authorization, options) {
103
+ createPaymentMethod: function (body, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- // verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto);
110
+ // verify required parameter 'body' is not null or undefined
111
+ (0, common_1.assertParamExists)('createPaymentMethod', 'body', body);
112
112
  localVarPath = "/paymentservice/v1/payment-methods";
113
113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
114
  if (configuration) {
@@ -132,7 +132,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
132
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
134
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
136
136
  return [2 /*return*/, {
137
137
  url: (0, common_1.toPathString)(localVarUrlObj),
138
138
  options: localVarRequestOptions,
@@ -278,17 +278,17 @@ var PaymentMethodsApiFp = function (configuration) {
278
278
  /**
279
279
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
280
280
  * @summary Create the payment method
281
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
281
+ * @param {object} body
282
282
  * @param {string} [authorization] Bearer Token
283
283
  * @param {*} [options] Override http request option.
284
284
  * @throws {RequiredError}
285
285
  */
286
- createPaymentMethod: function (createPspPaymentMethodRequestDto, authorization, options) {
286
+ createPaymentMethod: function (body, authorization, options) {
287
287
  return __awaiter(this, void 0, void 0, function () {
288
288
  var localVarAxiosArgs;
289
289
  return __generator(this, function (_a) {
290
290
  switch (_a.label) {
291
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options)];
291
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(body, authorization, options)];
292
292
  case 1:
293
293
  localVarAxiosArgs = _a.sent();
294
294
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -358,13 +358,13 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
358
358
  /**
359
359
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
360
360
  * @summary Create the payment method
361
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
361
+ * @param {object} body
362
362
  * @param {string} [authorization] Bearer Token
363
363
  * @param {*} [options] Override http request option.
364
364
  * @throws {RequiredError}
365
365
  */
366
- createPaymentMethod: function (createPspPaymentMethodRequestDto, authorization, options) {
367
- return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
366
+ createPaymentMethod: function (body, authorization, options) {
367
+ return localVarFp.createPaymentMethod(body, authorization, options).then(function (request) { return request(axios, basePath); });
368
368
  },
369
369
  /**
370
370
  * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
@@ -419,7 +419,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
419
419
  */
420
420
  PaymentMethodsApi.prototype.createPaymentMethod = function (requestParameters, options) {
421
421
  var _this = this;
422
- return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
422
+ return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
423
423
  };
424
424
  /**
425
425
  * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
@@ -13,11 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreatePaymentReminderRequestDto } from '../models';
16
- import { CreatePaymentReminderResponseClass } from '../models';
17
16
  import { DeactivatePaymentReminderRequestDto } from '../models';
18
- import { DeactivatePaymentReminderResponseClass } from '../models';
19
- import { GetPaymentReminderResponseClass } from '../models';
20
- import { ListPaymentRemindersResponseClass } from '../models';
21
17
  /**
22
18
  * PaymentRemindersApi - axios parameter creator
23
19
  * @export
@@ -81,7 +77,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
81
77
  * @param {*} [options] Override http request option.
82
78
  * @throws {RequiredError}
83
79
  */
84
- createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentReminderResponseClass>>;
80
+ createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
85
81
  /**
86
82
  * This will deactivate the payment reminder
87
83
  * @summary Deactivate payment reminder
@@ -91,7 +87,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
91
87
  * @param {*} [options] Override http request option.
92
88
  * @throws {RequiredError}
93
89
  */
94
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>>;
90
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
95
91
  /**
96
92
  * 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.
97
93
  * @summary Retrieve the payment reminder
@@ -101,7 +97,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
101
97
  * @param {*} [options] Override http request option.
102
98
  * @throws {RequiredError}
103
99
  */
104
- getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentReminderResponseClass>>;
100
+ getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
105
101
  /**
106
102
  * 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.
107
103
  * @summary List payment reminders
@@ -116,7 +112,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
116
112
  * @param {*} [options] Override http request option.
117
113
  * @throws {RequiredError}
118
114
  */
119
- listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>>;
115
+ listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
120
116
  };
121
117
  /**
122
118
  * PaymentRemindersApi - factory interface
@@ -131,7 +127,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
131
127
  * @param {*} [options] Override http request option.
132
128
  * @throws {RequiredError}
133
129
  */
134
- createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentReminderResponseClass>;
130
+ createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
135
131
  /**
136
132
  * This will deactivate the payment reminder
137
133
  * @summary Deactivate payment reminder
@@ -141,7 +137,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
141
137
  * @param {*} [options] Override http request option.
142
138
  * @throws {RequiredError}
143
139
  */
144
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass>;
140
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
145
141
  /**
146
142
  * 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.
147
143
  * @summary Retrieve the payment reminder
@@ -151,7 +147,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
151
147
  * @param {*} [options] Override http request option.
152
148
  * @throws {RequiredError}
153
149
  */
154
- getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentReminderResponseClass>;
150
+ getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
155
151
  /**
156
152
  * 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.
157
153
  * @summary List payment reminders
@@ -166,7 +162,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
166
162
  * @param {*} [options] Override http request option.
167
163
  * @throws {RequiredError}
168
164
  */
169
- listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentRemindersResponseClass>;
165
+ listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
170
166
  };
171
167
  /**
172
168
  * Request parameters for createPaymentReminder operation in PaymentRemindersApi.
@@ -307,7 +303,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
307
303
  * @throws {RequiredError}
308
304
  * @memberof PaymentRemindersApi
309
305
  */
310
- createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentReminderResponseClass, any>>;
306
+ createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
311
307
  /**
312
308
  * This will deactivate the payment reminder
313
309
  * @summary Deactivate payment reminder
@@ -316,7 +312,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
316
312
  * @throws {RequiredError}
317
313
  * @memberof PaymentRemindersApi
318
314
  */
319
- deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeactivatePaymentReminderResponseClass, any>>;
315
+ deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
320
316
  /**
321
317
  * 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.
322
318
  * @summary Retrieve the payment reminder
@@ -325,7 +321,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
325
321
  * @throws {RequiredError}
326
322
  * @memberof PaymentRemindersApi
327
323
  */
328
- getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentReminderResponseClass, any>>;
324
+ getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
329
325
  /**
330
326
  * 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.
331
327
  * @summary List payment reminders
@@ -334,5 +330,5 @@ export declare class PaymentRemindersApi extends BaseAPI {
334
330
  * @throws {RequiredError}
335
331
  * @memberof PaymentRemindersApi
336
332
  */
337
- listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentRemindersResponseClass, any>>;
333
+ listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
338
334
  }
@@ -12,10 +12,6 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CompletePaymentSetupRequestDto } from '../models';
16
- import { CompletePaymentSetupResponseClass } from '../models';
17
- import { InitiatePaymentSetupRequestDto } from '../models';
18
- import { InitiatePaymentSetupResponseClass } from '../models';
19
15
  /**
20
16
  * PaymentSetupApi - axios parameter creator
21
17
  * @export
@@ -24,21 +20,21 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
24
20
  /**
25
21
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
26
22
  * @summary Complete a payment setup
27
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
23
+ * @param {object} body
28
24
  * @param {string} [authorization] Bearer Token
29
25
  * @param {*} [options] Override http request option.
30
26
  * @throws {RequiredError}
31
27
  */
32
- completePaymentSetup: (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ completePaymentSetup: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
29
  /**
34
30
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
35
31
  * @summary Initiate a payment setup
36
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
32
+ * @param {object} body
37
33
  * @param {string} [authorization] Bearer Token
38
34
  * @param {*} [options] Override http request option.
39
35
  * @throws {RequiredError}
40
36
  */
41
- initiatePaymentSetup: (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
+ initiatePaymentSetup: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
38
  };
43
39
  /**
44
40
  * PaymentSetupApi - functional programming interface
@@ -48,21 +44,21 @@ export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
48
44
  /**
49
45
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
50
46
  * @summary Complete a payment setup
51
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
47
+ * @param {object} body
52
48
  * @param {string} [authorization] Bearer Token
53
49
  * @param {*} [options] Override http request option.
54
50
  * @throws {RequiredError}
55
51
  */
56
- completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
52
+ completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
57
53
  /**
58
54
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
59
55
  * @summary Initiate a payment setup
60
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
56
+ * @param {object} body
61
57
  * @param {string} [authorization] Bearer Token
62
58
  * @param {*} [options] Override http request option.
63
59
  * @throws {RequiredError}
64
60
  */
65
- initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
61
+ initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
66
62
  };
67
63
  /**
68
64
  * PaymentSetupApi - factory interface
@@ -72,21 +68,21 @@ export declare const PaymentSetupApiFactory: (configuration?: Configuration, bas
72
68
  /**
73
69
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
74
70
  * @summary Complete a payment setup
75
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
71
+ * @param {object} body
76
72
  * @param {string} [authorization] Bearer Token
77
73
  * @param {*} [options] Override http request option.
78
74
  * @throws {RequiredError}
79
75
  */
80
- completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
76
+ completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void>;
81
77
  /**
82
78
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
83
79
  * @summary Initiate a payment setup
84
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
80
+ * @param {object} body
85
81
  * @param {string} [authorization] Bearer Token
86
82
  * @param {*} [options] Override http request option.
87
83
  * @throws {RequiredError}
88
84
  */
89
- initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
85
+ initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void>;
90
86
  };
91
87
  /**
92
88
  * Request parameters for completePaymentSetup operation in PaymentSetupApi.
@@ -96,10 +92,10 @@ export declare const PaymentSetupApiFactory: (configuration?: Configuration, bas
96
92
  export interface PaymentSetupApiCompletePaymentSetupRequest {
97
93
  /**
98
94
  *
99
- * @type {CompletePaymentSetupRequestDto}
95
+ * @type {object}
100
96
  * @memberof PaymentSetupApiCompletePaymentSetup
101
97
  */
102
- readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto;
98
+ readonly body: object;
103
99
  /**
104
100
  * Bearer Token
105
101
  * @type {string}
@@ -115,10 +111,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
115
111
  export interface PaymentSetupApiInitiatePaymentSetupRequest {
116
112
  /**
117
113
  *
118
- * @type {InitiatePaymentSetupRequestDto}
114
+ * @type {object}
119
115
  * @memberof PaymentSetupApiInitiatePaymentSetup
120
116
  */
121
- readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto;
117
+ readonly body: object;
122
118
  /**
123
119
  * Bearer Token
124
120
  * @type {string}
@@ -141,7 +137,7 @@ export declare class PaymentSetupApi extends BaseAPI {
141
137
  * @throws {RequiredError}
142
138
  * @memberof PaymentSetupApi
143
139
  */
144
- completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
140
+ completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
145
141
  /**
146
142
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
147
143
  * @summary Initiate a payment setup
@@ -150,5 +146,5 @@ export declare class PaymentSetupApi extends BaseAPI {
150
146
  * @throws {RequiredError}
151
147
  * @memberof PaymentSetupApi
152
148
  */
153
- initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
149
+ initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
154
150
  }
@@ -95,20 +95,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
97
97
  * @summary Complete a payment setup
98
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
98
+ * @param {object} body
99
99
  * @param {string} [authorization] Bearer Token
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
103
+ completePaymentSetup: function (body, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- // verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto);
110
+ // verify required parameter 'body' is not null or undefined
111
+ (0, common_1.assertParamExists)('completePaymentSetup', 'body', body);
112
112
  localVarPath = "/paymentservice/v1/payment-setup/complete";
113
113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
114
  if (configuration) {
@@ -132,7 +132,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
132
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
134
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completePaymentSetupRequestDto, localVarRequestOptions, configuration);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
136
136
  return [2 /*return*/, {
137
137
  url: (0, common_1.toPathString)(localVarUrlObj),
138
138
  options: localVarRequestOptions,
@@ -144,20 +144,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
144
144
  /**
145
145
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
146
146
  * @summary Initiate a payment setup
147
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
147
+ * @param {object} body
148
148
  * @param {string} [authorization] Bearer Token
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
152
+ initiatePaymentSetup: function (body, authorization, options) {
153
153
  if (options === void 0) { options = {}; }
154
154
  return __awaiter(_this, void 0, void 0, function () {
155
155
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
156
  return __generator(this, function (_a) {
157
157
  switch (_a.label) {
158
158
  case 0:
159
- // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
160
- (0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
159
+ // verify required parameter 'body' is not null or undefined
160
+ (0, common_1.assertParamExists)('initiatePaymentSetup', 'body', body);
161
161
  localVarPath = "/paymentservice/v1/payment-setup/initiate";
162
162
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
163
  if (configuration) {
@@ -181,7 +181,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
181
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
183
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration);
184
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
185
185
  return [2 /*return*/, {
186
186
  url: (0, common_1.toPathString)(localVarUrlObj),
187
187
  options: localVarRequestOptions,
@@ -203,17 +203,17 @@ var PaymentSetupApiFp = function (configuration) {
203
203
  /**
204
204
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
205
205
  * @summary Complete a payment setup
206
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
206
+ * @param {object} body
207
207
  * @param {string} [authorization] Bearer Token
208
208
  * @param {*} [options] Override http request option.
209
209
  * @throws {RequiredError}
210
210
  */
211
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
211
+ completePaymentSetup: function (body, authorization, options) {
212
212
  return __awaiter(this, void 0, void 0, function () {
213
213
  var localVarAxiosArgs;
214
214
  return __generator(this, function (_a) {
215
215
  switch (_a.label) {
216
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options)];
216
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(body, authorization, options)];
217
217
  case 1:
218
218
  localVarAxiosArgs = _a.sent();
219
219
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -224,17 +224,17 @@ var PaymentSetupApiFp = function (configuration) {
224
224
  /**
225
225
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
226
226
  * @summary Initiate a payment setup
227
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
227
+ * @param {object} body
228
228
  * @param {string} [authorization] Bearer Token
229
229
  * @param {*} [options] Override http request option.
230
230
  * @throws {RequiredError}
231
231
  */
232
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
232
+ initiatePaymentSetup: function (body, authorization, options) {
233
233
  return __awaiter(this, void 0, void 0, function () {
234
234
  var localVarAxiosArgs;
235
235
  return __generator(this, function (_a) {
236
236
  switch (_a.label) {
237
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options)];
237
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options)];
238
238
  case 1:
239
239
  localVarAxiosArgs = _a.sent();
240
240
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -255,24 +255,24 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
255
255
  /**
256
256
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
257
257
  * @summary Complete a payment setup
258
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
258
+ * @param {object} body
259
259
  * @param {string} [authorization] Bearer Token
260
260
  * @param {*} [options] Override http request option.
261
261
  * @throws {RequiredError}
262
262
  */
263
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
264
- return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
263
+ completePaymentSetup: function (body, authorization, options) {
264
+ return localVarFp.completePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
265
265
  },
266
266
  /**
267
267
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
268
268
  * @summary Initiate a payment setup
269
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
269
+ * @param {object} body
270
270
  * @param {string} [authorization] Bearer Token
271
271
  * @param {*} [options] Override http request option.
272
272
  * @throws {RequiredError}
273
273
  */
274
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
275
- return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
274
+ initiatePaymentSetup: function (body, authorization, options) {
275
+ return localVarFp.initiatePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
276
276
  },
277
277
  };
278
278
  };
@@ -298,7 +298,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
298
298
  */
299
299
  PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
300
300
  var _this = this;
301
- return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
301
+ return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
302
302
  };
303
303
  /**
304
304
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
@@ -310,7 +310,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
310
310
  */
311
311
  PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
312
312
  var _this = this;
313
- return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
313
+ return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
314
314
  };
315
315
  return PaymentSetupApi;
316
316
  }(base_1.BaseAPI));