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

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 (182) hide show
  1. package/.openapi-generator/FILES +50 -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 +52 -36
  8. package/api/payments-api.ts +12 -6
  9. package/api/refunds-api.ts +12 -6
  10. package/base.ts +15 -7
  11. package/dist/api/bank-accounts-api.d.ts +22 -18
  12. package/dist/api/bank-transaction-api.d.ts +20 -15
  13. package/dist/api/payment-methods-api.d.ts +19 -15
  14. package/dist/api/payment-methods-api.js +12 -12
  15. package/dist/api/payment-reminders-api.d.ts +16 -12
  16. package/dist/api/payment-setup-api.d.ts +38 -26
  17. package/dist/api/payment-setup-api.js +40 -32
  18. package/dist/api/payments-api.d.ts +12 -9
  19. package/dist/api/refunds-api.d.ts +12 -9
  20. package/dist/base.d.ts +3 -1
  21. package/dist/base.js +27 -20
  22. package/dist/models/bank-account-class-without-expand-properties.d.ts +72 -0
  23. package/dist/models/bank-account-class-without-expand-properties.js +15 -0
  24. package/dist/models/bank-account-class.d.ts +79 -0
  25. package/dist/models/bank-account-class.js +15 -0
  26. package/dist/models/bank-transaction-class.d.ts +128 -0
  27. package/dist/models/bank-transaction-class.js +15 -0
  28. package/dist/models/billing-profile-dto.d.ts +38 -0
  29. package/dist/models/billing-profile-dto.js +15 -0
  30. package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
  31. package/dist/models/billing-profile-limited-response-dto.js +15 -0
  32. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  33. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  34. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  35. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  36. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  37. package/dist/models/complete-payment-setup-response-class.js +15 -0
  38. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  39. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  40. package/dist/models/create-bank-account-request-dto.d.ts +2 -2
  41. package/dist/models/create-bank-account-response-class.d.ts +25 -0
  42. package/dist/models/create-bank-account-response-class.js +15 -0
  43. package/dist/models/create-payment-method-response-class.d.ts +25 -0
  44. package/dist/models/create-payment-method-response-class.js +15 -0
  45. package/dist/models/create-payment-reminder-response-class.d.ts +25 -0
  46. package/dist/models/create-payment-reminder-response-class.js +15 -0
  47. package/dist/models/create-payment-request-dto.d.ts +3 -3
  48. package/dist/models/create-payment-response-class.d.ts +25 -0
  49. package/dist/models/create-payment-response-class.js +15 -0
  50. package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
  51. package/dist/models/create-psp-payment-method-request-dto.js +32 -0
  52. package/dist/models/create-refund-response-class.d.ts +25 -0
  53. package/dist/models/create-refund-response-class.js +15 -0
  54. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  55. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  56. package/dist/models/deactivated-payment-reminder-class.d.ts +90 -0
  57. package/dist/models/deactivated-payment-reminder-class.js +15 -0
  58. package/dist/models/get-bank-account-response-class.d.ts +25 -0
  59. package/dist/models/get-bank-account-response-class.js +15 -0
  60. package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
  61. package/dist/models/get-bank-transactions-response-class.js +15 -0
  62. package/dist/models/get-payment-method-response-class.d.ts +25 -0
  63. package/dist/models/get-payment-method-response-class.js +15 -0
  64. package/dist/models/get-payment-reminder-response-class.d.ts +25 -0
  65. package/dist/models/get-payment-reminder-response-class.js +15 -0
  66. package/dist/models/get-payment-response-class.d.ts +25 -0
  67. package/dist/models/get-payment-response-class.js +15 -0
  68. package/dist/models/get-refund-response-class.d.ts +25 -0
  69. package/dist/models/get-refund-response-class.js +15 -0
  70. package/dist/models/import-bank-transactions-response-class.d.ts +25 -0
  71. package/dist/models/import-bank-transactions-response-class.js +15 -0
  72. package/dist/models/index.d.ts +50 -0
  73. package/dist/models/index.js +50 -0
  74. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  75. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  76. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  77. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  78. package/dist/models/initiate-payment-setup-request-dto.d.ts +50 -0
  79. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  80. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  81. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  82. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  83. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  84. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  85. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  86. package/dist/models/link-bank-transactions-response-class.d.ts +25 -0
  87. package/dist/models/link-bank-transactions-response-class.js +15 -0
  88. package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
  89. package/dist/models/list-bank-accounts-response-class.js +15 -0
  90. package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
  91. package/dist/models/list-bank-transactions-response-class.js +15 -0
  92. package/dist/models/list-payment-methods-response-class.d.ts +31 -0
  93. package/dist/models/list-payment-methods-response-class.js +15 -0
  94. package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
  95. package/dist/models/list-payment-reminders-response-class.js +15 -0
  96. package/dist/models/list-payments-response-class.d.ts +31 -0
  97. package/dist/models/list-payments-response-class.js +15 -0
  98. package/dist/models/list-refunds-response-class.d.ts +31 -0
  99. package/dist/models/list-refunds-response-class.js +15 -0
  100. package/dist/models/payment-class-without-expand-properties.d.ts +102 -0
  101. package/dist/models/payment-class-without-expand-properties.js +15 -0
  102. package/dist/models/payment-class.d.ts +109 -0
  103. package/dist/models/payment-class.js +15 -0
  104. package/dist/models/payment-method-class.d.ts +66 -0
  105. package/dist/models/payment-method-class.js +15 -0
  106. package/dist/models/payment-reminder-class.d.ts +90 -0
  107. package/dist/models/payment-reminder-class.js +15 -0
  108. package/dist/models/primary-bank-account-response-class.d.ts +42 -0
  109. package/dist/models/primary-bank-account-response-class.js +15 -0
  110. package/dist/models/refund-class-without-expand-properties.d.ts +99 -0
  111. package/dist/models/refund-class-without-expand-properties.js +29 -0
  112. package/dist/models/refund-class.d.ts +99 -0
  113. package/dist/models/refund-class.js +29 -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/transaction-class.d.ts +54 -0
  119. package/dist/models/transaction-class.js +15 -0
  120. package/dist/models/unlink-bank-transactions-response-class.d.ts +25 -0
  121. package/dist/models/unlink-bank-transactions-response-class.js +15 -0
  122. package/dist/models/unlinked-bank-transaction-response-class.d.ts +96 -0
  123. package/dist/models/unlinked-bank-transaction-response-class.js +15 -0
  124. package/dist/models/update-bank-account-response-class.d.ts +25 -0
  125. package/dist/models/update-bank-account-response-class.js +15 -0
  126. package/dist/models/validate-pspconfig-request-dto.d.ts +8 -1
  127. package/dist/models/validate-pspconfig-request-dto.js +7 -0
  128. package/models/bank-account-class-without-expand-properties.ts +78 -0
  129. package/models/bank-account-class.ts +85 -0
  130. package/models/bank-transaction-class.ts +134 -0
  131. package/models/billing-profile-dto.ts +44 -0
  132. package/models/billing-profile-limited-response-dto.ts +60 -0
  133. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  134. package/models/complete-payment-setup-request-dto.ts +38 -0
  135. package/models/complete-payment-setup-response-class.ts +31 -0
  136. package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
  137. package/models/create-bank-account-request-dto.ts +2 -2
  138. package/models/create-bank-account-response-class.ts +31 -0
  139. package/models/create-payment-method-response-class.ts +31 -0
  140. package/models/create-payment-reminder-response-class.ts +31 -0
  141. package/models/create-payment-request-dto.ts +3 -3
  142. package/models/create-payment-response-class.ts +31 -0
  143. package/models/create-psp-payment-method-request-dto.ts +70 -0
  144. package/models/create-refund-response-class.ts +31 -0
  145. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  146. package/models/deactivated-payment-reminder-class.ts +96 -0
  147. package/models/get-bank-account-response-class.ts +31 -0
  148. package/models/get-bank-transactions-response-class.ts +31 -0
  149. package/models/get-payment-method-response-class.ts +31 -0
  150. package/models/get-payment-reminder-response-class.ts +31 -0
  151. package/models/get-payment-response-class.ts +31 -0
  152. package/models/get-refund-response-class.ts +31 -0
  153. package/models/import-bank-transactions-response-class.ts +31 -0
  154. package/models/index.ts +50 -0
  155. package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
  156. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  157. package/models/initiate-payment-setup-request-dto.ts +56 -0
  158. package/models/initiate-payment-setup-response-class.ts +38 -0
  159. package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
  160. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  161. package/models/link-bank-transactions-response-class.ts +31 -0
  162. package/models/list-bank-accounts-response-class.ts +37 -0
  163. package/models/list-bank-transactions-response-class.ts +37 -0
  164. package/models/list-payment-methods-response-class.ts +37 -0
  165. package/models/list-payment-reminders-response-class.ts +37 -0
  166. package/models/list-payments-response-class.ts +37 -0
  167. package/models/list-refunds-response-class.ts +37 -0
  168. package/models/payment-class-without-expand-properties.ts +108 -0
  169. package/models/payment-class.ts +115 -0
  170. package/models/payment-method-class.ts +72 -0
  171. package/models/payment-reminder-class.ts +96 -0
  172. package/models/primary-bank-account-response-class.ts +48 -0
  173. package/models/refund-class-without-expand-properties.ts +109 -0
  174. package/models/refund-class.ts +109 -0
  175. package/models/sepa-direct-dto.ts +30 -0
  176. package/models/symphony-profile-limited-response-dto.ts +48 -0
  177. package/models/transaction-class.ts +60 -0
  178. package/models/unlink-bank-transactions-response-class.ts +31 -0
  179. package/models/unlinked-bank-transaction-response-class.ts +102 -0
  180. package/models/update-bank-account-response-class.ts +31 -0
  181. package/models/validate-pspconfig-request-dto.ts +11 -1
  182. package/package.json +1 -1
@@ -20,6 +20,14 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CompletePaymentSetupRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CompletePaymentSetupResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { InitiatePaymentSetupRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { InitiatePaymentSetupResponseClass } from '../models';
23
31
  /**
24
32
  * PaymentSetupApi - axios parameter creator
25
33
  * @export
@@ -27,15 +35,16 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
27
35
  export const PaymentSetupApiAxiosParamCreator = function (configuration?: Configuration) {
28
36
  return {
29
37
  /**
30
- *
31
- * @param {object} body
38
+ * 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.
39
+ * @summary Complete a payment setup
40
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
32
41
  * @param {string} [authorization] Bearer Token
33
42
  * @param {*} [options] Override http request option.
34
43
  * @throws {RequiredError}
35
44
  */
36
- completePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
37
- // verify required parameter 'body' is not null or undefined
38
- assertParamExists('completePaymentSetup', 'body', body)
45
+ completePaymentSetup: async (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
47
+ assertParamExists('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto)
39
48
  const localVarPath = `/paymentservice/v1/payment-setup/complete`;
40
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
50
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -65,7 +74,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
65
74
  setSearchParams(localVarUrlObj, localVarQueryParameter);
66
75
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
76
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
68
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
77
+ localVarRequestOptions.data = serializeDataIfNeeded(completePaymentSetupRequestDto, localVarRequestOptions, configuration)
69
78
 
70
79
  return {
71
80
  url: toPathString(localVarUrlObj),
@@ -73,15 +82,16 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
73
82
  };
74
83
  },
75
84
  /**
76
- *
77
- * @param {object} body
85
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
86
+ * @summary Initiate a payment setup
87
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
78
88
  * @param {string} [authorization] Bearer Token
79
89
  * @param {*} [options] Override http request option.
80
90
  * @throws {RequiredError}
81
91
  */
82
- initiatePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
83
- // verify required parameter 'body' is not null or undefined
84
- assertParamExists('initiatePaymentSetup', 'body', body)
92
+ initiatePaymentSetup: async (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
94
+ assertParamExists('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto)
85
95
  const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
86
96
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
97
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -111,7 +121,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
111
121
  setSearchParams(localVarUrlObj, localVarQueryParameter);
112
122
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
113
123
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
114
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
124
+ localVarRequestOptions.data = serializeDataIfNeeded(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration)
115
125
 
116
126
  return {
117
127
  url: toPathString(localVarUrlObj),
@@ -129,25 +139,27 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
129
139
  const localVarAxiosParamCreator = PaymentSetupApiAxiosParamCreator(configuration)
130
140
  return {
131
141
  /**
132
- *
133
- * @param {object} body
142
+ * 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.
143
+ * @summary Complete a payment setup
144
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
134
145
  * @param {string} [authorization] Bearer Token
135
146
  * @param {*} [options] Override http request option.
136
147
  * @throws {RequiredError}
137
148
  */
138
- async completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
139
- const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(body, authorization, options);
149
+ async completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
150
+ const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options);
140
151
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
141
152
  },
142
153
  /**
143
- *
144
- * @param {object} body
154
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
155
+ * @summary Initiate a payment setup
156
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
145
157
  * @param {string} [authorization] Bearer Token
146
158
  * @param {*} [options] Override http request option.
147
159
  * @throws {RequiredError}
148
160
  */
149
- async initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
150
- const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options);
161
+ async initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
162
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options);
151
163
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
152
164
  },
153
165
  }
@@ -161,24 +173,26 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
161
173
  const localVarFp = PaymentSetupApiFp(configuration)
162
174
  return {
163
175
  /**
164
- *
165
- * @param {object} body
176
+ * 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.
177
+ * @summary Complete a payment setup
178
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
166
179
  * @param {string} [authorization] Bearer Token
167
180
  * @param {*} [options] Override http request option.
168
181
  * @throws {RequiredError}
169
182
  */
170
- completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
171
- return localVarFp.completePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
183
+ completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
184
+ return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
172
185
  },
173
186
  /**
174
- *
175
- * @param {object} body
187
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
188
+ * @summary Initiate a payment setup
189
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
176
190
  * @param {string} [authorization] Bearer Token
177
191
  * @param {*} [options] Override http request option.
178
192
  * @throws {RequiredError}
179
193
  */
180
- initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
181
- return localVarFp.initiatePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
194
+ initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
195
+ return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
182
196
  },
183
197
  };
184
198
  };
@@ -191,10 +205,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
191
205
  export interface PaymentSetupApiCompletePaymentSetupRequest {
192
206
  /**
193
207
  *
194
- * @type {object}
208
+ * @type {CompletePaymentSetupRequestDto}
195
209
  * @memberof PaymentSetupApiCompletePaymentSetup
196
210
  */
197
- readonly body: object
211
+ readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto
198
212
 
199
213
  /**
200
214
  * Bearer Token
@@ -212,10 +226,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
212
226
  export interface PaymentSetupApiInitiatePaymentSetupRequest {
213
227
  /**
214
228
  *
215
- * @type {object}
229
+ * @type {InitiatePaymentSetupRequestDto}
216
230
  * @memberof PaymentSetupApiInitiatePaymentSetup
217
231
  */
218
- readonly body: object
232
+ readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto
219
233
 
220
234
  /**
221
235
  * Bearer Token
@@ -233,24 +247,26 @@ export interface PaymentSetupApiInitiatePaymentSetupRequest {
233
247
  */
234
248
  export class PaymentSetupApi extends BaseAPI {
235
249
  /**
236
- *
250
+ * 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.
251
+ * @summary Complete a payment setup
237
252
  * @param {PaymentSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
238
253
  * @param {*} [options] Override http request option.
239
254
  * @throws {RequiredError}
240
255
  * @memberof PaymentSetupApi
241
256
  */
242
257
  public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
243
- return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
258
+ return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
244
259
  }
245
260
 
246
261
  /**
247
- *
262
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
263
+ * @summary Initiate a payment setup
248
264
  * @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
249
265
  * @param {*} [options] Override http request option.
250
266
  * @throws {RequiredError}
251
267
  * @memberof PaymentSetupApi
252
268
  */
253
269
  public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
254
- return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
270
+ return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
255
271
  }
256
272
  }
@@ -22,6 +22,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreatePaymentRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePaymentResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetPaymentResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPaymentsResponseClass } from '../models';
25
31
  /**
26
32
  * PaymentsApi - axios parameter creator
27
33
  * @export
@@ -227,7 +233,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
227
233
  * @param {*} [options] Override http request option.
228
234
  * @throws {RequiredError}
229
235
  */
230
- async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
236
+ async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
231
237
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
232
238
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
233
239
  },
@@ -240,7 +246,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
240
246
  * @param {*} [options] Override http request option.
241
247
  * @throws {RequiredError}
242
248
  */
243
- async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
249
+ async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>> {
244
250
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, options);
245
251
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
246
252
  },
@@ -258,7 +264,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
258
264
  * @param {*} [options] Override http request option.
259
265
  * @throws {RequiredError}
260
266
  */
261
- async listPayments(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>> {
267
+ async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
262
268
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
263
269
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
264
270
  },
@@ -281,7 +287,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
281
287
  * @param {*} [options] Override http request option.
282
288
  * @throws {RequiredError}
283
289
  */
284
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
290
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
285
291
  return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
286
292
  },
287
293
  /**
@@ -293,7 +299,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
293
299
  * @param {*} [options] Override http request option.
294
300
  * @throws {RequiredError}
295
301
  */
296
- getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
302
+ getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentResponseClass> {
297
303
  return localVarFp.getPayment(code, authorization, expand, options).then((request) => request(axios, basePath));
298
304
  },
299
305
  /**
@@ -310,7 +316,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
310
316
  * @param {*} [options] Override http request option.
311
317
  * @throws {RequiredError}
312
318
  */
313
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
319
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentsResponseClass> {
314
320
  return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
315
321
  },
316
322
  };
@@ -22,6 +22,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreateRefundRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateRefundResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetRefundResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListRefundsResponseClass } from '../models';
25
31
  /**
26
32
  * RefundsApi - axios parameter creator
27
33
  * @export
@@ -219,7 +225,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
219
225
  * @param {*} [options] Override http request option.
220
226
  * @throws {RequiredError}
221
227
  */
222
- async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
228
+ async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRefundResponseClass>> {
223
229
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRefund(createRefundRequestDto, authorization, options);
224
230
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
225
231
  },
@@ -232,7 +238,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
232
238
  * @param {*} [options] Override http request option.
233
239
  * @throws {RequiredError}
234
240
  */
235
- async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
241
+ async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
236
242
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, authorization, expand, options);
237
243
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
238
244
  },
@@ -250,7 +256,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
250
256
  * @param {*} [options] Override http request option.
251
257
  * @throws {RequiredError}
252
258
  */
253
- async listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
259
+ async listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
254
260
  const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
255
261
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
256
262
  },
@@ -272,7 +278,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
272
278
  * @param {*} [options] Override http request option.
273
279
  * @throws {RequiredError}
274
280
  */
275
- createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
281
+ createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<CreateRefundResponseClass> {
276
282
  return localVarFp.createRefund(createRefundRequestDto, authorization, options).then((request) => request(axios, basePath));
277
283
  },
278
284
  /**
@@ -284,7 +290,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
284
290
  * @param {*} [options] Override http request option.
285
291
  * @throws {RequiredError}
286
292
  */
287
- getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
293
+ getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
288
294
  return localVarFp.getRefund(code, authorization, expand, options).then((request) => request(axios, basePath));
289
295
  },
290
296
  /**
@@ -301,7 +307,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
301
307
  * @param {*} [options] Override http request option.
302
308
  * @throws {RequiredError}
303
309
  */
304
- listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
310
+ listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
305
311
  return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
306
312
  },
307
313
  };
package/base.ts CHANGED
@@ -77,6 +77,7 @@ const TOKEN_DATA = 'APP_TOKEN';
77
77
  export class BaseAPI {
78
78
  protected configuration: Configuration | undefined;
79
79
  private tokenData?: TokenData;
80
+ private permissions: Array<string> = [];
80
81
 
81
82
  constructor(configuration?: Configuration,
82
83
  protected basePath: string = BASE_PATH,
@@ -109,6 +110,10 @@ export class BaseAPI {
109
110
  this.configuration.basePath = path;
110
111
  }
111
112
 
113
+ getPermissions(): Array<string> {
114
+ return this.permissions;
115
+ }
116
+
112
117
  async authorize(username: string, password: string): Promise<void> {
113
118
  const options: AxiosRequestConfig = {
114
119
  method: 'POST',
@@ -123,23 +128,24 @@ export class BaseAPI {
123
128
 
124
129
  const response = await globalAxios.request<LoginClass>(options);
125
130
 
126
- const { data: { accessToken } } = response;
131
+ const { data: { accessToken, permissions } } = response;
127
132
 
128
133
  this.configuration.username = username;
129
134
  this.configuration.accessToken = `Bearer ${accessToken}`;
130
135
  this.tokenData.username = username;
131
136
  this.tokenData.accessToken = accessToken;
137
+ this.permissions = permissions;
132
138
 
133
139
  this.storeTokenData({
134
140
  ...this.tokenData
135
141
  });
136
142
  }
137
143
 
138
- async refreshTokenInternal(): Promise<string> {
144
+ async refreshTokenInternal(): Promise<LoginClass> {
139
145
  const { username } = this.configuration;
140
146
 
141
147
  if (!username) {
142
- return '';
148
+ throw new Error('Failed to refresh token.');
143
149
  }
144
150
 
145
151
  const options: AxiosRequestConfig = {
@@ -152,9 +158,9 @@ export class BaseAPI {
152
158
  withCredentials: true,
153
159
  };
154
160
 
155
- const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
161
+ const response = await globalAxios.request<LoginClass>(options);
156
162
 
157
- return accessToken;
163
+ return response.data;
158
164
  }
159
165
 
160
166
  private storeTokenData(tokenData?: TokenData) {
@@ -188,8 +194,9 @@ export class BaseAPI {
188
194
  && !originalConfig._retry) {
189
195
  originalConfig._retry = true;
190
196
  try {
191
- let tokenString = await this.refreshTokenInternal();
197
+ const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
192
198
  const accessToken = `Bearer ${tokenString}`;
199
+ this.permissions = permissions;
193
200
 
194
201
  delete originalConfig.headers['Authorization']
195
202
 
@@ -214,8 +221,9 @@ export class BaseAPI {
214
221
  ) {
215
222
  _retry_count++;
216
223
  try {
217
- let tokenString = await this.refreshTokenInternal();
224
+ const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
218
225
  const accessToken = `Bearer ${tokenString}`;
226
+ this.permissions = permissions;
219
227
 
220
228
  _retry = true;
221
229
  originalConfig.headers['Authorization'] = accessToken;
@@ -13,8 +13,12 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateBankAccountRequestDto } from '../models';
16
+ import { CreateBankAccountResponseClass } from '../models';
17
+ import { GetBankAccountResponseClass } from '../models';
18
+ import { ListBankAccountsResponseClass } from '../models';
16
19
  import { SetPrimaryBankAccountRequestDtoRest } from '../models';
17
20
  import { UpdateBankAccountRequestDtoRest } from '../models';
21
+ import { UpdateBankAccountResponseClass } from '../models';
18
22
  /**
19
23
  * BankAccountsApi - axios parameter creator
20
24
  * @export
@@ -97,7 +101,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
97
101
  * @param {*} [options] Override http request option.
98
102
  * @throws {RequiredError}
99
103
  */
100
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
104
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBankAccountResponseClass>>;
101
105
  /**
102
106
  * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
103
107
  * @summary Delete the bank account
@@ -106,7 +110,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
106
110
  * @param {*} [options] Override http request option.
107
111
  * @throws {RequiredError}
108
112
  */
109
- deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
113
+ deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
110
114
  /**
111
115
  * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
112
116
  * @summary Retrieve the bank account
@@ -116,7 +120,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
116
120
  * @param {*} [options] Override http request option.
117
121
  * @throws {RequiredError}
118
122
  */
119
- getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
123
+ getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>>;
120
124
  /**
121
125
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
122
126
  * @summary List bank accounts
@@ -131,7 +135,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
131
135
  * @param {*} [options] Override http request option.
132
136
  * @throws {RequiredError}
133
137
  */
134
- listBankAccounts(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>>;
138
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
135
139
  /**
136
140
  * Set the primary bank account for the specified partner/account
137
141
  * @summary Set primary bank account
@@ -141,7 +145,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
141
145
  * @param {*} [options] Override http request option.
142
146
  * @throws {RequiredError}
143
147
  */
144
- setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
148
+ setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
145
149
  /**
146
150
  * Update a bank account by code
147
151
  * @summary Update the bank account
@@ -151,7 +155,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
151
155
  * @param {*} [options] Override http request option.
152
156
  * @throws {RequiredError}
153
157
  */
154
- updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
158
+ updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankAccountResponseClass>>;
155
159
  };
156
160
  /**
157
161
  * BankAccountsApi - factory interface
@@ -166,7 +170,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
166
170
  * @param {*} [options] Override http request option.
167
171
  * @throws {RequiredError}
168
172
  */
169
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
173
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBankAccountResponseClass>;
170
174
  /**
171
175
  * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
172
176
  * @summary Delete the bank account
@@ -175,7 +179,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
175
179
  * @param {*} [options] Override http request option.
176
180
  * @throws {RequiredError}
177
181
  */
178
- deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void>;
182
+ deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object>;
179
183
  /**
180
184
  * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
181
185
  * @summary Retrieve the bank account
@@ -185,7 +189,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
185
189
  * @param {*} [options] Override http request option.
186
190
  * @throws {RequiredError}
187
191
  */
188
- getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
192
+ getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankAccountResponseClass>;
189
193
  /**
190
194
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
191
195
  * @summary List bank accounts
@@ -200,7 +204,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
200
204
  * @param {*} [options] Override http request option.
201
205
  * @throws {RequiredError}
202
206
  */
203
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
207
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
204
208
  /**
205
209
  * Set the primary bank account for the specified partner/account
206
210
  * @summary Set primary bank account
@@ -210,7 +214,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
210
214
  * @param {*} [options] Override http request option.
211
215
  * @throws {RequiredError}
212
216
  */
213
- setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void>;
217
+ setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object>;
214
218
  /**
215
219
  * Update a bank account by code
216
220
  * @summary Update the bank account
@@ -220,7 +224,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
220
224
  * @param {*} [options] Override http request option.
221
225
  * @throws {RequiredError}
222
226
  */
223
- updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void>;
227
+ updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankAccountResponseClass>;
224
228
  };
225
229
  /**
226
230
  * Request parameters for createBankAccount operation in BankAccountsApi.
@@ -405,7 +409,7 @@ export declare class BankAccountsApi extends BaseAPI {
405
409
  * @throws {RequiredError}
406
410
  * @memberof BankAccountsApi
407
411
  */
408
- createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
412
+ createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankAccountResponseClass, any>>;
409
413
  /**
410
414
  * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
411
415
  * @summary Delete the bank account
@@ -414,7 +418,7 @@ export declare class BankAccountsApi extends BaseAPI {
414
418
  * @throws {RequiredError}
415
419
  * @memberof BankAccountsApi
416
420
  */
417
- deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
421
+ deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
418
422
  /**
419
423
  * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
420
424
  * @summary Retrieve the bank account
@@ -423,7 +427,7 @@ export declare class BankAccountsApi extends BaseAPI {
423
427
  * @throws {RequiredError}
424
428
  * @memberof BankAccountsApi
425
429
  */
426
- getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
430
+ getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankAccountResponseClass, any>>;
427
431
  /**
428
432
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
429
433
  * @summary List bank accounts
@@ -432,7 +436,7 @@ export declare class BankAccountsApi extends BaseAPI {
432
436
  * @throws {RequiredError}
433
437
  * @memberof BankAccountsApi
434
438
  */
435
- listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
439
+ listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
436
440
  /**
437
441
  * Set the primary bank account for the specified partner/account
438
442
  * @summary Set primary bank account
@@ -441,7 +445,7 @@ export declare class BankAccountsApi extends BaseAPI {
441
445
  * @throws {RequiredError}
442
446
  * @memberof BankAccountsApi
443
447
  */
444
- setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
448
+ setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
445
449
  /**
446
450
  * Update a bank account by code
447
451
  * @summary Update the bank account
@@ -450,5 +454,5 @@ export declare class BankAccountsApi extends BaseAPI {
450
454
  * @throws {RequiredError}
451
455
  * @memberof BankAccountsApi
452
456
  */
453
- updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
457
+ updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankAccountResponseClass, any>>;
454
458
  }