@emilgroup/payment-sdk-node 1.6.0 → 1.8.0

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 (109) hide show
  1. package/README.md +2 -2
  2. package/api/payments-api.ts +18 -16
  3. package/models/create-payment-request-dto.ts +18 -0
  4. package/models/initiate-payment-setup-request-dto.ts +6 -0
  5. package/models/payment-class.ts +25 -7
  6. package/models/validate-pspconfig-request-dto.ts +2 -1
  7. package/package.json +2 -2
  8. package/dist/api/bank-accounts-api.d.ts +0 -197
  9. package/dist/api/bank-accounts-api.js +0 -351
  10. package/dist/api/default-api.d.ts +0 -66
  11. package/dist/api/default-api.js +0 -200
  12. package/dist/api/payment-methods-api.d.ts +0 -327
  13. package/dist/api/payment-methods-api.js +0 -551
  14. package/dist/api/payment-reminders-api.d.ts +0 -317
  15. package/dist/api/payment-reminders-api.js +0 -542
  16. package/dist/api/payment-service-providers-api.d.ts +0 -93
  17. package/dist/api/payment-service-providers-api.js +0 -224
  18. package/dist/api/payment-setup-api.d.ts +0 -146
  19. package/dist/api/payment-setup-api.js +0 -313
  20. package/dist/api/payments-api.d.ts +0 -281
  21. package/dist/api/payments-api.js +0 -463
  22. package/dist/api/webhooks-api.d.ts +0 -91
  23. package/dist/api/webhooks-api.js +0 -213
  24. package/dist/api.d.ts +0 -19
  25. package/dist/api.js +0 -37
  26. package/dist/base.d.ts +0 -78
  27. package/dist/base.js +0 -394
  28. package/dist/common.d.ts +0 -92
  29. package/dist/common.js +0 -277
  30. package/dist/configuration.d.ts +0 -90
  31. package/dist/configuration.js +0 -44
  32. package/dist/index.d.ts +0 -15
  33. package/dist/index.js +0 -36
  34. package/dist/models/bank-account-class.d.ts +0 -54
  35. package/dist/models/bank-account-class.js +0 -15
  36. package/dist/models/billing-profile-dto.d.ts +0 -38
  37. package/dist/models/billing-profile-dto.js +0 -15
  38. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  39. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  40. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  41. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  42. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  43. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  44. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  45. package/dist/models/complete-payment-setup-response-class.js +0 -15
  46. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  47. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  48. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  49. package/dist/models/create-bank-account-request-dto.js +0 -15
  50. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  51. package/dist/models/create-payment-method-response-class.js +0 -15
  52. package/dist/models/create-payment-reminder-request-dto.d.ts +0 -63
  53. package/dist/models/create-payment-reminder-request-dto.js +0 -24
  54. package/dist/models/create-payment-request-dto.d.ts +0 -54
  55. package/dist/models/create-payment-request-dto.js +0 -15
  56. package/dist/models/create-payment-response-class.d.ts +0 -25
  57. package/dist/models/create-payment-response-class.js +0 -15
  58. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  59. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  60. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +0 -30
  61. package/dist/models/deactivate-payment-reminder-request-dto.js +0 -21
  62. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  63. package/dist/models/get-payment-method-response-class.js +0 -15
  64. package/dist/models/get-payment-response-class.d.ts +0 -25
  65. package/dist/models/get-payment-response-class.js +0 -15
  66. package/dist/models/get-request-dto.d.ts +0 -30
  67. package/dist/models/get-request-dto.js +0 -15
  68. package/dist/models/index.d.ts +0 -37
  69. package/dist/models/index.js +0 -53
  70. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  71. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  72. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  73. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  74. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -38
  75. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  76. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  77. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  78. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  79. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  80. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  81. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  82. package/dist/models/inline-response200.d.ts +0 -54
  83. package/dist/models/inline-response200.js +0 -15
  84. package/dist/models/inline-response503.d.ts +0 -54
  85. package/dist/models/inline-response503.js +0 -15
  86. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  87. package/dist/models/list-bank-accounts-response-class.js +0 -15
  88. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  89. package/dist/models/list-payment-methods-response-class.js +0 -15
  90. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  91. package/dist/models/list-payment-reminders-response-class.js +0 -15
  92. package/dist/models/list-payments-response-class.d.ts +0 -31
  93. package/dist/models/list-payments-response-class.js +0 -15
  94. package/dist/models/payment-class.d.ts +0 -85
  95. package/dist/models/payment-class.js +0 -15
  96. package/dist/models/payment-method-class.d.ts +0 -60
  97. package/dist/models/payment-method-class.js +0 -15
  98. package/dist/models/payment-reminder-class.d.ts +0 -108
  99. package/dist/models/payment-reminder-class.js +0 -32
  100. package/dist/models/sepa-direct-dto.d.ts +0 -24
  101. package/dist/models/sepa-direct-dto.js +0 -15
  102. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  103. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  104. package/dist/models/transaction-class.d.ts +0 -54
  105. package/dist/models/transaction-class.js +0 -15
  106. package/dist/models/validate-pspconfig-request-dto.d.ts +0 -42
  107. package/dist/models/validate-pspconfig-request-dto.js +0 -21
  108. package/dist/models/validate-pspconfig-response-class.d.ts +0 -24
  109. package/dist/models/validate-pspconfig-response-class.js +0 -15
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk-node@1.6.0 --save
20
+ npm install @emilgroup/payment-sdk-node@1.8.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.6.0
24
+ yarn add @emilgroup/payment-sdk-node@1.8.0
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -41,13 +41,15 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
41
41
  /**
42
42
  * Creates a payment for a specified account. This function is idempotent.
43
43
  * @summary Create a payment
44
+ * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
44
45
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
45
46
  * @param {string} [authorization] Bearer Token
46
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
47
47
  * @param {*} [options] Override http request option.
48
48
  * @throws {RequiredError}
49
49
  */
50
- createPayment: async (createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, idempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ createPayment: async (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
+ // verify required parameter 'idempotencyKey' is not null or undefined
52
+ assertParamExists('createPayment', 'idempotencyKey', idempotencyKey)
51
53
  // verify required parameter 'createPaymentRequestDto' is not null or undefined
52
54
  assertParamExists('createPayment', 'createPaymentRequestDto', createPaymentRequestDto)
53
55
  const localVarPath = `/paymentservice/v1/payments`;
@@ -232,14 +234,14 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
232
234
  /**
233
235
  * Creates a payment for a specified account. This function is idempotent.
234
236
  * @summary Create a payment
237
+ * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
235
238
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
236
239
  * @param {string} [authorization] Bearer Token
237
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
238
240
  * @param {*} [options] Override http request option.
239
241
  * @throws {RequiredError}
240
242
  */
241
- async createPayment(createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
242
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(createPaymentRequestDto, authorization, idempotencyKey, options);
243
+ async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
244
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
243
245
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
244
246
  },
245
247
  /**
@@ -286,14 +288,14 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
286
288
  /**
287
289
  * Creates a payment for a specified account. This function is idempotent.
288
290
  * @summary Create a payment
291
+ * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
289
292
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
290
293
  * @param {string} [authorization] Bearer Token
291
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
292
294
  * @param {*} [options] Override http request option.
293
295
  * @throws {RequiredError}
294
296
  */
295
- createPayment(createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
296
- return localVarFp.createPayment(createPaymentRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
297
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
298
+ return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
297
299
  },
298
300
  /**
299
301
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
@@ -333,6 +335,13 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
333
335
  * @interface PaymentsApiCreatePaymentRequest
334
336
  */
335
337
  export interface PaymentsApiCreatePaymentRequest {
338
+ /**
339
+ * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
340
+ * @type {string}
341
+ * @memberof PaymentsApiCreatePayment
342
+ */
343
+ readonly idempotencyKey: string
344
+
336
345
  /**
337
346
  *
338
347
  * @type {CreatePaymentRequestDto}
@@ -346,13 +355,6 @@ export interface PaymentsApiCreatePaymentRequest {
346
355
  * @memberof PaymentsApiCreatePayment
347
356
  */
348
357
  readonly authorization?: string
349
-
350
- /**
351
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
352
- * @type {string}
353
- * @memberof PaymentsApiCreatePayment
354
- */
355
- readonly idempotencyKey?: string
356
358
  }
357
359
 
358
360
  /**
@@ -462,7 +464,7 @@ export class PaymentsApi extends BaseAPI {
462
464
  * @memberof PaymentsApi
463
465
  */
464
466
  public createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig) {
465
- return PaymentsApiFp(this.configuration).createPayment(requestParameters.createPaymentRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
467
+ return PaymentsApiFp(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
466
468
  }
467
469
 
468
470
  /**
@@ -56,5 +56,23 @@ export interface CreatePaymentRequestDto {
56
56
  * @memberof CreatePaymentRequestDto
57
57
  */
58
58
  'productSlug'?: string;
59
+ /**
60
+ * Optional payment date.
61
+ * @type {string}
62
+ * @memberof CreatePaymentRequestDto
63
+ */
64
+ 'receivedDate'?: string;
65
+ /**
66
+ * Optional reference number.
67
+ * @type {string}
68
+ * @memberof CreatePaymentRequestDto
69
+ */
70
+ 'referenceNumber'?: string;
71
+ /**
72
+ * Optional comment.
73
+ * @type {string}
74
+ * @memberof CreatePaymentRequestDto
75
+ */
76
+ 'comment'?: string;
59
77
  }
60
78
 
@@ -40,5 +40,11 @@ export interface InitiatePaymentSetupRequestDto {
40
40
  * @memberof InitiatePaymentSetupRequestDto
41
41
  */
42
42
  'b4u'?: object;
43
+ /**
44
+ *
45
+ * @type {object}
46
+ * @memberof InitiatePaymentSetupRequestDto
47
+ */
48
+ 'eis'?: object;
43
49
  }
44
50
 
@@ -63,18 +63,12 @@ export interface PaymentClass {
63
63
  * @memberof PaymentClass
64
64
  */
65
65
  'createdAt': string;
66
- /**
67
- * Time at which the object was updated.
68
- * @type {string}
69
- * @memberof PaymentClass
70
- */
71
- 'updatedAt': string;
72
66
  /**
73
67
  * Transactions referenced by this payment.
74
68
  * @type {Array<TransactionClass>}
75
69
  * @memberof PaymentClass
76
70
  */
77
- 'transactions': Array<TransactionClass>;
71
+ 'transactions'?: Array<TransactionClass>;
78
72
  /**
79
73
  * Optional field contain extra information.
80
74
  * @type {object}
@@ -87,5 +81,29 @@ export interface PaymentClass {
87
81
  * @memberof PaymentClass
88
82
  */
89
83
  'productSlug'?: string;
84
+ /**
85
+ * User who created the payment.
86
+ * @type {string}
87
+ * @memberof PaymentClass
88
+ */
89
+ 'createdBy': string;
90
+ /**
91
+ * Time at which the payment was actually received.
92
+ * @type {string}
93
+ * @memberof PaymentClass
94
+ */
95
+ 'receivedDate': string;
96
+ /**
97
+ * Reference number of the payment.
98
+ * @type {string}
99
+ * @memberof PaymentClass
100
+ */
101
+ 'referenceNumber'?: string;
102
+ /**
103
+ * Comment on this payment
104
+ * @type {string}
105
+ * @memberof PaymentClass
106
+ */
107
+ 'comment'?: string;
90
108
  }
91
109
 
@@ -43,7 +43,8 @@ export interface ValidatePSPConfigRequestDto {
43
43
  export const ValidatePSPConfigRequestDtoTypeEnum = {
44
44
  Braintree: 'braintree',
45
45
  Stripe: 'stripe',
46
- B4u: 'b4u'
46
+ B4u: 'b4u',
47
+ Eis: 'eis'
47
48
  } as const;
48
49
 
49
50
  export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }
@@ -1,197 +0,0 @@
1
- /**
2
- * Emil Payment Service
3
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { CreateBankAccountRequestDto } from '../models';
16
- import { ListBankAccountsResponseClass } from '../models';
17
- /**
18
- * BankAccountsApi - axios parameter creator
19
- * @export
20
- */
21
- export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
22
- /**
23
- * Creates a bank account for a specified account.
24
- * @summary Create a bank account
25
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
26
- * @param {string} [authorization] Bearer Token
27
- * @param {*} [options] Override http request option.
28
- * @throws {RequiredError}
29
- */
30
- createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
- /**
32
- * 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
- * @summary List bank accounts
34
- * @param {string} [authorization] Bearer Token
35
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
36
- * @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.
37
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
38
- * @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.
39
- * @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.
40
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
41
- * @param {*} [options] Override http request option.
42
- * @throws {RequiredError}
43
- */
44
- listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
- };
46
- /**
47
- * BankAccountsApi - functional programming interface
48
- * @export
49
- */
50
- export declare const BankAccountsApiFp: (configuration?: Configuration) => {
51
- /**
52
- * Creates a bank account for a specified account.
53
- * @summary Create a bank account
54
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
55
- * @param {string} [authorization] Bearer Token
56
- * @param {*} [options] Override http request option.
57
- * @throws {RequiredError}
58
- */
59
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
60
- /**
61
- * 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.
62
- * @summary List bank accounts
63
- * @param {string} [authorization] Bearer Token
64
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
65
- * @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.
66
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
67
- * @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.
68
- * @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.
69
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
70
- * @param {*} [options] Override http request option.
71
- * @throws {RequiredError}
72
- */
73
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
74
- };
75
- /**
76
- * BankAccountsApi - factory interface
77
- * @export
78
- */
79
- export declare const BankAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
80
- /**
81
- * Creates a bank account for a specified account.
82
- * @summary Create a bank account
83
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
84
- * @param {string} [authorization] Bearer Token
85
- * @param {*} [options] Override http request option.
86
- * @throws {RequiredError}
87
- */
88
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
89
- /**
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.
91
- * @summary List bank accounts
92
- * @param {string} [authorization] Bearer Token
93
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
94
- * @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.
95
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
96
- * @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.
97
- * @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.
98
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
103
- };
104
- /**
105
- * Request parameters for createBankAccount operation in BankAccountsApi.
106
- * @export
107
- * @interface BankAccountsApiCreateBankAccountRequest
108
- */
109
- export interface BankAccountsApiCreateBankAccountRequest {
110
- /**
111
- *
112
- * @type {CreateBankAccountRequestDto}
113
- * @memberof BankAccountsApiCreateBankAccount
114
- */
115
- readonly createBankAccountRequestDto: CreateBankAccountRequestDto;
116
- /**
117
- * Bearer Token
118
- * @type {string}
119
- * @memberof BankAccountsApiCreateBankAccount
120
- */
121
- readonly authorization?: string;
122
- }
123
- /**
124
- * Request parameters for listBankAccounts operation in BankAccountsApi.
125
- * @export
126
- * @interface BankAccountsApiListBankAccountsRequest
127
- */
128
- export interface BankAccountsApiListBankAccountsRequest {
129
- /**
130
- * Bearer Token
131
- * @type {string}
132
- * @memberof BankAccountsApiListBankAccounts
133
- */
134
- readonly authorization?: string;
135
- /**
136
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
137
- * @type {any}
138
- * @memberof BankAccountsApiListBankAccounts
139
- */
140
- readonly pageSize?: any;
141
- /**
142
- * 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.
143
- * @type {any}
144
- * @memberof BankAccountsApiListBankAccounts
145
- */
146
- readonly pageToken?: any;
147
- /**
148
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
149
- * @type {any}
150
- * @memberof BankAccountsApiListBankAccounts
151
- */
152
- readonly filter?: any;
153
- /**
154
- * 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.
155
- * @type {any}
156
- * @memberof BankAccountsApiListBankAccounts
157
- */
158
- readonly search?: any;
159
- /**
160
- * 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.
161
- * @type {any}
162
- * @memberof BankAccountsApiListBankAccounts
163
- */
164
- readonly order?: any;
165
- /**
166
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
167
- * @type {any}
168
- * @memberof BankAccountsApiListBankAccounts
169
- */
170
- readonly expand?: any;
171
- }
172
- /**
173
- * BankAccountsApi - object-oriented interface
174
- * @export
175
- * @class BankAccountsApi
176
- * @extends {BaseAPI}
177
- */
178
- export declare class BankAccountsApi extends BaseAPI {
179
- /**
180
- * Creates a bank account for a specified account.
181
- * @summary Create a bank account
182
- * @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
183
- * @param {*} [options] Override http request option.
184
- * @throws {RequiredError}
185
- * @memberof BankAccountsApi
186
- */
187
- createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
188
- /**
189
- * 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.
190
- * @summary List bank accounts
191
- * @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
192
- * @param {*} [options] Override http request option.
193
- * @throws {RequiredError}
194
- * @memberof BankAccountsApi
195
- */
196
- listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
197
- }