@emilgroup/payment-sdk 1.13.1-beta.16 → 1.13.1-beta.18

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 (41) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +86 -44
  5. package/api/bank-transaction-api.ts +45 -17
  6. package/api/payment-methods-api.ts +55 -13
  7. package/api/payment-reminders-api.ts +55 -13
  8. package/api/payments-api.ts +55 -13
  9. package/api/refunds-api.ts +45 -17
  10. package/api/tenant-bank-account-api.ts +45 -17
  11. package/dist/api/bank-accounts-api.d.ts +35 -8
  12. package/dist/api/bank-accounts-api.js +29 -11
  13. package/dist/api/bank-orders-api.d.ts +60 -33
  14. package/dist/api/bank-orders-api.js +53 -35
  15. package/dist/api/bank-transaction-api.d.ts +28 -10
  16. package/dist/api/bank-transaction-api.js +24 -12
  17. package/dist/api/payment-methods-api.d.ts +35 -8
  18. package/dist/api/payment-methods-api.js +29 -11
  19. package/dist/api/payment-reminders-api.d.ts +35 -8
  20. package/dist/api/payment-reminders-api.js +29 -11
  21. package/dist/api/payments-api.d.ts +35 -8
  22. package/dist/api/payments-api.js +29 -11
  23. package/dist/api/refunds-api.d.ts +28 -10
  24. package/dist/api/refunds-api.js +24 -12
  25. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  26. package/dist/api/tenant-bank-account-api.js +24 -12
  27. package/dist/models/bank-order-class.d.ts +7 -7
  28. package/dist/models/create-bank-order-request-dto.d.ts +3 -9
  29. package/dist/models/financial-account-class.d.ts +111 -0
  30. package/dist/models/{update-bank-order-request-dto-rest.js → financial-account-class.js} +8 -7
  31. package/dist/models/index.d.ts +1 -1
  32. package/dist/models/index.js +1 -1
  33. package/dist/models/update-bank-order-request-dto.d.ts +0 -12
  34. package/models/bank-order-class.ts +7 -7
  35. package/models/create-bank-order-request-dto.ts +3 -9
  36. package/models/financial-account-class.ts +120 -0
  37. package/models/index.ts +1 -1
  38. package/models/update-bank-order-request-dto.ts +0 -12
  39. package/package.json +1 -1
  40. package/dist/models/update-bank-order-request-dto-rest.d.ts +0 -62
  41. package/models/update-bank-order-request-dto-rest.ts +0 -71
@@ -0,0 +1,111 @@
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 FinancialAccountClass
16
+ */
17
+ export interface FinancialAccountClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof FinancialAccountClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof FinancialAccountClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * The name of the account.
32
+ * @type {string}
33
+ * @memberof FinancialAccountClass
34
+ */
35
+ 'name': string;
36
+ /**
37
+ * The financial account number.
38
+ * @type {string}
39
+ * @memberof FinancialAccountClass
40
+ */
41
+ 'financialAccountNumber': string;
42
+ /**
43
+ * The ID of the parent account, if any.
44
+ * @type {number}
45
+ * @memberof FinancialAccountClass
46
+ */
47
+ 'parentId': number;
48
+ /**
49
+ * The partner number of the account.
50
+ * @type {string}
51
+ * @memberof FinancialAccountClass
52
+ */
53
+ 'partnerNumber': string;
54
+ /**
55
+ * The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Revenue\", \"Expense\".
56
+ * @type {string}
57
+ * @memberof FinancialAccountClass
58
+ */
59
+ 'type': FinancialAccountClassTypeEnum;
60
+ /**
61
+ * Metadata about the object.
62
+ * @type {object}
63
+ * @memberof FinancialAccountClass
64
+ */
65
+ 'customFields': object;
66
+ /**
67
+ * The description of the account.
68
+ * @type {string}
69
+ * @memberof FinancialAccountClass
70
+ */
71
+ 'description': string;
72
+ /**
73
+ * Whether the account is clearable.
74
+ * @type {boolean}
75
+ * @memberof FinancialAccountClass
76
+ */
77
+ 'clearable': boolean;
78
+ /**
79
+ * Time at which the object was created.
80
+ * @type {string}
81
+ * @memberof FinancialAccountClass
82
+ */
83
+ 'createdAt': string;
84
+ /**
85
+ * Time at which the object was updated.
86
+ * @type {string}
87
+ * @memberof FinancialAccountClass
88
+ */
89
+ 'updatedAt': string;
90
+ /**
91
+ * Identifier of the user who created the record.
92
+ * @type {string}
93
+ * @memberof FinancialAccountClass
94
+ */
95
+ 'createdBy': string;
96
+ /**
97
+ * Identifier of the user who last updated the record.
98
+ * @type {string}
99
+ * @memberof FinancialAccountClass
100
+ */
101
+ 'updatedBy': string;
102
+ }
103
+ export declare const FinancialAccountClassTypeEnum: {
104
+ readonly Asset: "asset";
105
+ readonly Liability: "liability";
106
+ readonly Equity: "equity";
107
+ readonly Revenue: "revenue";
108
+ readonly Expense: "expense";
109
+ readonly OpeningBalance: "opening_balance";
110
+ };
111
+ export type FinancialAccountClassTypeEnum = typeof FinancialAccountClassTypeEnum[keyof typeof FinancialAccountClassTypeEnum];
@@ -13,11 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UpdateBankOrderRequestDtoRestStatusEnum = void 0;
17
- exports.UpdateBankOrderRequestDtoRestStatusEnum = {
18
- Open: 'open',
19
- Draft: 'draft',
20
- Closed: 'closed',
21
- Accepted: 'accepted',
22
- Processing: 'processing'
16
+ exports.FinancialAccountClassTypeEnum = void 0;
17
+ exports.FinancialAccountClassTypeEnum = {
18
+ Asset: 'asset',
19
+ Liability: 'liability',
20
+ Equity: 'equity',
21
+ Revenue: 'revenue',
22
+ Expense: 'expense',
23
+ OpeningBalance: 'opening_balance'
23
24
  };
@@ -28,6 +28,7 @@ export * from './create-tenant-bank-account-response-class';
28
28
  export * from './deactivate-payment-reminder-request-dto';
29
29
  export * from './deactivate-payment-reminder-response-class';
30
30
  export * from './deactivated-payment-reminder-class';
31
+ export * from './financial-account-class';
31
32
  export * from './generate-invoice-match-suggestions-response-class';
32
33
  export * from './get-bank-account-response-class';
33
34
  export * from './get-bank-order-response-class';
@@ -80,7 +81,6 @@ export * from './update-bank-account-request-dto';
80
81
  export * from './update-bank-account-request-dto-rest';
81
82
  export * from './update-bank-account-response-class';
82
83
  export * from './update-bank-order-request-dto';
83
- export * from './update-bank-order-request-dto-rest';
84
84
  export * from './update-bank-order-response-class';
85
85
  export * from './update-tenant-bank-account-response-class';
86
86
  export * from './update-tenant-bank-account-rest-request-dto';
@@ -44,6 +44,7 @@ __exportStar(require("./create-tenant-bank-account-response-class"), exports);
44
44
  __exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
45
45
  __exportStar(require("./deactivate-payment-reminder-response-class"), exports);
46
46
  __exportStar(require("./deactivated-payment-reminder-class"), exports);
47
+ __exportStar(require("./financial-account-class"), exports);
47
48
  __exportStar(require("./generate-invoice-match-suggestions-response-class"), exports);
48
49
  __exportStar(require("./get-bank-account-response-class"), exports);
49
50
  __exportStar(require("./get-bank-order-response-class"), exports);
@@ -96,7 +97,6 @@ __exportStar(require("./update-bank-account-request-dto"), exports);
96
97
  __exportStar(require("./update-bank-account-request-dto-rest"), exports);
97
98
  __exportStar(require("./update-bank-account-response-class"), exports);
98
99
  __exportStar(require("./update-bank-order-request-dto"), exports);
99
- __exportStar(require("./update-bank-order-request-dto-rest"), exports);
100
100
  __exportStar(require("./update-bank-order-response-class"), exports);
101
101
  __exportStar(require("./update-tenant-bank-account-response-class"), exports);
102
102
  __exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
@@ -15,18 +15,6 @@
15
15
  * @interface UpdateBankOrderRequestDto
16
16
  */
17
17
  export interface UpdateBankOrderRequestDto {
18
- /**
19
- * Unique identifier for the object.
20
- * @type {string}
21
- * @memberof UpdateBankOrderRequestDto
22
- */
23
- 'code': string;
24
- /**
25
- * Amount for the bank order
26
- * @type {number}
27
- * @memberof UpdateBankOrderRequestDto
28
- */
29
- 'amount': number;
30
18
  /**
31
19
  * Bank order status
32
20
  * @type {string}
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
16
+ import { FinancialAccountClass } from './financial-account-class';
17
17
 
18
18
  /**
19
19
  *
@@ -64,11 +64,11 @@ export interface BankOrderClass {
64
64
  */
65
65
  'description'?: string;
66
66
  /**
67
- * Bank account identifier associated with the bank order.
68
- * @type {number}
67
+ * Financial account code associated with the bank order.
68
+ * @type {string}
69
69
  * @memberof BankOrderClass
70
70
  */
71
- 'bankAccountId': number;
71
+ 'financialAccountCode': string;
72
72
  /**
73
73
  * List of invoice IDs associated with bank order.
74
74
  * @type {Array<number>}
@@ -112,10 +112,10 @@ export interface BankOrderClass {
112
112
  */
113
113
  'updatedBy': string;
114
114
  /**
115
- * The bank account object that this bank order is belongs to
116
- * @type {TenantBankAccountClassWithoutExpandProperties}
115
+ * The financial account object that this bank order is belongs to
116
+ * @type {FinancialAccountClass}
117
117
  * @memberof BankOrderClass
118
118
  */
119
- 'bankAccount'?: TenantBankAccountClassWithoutExpandProperties;
119
+ 'financialAccount'?: FinancialAccountClass;
120
120
  }
121
121
 
@@ -26,12 +26,6 @@ export interface CreateBankOrderRequestDto {
26
26
  * @memberof CreateBankOrderRequestDto
27
27
  */
28
28
  'type': CreateBankOrderRequestDtoTypeEnum;
29
- /**
30
- * Amount associated with bank order.
31
- * @type {number}
32
- * @memberof CreateBankOrderRequestDto
33
- */
34
- 'amount': number;
35
29
  /**
36
30
  * Status associated with bank order.
37
31
  * @type {string}
@@ -45,11 +39,11 @@ export interface CreateBankOrderRequestDto {
45
39
  */
46
40
  'description'?: string;
47
41
  /**
48
- * Bank account identifier associated with the bank order.
49
- * @type {number}
42
+ * Financial account code associated with the bank order.
43
+ * @type {string}
50
44
  * @memberof CreateBankOrderRequestDto
51
45
  */
52
- 'bankAccountId': number;
46
+ 'financialAccountCode': string;
53
47
  /**
54
48
  * List of invoice IDs associated with bank order.
55
49
  * @type {Array<number>}
@@ -0,0 +1,120 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface FinancialAccountClass
21
+ */
22
+ export interface FinancialAccountClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof FinancialAccountClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof FinancialAccountClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * The name of the account.
37
+ * @type {string}
38
+ * @memberof FinancialAccountClass
39
+ */
40
+ 'name': string;
41
+ /**
42
+ * The financial account number.
43
+ * @type {string}
44
+ * @memberof FinancialAccountClass
45
+ */
46
+ 'financialAccountNumber': string;
47
+ /**
48
+ * The ID of the parent account, if any.
49
+ * @type {number}
50
+ * @memberof FinancialAccountClass
51
+ */
52
+ 'parentId': number;
53
+ /**
54
+ * The partner number of the account.
55
+ * @type {string}
56
+ * @memberof FinancialAccountClass
57
+ */
58
+ 'partnerNumber': string;
59
+ /**
60
+ * The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Revenue\", \"Expense\".
61
+ * @type {string}
62
+ * @memberof FinancialAccountClass
63
+ */
64
+ 'type': FinancialAccountClassTypeEnum;
65
+ /**
66
+ * Metadata about the object.
67
+ * @type {object}
68
+ * @memberof FinancialAccountClass
69
+ */
70
+ 'customFields': object;
71
+ /**
72
+ * The description of the account.
73
+ * @type {string}
74
+ * @memberof FinancialAccountClass
75
+ */
76
+ 'description': string;
77
+ /**
78
+ * Whether the account is clearable.
79
+ * @type {boolean}
80
+ * @memberof FinancialAccountClass
81
+ */
82
+ 'clearable': boolean;
83
+ /**
84
+ * Time at which the object was created.
85
+ * @type {string}
86
+ * @memberof FinancialAccountClass
87
+ */
88
+ 'createdAt': string;
89
+ /**
90
+ * Time at which the object was updated.
91
+ * @type {string}
92
+ * @memberof FinancialAccountClass
93
+ */
94
+ 'updatedAt': string;
95
+ /**
96
+ * Identifier of the user who created the record.
97
+ * @type {string}
98
+ * @memberof FinancialAccountClass
99
+ */
100
+ 'createdBy': string;
101
+ /**
102
+ * Identifier of the user who last updated the record.
103
+ * @type {string}
104
+ * @memberof FinancialAccountClass
105
+ */
106
+ 'updatedBy': string;
107
+ }
108
+
109
+ export const FinancialAccountClassTypeEnum = {
110
+ Asset: 'asset',
111
+ Liability: 'liability',
112
+ Equity: 'equity',
113
+ Revenue: 'revenue',
114
+ Expense: 'expense',
115
+ OpeningBalance: 'opening_balance'
116
+ } as const;
117
+
118
+ export type FinancialAccountClassTypeEnum = typeof FinancialAccountClassTypeEnum[keyof typeof FinancialAccountClassTypeEnum];
119
+
120
+
package/models/index.ts CHANGED
@@ -28,6 +28,7 @@ export * from './create-tenant-bank-account-response-class';
28
28
  export * from './deactivate-payment-reminder-request-dto';
29
29
  export * from './deactivate-payment-reminder-response-class';
30
30
  export * from './deactivated-payment-reminder-class';
31
+ export * from './financial-account-class';
31
32
  export * from './generate-invoice-match-suggestions-response-class';
32
33
  export * from './get-bank-account-response-class';
33
34
  export * from './get-bank-order-response-class';
@@ -80,7 +81,6 @@ export * from './update-bank-account-request-dto';
80
81
  export * from './update-bank-account-request-dto-rest';
81
82
  export * from './update-bank-account-response-class';
82
83
  export * from './update-bank-order-request-dto';
83
- export * from './update-bank-order-request-dto-rest';
84
84
  export * from './update-bank-order-response-class';
85
85
  export * from './update-tenant-bank-account-response-class';
86
86
  export * from './update-tenant-bank-account-rest-request-dto';
@@ -20,18 +20,6 @@
20
20
  * @interface UpdateBankOrderRequestDto
21
21
  */
22
22
  export interface UpdateBankOrderRequestDto {
23
- /**
24
- * Unique identifier for the object.
25
- * @type {string}
26
- * @memberof UpdateBankOrderRequestDto
27
- */
28
- 'code': string;
29
- /**
30
- * Amount for the bank order
31
- * @type {number}
32
- * @memberof UpdateBankOrderRequestDto
33
- */
34
- 'amount': number;
35
23
  /**
36
24
  * Bank order status
37
25
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk",
3
- "version": "1.13.1-beta.16",
3
+ "version": "1.13.1-beta.18",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,62 +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 UpdateBankOrderRequestDtoRest
16
- */
17
- export interface UpdateBankOrderRequestDtoRest {
18
- /**
19
- * Amount for the bank order
20
- * @type {number}
21
- * @memberof UpdateBankOrderRequestDtoRest
22
- */
23
- 'amount': number;
24
- /**
25
- * Bank order status
26
- * @type {string}
27
- * @memberof UpdateBankOrderRequestDtoRest
28
- */
29
- 'status': UpdateBankOrderRequestDtoRestStatusEnum;
30
- /**
31
- * Bank order description.
32
- * @type {string}
33
- * @memberof UpdateBankOrderRequestDtoRest
34
- */
35
- 'description'?: string;
36
- /**
37
- * List of invoice IDs associated with bank order.
38
- * @type {Array<number>}
39
- * @memberof UpdateBankOrderRequestDtoRest
40
- */
41
- 'invoiceIds': Array<number>;
42
- /**
43
- * Day of execution of bank order.
44
- * @type {string}
45
- * @memberof UpdateBankOrderRequestDtoRest
46
- */
47
- 'executionDate': string;
48
- /**
49
- * Latest due date.
50
- * @type {string}
51
- * @memberof UpdateBankOrderRequestDtoRest
52
- */
53
- 'dueDate': string;
54
- }
55
- export declare const UpdateBankOrderRequestDtoRestStatusEnum: {
56
- readonly Open: "open";
57
- readonly Draft: "draft";
58
- readonly Closed: "closed";
59
- readonly Accepted: "accepted";
60
- readonly Processing: "processing";
61
- };
62
- export type UpdateBankOrderRequestDtoRestStatusEnum = typeof UpdateBankOrderRequestDtoRestStatusEnum[keyof typeof UpdateBankOrderRequestDtoRestStatusEnum];
@@ -1,71 +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
-
17
- /**
18
- *
19
- * @export
20
- * @interface UpdateBankOrderRequestDtoRest
21
- */
22
- export interface UpdateBankOrderRequestDtoRest {
23
- /**
24
- * Amount for the bank order
25
- * @type {number}
26
- * @memberof UpdateBankOrderRequestDtoRest
27
- */
28
- 'amount': number;
29
- /**
30
- * Bank order status
31
- * @type {string}
32
- * @memberof UpdateBankOrderRequestDtoRest
33
- */
34
- 'status': UpdateBankOrderRequestDtoRestStatusEnum;
35
- /**
36
- * Bank order description.
37
- * @type {string}
38
- * @memberof UpdateBankOrderRequestDtoRest
39
- */
40
- 'description'?: string;
41
- /**
42
- * List of invoice IDs associated with bank order.
43
- * @type {Array<number>}
44
- * @memberof UpdateBankOrderRequestDtoRest
45
- */
46
- 'invoiceIds': Array<number>;
47
- /**
48
- * Day of execution of bank order.
49
- * @type {string}
50
- * @memberof UpdateBankOrderRequestDtoRest
51
- */
52
- 'executionDate': string;
53
- /**
54
- * Latest due date.
55
- * @type {string}
56
- * @memberof UpdateBankOrderRequestDtoRest
57
- */
58
- 'dueDate': string;
59
- }
60
-
61
- export const UpdateBankOrderRequestDtoRestStatusEnum = {
62
- Open: 'open',
63
- Draft: 'draft',
64
- Closed: 'closed',
65
- Accepted: 'accepted',
66
- Processing: 'processing'
67
- } as const;
68
-
69
- export type UpdateBankOrderRequestDtoRestStatusEnum = typeof UpdateBankOrderRequestDtoRestStatusEnum[keyof typeof UpdateBankOrderRequestDtoRestStatusEnum];
70
-
71
-