@emilgroup/payment-sdk 1.0.0 → 1.4.1-beta.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 (178) hide show
  1. package/.openapi-generator/FILES +15 -30
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +21 -25
  4. package/api/bank-transaction-api.ts +657 -0
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +42 -46
  7. package/api/payment-reminders-api.ts +17 -19
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +30 -32
  10. package/api/refunds-api.ts +462 -0
  11. package/api/tenant-bank-account-api.ts +651 -0
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +7 -3
  14. package/base.ts +2 -1
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +17 -19
  18. package/dist/api/bank-accounts-api.js +16 -16
  19. package/dist/api/bank-transaction-api.d.ts +371 -0
  20. package/dist/api/bank-transaction-api.js +632 -0
  21. package/dist/api/default-api.d.ts +1 -1
  22. package/dist/api/default-api.js +1 -1
  23. package/dist/api/payment-methods-api.d.ts +32 -36
  24. package/dist/api/payment-methods-api.js +32 -28
  25. package/dist/api/payment-reminders-api.d.ts +21 -22
  26. package/dist/api/payment-reminders-api.js +8 -8
  27. package/dist/api/payment-setup-api.d.ts +19 -23
  28. package/dist/api/payment-setup-api.js +25 -25
  29. package/dist/api/payments-api.d.ts +26 -29
  30. package/dist/api/payments-api.js +20 -16
  31. package/dist/api/refunds-api.d.ts +260 -0
  32. package/dist/api/refunds-api.js +443 -0
  33. package/dist/api/tenant-bank-account-api.d.ts +361 -0
  34. package/dist/api/tenant-bank-account-api.js +616 -0
  35. package/dist/api/webhooks-api.d.ts +1 -1
  36. package/dist/api/webhooks-api.js +1 -1
  37. package/dist/api.d.ts +4 -2
  38. package/dist/api.js +4 -2
  39. package/dist/base.d.ts +1 -1
  40. package/dist/base.js +2 -1
  41. package/dist/common.d.ts +2 -2
  42. package/dist/common.js +1 -1
  43. package/dist/configuration.d.ts +1 -1
  44. package/dist/configuration.js +1 -1
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/models/bank-transaction-response-class.d.ts +122 -0
  48. package/dist/models/{bank-account-class.js → bank-transaction-response-class.js} +1 -1
  49. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  50. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  51. package/dist/models/create-payment-request-dto.d.ts +3 -3
  52. package/dist/models/create-payment-request-dto.js +1 -1
  53. package/dist/models/{sepa-direct-dto.d.ts → create-refund-request-dto.d.ts} +6 -6
  54. package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-refund-request-dto.js} +1 -1
  55. package/dist/models/{validate-pspconfig-response-class.d.ts → create-refund-response-class.d.ts} +8 -7
  56. package/dist/models/{billing-profile-dto.js → create-refund-response-class.js} +1 -1
  57. package/dist/models/{billing-profile-limited-response-dto.d.ts → create-tenant-bank-account-request-dto.d.ts} +15 -27
  58. package/dist/models/{billing-profile-limited-response-dto.js → create-tenant-bank-account-request-dto.js} +1 -1
  59. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  60. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  61. package/dist/models/{get-payment-method-response-class.d.ts → get-bank-transactions-response-class.d.ts} +8 -8
  62. package/dist/models/get-bank-transactions-response-class.js +15 -0
  63. package/dist/models/{get-payment-response-class.d.ts → get-refund-response-class.d.ts} +8 -8
  64. package/dist/models/get-refund-response-class.js +15 -0
  65. package/dist/models/get-request-dto.d.ts +2 -2
  66. package/dist/models/get-request-dto.js +1 -1
  67. package/dist/models/{create-bank-account-request-dto.d.ts → get-tenant-bank-account-response-class.d.ts} +8 -13
  68. package/dist/models/get-tenant-bank-account-response-class.js +15 -0
  69. package/dist/models/index.d.ts +12 -29
  70. package/dist/models/index.js +12 -29
  71. package/dist/models/inline-response200.d.ts +7 -7
  72. package/dist/models/inline-response200.js +1 -1
  73. package/dist/models/inline-response503.d.ts +7 -7
  74. package/dist/models/inline-response503.js +1 -1
  75. package/dist/models/{list-payment-methods-response-class.d.ts → list-bank-transactions-response-class.d.ts} +9 -9
  76. package/dist/models/list-bank-transactions-response-class.js +15 -0
  77. package/dist/models/{list-payments-response-class.d.ts → list-refunds-response-class.d.ts} +9 -9
  78. package/dist/models/list-refunds-response-class.js +15 -0
  79. package/dist/models/refund-class.d.ts +104 -0
  80. package/dist/models/refund-class.js +28 -0
  81. package/dist/models/{payment-method-class.d.ts → tenant-bank-account-response-class.d.ts} +25 -19
  82. package/dist/models/tenant-bank-account-response-class.js +15 -0
  83. package/dist/models/transaction-class.d.ts +1 -1
  84. package/dist/models/transaction-class.js +1 -1
  85. package/dist/models/{symphony-profile-limited-response-dto.d.ts → update-tenant-bank-account-rest-request-dto.d.ts} +12 -18
  86. package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
  87. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  88. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  89. package/git_push.sh +1 -1
  90. package/index.ts +1 -1
  91. package/models/bank-transaction-response-class.ts +128 -0
  92. package/models/create-payment-reminder-request-dto.ts +1 -1
  93. package/models/create-payment-request-dto.ts +3 -3
  94. package/models/{sepa-direct-dto.ts → create-refund-request-dto.ts} +6 -6
  95. package/models/{validate-pspconfig-response-class.ts → create-refund-response-class.ts} +8 -7
  96. package/models/{billing-profile-limited-response-dto.ts → create-tenant-bank-account-request-dto.ts} +15 -27
  97. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  98. package/models/{get-payment-method-response-class.ts → get-bank-transactions-response-class.ts} +8 -8
  99. package/models/{get-payment-response-class.ts → get-refund-response-class.ts} +8 -8
  100. package/models/get-request-dto.ts +2 -2
  101. package/models/{create-bank-account-request-dto.ts → get-tenant-bank-account-response-class.ts} +8 -13
  102. package/models/index.ts +12 -29
  103. package/models/inline-response200.ts +7 -7
  104. package/models/inline-response503.ts +7 -7
  105. package/models/{list-payment-methods-response-class.ts → list-bank-transactions-response-class.ts} +9 -9
  106. package/models/{list-payments-response-class.ts → list-refunds-response-class.ts} +9 -9
  107. package/models/refund-class.ts +114 -0
  108. package/models/{payment-method-class.ts → tenant-bank-account-response-class.ts} +25 -19
  109. package/models/transaction-class.ts +1 -1
  110. package/models/{symphony-profile-limited-response-dto.ts → update-tenant-bank-account-rest-request-dto.ts} +12 -18
  111. package/models/validate-pspconfig-request-dto.ts +2 -12
  112. package/package.json +1 -2
  113. package/api/payment-service-providers-api.ts +0 -161
  114. package/dist/api/payment-service-providers-api.d.ts +0 -93
  115. package/dist/api/payment-service-providers-api.js +0 -220
  116. package/dist/models/bank-account-class.d.ts +0 -54
  117. package/dist/models/billing-profile-dto.d.ts +0 -38
  118. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  119. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  120. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  121. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  122. package/dist/models/complete-payment-setup-response-class.js +0 -15
  123. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  124. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  125. package/dist/models/create-bank-account-request-dto.js +0 -15
  126. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  127. package/dist/models/create-payment-method-response-class.js +0 -15
  128. package/dist/models/create-payment-response-class.d.ts +0 -25
  129. package/dist/models/create-payment-response-class.js +0 -15
  130. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  131. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  132. package/dist/models/get-payment-method-response-class.js +0 -15
  133. package/dist/models/get-payment-response-class.js +0 -15
  134. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  135. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  136. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  137. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  138. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  139. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  140. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  141. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  142. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  143. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  144. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  145. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  146. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  147. package/dist/models/list-bank-accounts-response-class.js +0 -15
  148. package/dist/models/list-payment-methods-response-class.js +0 -15
  149. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  150. package/dist/models/list-payment-reminders-response-class.js +0 -15
  151. package/dist/models/list-payments-response-class.js +0 -15
  152. package/dist/models/payment-class.d.ts +0 -103
  153. package/dist/models/payment-class.js +0 -15
  154. package/dist/models/payment-method-class.js +0 -15
  155. package/dist/models/payment-reminder-class.d.ts +0 -112
  156. package/dist/models/payment-reminder-class.js +0 -36
  157. package/dist/models/sepa-direct-dto.js +0 -15
  158. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  159. package/dist/models/validate-pspconfig-response-class.js +0 -15
  160. package/models/bank-account-class.ts +0 -60
  161. package/models/billing-profile-dto.ts +0 -44
  162. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  163. package/models/complete-payment-setup-request-dto.ts +0 -38
  164. package/models/complete-payment-setup-response-class.ts +0 -31
  165. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  166. package/models/create-payment-method-response-class.ts +0 -31
  167. package/models/create-payment-response-class.ts +0 -31
  168. package/models/create-psp-payment-method-request-dto.ts +0 -70
  169. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  170. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  171. package/models/initiate-payment-setup-request-dto.ts +0 -50
  172. package/models/initiate-payment-setup-response-class.ts +0 -38
  173. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  174. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  175. package/models/list-bank-accounts-response-class.ts +0 -37
  176. package/models/list-payment-reminders-response-class.ts +0 -37
  177. package/models/payment-class.ts +0 -109
  178. package/models/payment-reminder-class.ts +0 -122
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -28,21 +28,21 @@ export interface InlineResponse200 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse200
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse200
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse200
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -28,21 +28,21 @@ export interface InlineResponse503 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse503
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse503
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse503
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -13,24 +13,24 @@
13
13
  */
14
14
 
15
15
 
16
- import { PaymentMethodClass } from './payment-method-class';
16
+ import { BankTransactionResponseClass } from './bank-transaction-response-class';
17
17
 
18
18
  /**
19
19
  *
20
20
  * @export
21
- * @interface ListPaymentMethodsResponseClass
21
+ * @interface ListBankTransactionsResponseClass
22
22
  */
23
- export interface ListPaymentMethodsResponseClass {
23
+ export interface ListBankTransactionsResponseClass {
24
24
  /**
25
- * Payment methods
26
- * @type {Array<PaymentMethodClass>}
27
- * @memberof ListPaymentMethodsResponseClass
25
+ * The list of bankTransactionss.
26
+ * @type {Array<BankTransactionResponseClass>}
27
+ * @memberof ListBankTransactionsResponseClass
28
28
  */
29
- 'items': Array<PaymentMethodClass>;
29
+ 'items': Array<BankTransactionResponseClass>;
30
30
  /**
31
31
  * Next page token
32
32
  * @type {string}
33
- * @memberof ListPaymentMethodsResponseClass
33
+ * @memberof ListBankTransactionsResponseClass
34
34
  */
35
35
  'nextPageToken': string;
36
36
  }
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -13,24 +13,24 @@
13
13
  */
14
14
 
15
15
 
16
- import { PaymentClass } from './payment-class';
16
+ import { RefundClass } from './refund-class';
17
17
 
18
18
  /**
19
19
  *
20
20
  * @export
21
- * @interface ListPaymentsResponseClass
21
+ * @interface ListRefundsResponseClass
22
22
  */
23
- export interface ListPaymentsResponseClass {
23
+ export interface ListRefundsResponseClass {
24
24
  /**
25
- * Payments
26
- * @type {Array<PaymentClass>}
27
- * @memberof ListPaymentsResponseClass
25
+ * The list of refundss.
26
+ * @type {Array<RefundClass>}
27
+ * @memberof ListRefundsResponseClass
28
28
  */
29
- 'items': Array<PaymentClass>;
29
+ 'items': Array<RefundClass>;
30
30
  /**
31
31
  * Next page token
32
32
  * @type {string}
33
- * @memberof ListPaymentsResponseClass
33
+ * @memberof ListRefundsResponseClass
34
34
  */
35
35
  'nextPageToken': string;
36
36
  }
@@ -0,0 +1,114 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: z
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface RefundClass
21
+ */
22
+ export interface RefundClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof RefundClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof RefundClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * Payment Service Provider with which the payment/refund is done.
37
+ * @type {string}
38
+ * @memberof RefundClass
39
+ */
40
+ 'psp': string;
41
+ /**
42
+ * User account code associated with the payment.
43
+ * @type {string}
44
+ * @memberof RefundClass
45
+ */
46
+ 'accountCode': string;
47
+ /**
48
+ * Amount that was refunded in cents. 100 to refund 1€.
49
+ * @type {number}
50
+ * @memberof RefundClass
51
+ */
52
+ 'amount': number;
53
+ /**
54
+ * Invoice referenced in this refund. Usually, one refund is connected to one withdraw/termination/correction invoice .
55
+ * @type {string}
56
+ * @memberof RefundClass
57
+ */
58
+ 'invoiceCode': string;
59
+ /**
60
+ * Time at which the object was created.
61
+ * @type {string}
62
+ * @memberof RefundClass
63
+ */
64
+ 'createdAt': string;
65
+ /**
66
+ * Time at which the object was updated.
67
+ * @type {string}
68
+ * @memberof RefundClass
69
+ */
70
+ 'updatedAt': string;
71
+ /**
72
+ * Currency of the amount refunded.
73
+ * @type {string}
74
+ * @memberof RefundClass
75
+ */
76
+ 'currency': string;
77
+ /**
78
+ * Reason for the refund.
79
+ * @type {string}
80
+ * @memberof RefundClass
81
+ */
82
+ 'reason': RefundClassReasonEnum;
83
+ /**
84
+ * Status of the refund.
85
+ * @type {string}
86
+ * @memberof RefundClass
87
+ */
88
+ 'status': RefundClassStatusEnum;
89
+ /**
90
+ * Items that were refunded.
91
+ * @type {Array<string>}
92
+ * @memberof RefundClass
93
+ */
94
+ 'refundItems': Array<string>;
95
+ }
96
+
97
+ export const RefundClassReasonEnum = {
98
+ PolicyWithdrawn: 'POLICY_WITHDRAWN',
99
+ PolicyTerminated: 'POLICY_TERMINATED',
100
+ PolicyCorrected: 'POLICY_CORRECTED',
101
+ ManualRefund: 'MANUAL_REFUND'
102
+ } as const;
103
+
104
+ export type RefundClassReasonEnum = typeof RefundClassReasonEnum[keyof typeof RefundClassReasonEnum];
105
+ export const RefundClassStatusEnum = {
106
+ Pending: 'pending',
107
+ Succeeded: 'succeeded',
108
+ Failed: 'failed',
109
+ Canceled: 'canceled'
110
+ } as const;
111
+
112
+ export type RefundClassStatusEnum = typeof RefundClassStatusEnum[keyof typeof RefundClassStatusEnum];
113
+
114
+
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -17,50 +17,56 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface PaymentMethodClass
20
+ * @interface TenantBankAccountResponseClass
21
21
  */
22
- export interface PaymentMethodClass {
22
+ export interface TenantBankAccountResponseClass {
23
23
  /**
24
24
  * Internal unique identifier for the object. You should not have to use this, use code instead.
25
25
  * @type {number}
26
- * @memberof PaymentMethodClass
26
+ * @memberof TenantBankAccountResponseClass
27
27
  */
28
28
  'id': number;
29
29
  /**
30
30
  * Unique identifier for the object.
31
31
  * @type {string}
32
- * @memberof PaymentMethodClass
32
+ * @memberof TenantBankAccountResponseClass
33
33
  */
34
34
  'code': string;
35
35
  /**
36
- * A unique identifier generated by the payment service provider for this payment method.
36
+ * IBAN number for the bank account
37
37
  * @type {string}
38
- * @memberof PaymentMethodClass
38
+ * @memberof TenantBankAccountResponseClass
39
39
  */
40
- 'providerToken': string;
40
+ 'iban': string;
41
41
  /**
42
- * Customer identifier for the payment service provider.
42
+ * Name of the account given by the user - to quickly identify the account
43
43
  * @type {string}
44
- * @memberof PaymentMethodClass
44
+ * @memberof TenantBankAccountResponseClass
45
45
  */
46
- 'pspCustomerId': string;
46
+ 'accountName': string;
47
47
  /**
48
- * The payment service provider used by this payment method.
48
+ * Name of the bank the account belongs to
49
49
  * @type {string}
50
- * @memberof PaymentMethodClass
50
+ * @memberof TenantBankAccountResponseClass
51
51
  */
52
- 'psp': string;
52
+ 'bankName': string;
53
53
  /**
54
- * The payment method type.
54
+ * Number of the booking account this bank account belongs to
55
55
  * @type {string}
56
- * @memberof PaymentMethodClass
56
+ * @memberof TenantBankAccountResponseClass
57
57
  */
58
- 'type': string;
58
+ 'bookingAccount': string;
59
59
  /**
60
- * Created at
60
+ * Time at which the object was created.
61
61
  * @type {string}
62
- * @memberof PaymentMethodClass
62
+ * @memberof TenantBankAccountResponseClass
63
63
  */
64
64
  'createdAt': string;
65
+ /**
66
+ * Time at which the object was updated.
67
+ * @type {string}
68
+ * @memberof TenantBankAccountResponseClass
69
+ */
70
+ 'updatedAt': string;
65
71
  }
66
72
 
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -17,32 +17,26 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface SymphonyProfileLimitedResponseDto
20
+ * @interface UpdateTenantBankAccountRestRequestDto
21
21
  */
22
- export interface SymphonyProfileLimitedResponseDto {
22
+ export interface UpdateTenantBankAccountRestRequestDto {
23
23
  /**
24
- *
24
+ * Name of the account given by the user - to quickly identify the account
25
25
  * @type {string}
26
- * @memberof SymphonyProfileLimitedResponseDto
26
+ * @memberof UpdateTenantBankAccountRestRequestDto
27
27
  */
28
- 'scn': string;
28
+ 'accountName': string;
29
29
  /**
30
- *
30
+ * Name of the bank the account belongs to
31
31
  * @type {string}
32
- * @memberof SymphonyProfileLimitedResponseDto
32
+ * @memberof UpdateTenantBankAccountRestRequestDto
33
33
  */
34
- 'billSource': string;
34
+ 'bankName': string;
35
35
  /**
36
- *
36
+ * The name of the account
37
37
  * @type {string}
38
- * @memberof SymphonyProfileLimitedResponseDto
38
+ * @memberof UpdateTenantBankAccountRestRequestDto
39
39
  */
40
- 'parentScn'?: string;
41
- /**
42
- *
43
- * @type {boolean}
44
- * @memberof SymphonyProfileLimitedResponseDto
45
- */
46
- 'deathCaseFlag': boolean;
40
+ 'bookingAccount': string;
47
41
  }
48
42
 
@@ -5,7 +5,7 @@
5
5
  * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -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.0.0",
3
+ "version": "1.4.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,7 +21,6 @@
21
21
  "axios": "^0.27.2"
22
22
  },
23
23
  "devDependencies": {
24
-
25
24
  "typescript": "^4.0"
26
25
  }
27
26
  }
@@ -1,161 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Emil Payment Service
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { ValidatePSPConfigRequestDto } from '../models';
25
- // @ts-ignore
26
- import { ValidatePSPConfigResponseClass } from '../models';
27
- /**
28
- * PaymentServiceProvidersApi - axios parameter creator
29
- * @export
30
- */
31
- export const PaymentServiceProvidersApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- *
35
- * @param {ValidatePSPConfigRequestDto} validatePSPConfigRequestDto
36
- * @param {string} [authorization] Bearer Token
37
- * @param {*} [options] Override http request option.
38
- * @throws {RequiredError}
39
- */
40
- validateConfiguration: async (validatePSPConfigRequestDto: ValidatePSPConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41
- // verify required parameter 'validatePSPConfigRequestDto' is not null or undefined
42
- assertParamExists('validateConfiguration', 'validatePSPConfigRequestDto', validatePSPConfigRequestDto)
43
- const localVarPath = `/paymentservice/v1/psps/validate`;
44
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
- let baseOptions;
47
- let baseAccessToken;
48
- if (configuration) {
49
- baseOptions = configuration.baseOptions;
50
- baseAccessToken = configuration.accessToken;
51
- }
52
-
53
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
54
- const localVarHeaderParameter = {} as any;
55
- const localVarQueryParameter = {} as any;
56
-
57
- // authentication bearer required
58
- // http bearer authentication required
59
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
60
-
61
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
62
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
63
- }
64
-
65
-
66
-
67
- localVarHeaderParameter['Content-Type'] = 'application/json';
68
-
69
- setSearchParams(localVarUrlObj, localVarQueryParameter);
70
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72
- localVarRequestOptions.data = serializeDataIfNeeded(validatePSPConfigRequestDto, localVarRequestOptions, configuration)
73
-
74
- return {
75
- url: toPathString(localVarUrlObj),
76
- options: localVarRequestOptions,
77
- };
78
- },
79
- }
80
- };
81
-
82
- /**
83
- * PaymentServiceProvidersApi - functional programming interface
84
- * @export
85
- */
86
- export const PaymentServiceProvidersApiFp = function(configuration?: Configuration) {
87
- const localVarAxiosParamCreator = PaymentServiceProvidersApiAxiosParamCreator(configuration)
88
- return {
89
- /**
90
- *
91
- * @param {ValidatePSPConfigRequestDto} validatePSPConfigRequestDto
92
- * @param {string} [authorization] Bearer Token
93
- * @param {*} [options] Override http request option.
94
- * @throws {RequiredError}
95
- */
96
- async validateConfiguration(validatePSPConfigRequestDto: ValidatePSPConfigRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePSPConfigResponseClass>> {
97
- const localVarAxiosArgs = await localVarAxiosParamCreator.validateConfiguration(validatePSPConfigRequestDto, authorization, options);
98
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
99
- },
100
- }
101
- };
102
-
103
- /**
104
- * PaymentServiceProvidersApi - factory interface
105
- * @export
106
- */
107
- export const PaymentServiceProvidersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
108
- const localVarFp = PaymentServiceProvidersApiFp(configuration)
109
- return {
110
- /**
111
- *
112
- * @param {ValidatePSPConfigRequestDto} validatePSPConfigRequestDto
113
- * @param {string} [authorization] Bearer Token
114
- * @param {*} [options] Override http request option.
115
- * @throws {RequiredError}
116
- */
117
- validateConfiguration(validatePSPConfigRequestDto: ValidatePSPConfigRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePSPConfigResponseClass> {
118
- return localVarFp.validateConfiguration(validatePSPConfigRequestDto, authorization, options).then((request) => request(axios, basePath));
119
- },
120
- };
121
- };
122
-
123
- /**
124
- * Request parameters for validateConfiguration operation in PaymentServiceProvidersApi.
125
- * @export
126
- * @interface PaymentServiceProvidersApiValidateConfigurationRequest
127
- */
128
- export interface PaymentServiceProvidersApiValidateConfigurationRequest {
129
- /**
130
- *
131
- * @type {ValidatePSPConfigRequestDto}
132
- * @memberof PaymentServiceProvidersApiValidateConfiguration
133
- */
134
- readonly validatePSPConfigRequestDto: ValidatePSPConfigRequestDto
135
-
136
- /**
137
- * Bearer Token
138
- * @type {string}
139
- * @memberof PaymentServiceProvidersApiValidateConfiguration
140
- */
141
- readonly authorization?: string
142
- }
143
-
144
- /**
145
- * PaymentServiceProvidersApi - object-oriented interface
146
- * @export
147
- * @class PaymentServiceProvidersApi
148
- * @extends {BaseAPI}
149
- */
150
- export class PaymentServiceProvidersApi extends BaseAPI {
151
- /**
152
- *
153
- * @param {PaymentServiceProvidersApiValidateConfigurationRequest} requestParameters Request parameters.
154
- * @param {*} [options] Override http request option.
155
- * @throws {RequiredError}
156
- * @memberof PaymentServiceProvidersApi
157
- */
158
- public validateConfiguration(requestParameters: PaymentServiceProvidersApiValidateConfigurationRequest, options?: AxiosRequestConfig) {
159
- return PaymentServiceProvidersApiFp(this.configuration).validateConfiguration(requestParameters.validatePSPConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
160
- }
161
- }