@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.5

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 (140) hide show
  1. package/.openapi-generator/FILES +0 -35
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +16 -20
  4. package/api/bank-transaction-api.ts +2 -204
  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.ts +0 -2
  10. package/dist/api/bank-accounts-api.d.ts +12 -14
  11. package/dist/api/bank-accounts-api.js +12 -12
  12. package/dist/api/bank-transaction-api.d.ts +3 -113
  13. package/dist/api/bank-transaction-api.js +0 -184
  14. package/dist/api/payment-methods-api.d.ts +27 -31
  15. package/dist/api/payment-methods-api.js +28 -24
  16. package/dist/api/payment-reminders-api.d.ts +12 -14
  17. package/dist/api/payment-setup-api.d.ts +18 -22
  18. package/dist/api/payment-setup-api.js +24 -24
  19. package/dist/api/payments-api.d.ts +21 -24
  20. package/dist/api/payments-api.js +16 -12
  21. package/dist/api.d.ts +0 -1
  22. package/dist/api.js +0 -1
  23. package/dist/models/bank-transaction-response-class.d.ts +6 -0
  24. package/dist/models/create-payment-request-dto.d.ts +3 -3
  25. package/dist/models/get-request-dto.d.ts +1 -1
  26. package/dist/models/index.d.ts +0 -34
  27. package/dist/models/index.js +0 -34
  28. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  29. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  30. package/models/bank-transaction-response-class.ts +6 -0
  31. package/models/create-payment-request-dto.ts +3 -3
  32. package/models/get-request-dto.ts +1 -1
  33. package/models/index.ts +0 -34
  34. package/models/validate-pspconfig-request-dto.ts +1 -11
  35. package/package.json +1 -1
  36. package/api/refunds-api.ts +0 -474
  37. package/dist/api/refunds-api.d.ts +0 -269
  38. package/dist/api/refunds-api.js +0 -447
  39. package/dist/models/bank-account-class.d.ts +0 -54
  40. package/dist/models/bank-account-class.js +0 -15
  41. package/dist/models/billing-profile-dto.d.ts +0 -38
  42. package/dist/models/billing-profile-dto.js +0 -15
  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/create-refund-request-dto.d.ts +0 -24
  62. package/dist/models/create-refund-request-dto.js +0 -15
  63. package/dist/models/create-refund-response-class.d.ts +0 -25
  64. package/dist/models/create-refund-response-class.js +0 -15
  65. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  66. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  67. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  68. package/dist/models/get-payment-method-response-class.js +0 -15
  69. package/dist/models/get-payment-response-class.d.ts +0 -25
  70. package/dist/models/get-payment-response-class.js +0 -15
  71. package/dist/models/get-refund-response-class.d.ts +0 -25
  72. package/dist/models/get-refund-response-class.js +0 -15
  73. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  74. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  75. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  76. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  77. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  78. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  79. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  80. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  81. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  82. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  83. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  84. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  85. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  86. package/dist/models/list-bank-accounts-response-class.js +0 -15
  87. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  88. package/dist/models/list-payment-methods-response-class.js +0 -15
  89. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  90. package/dist/models/list-payment-reminders-response-class.js +0 -15
  91. package/dist/models/list-payments-response-class.d.ts +0 -31
  92. package/dist/models/list-payments-response-class.js +0 -15
  93. package/dist/models/list-refunds-response-class.d.ts +0 -31
  94. package/dist/models/list-refunds-response-class.js +0 -15
  95. package/dist/models/payment-class.d.ts +0 -103
  96. package/dist/models/payment-class.js +0 -15
  97. package/dist/models/payment-method-class.d.ts +0 -66
  98. package/dist/models/payment-method-class.js +0 -15
  99. package/dist/models/payment-reminder-class.d.ts +0 -112
  100. package/dist/models/payment-reminder-class.js +0 -36
  101. package/dist/models/refund-class.d.ts +0 -104
  102. package/dist/models/refund-class.js +0 -28
  103. package/dist/models/sepa-direct-dto.d.ts +0 -24
  104. package/dist/models/sepa-direct-dto.js +0 -15
  105. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  106. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  107. package/models/bank-account-class.ts +0 -60
  108. package/models/billing-profile-dto.ts +0 -44
  109. package/models/billing-profile-limited-response-dto.ts +0 -60
  110. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  111. package/models/complete-payment-setup-request-dto.ts +0 -38
  112. package/models/complete-payment-setup-response-class.ts +0 -31
  113. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  114. package/models/create-bank-account-request-dto.ts +0 -36
  115. package/models/create-payment-method-response-class.ts +0 -31
  116. package/models/create-payment-response-class.ts +0 -31
  117. package/models/create-psp-payment-method-request-dto.ts +0 -70
  118. package/models/create-refund-request-dto.ts +0 -30
  119. package/models/create-refund-response-class.ts +0 -31
  120. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  121. package/models/get-payment-method-response-class.ts +0 -31
  122. package/models/get-payment-response-class.ts +0 -31
  123. package/models/get-refund-response-class.ts +0 -31
  124. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  125. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  126. package/models/initiate-payment-setup-request-dto.ts +0 -50
  127. package/models/initiate-payment-setup-response-class.ts +0 -38
  128. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  129. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  130. package/models/list-bank-accounts-response-class.ts +0 -37
  131. package/models/list-payment-methods-response-class.ts +0 -37
  132. package/models/list-payment-reminders-response-class.ts +0 -37
  133. package/models/list-payments-response-class.ts +0 -37
  134. package/models/list-refunds-response-class.ts +0 -37
  135. package/models/payment-class.ts +0 -109
  136. package/models/payment-method-class.ts +0 -72
  137. package/models/payment-reminder-class.ts +0 -122
  138. package/models/refund-class.ts +0 -114
  139. package/models/sepa-direct-dto.ts +0 -30
  140. package/models/symphony-profile-limited-response-dto.ts +0 -48
package/api.ts CHANGED
@@ -27,7 +27,6 @@ import { PaymentMethodsApi } from './api';
27
27
  import { PaymentRemindersApi } from './api';
28
28
  import { PaymentSetupApi } from './api';
29
29
  import { PaymentsApi } from './api';
30
- import { RefundsApi } from './api';
31
30
  import { TenantBankAccountApi } from './api';
32
31
  import { WebhooksApi } from './api';
33
32
 
@@ -39,7 +38,6 @@ export * from './api/payment-methods-api';
39
38
  export * from './api/payment-reminders-api';
40
39
  export * from './api/payment-setup-api';
41
40
  export * from './api/payments-api';
42
- export * from './api/refunds-api';
43
41
  export * from './api/tenant-bank-account-api';
44
42
  export * from './api/webhooks-api';
45
43
 
@@ -12,8 +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 { CreateBankAccountRequestDto } from '../models';
16
- import { ListBankAccountsResponseClass } from '../models';
17
15
  /**
18
16
  * BankAccountsApi - axios parameter creator
19
17
  * @export
@@ -22,12 +20,12 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
22
20
  /**
23
21
  * Creates a bank account for a specified account.
24
22
  * @summary Create a bank account
25
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
23
+ * @param {object} body
26
24
  * @param {string} [authorization] Bearer Token
27
25
  * @param {*} [options] Override http request option.
28
26
  * @throws {RequiredError}
29
27
  */
30
- createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ createBankAccount: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
29
  /**
32
30
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
33
31
  * @summary List bank accounts
@@ -52,12 +50,12 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
52
50
  /**
53
51
  * Creates a bank account for a specified account.
54
52
  * @summary Create a bank account
55
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
53
+ * @param {object} body
56
54
  * @param {string} [authorization] Bearer Token
57
55
  * @param {*} [options] Override http request option.
58
56
  * @throws {RequiredError}
59
57
  */
60
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
58
+ createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
61
59
  /**
62
60
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
63
61
  * @summary List bank accounts
@@ -72,7 +70,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
72
70
  * @param {*} [options] Override http request option.
73
71
  * @throws {RequiredError}
74
72
  */
75
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
73
+ listBankAccounts(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>>;
76
74
  };
77
75
  /**
78
76
  * BankAccountsApi - factory interface
@@ -82,12 +80,12 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
82
80
  /**
83
81
  * Creates a bank account for a specified account.
84
82
  * @summary Create a bank account
85
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
83
+ * @param {object} body
86
84
  * @param {string} [authorization] Bearer Token
87
85
  * @param {*} [options] Override http request option.
88
86
  * @throws {RequiredError}
89
87
  */
90
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
88
+ createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void>;
91
89
  /**
92
90
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
93
91
  * @summary List bank accounts
@@ -102,7 +100,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
102
100
  * @param {*} [options] Override http request option.
103
101
  * @throws {RequiredError}
104
102
  */
105
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
103
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
106
104
  };
107
105
  /**
108
106
  * Request parameters for createBankAccount operation in BankAccountsApi.
@@ -112,10 +110,10 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
112
110
  export interface BankAccountsApiCreateBankAccountRequest {
113
111
  /**
114
112
  *
115
- * @type {CreateBankAccountRequestDto}
113
+ * @type {object}
116
114
  * @memberof BankAccountsApiCreateBankAccount
117
115
  */
118
- readonly createBankAccountRequestDto: CreateBankAccountRequestDto;
116
+ readonly body: object;
119
117
  /**
120
118
  * Bearer Token
121
119
  * @type {string}
@@ -193,7 +191,7 @@ export declare class BankAccountsApi extends BaseAPI {
193
191
  * @throws {RequiredError}
194
192
  * @memberof BankAccountsApi
195
193
  */
196
- createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
194
+ createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
197
195
  /**
198
196
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
199
197
  * @summary List bank accounts
@@ -202,5 +200,5 @@ export declare class BankAccountsApi extends BaseAPI {
202
200
  * @throws {RequiredError}
203
201
  * @memberof BankAccountsApi
204
202
  */
205
- listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
203
+ listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
206
204
  }
@@ -95,20 +95,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * Creates a bank account for a specified account.
97
97
  * @summary Create a bank account
98
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
98
+ * @param {object} body
99
99
  * @param {string} [authorization] Bearer Token
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
103
+ createBankAccount: function (body, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- // verify required parameter 'createBankAccountRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
110
+ // verify required parameter 'body' is not null or undefined
111
+ (0, common_1.assertParamExists)('createBankAccount', 'body', body);
112
112
  localVarPath = "/paymentservice/v1/bank-accounts";
113
113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
114
  if (configuration) {
@@ -132,7 +132,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
132
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
134
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBankAccountRequestDto, localVarRequestOptions, configuration);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
136
136
  return [2 /*return*/, {
137
137
  url: (0, common_1.toPathString)(localVarUrlObj),
138
138
  options: localVarRequestOptions,
@@ -226,17 +226,17 @@ var BankAccountsApiFp = function (configuration) {
226
226
  /**
227
227
  * Creates a bank account for a specified account.
228
228
  * @summary Create a bank account
229
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
229
+ * @param {object} body
230
230
  * @param {string} [authorization] Bearer Token
231
231
  * @param {*} [options] Override http request option.
232
232
  * @throws {RequiredError}
233
233
  */
234
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
234
+ createBankAccount: function (body, authorization, options) {
235
235
  return __awaiter(this, void 0, void 0, function () {
236
236
  var localVarAxiosArgs;
237
237
  return __generator(this, function (_a) {
238
238
  switch (_a.label) {
239
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options)];
239
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(body, authorization, options)];
240
240
  case 1:
241
241
  localVarAxiosArgs = _a.sent();
242
242
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -284,13 +284,13 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
284
284
  /**
285
285
  * Creates a bank account for a specified account.
286
286
  * @summary Create a bank account
287
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
287
+ * @param {object} body
288
288
  * @param {string} [authorization] Bearer Token
289
289
  * @param {*} [options] Override http request option.
290
290
  * @throws {RequiredError}
291
291
  */
292
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
293
- return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
292
+ createBankAccount: function (body, authorization, options) {
293
+ return localVarFp.createBankAccount(body, authorization, options).then(function (request) { return request(axios, basePath); });
294
294
  },
295
295
  /**
296
296
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -333,7 +333,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
333
333
  */
334
334
  BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
335
335
  var _this = this;
336
- return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
336
+ return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
337
337
  };
338
338
  /**
339
339
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -38,15 +38,6 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
38
38
  * @throws {RequiredError}
39
39
  */
40
40
  importBankTransactions: (authorization?: string, file?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
- /**
42
- * Links a bank transaction with an invoice
43
- * @summary Link Bank Transaction
44
- * @param {string} code Code of the bank transaction to link
45
- * @param {string} [authorization] Bearer Token
46
- * @param {*} [options] Override http request option.
47
- * @throws {RequiredError}
48
- */
49
- linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
41
  /**
51
42
  * 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
43
  * @summary List bank transactions
@@ -62,15 +53,6 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
62
53
  * @throws {RequiredError}
63
54
  */
64
55
  listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
- /**
66
- * Unlinks an already linked bank transaction
67
- * @summary Unlink Bank Transaction
68
- * @param {string} code Code of the bank transaction to unlink
69
- * @param {string} [authorization] Bearer Token
70
- * @param {*} [options] Override http request option.
71
- * @throws {RequiredError}
72
- */
73
- unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
56
  };
75
57
  /**
76
58
  * BankTransactionApi - functional programming interface
@@ -96,15 +78,6 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
96
78
  * @throws {RequiredError}
97
79
  */
98
80
  importBankTransactions(authorization?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
99
- /**
100
- * Links a bank transaction with an invoice
101
- * @summary Link Bank Transaction
102
- * @param {string} code Code of the bank transaction to link
103
- * @param {string} [authorization] Bearer Token
104
- * @param {*} [options] Override http request option.
105
- * @throws {RequiredError}
106
- */
107
- linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
108
81
  /**
109
82
  * 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
83
  * @summary List bank transactions
@@ -119,16 +92,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
119
92
  * @param {*} [options] Override http request option.
120
93
  * @throws {RequiredError}
121
94
  */
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>>;
123
- /**
124
- * Unlinks an already linked bank transaction
125
- * @summary Unlink Bank Transaction
126
- * @param {string} code Code of the bank transaction to unlink
127
- * @param {string} [authorization] Bearer Token
128
- * @param {*} [options] Override http request option.
129
- * @throws {RequiredError}
130
- */
131
- unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
95
+ 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<void>>;
132
96
  };
133
97
  /**
134
98
  * BankTransactionApi - factory interface
@@ -154,15 +118,6 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
154
118
  * @throws {RequiredError}
155
119
  */
156
120
  importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
157
- /**
158
- * Links a bank transaction with an invoice
159
- * @summary Link Bank Transaction
160
- * @param {string} code Code of the bank transaction to link
161
- * @param {string} [authorization] Bearer Token
162
- * @param {*} [options] Override http request option.
163
- * @throws {RequiredError}
164
- */
165
- linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
166
121
  /**
167
122
  * 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
123
  * @summary List bank transactions
@@ -177,16 +132,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
177
132
  * @param {*} [options] Override http request option.
178
133
  * @throws {RequiredError}
179
134
  */
180
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
181
- /**
182
- * Unlinks an already linked bank transaction
183
- * @summary Unlink Bank Transaction
184
- * @param {string} code Code of the bank transaction to unlink
185
- * @param {string} [authorization] Bearer Token
186
- * @param {*} [options] Override http request option.
187
- * @throws {RequiredError}
188
- */
189
- unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
135
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void>;
190
136
  };
191
137
  /**
192
138
  * Request parameters for getBankTransaction operation in BankTransactionApi.
@@ -232,25 +178,6 @@ export interface BankTransactionApiImportBankTransactionsRequest {
232
178
  */
233
179
  readonly file?: any;
234
180
  }
235
- /**
236
- * Request parameters for linkBankTransaction operation in BankTransactionApi.
237
- * @export
238
- * @interface BankTransactionApiLinkBankTransactionRequest
239
- */
240
- export interface BankTransactionApiLinkBankTransactionRequest {
241
- /**
242
- * Code of the bank transaction to link
243
- * @type {string}
244
- * @memberof BankTransactionApiLinkBankTransaction
245
- */
246
- readonly code: string;
247
- /**
248
- * Bearer Token
249
- * @type {string}
250
- * @memberof BankTransactionApiLinkBankTransaction
251
- */
252
- readonly authorization?: string;
253
- }
254
181
  /**
255
182
  * Request parameters for listBankTransactions operation in BankTransactionApi.
256
183
  * @export
@@ -306,25 +233,6 @@ export interface BankTransactionApiListBankTransactionsRequest {
306
233
  */
307
234
  readonly filters?: any;
308
235
  }
309
- /**
310
- * Request parameters for unlinkBankTransaction operation in BankTransactionApi.
311
- * @export
312
- * @interface BankTransactionApiUnlinkBankTransactionRequest
313
- */
314
- export interface BankTransactionApiUnlinkBankTransactionRequest {
315
- /**
316
- * Code of the bank transaction to unlink
317
- * @type {string}
318
- * @memberof BankTransactionApiUnlinkBankTransaction
319
- */
320
- readonly code: string;
321
- /**
322
- * Bearer Token
323
- * @type {string}
324
- * @memberof BankTransactionApiUnlinkBankTransaction
325
- */
326
- readonly authorization?: string;
327
- }
328
236
  /**
329
237
  * BankTransactionApi - object-oriented interface
330
238
  * @export
@@ -350,15 +258,6 @@ export declare class BankTransactionApi extends BaseAPI {
350
258
  * @memberof BankTransactionApi
351
259
  */
352
260
  importBankTransactions(requestParameters?: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
353
- /**
354
- * Links a bank transaction with an invoice
355
- * @summary Link Bank Transaction
356
- * @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
357
- * @param {*} [options] Override http request option.
358
- * @throws {RequiredError}
359
- * @memberof BankTransactionApi
360
- */
361
- linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
362
261
  /**
363
262
  * 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.
364
263
  * @summary List bank transactions
@@ -367,14 +266,5 @@ export declare class BankTransactionApi extends BaseAPI {
367
266
  * @throws {RequiredError}
368
267
  * @memberof BankTransactionApi
369
268
  */
370
- listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
371
- /**
372
- * Unlinks an already linked bank transaction
373
- * @summary Unlink Bank Transaction
374
- * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
375
- * @param {*} [options] Override http request option.
376
- * @throws {RequiredError}
377
- * @memberof BankTransactionApi
378
- */
379
- unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
269
+ listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
380
270
  }
@@ -194,54 +194,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  });
196
196
  },
197
- /**
198
- * Links a bank transaction with an invoice
199
- * @summary Link Bank Transaction
200
- * @param {string} code Code of the bank transaction to link
201
- * @param {string} [authorization] Bearer Token
202
- * @param {*} [options] Override http request option.
203
- * @throws {RequiredError}
204
- */
205
- linkBankTransaction: function (code, authorization, options) {
206
- if (options === void 0) { options = {}; }
207
- return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
- return __generator(this, function (_a) {
210
- switch (_a.label) {
211
- case 0:
212
- // verify required parameter 'code' is not null or undefined
213
- (0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
214
- localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
215
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
216
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
217
- if (configuration) {
218
- baseOptions = configuration.baseOptions;
219
- baseAccessToken = configuration.accessToken;
220
- }
221
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
222
- localVarHeaderParameter = {};
223
- localVarQueryParameter = {};
224
- // authentication bearer required
225
- // http bearer authentication required
226
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
227
- case 1:
228
- // authentication bearer required
229
- // http bearer authentication required
230
- _a.sent();
231
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
232
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
233
- }
234
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
237
- return [2 /*return*/, {
238
- url: (0, common_1.toPathString)(localVarUrlObj),
239
- options: localVarRequestOptions,
240
- }];
241
- }
242
- });
243
- });
244
- },
245
197
  /**
246
198
  * 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.
247
199
  * @summary List bank transactions
@@ -314,54 +266,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
314
266
  });
315
267
  });
316
268
  },
317
- /**
318
- * Unlinks an already linked bank transaction
319
- * @summary Unlink Bank Transaction
320
- * @param {string} code Code of the bank transaction to unlink
321
- * @param {string} [authorization] Bearer Token
322
- * @param {*} [options] Override http request option.
323
- * @throws {RequiredError}
324
- */
325
- unlinkBankTransaction: function (code, authorization, options) {
326
- if (options === void 0) { options = {}; }
327
- return __awaiter(_this, void 0, void 0, function () {
328
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
329
- return __generator(this, function (_a) {
330
- switch (_a.label) {
331
- case 0:
332
- // verify required parameter 'code' is not null or undefined
333
- (0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
334
- localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
335
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
336
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
337
- if (configuration) {
338
- baseOptions = configuration.baseOptions;
339
- baseAccessToken = configuration.accessToken;
340
- }
341
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
342
- localVarHeaderParameter = {};
343
- localVarQueryParameter = {};
344
- // authentication bearer required
345
- // http bearer authentication required
346
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
347
- case 1:
348
- // authentication bearer required
349
- // http bearer authentication required
350
- _a.sent();
351
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
352
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
353
- }
354
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
355
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
357
- return [2 /*return*/, {
358
- url: (0, common_1.toPathString)(localVarUrlObj),
359
- options: localVarRequestOptions,
360
- }];
361
- }
362
- });
363
- });
364
- },
365
269
  };
366
270
  };
367
271
  exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreator;
@@ -415,27 +319,6 @@ var BankTransactionApiFp = function (configuration) {
415
319
  });
416
320
  });
417
321
  },
418
- /**
419
- * Links a bank transaction with an invoice
420
- * @summary Link Bank Transaction
421
- * @param {string} code Code of the bank transaction to link
422
- * @param {string} [authorization] Bearer Token
423
- * @param {*} [options] Override http request option.
424
- * @throws {RequiredError}
425
- */
426
- linkBankTransaction: function (code, authorization, options) {
427
- return __awaiter(this, void 0, void 0, function () {
428
- var localVarAxiosArgs;
429
- return __generator(this, function (_a) {
430
- switch (_a.label) {
431
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
432
- case 1:
433
- localVarAxiosArgs = _a.sent();
434
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
435
- }
436
- });
437
- });
438
- },
439
322
  /**
440
323
  * 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.
441
324
  * @summary List bank transactions
@@ -463,27 +346,6 @@ var BankTransactionApiFp = function (configuration) {
463
346
  });
464
347
  });
465
348
  },
466
- /**
467
- * Unlinks an already linked bank transaction
468
- * @summary Unlink Bank Transaction
469
- * @param {string} code Code of the bank transaction to unlink
470
- * @param {string} [authorization] Bearer Token
471
- * @param {*} [options] Override http request option.
472
- * @throws {RequiredError}
473
- */
474
- unlinkBankTransaction: function (code, authorization, options) {
475
- return __awaiter(this, void 0, void 0, function () {
476
- var localVarAxiosArgs;
477
- return __generator(this, function (_a) {
478
- switch (_a.label) {
479
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
480
- case 1:
481
- localVarAxiosArgs = _a.sent();
482
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
483
- }
484
- });
485
- });
486
- },
487
349
  };
488
350
  };
489
351
  exports.BankTransactionApiFp = BankTransactionApiFp;
@@ -517,17 +379,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
517
379
  importBankTransactions: function (authorization, file, options) {
518
380
  return localVarFp.importBankTransactions(authorization, file, options).then(function (request) { return request(axios, basePath); });
519
381
  },
520
- /**
521
- * Links a bank transaction with an invoice
522
- * @summary Link Bank Transaction
523
- * @param {string} code Code of the bank transaction to link
524
- * @param {string} [authorization] Bearer Token
525
- * @param {*} [options] Override http request option.
526
- * @throws {RequiredError}
527
- */
528
- linkBankTransaction: function (code, authorization, options) {
529
- return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
530
- },
531
382
  /**
532
383
  * 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.
533
384
  * @summary List bank transactions
@@ -545,17 +396,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
545
396
  listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
546
397
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
547
398
  },
548
- /**
549
- * Unlinks an already linked bank transaction
550
- * @summary Unlink Bank Transaction
551
- * @param {string} code Code of the bank transaction to unlink
552
- * @param {string} [authorization] Bearer Token
553
- * @param {*} [options] Override http request option.
554
- * @throws {RequiredError}
555
- */
556
- unlinkBankTransaction: function (code, authorization, options) {
557
- return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
558
- },
559
399
  };
560
400
  };
561
401
  exports.BankTransactionApiFactory = BankTransactionApiFactory;
@@ -595,18 +435,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
595
435
  if (requestParameters === void 0) { requestParameters = {}; }
596
436
  return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
597
437
  };
598
- /**
599
- * Links a bank transaction with an invoice
600
- * @summary Link Bank Transaction
601
- * @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
602
- * @param {*} [options] Override http request option.
603
- * @throws {RequiredError}
604
- * @memberof BankTransactionApi
605
- */
606
- BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
607
- 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); });
609
- };
610
438
  /**
611
439
  * 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.
612
440
  * @summary List bank transactions
@@ -620,18 +448,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
620
448
  if (requestParameters === void 0) { requestParameters = {}; }
621
449
  return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
622
450
  };
623
- /**
624
- * Unlinks an already linked bank transaction
625
- * @summary Unlink Bank Transaction
626
- * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
627
- * @param {*} [options] Override http request option.
628
- * @throws {RequiredError}
629
- * @memberof BankTransactionApi
630
- */
631
- BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
632
- 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); });
634
- };
635
451
  return BankTransactionApi;
636
452
  }(base_1.BaseAPI));
637
453
  exports.BankTransactionApi = BankTransactionApi;