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

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 (37) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +71 -29
  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 +51 -24
  14. package/dist/api/bank-orders-api.js +41 -23
  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 -3
  29. package/dist/models/financial-account-class.d.ts +111 -0
  30. package/dist/models/financial-account-class.js +24 -0
  31. package/dist/models/index.d.ts +1 -0
  32. package/dist/models/index.js +1 -0
  33. package/models/bank-order-class.ts +7 -7
  34. package/models/create-bank-order-request-dto.ts +3 -3
  35. package/models/financial-account-class.ts +120 -0
  36. package/models/index.ts +1 -0
  37. package/package.json +1 -1
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
12
+ import { FinancialAccountClass } from './financial-account-class';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -59,11 +59,11 @@ export interface BankOrderClass {
59
59
  */
60
60
  'description'?: string;
61
61
  /**
62
- * Bank account identifier associated with the bank order.
63
- * @type {number}
62
+ * Financial account code associated with the bank order.
63
+ * @type {string}
64
64
  * @memberof BankOrderClass
65
65
  */
66
- 'bankAccountId': number;
66
+ 'financialAccountCode': string;
67
67
  /**
68
68
  * List of invoice IDs associated with bank order.
69
69
  * @type {Array<number>}
@@ -107,9 +107,9 @@ export interface BankOrderClass {
107
107
  */
108
108
  'updatedBy': string;
109
109
  /**
110
- * The bank account object that this bank order is belongs to
111
- * @type {TenantBankAccountClassWithoutExpandProperties}
110
+ * The financial account object that this bank order is belongs to
111
+ * @type {FinancialAccountClass}
112
112
  * @memberof BankOrderClass
113
113
  */
114
- 'bankAccount'?: TenantBankAccountClassWithoutExpandProperties;
114
+ 'financialAccount'?: FinancialAccountClass;
115
115
  }
@@ -40,11 +40,11 @@ export interface CreateBankOrderRequestDto {
40
40
  */
41
41
  'description'?: string;
42
42
  /**
43
- * Bank account identifier associated with the bank order.
44
- * @type {number}
43
+ * Financial account code associated with the bank order.
44
+ * @type {string}
45
45
  * @memberof CreateBankOrderRequestDto
46
46
  */
47
- 'bankAccountId': number;
47
+ 'financialAccountCode': string;
48
48
  /**
49
49
  * List of invoice IDs associated with bank order.
50
50
  * @type {Array<number>}
@@ -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];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
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'
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';
@@ -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);
@@ -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
 
@@ -45,11 +45,11 @@ export interface CreateBankOrderRequestDto {
45
45
  */
46
46
  'description'?: string;
47
47
  /**
48
- * Bank account identifier associated with the bank order.
49
- * @type {number}
48
+ * Financial account code associated with the bank order.
49
+ * @type {string}
50
50
  * @memberof CreateBankOrderRequestDto
51
51
  */
52
- 'bankAccountId': number;
52
+ 'financialAccountCode': string;
53
53
  /**
54
54
  * List of invoice IDs associated with bank order.
55
55
  * @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';
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.17",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [