@emilgroup/payment-sdk 1.4.1-beta.7 → 1.4.1-beta.9

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 (123) hide show
  1. package/.openapi-generator/FILES +2 -29
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +16 -20
  4. package/api/bank-transaction-api.ts +60 -26
  5. package/api/payment-methods-api.ts +37 -41
  6. package/api/payment-reminders-api.ts +8 -12
  7. package/api/payment-setup-api.ts +28 -36
  8. package/api/payments-api.ts +25 -27
  9. package/api/refunds-api.ts +15 -13
  10. package/api/tenant-bank-account-api.ts +48 -28
  11. package/dist/api/bank-accounts-api.d.ts +12 -14
  12. package/dist/api/bank-accounts-api.js +12 -12
  13. package/dist/api/bank-transaction-api.d.ts +41 -21
  14. package/dist/api/bank-transaction-api.js +32 -18
  15. package/dist/api/payment-methods-api.d.ts +27 -31
  16. package/dist/api/payment-methods-api.js +28 -24
  17. package/dist/api/payment-reminders-api.d.ts +12 -14
  18. package/dist/api/payment-setup-api.d.ts +18 -22
  19. package/dist/api/payment-setup-api.js +24 -24
  20. package/dist/api/payments-api.d.ts +21 -24
  21. package/dist/api/payments-api.js +16 -12
  22. package/dist/api/refunds-api.d.ts +10 -10
  23. package/dist/api/refunds-api.js +11 -9
  24. package/dist/api/tenant-bank-account-api.d.ts +48 -28
  25. package/dist/api/tenant-bank-account-api.js +43 -23
  26. package/dist/models/create-payment-request-dto.d.ts +3 -3
  27. package/dist/models/get-request-dto.d.ts +1 -1
  28. package/dist/models/index.d.ts +2 -29
  29. package/dist/models/index.js +2 -29
  30. package/dist/models/{sepa-direct-dto.d.ts → link-bank-transaction-request-dto-rest.d.ts} +5 -5
  31. package/dist/models/{initiate-braintree-payment-setup-response-class.d.ts → unlink-bank-transaction-request-dto-rest.d.ts} +5 -5
  32. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  33. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  34. package/models/create-payment-request-dto.ts +3 -3
  35. package/models/get-request-dto.ts +1 -1
  36. package/models/index.ts +2 -29
  37. package/models/{sepa-direct-dto.ts → link-bank-transaction-request-dto-rest.ts} +5 -5
  38. package/models/{initiate-braintree-payment-setup-response-class.ts → unlink-bank-transaction-request-dto-rest.ts} +5 -5
  39. package/models/validate-pspconfig-request-dto.ts +1 -11
  40. package/package.json +1 -1
  41. package/dist/models/bank-account-class.d.ts +0 -54
  42. package/dist/models/billing-profile-dto.d.ts +0 -38
  43. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  44. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  45. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  46. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  47. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  48. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  49. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  50. package/dist/models/complete-payment-setup-response-class.js +0 -15
  51. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  52. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  53. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  54. package/dist/models/create-bank-account-request-dto.js +0 -15
  55. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  56. package/dist/models/create-payment-method-response-class.js +0 -15
  57. package/dist/models/create-payment-response-class.d.ts +0 -25
  58. package/dist/models/create-payment-response-class.js +0 -15
  59. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  60. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  61. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  62. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  63. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  64. package/dist/models/get-payment-method-response-class.js +0 -15
  65. package/dist/models/get-payment-response-class.d.ts +0 -25
  66. package/dist/models/get-payment-response-class.js +0 -15
  67. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  68. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  69. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  70. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  71. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  72. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  73. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  74. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  75. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  76. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  77. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  78. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  79. package/dist/models/list-bank-accounts-response-class.js +0 -15
  80. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  81. package/dist/models/list-payment-methods-response-class.js +0 -15
  82. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  83. package/dist/models/list-payment-reminders-response-class.js +0 -15
  84. package/dist/models/list-payments-response-class.d.ts +0 -31
  85. package/dist/models/list-payments-response-class.js +0 -15
  86. package/dist/models/payment-class.d.ts +0 -103
  87. package/dist/models/payment-class.js +0 -15
  88. package/dist/models/payment-method-class.d.ts +0 -66
  89. package/dist/models/payment-method-class.js +0 -15
  90. package/dist/models/payment-reminder-class.d.ts +0 -112
  91. package/dist/models/payment-reminder-class.js +0 -36
  92. package/dist/models/sepa-direct-dto.js +0 -15
  93. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  94. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  95. package/models/bank-account-class.ts +0 -60
  96. package/models/billing-profile-dto.ts +0 -44
  97. package/models/billing-profile-limited-response-dto.ts +0 -60
  98. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  99. package/models/complete-payment-setup-request-dto.ts +0 -38
  100. package/models/complete-payment-setup-response-class.ts +0 -31
  101. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  102. package/models/create-bank-account-request-dto.ts +0 -36
  103. package/models/create-payment-method-response-class.ts +0 -31
  104. package/models/create-payment-response-class.ts +0 -31
  105. package/models/create-psp-payment-method-request-dto.ts +0 -70
  106. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  107. package/models/get-payment-method-response-class.ts +0 -31
  108. package/models/get-payment-response-class.ts +0 -31
  109. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  110. package/models/initiate-payment-setup-request-dto.ts +0 -50
  111. package/models/initiate-payment-setup-response-class.ts +0 -38
  112. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  113. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  114. package/models/list-bank-accounts-response-class.ts +0 -37
  115. package/models/list-payment-methods-response-class.ts +0 -37
  116. package/models/list-payment-reminders-response-class.ts +0 -37
  117. package/models/list-payments-response-class.ts +0 -37
  118. package/models/payment-class.ts +0 -109
  119. package/models/payment-method-class.ts +0 -72
  120. package/models/payment-reminder-class.ts +0 -122
  121. package/models/symphony-profile-limited-response-dto.ts +0 -48
  122. /package/dist/models/{bank-account-class.js → link-bank-transaction-request-dto-rest.js} +0 -0
  123. /package/dist/models/{billing-profile-dto.js → unlink-bank-transaction-request-dto-rest.js} +0 -0
@@ -13,7 +13,9 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { GetBankTransactionsResponseClass } from '../models';
16
+ import { LinkBankTransactionRequestDtoRest } from '../models';
16
17
  import { ListBankTransactionsResponseClass } from '../models';
18
+ import { UnlinkBankTransactionRequestDtoRest } from '../models';
17
19
  /**
18
20
  * BankTransactionApi - axios parameter creator
19
21
  * @export
@@ -42,35 +44,37 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
42
44
  * Links a bank transaction with an invoice
43
45
  * @summary Link Bank Transaction
44
46
  * @param {string} code Code of the bank transaction to link
47
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
45
48
  * @param {string} [authorization] Bearer Token
46
49
  * @param {*} [options] Override http request option.
47
50
  * @throws {RequiredError}
48
51
  */
49
- linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ linkBankTransaction: (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
53
  /**
51
54
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
52
55
  * @summary List bank transactions
53
56
  * @param {string} [authorization] Bearer Token
54
57
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
55
58
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
56
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
59
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
57
60
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
58
61
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
59
- * @param {string} [expand] Expand the response with additional entities
62
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
60
63
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
61
64
  * @param {*} [options] Override http request option.
62
65
  * @throws {RequiredError}
63
66
  */
64
- listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
+ listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked', search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
68
  /**
66
69
  * Unlinks an already linked bank transaction
67
70
  * @summary Unlink Bank Transaction
68
71
  * @param {string} code Code of the bank transaction to unlink
72
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
69
73
  * @param {string} [authorization] Bearer Token
70
74
  * @param {*} [options] Override http request option.
71
75
  * @throws {RequiredError}
72
76
  */
73
- unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
+ unlinkBankTransaction: (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
78
  };
75
79
  /**
76
80
  * BankTransactionApi - functional programming interface
@@ -100,35 +104,37 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
100
104
  * Links a bank transaction with an invoice
101
105
  * @summary Link Bank Transaction
102
106
  * @param {string} code Code of the bank transaction to link
107
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
103
108
  * @param {string} [authorization] Bearer Token
104
109
  * @param {*} [options] Override http request option.
105
110
  * @throws {RequiredError}
106
111
  */
107
- linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
112
+ linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
108
113
  /**
109
114
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
110
115
  * @summary List bank transactions
111
116
  * @param {string} [authorization] Bearer Token
112
117
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
113
118
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
114
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
119
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
115
120
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
116
121
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
117
- * @param {string} [expand] Expand the response with additional entities
122
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
118
123
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
119
124
  * @param {*} [options] Override http request option.
120
125
  * @throws {RequiredError}
121
126
  */
122
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
127
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked', search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
123
128
  /**
124
129
  * Unlinks an already linked bank transaction
125
130
  * @summary Unlink Bank Transaction
126
131
  * @param {string} code Code of the bank transaction to unlink
132
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
127
133
  * @param {string} [authorization] Bearer Token
128
134
  * @param {*} [options] Override http request option.
129
135
  * @throws {RequiredError}
130
136
  */
131
- unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
137
+ unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
132
138
  };
133
139
  /**
134
140
  * BankTransactionApi - factory interface
@@ -158,35 +164,37 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
158
164
  * Links a bank transaction with an invoice
159
165
  * @summary Link Bank Transaction
160
166
  * @param {string} code Code of the bank transaction to link
167
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
161
168
  * @param {string} [authorization] Bearer Token
162
169
  * @param {*} [options] Override http request option.
163
170
  * @throws {RequiredError}
164
171
  */
165
- linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
172
+ linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
166
173
  /**
167
174
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
168
175
  * @summary List bank transactions
169
176
  * @param {string} [authorization] Bearer Token
170
177
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
171
178
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
172
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
179
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
173
180
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
174
181
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
175
- * @param {string} [expand] Expand the response with additional entities
182
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
176
183
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
177
184
  * @param {*} [options] Override http request option.
178
185
  * @throws {RequiredError}
179
186
  */
180
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
187
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked', search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<void>;
181
188
  /**
182
189
  * Unlinks an already linked bank transaction
183
190
  * @summary Unlink Bank Transaction
184
191
  * @param {string} code Code of the bank transaction to unlink
192
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
185
193
  * @param {string} [authorization] Bearer Token
186
194
  * @param {*} [options] Override http request option.
187
195
  * @throws {RequiredError}
188
196
  */
189
- unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
197
+ unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
190
198
  };
191
199
  /**
192
200
  * Request parameters for getBankTransaction operation in BankTransactionApi.
@@ -244,6 +252,12 @@ export interface BankTransactionApiLinkBankTransactionRequest {
244
252
  * @memberof BankTransactionApiLinkBankTransaction
245
253
  */
246
254
  readonly code: string;
255
+ /**
256
+ *
257
+ * @type {LinkBankTransactionRequestDtoRest}
258
+ * @memberof BankTransactionApiLinkBankTransaction
259
+ */
260
+ readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest;
247
261
  /**
248
262
  * Bearer Token
249
263
  * @type {string}
@@ -276,11 +290,11 @@ export interface BankTransactionApiListBankTransactionsRequest {
276
290
  */
277
291
  readonly pageToken?: any;
278
292
  /**
279
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
280
- * @type {any}
293
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
294
+ * @type {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'}
281
295
  * @memberof BankTransactionApiListBankTransactions
282
296
  */
283
- readonly filter?: any;
297
+ readonly filter?: 'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked';
284
298
  /**
285
299
  * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
286
300
  * @type {any}
@@ -295,10 +309,10 @@ export interface BankTransactionApiListBankTransactionsRequest {
295
309
  readonly order?: any;
296
310
  /**
297
311
  * Expand the response with additional entities
298
- * @type {string}
312
+ * @type {'bankAccount' | 'transaction'}
299
313
  * @memberof BankTransactionApiListBankTransactions
300
314
  */
301
- readonly expand?: string;
315
+ readonly expand?: 'bankAccount' | 'transaction';
302
316
  /**
303
317
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
304
318
  * @type {any}
@@ -318,6 +332,12 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
318
332
  * @memberof BankTransactionApiUnlinkBankTransaction
319
333
  */
320
334
  readonly code: string;
335
+ /**
336
+ *
337
+ * @type {UnlinkBankTransactionRequestDtoRest}
338
+ * @memberof BankTransactionApiUnlinkBankTransaction
339
+ */
340
+ readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest;
321
341
  /**
322
342
  * Bearer Token
323
343
  * @type {string}
@@ -367,7 +387,7 @@ export declare class BankTransactionApi extends BaseAPI {
367
387
  * @throws {RequiredError}
368
388
  * @memberof BankTransactionApi
369
389
  */
370
- listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
390
+ listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
371
391
  /**
372
392
  * Unlinks an already linked bank transaction
373
393
  * @summary Unlink Bank Transaction
@@ -198,11 +198,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
198
198
  * Links a bank transaction with an invoice
199
199
  * @summary Link Bank Transaction
200
200
  * @param {string} code Code of the bank transaction to link
201
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
201
202
  * @param {string} [authorization] Bearer Token
202
203
  * @param {*} [options] Override http request option.
203
204
  * @throws {RequiredError}
204
205
  */
205
- linkBankTransaction: function (code, authorization, options) {
206
+ linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
206
207
  if (options === void 0) { options = {}; }
207
208
  return __awaiter(_this, void 0, void 0, function () {
208
209
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -211,6 +212,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
211
212
  case 0:
212
213
  // verify required parameter 'code' is not null or undefined
213
214
  (0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
215
+ // verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
216
+ (0, common_1.assertParamExists)('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest);
214
217
  localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
215
218
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
216
219
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -231,9 +234,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
231
234
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
232
235
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
233
236
  }
237
+ localVarHeaderParameter['Content-Type'] = 'application/json';
234
238
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
239
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
240
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
241
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration);
237
242
  return [2 /*return*/, {
238
243
  url: (0, common_1.toPathString)(localVarUrlObj),
239
244
  options: localVarRequestOptions,
@@ -248,10 +253,10 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
248
253
  * @param {string} [authorization] Bearer Token
249
254
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
250
255
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
251
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
256
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
252
257
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
253
258
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
254
- * @param {string} [expand] Expand the response with additional entities
259
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
255
260
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
256
261
  * @param {*} [options] Override http request option.
257
262
  * @throws {RequiredError}
@@ -318,11 +323,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
318
323
  * Unlinks an already linked bank transaction
319
324
  * @summary Unlink Bank Transaction
320
325
  * @param {string} code Code of the bank transaction to unlink
326
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
321
327
  * @param {string} [authorization] Bearer Token
322
328
  * @param {*} [options] Override http request option.
323
329
  * @throws {RequiredError}
324
330
  */
325
- unlinkBankTransaction: function (code, authorization, options) {
331
+ unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
326
332
  if (options === void 0) { options = {}; }
327
333
  return __awaiter(_this, void 0, void 0, function () {
328
334
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -331,6 +337,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
331
337
  case 0:
332
338
  // verify required parameter 'code' is not null or undefined
333
339
  (0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
340
+ // verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
341
+ (0, common_1.assertParamExists)('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest);
334
342
  localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
335
343
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
336
344
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -351,9 +359,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
351
359
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
352
360
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
353
361
  }
362
+ localVarHeaderParameter['Content-Type'] = 'application/json';
354
363
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
355
364
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
365
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
366
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration);
357
367
  return [2 /*return*/, {
358
368
  url: (0, common_1.toPathString)(localVarUrlObj),
359
369
  options: localVarRequestOptions,
@@ -419,16 +429,17 @@ var BankTransactionApiFp = function (configuration) {
419
429
  * Links a bank transaction with an invoice
420
430
  * @summary Link Bank Transaction
421
431
  * @param {string} code Code of the bank transaction to link
432
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
422
433
  * @param {string} [authorization] Bearer Token
423
434
  * @param {*} [options] Override http request option.
424
435
  * @throws {RequiredError}
425
436
  */
426
- linkBankTransaction: function (code, authorization, options) {
437
+ linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
427
438
  return __awaiter(this, void 0, void 0, function () {
428
439
  var localVarAxiosArgs;
429
440
  return __generator(this, function (_a) {
430
441
  switch (_a.label) {
431
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
442
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options)];
432
443
  case 1:
433
444
  localVarAxiosArgs = _a.sent();
434
445
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -442,10 +453,10 @@ var BankTransactionApiFp = function (configuration) {
442
453
  * @param {string} [authorization] Bearer Token
443
454
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
444
455
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
445
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
456
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
446
457
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
447
458
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
448
- * @param {string} [expand] Expand the response with additional entities
459
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
449
460
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
450
461
  * @param {*} [options] Override http request option.
451
462
  * @throws {RequiredError}
@@ -467,16 +478,17 @@ var BankTransactionApiFp = function (configuration) {
467
478
  * Unlinks an already linked bank transaction
468
479
  * @summary Unlink Bank Transaction
469
480
  * @param {string} code Code of the bank transaction to unlink
481
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
470
482
  * @param {string} [authorization] Bearer Token
471
483
  * @param {*} [options] Override http request option.
472
484
  * @throws {RequiredError}
473
485
  */
474
- unlinkBankTransaction: function (code, authorization, options) {
486
+ unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
475
487
  return __awaiter(this, void 0, void 0, function () {
476
488
  var localVarAxiosArgs;
477
489
  return __generator(this, function (_a) {
478
490
  switch (_a.label) {
479
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
491
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options)];
480
492
  case 1:
481
493
  localVarAxiosArgs = _a.sent();
482
494
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -521,12 +533,13 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
521
533
  * Links a bank transaction with an invoice
522
534
  * @summary Link Bank Transaction
523
535
  * @param {string} code Code of the bank transaction to link
536
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
524
537
  * @param {string} [authorization] Bearer Token
525
538
  * @param {*} [options] Override http request option.
526
539
  * @throws {RequiredError}
527
540
  */
528
- linkBankTransaction: function (code, authorization, options) {
529
- return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
541
+ linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
542
+ return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
530
543
  },
531
544
  /**
532
545
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -534,10 +547,10 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
534
547
  * @param {string} [authorization] Bearer Token
535
548
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
536
549
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
537
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
550
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
538
551
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
539
552
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
540
- * @param {string} [expand] Expand the response with additional entities
553
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
541
554
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
542
555
  * @param {*} [options] Override http request option.
543
556
  * @throws {RequiredError}
@@ -549,12 +562,13 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
549
562
  * Unlinks an already linked bank transaction
550
563
  * @summary Unlink Bank Transaction
551
564
  * @param {string} code Code of the bank transaction to unlink
565
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
552
566
  * @param {string} [authorization] Bearer Token
553
567
  * @param {*} [options] Override http request option.
554
568
  * @throws {RequiredError}
555
569
  */
556
- unlinkBankTransaction: function (code, authorization, options) {
557
- return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
570
+ unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
571
+ return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
558
572
  },
559
573
  };
560
574
  };
@@ -605,7 +619,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
605
619
  */
606
620
  BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
607
621
  var _this = this;
608
- return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
622
+ return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
609
623
  };
610
624
  /**
611
625
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -630,7 +644,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
630
644
  */
631
645
  BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
632
646
  var _this = this;
633
- return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
647
+ return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
634
648
  };
635
649
  return BankTransactionApi;
636
650
  }(base_1.BaseAPI));
@@ -12,10 +12,6 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CreatePaymentMethodResponseClass } from '../models';
16
- import { CreatePspPaymentMethodRequestDto } from '../models';
17
- import { GetPaymentMethodResponseClass } from '../models';
18
- import { ListPaymentMethodsResponseClass } from '../models';
19
15
  /**
20
16
  * PaymentMethodsApi - axios parameter creator
21
17
  * @export
@@ -24,12 +20,12 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
24
20
  /**
25
21
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
26
22
  * @summary Create the payment-method
27
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
23
+ * @param {object} body
28
24
  * @param {string} [authorization] Bearer Token
29
25
  * @param {*} [options] Override http request option.
30
26
  * @throws {RequiredError}
31
27
  */
32
- createPaymentMethod: (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
29
  /**
34
30
  * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
35
31
  * @summary Delete a payment method
@@ -43,13 +39,13 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
43
39
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
44
40
  * @summary Retrieve a payment method
45
41
  * @param {string} code Unique identifier for the object.
42
+ * @param {string} expand Fields to expand response by
43
+ * @param {string} expand2 Fields to expand response by
46
44
  * @param {string} [authorization] Bearer Token
47
- * @param {string} [expand] Fields to expand response by
48
- * @param {string} [expand2] Fields to expand response by
49
45
  * @param {*} [options] Override http request option.
50
46
  * @throws {RequiredError}
51
47
  */
52
- getPaymentMethod: (code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
+ getPaymentMethod: (code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
49
  /**
54
50
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
55
51
  * @summary List payment methods
@@ -74,12 +70,12 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
74
70
  /**
75
71
  * 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.
76
72
  * @summary Create the payment-method
77
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
73
+ * @param {object} body
78
74
  * @param {string} [authorization] Bearer Token
79
75
  * @param {*} [options] Override http request option.
80
76
  * @throws {RequiredError}
81
77
  */
82
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>>;
78
+ createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
83
79
  /**
84
80
  * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
85
81
  * @summary Delete a payment method
@@ -93,13 +89,13 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
93
89
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
94
90
  * @summary Retrieve a payment method
95
91
  * @param {string} code Unique identifier for the object.
92
+ * @param {string} expand Fields to expand response by
93
+ * @param {string} expand2 Fields to expand response by
96
94
  * @param {string} [authorization] Bearer Token
97
- * @param {string} [expand] Fields to expand response by
98
- * @param {string} [expand2] Fields to expand response by
99
95
  * @param {*} [options] Override http request option.
100
96
  * @throws {RequiredError}
101
97
  */
102
- getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>>;
98
+ getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
103
99
  /**
104
100
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
105
101
  * @summary List payment methods
@@ -114,7 +110,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
114
110
  * @param {*} [options] Override http request option.
115
111
  * @throws {RequiredError}
116
112
  */
117
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>>;
113
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
118
114
  };
119
115
  /**
120
116
  * PaymentMethodsApi - factory interface
@@ -124,12 +120,12 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
124
120
  /**
125
121
  * 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.
126
122
  * @summary Create the payment-method
127
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
123
+ * @param {object} body
128
124
  * @param {string} [authorization] Bearer Token
129
125
  * @param {*} [options] Override http request option.
130
126
  * @throws {RequiredError}
131
127
  */
132
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass>;
128
+ createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
133
129
  /**
134
130
  * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
135
131
  * @summary Delete a payment method
@@ -143,13 +139,13 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
143
139
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
144
140
  * @summary Retrieve a payment method
145
141
  * @param {string} code Unique identifier for the object.
142
+ * @param {string} expand Fields to expand response by
143
+ * @param {string} expand2 Fields to expand response by
146
144
  * @param {string} [authorization] Bearer Token
147
- * @param {string} [expand] Fields to expand response by
148
- * @param {string} [expand2] Fields to expand response by
149
145
  * @param {*} [options] Override http request option.
150
146
  * @throws {RequiredError}
151
147
  */
152
- getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass>;
148
+ getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void>;
153
149
  /**
154
150
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
155
151
  * @summary List payment methods
@@ -164,7 +160,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
164
160
  * @param {*} [options] Override http request option.
165
161
  * @throws {RequiredError}
166
162
  */
167
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass>;
163
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
168
164
  };
169
165
  /**
170
166
  * Request parameters for createPaymentMethod operation in PaymentMethodsApi.
@@ -174,10 +170,10 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
174
170
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
175
171
  /**
176
172
  *
177
- * @type {CreatePspPaymentMethodRequestDto}
173
+ * @type {object}
178
174
  * @memberof PaymentMethodsApiCreatePaymentMethod
179
175
  */
180
- readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto;
176
+ readonly body: object;
181
177
  /**
182
178
  * Bearer Token
183
179
  * @type {string}
@@ -217,23 +213,23 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
217
213
  */
218
214
  readonly code: string;
219
215
  /**
220
- * Bearer Token
216
+ * Fields to expand response by
221
217
  * @type {string}
222
218
  * @memberof PaymentMethodsApiGetPaymentMethod
223
219
  */
224
- readonly authorization?: string;
220
+ readonly expand: string;
225
221
  /**
226
222
  * Fields to expand response by
227
223
  * @type {string}
228
224
  * @memberof PaymentMethodsApiGetPaymentMethod
229
225
  */
230
- readonly expand?: string;
226
+ readonly expand2: string;
231
227
  /**
232
- * Fields to expand response by
228
+ * Bearer Token
233
229
  * @type {string}
234
230
  * @memberof PaymentMethodsApiGetPaymentMethod
235
231
  */
236
- readonly expand2?: string;
232
+ readonly authorization?: string;
237
233
  }
238
234
  /**
239
235
  * Request parameters for listPaymentMethods operation in PaymentMethodsApi.
@@ -305,7 +301,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
305
301
  * @throws {RequiredError}
306
302
  * @memberof PaymentMethodsApi
307
303
  */
308
- createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any>>;
304
+ createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
309
305
  /**
310
306
  * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
311
307
  * @summary Delete a payment method
@@ -323,7 +319,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
323
319
  * @throws {RequiredError}
324
320
  * @memberof PaymentMethodsApi
325
321
  */
326
- getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any>>;
322
+ getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
327
323
  /**
328
324
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
329
325
  * @summary List payment methods
@@ -332,5 +328,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
332
328
  * @throws {RequiredError}
333
329
  * @memberof PaymentMethodsApi
334
330
  */
335
- listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any>>;
331
+ listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
336
332
  }