@emilgroup/payment-sdk 1.4.1-beta.37 → 1.4.1-beta.38

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