@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
@@ -93,7 +93,8 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- *
96
+ * Create a new tenant bank account
97
+ * @summary Create the Create Tenant Bank Account
97
98
  * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
98
99
  * @param {string} [authorization] Bearer Token
99
100
  * @param {*} [options] Override http request option.
@@ -141,7 +142,8 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
141
142
  });
142
143
  },
143
144
  /**
144
- *
145
+ * Deletes a tenant bank account by code
146
+ * @summary Deletes a tenant bank account
145
147
  * @param {string} code Unique identifier for the object.
146
148
  * @param {string} [authorization] Bearer Token
147
149
  * @param {*} [options] Override http request option.
@@ -188,10 +190,11 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
188
190
  });
189
191
  },
190
192
  /**
191
- *
193
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
194
+ * @summary Retrieve the Bank Transaction
192
195
  * @param {string} code Unique identifier for the object.
193
196
  * @param {string} [authorization] Bearer Token
194
- * @param {string} [expand] Expand the response with additional entities
197
+ * @param {'bankTransactions'} [expand] Expand the response with additional entities
195
198
  * @param {*} [options] Override http request option.
196
199
  * @throws {RequiredError}
197
200
  */
@@ -239,7 +242,8 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
239
242
  });
240
243
  },
241
244
  /**
242
- *
245
+ * Returns a list of Tenant Bank Accounts you have previously created. The Tenant Bank Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
246
+ * @summary List Tenant Bank Accounts
243
247
  * @param {string} [authorization] Bearer Token
244
248
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
245
249
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -310,7 +314,8 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
310
314
  });
311
315
  },
312
316
  /**
313
- *
317
+ * Update a tenant bank account by code
318
+ * @summary Update a tenant bank account
314
319
  * @param {string} code Unique identifier for the object.
315
320
  * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
316
321
  * @param {string} [authorization] Bearer Token
@@ -372,7 +377,8 @@ var TenantBankAccountApiFp = function (configuration) {
372
377
  var localVarAxiosParamCreator = (0, exports.TenantBankAccountApiAxiosParamCreator)(configuration);
373
378
  return {
374
379
  /**
375
- *
380
+ * Create a new tenant bank account
381
+ * @summary Create the Create Tenant Bank Account
376
382
  * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
377
383
  * @param {string} [authorization] Bearer Token
378
384
  * @param {*} [options] Override http request option.
@@ -392,7 +398,8 @@ var TenantBankAccountApiFp = function (configuration) {
392
398
  });
393
399
  },
394
400
  /**
395
- *
401
+ * Deletes a tenant bank account by code
402
+ * @summary Deletes a tenant bank account
396
403
  * @param {string} code Unique identifier for the object.
397
404
  * @param {string} [authorization] Bearer Token
398
405
  * @param {*} [options] Override http request option.
@@ -412,10 +419,11 @@ var TenantBankAccountApiFp = function (configuration) {
412
419
  });
413
420
  },
414
421
  /**
415
- *
422
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
423
+ * @summary Retrieve the Bank Transaction
416
424
  * @param {string} code Unique identifier for the object.
417
425
  * @param {string} [authorization] Bearer Token
418
- * @param {string} [expand] Expand the response with additional entities
426
+ * @param {'bankTransactions'} [expand] Expand the response with additional entities
419
427
  * @param {*} [options] Override http request option.
420
428
  * @throws {RequiredError}
421
429
  */
@@ -433,7 +441,8 @@ var TenantBankAccountApiFp = function (configuration) {
433
441
  });
434
442
  },
435
443
  /**
436
- *
444
+ * Returns a list of Tenant Bank Accounts you have previously created. The Tenant Bank Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
445
+ * @summary List Tenant Bank Accounts
437
446
  * @param {string} [authorization] Bearer Token
438
447
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
439
448
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -459,7 +468,8 @@ var TenantBankAccountApiFp = function (configuration) {
459
468
  });
460
469
  },
461
470
  /**
462
- *
471
+ * Update a tenant bank account by code
472
+ * @summary Update a tenant bank account
463
473
  * @param {string} code Unique identifier for the object.
464
474
  * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
465
475
  * @param {string} [authorization] Bearer Token
@@ -490,7 +500,8 @@ var TenantBankAccountApiFactory = function (configuration, basePath, axios) {
490
500
  var localVarFp = (0, exports.TenantBankAccountApiFp)(configuration);
491
501
  return {
492
502
  /**
493
- *
503
+ * Create a new tenant bank account
504
+ * @summary Create the Create Tenant Bank Account
494
505
  * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
495
506
  * @param {string} [authorization] Bearer Token
496
507
  * @param {*} [options] Override http request option.
@@ -500,7 +511,8 @@ var TenantBankAccountApiFactory = function (configuration, basePath, axios) {
500
511
  return localVarFp.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
501
512
  },
502
513
  /**
503
- *
514
+ * Deletes a tenant bank account by code
515
+ * @summary Deletes a tenant bank account
504
516
  * @param {string} code Unique identifier for the object.
505
517
  * @param {string} [authorization] Bearer Token
506
518
  * @param {*} [options] Override http request option.
@@ -510,10 +522,11 @@ var TenantBankAccountApiFactory = function (configuration, basePath, axios) {
510
522
  return localVarFp.deleteTenantBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
511
523
  },
512
524
  /**
513
- *
525
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
526
+ * @summary Retrieve the Bank Transaction
514
527
  * @param {string} code Unique identifier for the object.
515
528
  * @param {string} [authorization] Bearer Token
516
- * @param {string} [expand] Expand the response with additional entities
529
+ * @param {'bankTransactions'} [expand] Expand the response with additional entities
517
530
  * @param {*} [options] Override http request option.
518
531
  * @throws {RequiredError}
519
532
  */
@@ -521,7 +534,8 @@ var TenantBankAccountApiFactory = function (configuration, basePath, axios) {
521
534
  return localVarFp.getTenantBankAccount(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
522
535
  },
523
536
  /**
524
- *
537
+ * Returns a list of Tenant Bank Accounts you have previously created. The Tenant Bank Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
538
+ * @summary List Tenant Bank Accounts
525
539
  * @param {string} [authorization] Bearer Token
526
540
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
527
541
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -537,7 +551,8 @@ var TenantBankAccountApiFactory = function (configuration, basePath, axios) {
537
551
  return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
538
552
  },
539
553
  /**
540
- *
554
+ * Update a tenant bank account by code
555
+ * @summary Update a tenant bank account
541
556
  * @param {string} code Unique identifier for the object.
542
557
  * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
543
558
  * @param {string} [authorization] Bearer Token
@@ -562,7 +577,8 @@ var TenantBankAccountApi = /** @class */ (function (_super) {
562
577
  return _super !== null && _super.apply(this, arguments) || this;
563
578
  }
564
579
  /**
565
- *
580
+ * Create a new tenant bank account
581
+ * @summary Create the Create Tenant Bank Account
566
582
  * @param {TenantBankAccountApiCreateTenantBankAccountRequest} requestParameters Request parameters.
567
583
  * @param {*} [options] Override http request option.
568
584
  * @throws {RequiredError}
@@ -573,7 +589,8 @@ var TenantBankAccountApi = /** @class */ (function (_super) {
573
589
  return (0, exports.TenantBankAccountApiFp)(this.configuration).createTenantBankAccount(requestParameters.createTenantBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
574
590
  };
575
591
  /**
576
- *
592
+ * Deletes a tenant bank account by code
593
+ * @summary Deletes a tenant bank account
577
594
  * @param {TenantBankAccountApiDeleteTenantBankAccountRequest} requestParameters Request parameters.
578
595
  * @param {*} [options] Override http request option.
579
596
  * @throws {RequiredError}
@@ -584,7 +601,8 @@ var TenantBankAccountApi = /** @class */ (function (_super) {
584
601
  return (0, exports.TenantBankAccountApiFp)(this.configuration).deleteTenantBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
585
602
  };
586
603
  /**
587
- *
604
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
605
+ * @summary Retrieve the Bank Transaction
588
606
  * @param {TenantBankAccountApiGetTenantBankAccountRequest} requestParameters Request parameters.
589
607
  * @param {*} [options] Override http request option.
590
608
  * @throws {RequiredError}
@@ -595,7 +613,8 @@ var TenantBankAccountApi = /** @class */ (function (_super) {
595
613
  return (0, exports.TenantBankAccountApiFp)(this.configuration).getTenantBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
596
614
  };
597
615
  /**
598
- *
616
+ * Returns a list of Tenant Bank Accounts you have previously created. The Tenant Bank Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
617
+ * @summary List Tenant Bank Accounts
599
618
  * @param {TenantBankAccountApiListTenantBankAccountsRequest} requestParameters Request parameters.
600
619
  * @param {*} [options] Override http request option.
601
620
  * @throws {RequiredError}
@@ -607,7 +626,8 @@ var TenantBankAccountApi = /** @class */ (function (_super) {
607
626
  return (0, exports.TenantBankAccountApiFp)(this.configuration).listTenantBankAccounts(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); });
608
627
  };
609
628
  /**
610
- *
629
+ * Update a tenant bank account by code
630
+ * @summary Update a tenant bank account
611
631
  * @param {TenantBankAccountApiUpdateTenantBankAccountRequest} requestParameters Request parameters.
612
632
  * @param {*} [options] Override http request option.
613
633
  * @throws {RequiredError}
@@ -35,10 +35,10 @@ export interface CreatePaymentRequestDto {
35
35
  'currency'?: string;
36
36
  /**
37
37
  * Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
38
- * @type {Array<number>}
38
+ * @type {Array<string>}
39
39
  * @memberof CreatePaymentRequestDto
40
40
  */
41
- 'invoiceIds': Array<number>;
41
+ 'invoiceIds': Array<string>;
42
42
  /**
43
43
  * Optional field contain extra information.
44
44
  * @type {object}
@@ -50,7 +50,7 @@ export interface CreatePaymentRequestDto {
50
50
  * @type {string}
51
51
  * @memberof CreatePaymentRequestDto
52
52
  */
53
- 'productSlug'?: string;
53
+ 'productSlug': string;
54
54
  /**
55
55
  * Optional payment date.
56
56
  * @type {string}
@@ -26,5 +26,5 @@ export interface GetRequestDto {
26
26
  * @type {string}
27
27
  * @memberof GetRequestDto
28
28
  */
29
- 'expand'?: string;
29
+ 'expand': string;
30
30
  }
@@ -1,49 +1,22 @@
1
- export * from './bank-account-class';
2
1
  export * from './bank-transaction-response-class';
3
- export * from './billing-profile-dto';
4
- export * from './billing-profile-limited-response-dto';
5
- export * from './complete-braintree-payment-setup-request-dto';
6
- export * from './complete-payment-setup-request-dto';
7
- export * from './complete-payment-setup-response-class';
8
- export * from './complete-stripe-payment-setup-request-dto';
9
- export * from './create-bank-account-request-dto';
10
- export * from './create-payment-method-response-class';
11
2
  export * from './create-payment-reminder-request-dto';
12
3
  export * from './create-payment-request-dto';
13
- export * from './create-payment-response-class';
14
- export * from './create-psp-payment-method-request-dto';
15
4
  export * from './create-refund-request-dto';
16
5
  export * from './create-refund-response-class';
17
6
  export * from './create-tenant-bank-account-request-dto';
18
7
  export * from './deactivate-payment-reminder-request-dto';
19
- export * from './deactivate-payment-reminder-response-class';
20
8
  export * from './get-bank-transactions-response-class';
21
- export * from './get-payment-method-response-class';
22
- export * from './get-payment-response-class';
23
9
  export * from './get-refund-response-class';
24
10
  export * from './get-request-dto';
25
11
  export * from './get-tenant-bank-account-response-class';
26
- export * from './initiate-braintree-payment-setup-request-dto';
27
- export * from './initiate-braintree-payment-setup-response-class';
28
- export * from './initiate-payment-setup-request-dto';
29
- export * from './initiate-payment-setup-response-class';
30
- export * from './initiate-stripe-payment-setup-request-dto';
31
- export * from './initiate-stripe-payment-setup-response-class';
32
12
  export * from './inline-response200';
33
13
  export * from './inline-response503';
34
- export * from './list-bank-accounts-response-class';
14
+ export * from './link-bank-transaction-request-dto-rest';
35
15
  export * from './list-bank-transactions-response-class';
36
- export * from './list-payment-methods-response-class';
37
- export * from './list-payment-reminders-response-class';
38
- export * from './list-payments-response-class';
39
16
  export * from './list-refunds-response-class';
40
- export * from './payment-class';
41
- export * from './payment-method-class';
42
- export * from './payment-reminder-class';
43
17
  export * from './refund-class';
44
- export * from './sepa-direct-dto';
45
- export * from './symphony-profile-limited-response-dto';
46
18
  export * from './tenant-bank-account-response-class';
47
19
  export * from './transaction-class';
20
+ export * from './unlink-bank-transaction-request-dto-rest';
48
21
  export * from './update-tenant-bank-account-rest-request-dto';
49
22
  export * from './validate-pspconfig-request-dto';
@@ -14,52 +14,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./bank-account-class"), exports);
18
17
  __exportStar(require("./bank-transaction-response-class"), exports);
19
- __exportStar(require("./billing-profile-dto"), exports);
20
- __exportStar(require("./billing-profile-limited-response-dto"), exports);
21
- __exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
22
- __exportStar(require("./complete-payment-setup-request-dto"), exports);
23
- __exportStar(require("./complete-payment-setup-response-class"), exports);
24
- __exportStar(require("./complete-stripe-payment-setup-request-dto"), exports);
25
- __exportStar(require("./create-bank-account-request-dto"), exports);
26
- __exportStar(require("./create-payment-method-response-class"), exports);
27
18
  __exportStar(require("./create-payment-reminder-request-dto"), exports);
28
19
  __exportStar(require("./create-payment-request-dto"), exports);
29
- __exportStar(require("./create-payment-response-class"), exports);
30
- __exportStar(require("./create-psp-payment-method-request-dto"), exports);
31
20
  __exportStar(require("./create-refund-request-dto"), exports);
32
21
  __exportStar(require("./create-refund-response-class"), exports);
33
22
  __exportStar(require("./create-tenant-bank-account-request-dto"), exports);
34
23
  __exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
35
- __exportStar(require("./deactivate-payment-reminder-response-class"), exports);
36
24
  __exportStar(require("./get-bank-transactions-response-class"), exports);
37
- __exportStar(require("./get-payment-method-response-class"), exports);
38
- __exportStar(require("./get-payment-response-class"), exports);
39
25
  __exportStar(require("./get-refund-response-class"), exports);
40
26
  __exportStar(require("./get-request-dto"), exports);
41
27
  __exportStar(require("./get-tenant-bank-account-response-class"), exports);
42
- __exportStar(require("./initiate-braintree-payment-setup-request-dto"), exports);
43
- __exportStar(require("./initiate-braintree-payment-setup-response-class"), exports);
44
- __exportStar(require("./initiate-payment-setup-request-dto"), exports);
45
- __exportStar(require("./initiate-payment-setup-response-class"), exports);
46
- __exportStar(require("./initiate-stripe-payment-setup-request-dto"), exports);
47
- __exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
48
28
  __exportStar(require("./inline-response200"), exports);
49
29
  __exportStar(require("./inline-response503"), exports);
50
- __exportStar(require("./list-bank-accounts-response-class"), exports);
30
+ __exportStar(require("./link-bank-transaction-request-dto-rest"), exports);
51
31
  __exportStar(require("./list-bank-transactions-response-class"), exports);
52
- __exportStar(require("./list-payment-methods-response-class"), exports);
53
- __exportStar(require("./list-payment-reminders-response-class"), exports);
54
- __exportStar(require("./list-payments-response-class"), exports);
55
32
  __exportStar(require("./list-refunds-response-class"), exports);
56
- __exportStar(require("./payment-class"), exports);
57
- __exportStar(require("./payment-method-class"), exports);
58
- __exportStar(require("./payment-reminder-class"), exports);
59
33
  __exportStar(require("./refund-class"), exports);
60
- __exportStar(require("./sepa-direct-dto"), exports);
61
- __exportStar(require("./symphony-profile-limited-response-dto"), exports);
62
34
  __exportStar(require("./tenant-bank-account-response-class"), exports);
63
35
  __exportStar(require("./transaction-class"), exports);
36
+ __exportStar(require("./unlink-bank-transaction-request-dto-rest"), exports);
64
37
  __exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
65
38
  __exportStar(require("./validate-pspconfig-request-dto"), exports);
@@ -12,13 +12,13 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface SepaDirectDto
15
+ * @interface LinkBankTransactionRequestDtoRest
16
16
  */
17
- export interface SepaDirectDto {
17
+ export interface LinkBankTransactionRequestDtoRest {
18
18
  /**
19
- *
19
+ * The code of the invoice that the transaction will be linked to.
20
20
  * @type {string}
21
- * @memberof SepaDirectDto
21
+ * @memberof LinkBankTransactionRequestDtoRest
22
22
  */
23
- 'iban': string;
23
+ 'invoiceCode': string;
24
24
  }
@@ -12,13 +12,13 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface InitiateBraintreePaymentSetupResponseClass
15
+ * @interface UnlinkBankTransactionRequestDtoRest
16
16
  */
17
- export interface InitiateBraintreePaymentSetupResponseClass {
17
+ export interface UnlinkBankTransactionRequestDtoRest {
18
18
  /**
19
- * Identifier used by the PSP to create a payment method.
19
+ * The code of the invoice that the transaction will be linked to.
20
20
  * @type {string}
21
- * @memberof InitiateBraintreePaymentSetupResponseClass
21
+ * @memberof UnlinkBankTransactionRequestDtoRest
22
22
  */
23
- 'pspSecretToken': string;
23
+ 'invoiceCode': string;
24
24
  }
@@ -20,7 +20,7 @@ export interface ValidatePSPConfigRequestDto {
20
20
  * @type {string}
21
21
  * @memberof ValidatePSPConfigRequestDto
22
22
  */
23
- 'type': ValidatePSPConfigRequestDtoTypeEnum;
23
+ 'type': string;
24
24
  /**
25
25
  * Map containing various necessary keys to properly use the payment service provider. In the form of <api key name, api key value>.
26
26
  * @type {object}
@@ -34,10 +34,3 @@ export interface ValidatePSPConfigRequestDto {
34
34
  */
35
35
  'paymentMethods': Array<string>;
36
36
  }
37
- export declare const ValidatePSPConfigRequestDtoTypeEnum: {
38
- readonly Braintree: "braintree";
39
- readonly Stripe: "stripe";
40
- readonly B4u: "b4u";
41
- readonly Eis: "eis";
42
- };
43
- export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
@@ -13,10 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ValidatePSPConfigRequestDtoTypeEnum = void 0;
17
- exports.ValidatePSPConfigRequestDtoTypeEnum = {
18
- Braintree: 'braintree',
19
- Stripe: 'stripe',
20
- B4u: 'b4u',
21
- Eis: 'eis'
22
- };
@@ -40,10 +40,10 @@ export interface CreatePaymentRequestDto {
40
40
  'currency'?: string;
41
41
  /**
42
42
  * Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
43
- * @type {Array<number>}
43
+ * @type {Array<string>}
44
44
  * @memberof CreatePaymentRequestDto
45
45
  */
46
- 'invoiceIds': Array<number>;
46
+ 'invoiceIds': Array<string>;
47
47
  /**
48
48
  * Optional field contain extra information.
49
49
  * @type {object}
@@ -55,7 +55,7 @@ export interface CreatePaymentRequestDto {
55
55
  * @type {string}
56
56
  * @memberof CreatePaymentRequestDto
57
57
  */
58
- 'productSlug'?: string;
58
+ 'productSlug': string;
59
59
  /**
60
60
  * Optional payment date.
61
61
  * @type {string}
@@ -31,6 +31,6 @@ export interface GetRequestDto {
31
31
  * @type {string}
32
32
  * @memberof GetRequestDto
33
33
  */
34
- 'expand'?: string;
34
+ 'expand': string;
35
35
  }
36
36
 
package/models/index.ts CHANGED
@@ -1,49 +1,22 @@
1
- export * from './bank-account-class';
2
1
  export * from './bank-transaction-response-class';
3
- export * from './billing-profile-dto';
4
- export * from './billing-profile-limited-response-dto';
5
- export * from './complete-braintree-payment-setup-request-dto';
6
- export * from './complete-payment-setup-request-dto';
7
- export * from './complete-payment-setup-response-class';
8
- export * from './complete-stripe-payment-setup-request-dto';
9
- export * from './create-bank-account-request-dto';
10
- export * from './create-payment-method-response-class';
11
2
  export * from './create-payment-reminder-request-dto';
12
3
  export * from './create-payment-request-dto';
13
- export * from './create-payment-response-class';
14
- export * from './create-psp-payment-method-request-dto';
15
4
  export * from './create-refund-request-dto';
16
5
  export * from './create-refund-response-class';
17
6
  export * from './create-tenant-bank-account-request-dto';
18
7
  export * from './deactivate-payment-reminder-request-dto';
19
- export * from './deactivate-payment-reminder-response-class';
20
8
  export * from './get-bank-transactions-response-class';
21
- export * from './get-payment-method-response-class';
22
- export * from './get-payment-response-class';
23
9
  export * from './get-refund-response-class';
24
10
  export * from './get-request-dto';
25
11
  export * from './get-tenant-bank-account-response-class';
26
- export * from './initiate-braintree-payment-setup-request-dto';
27
- export * from './initiate-braintree-payment-setup-response-class';
28
- export * from './initiate-payment-setup-request-dto';
29
- export * from './initiate-payment-setup-response-class';
30
- export * from './initiate-stripe-payment-setup-request-dto';
31
- export * from './initiate-stripe-payment-setup-response-class';
32
12
  export * from './inline-response200';
33
13
  export * from './inline-response503';
34
- export * from './list-bank-accounts-response-class';
14
+ export * from './link-bank-transaction-request-dto-rest';
35
15
  export * from './list-bank-transactions-response-class';
36
- export * from './list-payment-methods-response-class';
37
- export * from './list-payment-reminders-response-class';
38
- export * from './list-payments-response-class';
39
16
  export * from './list-refunds-response-class';
40
- export * from './payment-class';
41
- export * from './payment-method-class';
42
- export * from './payment-reminder-class';
43
17
  export * from './refund-class';
44
- export * from './sepa-direct-dto';
45
- export * from './symphony-profile-limited-response-dto';
46
18
  export * from './tenant-bank-account-response-class';
47
19
  export * from './transaction-class';
20
+ export * from './unlink-bank-transaction-request-dto-rest';
48
21
  export * from './update-tenant-bank-account-rest-request-dto';
49
22
  export * from './validate-pspconfig-request-dto';
@@ -17,14 +17,14 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface SepaDirectDto
20
+ * @interface LinkBankTransactionRequestDtoRest
21
21
  */
22
- export interface SepaDirectDto {
22
+ export interface LinkBankTransactionRequestDtoRest {
23
23
  /**
24
- *
24
+ * The code of the invoice that the transaction will be linked to.
25
25
  * @type {string}
26
- * @memberof SepaDirectDto
26
+ * @memberof LinkBankTransactionRequestDtoRest
27
27
  */
28
- 'iban': string;
28
+ 'invoiceCode': string;
29
29
  }
30
30
 
@@ -17,14 +17,14 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface InitiateBraintreePaymentSetupResponseClass
20
+ * @interface UnlinkBankTransactionRequestDtoRest
21
21
  */
22
- export interface InitiateBraintreePaymentSetupResponseClass {
22
+ export interface UnlinkBankTransactionRequestDtoRest {
23
23
  /**
24
- * Identifier used by the PSP to create a payment method.
24
+ * The code of the invoice that the transaction will be linked to.
25
25
  * @type {string}
26
- * @memberof InitiateBraintreePaymentSetupResponseClass
26
+ * @memberof UnlinkBankTransactionRequestDtoRest
27
27
  */
28
- 'pspSecretToken': string;
28
+ 'invoiceCode': string;
29
29
  }
30
30
 
@@ -25,7 +25,7 @@ export interface ValidatePSPConfigRequestDto {
25
25
  * @type {string}
26
26
  * @memberof ValidatePSPConfigRequestDto
27
27
  */
28
- 'type': ValidatePSPConfigRequestDtoTypeEnum;
28
+ 'type': string;
29
29
  /**
30
30
  * Map containing various necessary keys to properly use the payment service provider. In the form of <api key name, api key value>.
31
31
  * @type {object}
@@ -40,13 +40,3 @@ export interface ValidatePSPConfigRequestDto {
40
40
  'paymentMethods': Array<string>;
41
41
  }
42
42
 
43
- export const ValidatePSPConfigRequestDtoTypeEnum = {
44
- Braintree: 'braintree',
45
- Stripe: 'stripe',
46
- B4u: 'b4u',
47
- Eis: 'eis'
48
- } as const;
49
-
50
- export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
51
-
52
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk",
3
- "version": "1.4.1-beta.7",
3
+ "version": "1.4.1-beta.9",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,54 +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
- /**
13
- *
14
- * @export
15
- * @interface BankAccountClass
16
- */
17
- export interface BankAccountClass {
18
- /**
19
- * Unique identifier for bank account.
20
- * @type {number}
21
- * @memberof BankAccountClass
22
- */
23
- 'id': number;
24
- /**
25
- * Unique identifier for the object.
26
- * @type {string}
27
- * @memberof BankAccountClass
28
- */
29
- 'code': string;
30
- /**
31
- * User account code associated to bank account.
32
- * @type {string}
33
- * @memberof BankAccountClass
34
- */
35
- 'accountCode': string;
36
- /**
37
- * International bank account number with witch the bank account is created
38
- * @type {string}
39
- * @memberof BankAccountClass
40
- */
41
- 'iban': string;
42
- /**
43
- * Time at which the object was created.
44
- * @type {string}
45
- * @memberof BankAccountClass
46
- */
47
- 'createdAt': string;
48
- /**
49
- * Time at which the object was updated.
50
- * @type {string}
51
- * @memberof BankAccountClass
52
- */
53
- 'updatedAt': string;
54
- }