@emilgroup/settlement-sdk 0.3.1-beta.10

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 (64) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/health-api.ts +120 -0
  6. package/api/settlements-api.ts +693 -0
  7. package/api.ts +29 -0
  8. package/base.ts +282 -0
  9. package/common.ts +198 -0
  10. package/configuration.ts +110 -0
  11. package/dist/api/health-api.d.ts +66 -0
  12. package/dist/api/health-api.js +196 -0
  13. package/dist/api/settlements-api.d.ts +393 -0
  14. package/dist/api/settlements-api.js +644 -0
  15. package/dist/api.d.ts +13 -0
  16. package/dist/api.js +31 -0
  17. package/dist/base.d.ts +77 -0
  18. package/dist/base.js +324 -0
  19. package/dist/common.d.ts +91 -0
  20. package/dist/common.js +276 -0
  21. package/dist/configuration.d.ts +89 -0
  22. package/dist/configuration.js +52 -0
  23. package/dist/index.d.ts +15 -0
  24. package/dist/index.js +36 -0
  25. package/dist/models/add-settlement-entry-request-body-dto.d.ts +25 -0
  26. package/dist/models/add-settlement-entry-request-body-dto.js +15 -0
  27. package/dist/models/add-settlement-entry-response-class.d.ts +25 -0
  28. package/dist/models/add-settlement-entry-response-class.js +15 -0
  29. package/dist/models/create-settlement-request-dto.d.ts +42 -0
  30. package/dist/models/create-settlement-request-dto.js +20 -0
  31. package/dist/models/create-settlement-response-class.d.ts +25 -0
  32. package/dist/models/create-settlement-response-class.js +15 -0
  33. package/dist/models/get-settlement-response-class.d.ts +25 -0
  34. package/dist/models/get-settlement-response-class.js +15 -0
  35. package/dist/models/index.d.ts +11 -0
  36. package/dist/models/index.js +27 -0
  37. package/dist/models/inline-response200.d.ts +54 -0
  38. package/dist/models/inline-response200.js +15 -0
  39. package/dist/models/inline-response503.d.ts +54 -0
  40. package/dist/models/inline-response503.js +15 -0
  41. package/dist/models/list-settlements-response-class.d.ts +43 -0
  42. package/dist/models/list-settlements-response-class.js +15 -0
  43. package/dist/models/settlement-class.d.ts +134 -0
  44. package/dist/models/settlement-class.js +38 -0
  45. package/dist/models/settlement-entry-class.d.ts +148 -0
  46. package/dist/models/settlement-entry-class.js +46 -0
  47. package/dist/models/settlement-entry-input-dto.d.ts +106 -0
  48. package/dist/models/settlement-entry-input-dto.js +46 -0
  49. package/git_push.sh +57 -0
  50. package/index.ts +19 -0
  51. package/models/add-settlement-entry-request-body-dto.ts +31 -0
  52. package/models/add-settlement-entry-response-class.ts +31 -0
  53. package/models/create-settlement-request-dto.ts +51 -0
  54. package/models/create-settlement-response-class.ts +31 -0
  55. package/models/get-settlement-response-class.ts +31 -0
  56. package/models/index.ts +11 -0
  57. package/models/inline-response200.ts +48 -0
  58. package/models/inline-response503.ts +48 -0
  59. package/models/list-settlements-response-class.ts +49 -0
  60. package/models/settlement-class.ts +145 -0
  61. package/models/settlement-entry-class.ts +160 -0
  62. package/models/settlement-entry-input-dto.ts +118 -0
  63. package/package.json +27 -0
  64. package/tsconfig.json +23 -0
@@ -0,0 +1,145 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL SettlementService
5
+ * The EMIL SettlementService API description
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 { SettlementEntryClass } from './settlement-entry-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface SettlementClass
22
+ */
23
+ export interface SettlementClass {
24
+ /**
25
+ * ID of the settlement
26
+ * @type {number}
27
+ * @memberof SettlementClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * Code of the settlement
32
+ * @type {string}
33
+ * @memberof SettlementClass
34
+ */
35
+ 'code': string;
36
+ /**
37
+ * Number of the settlement
38
+ * @type {string}
39
+ * @memberof SettlementClass
40
+ */
41
+ 'settlementNumber': string;
42
+ /**
43
+ * Code of the partner
44
+ * @type {string}
45
+ * @memberof SettlementClass
46
+ */
47
+ 'partnerCode': string;
48
+ /**
49
+ * Currency of the settlement
50
+ * @type {string}
51
+ * @memberof SettlementClass
52
+ */
53
+ 'currency': SettlementClassCurrencyEnum;
54
+ /**
55
+ * Balance of the settlement
56
+ * @type {number}
57
+ * @memberof SettlementClass
58
+ */
59
+ 'balance': number;
60
+ /**
61
+ * Status of the settlement
62
+ * @type {string}
63
+ * @memberof SettlementClass
64
+ */
65
+ 'status': SettlementClassStatusEnum;
66
+ /**
67
+ * Type of the domain entity
68
+ * @type {string}
69
+ * @memberof SettlementClass
70
+ */
71
+ 'domainEntityType': SettlementClassDomainEntityTypeEnum;
72
+ /**
73
+ * Code of the domain entity
74
+ * @type {string}
75
+ * @memberof SettlementClass
76
+ */
77
+ 'domainEntityCode': string;
78
+ /**
79
+ * Number of the domain entity
80
+ * @type {string}
81
+ * @memberof SettlementClass
82
+ */
83
+ 'domainEntityNumber': string;
84
+ /**
85
+ * settlementEntries
86
+ * @type {Array<SettlementEntryClass>}
87
+ * @memberof SettlementClass
88
+ */
89
+ 'settlementEntries': Array<SettlementEntryClass>;
90
+ /**
91
+ * Time at which the object was created.
92
+ * @type {string}
93
+ * @memberof SettlementClass
94
+ */
95
+ 'createdAt': string;
96
+ /**
97
+ * Time at which the object was updated.
98
+ * @type {string}
99
+ * @memberof SettlementClass
100
+ */
101
+ 'updatedAt': string;
102
+ /**
103
+ * Identifier of the user who created the record.
104
+ * @type {string}
105
+ * @memberof SettlementClass
106
+ */
107
+ 'createdBy': string;
108
+ /**
109
+ * Identifier of the user who last updated the record.
110
+ * @type {string}
111
+ * @memberof SettlementClass
112
+ */
113
+ 'updatedBy': string;
114
+ }
115
+
116
+ export const SettlementClassCurrencyEnum = {
117
+ Eur: 'EUR',
118
+ Usd: 'USD',
119
+ Gbp: 'GBP',
120
+ Chf: 'CHF',
121
+ Pln: 'PLN',
122
+ Aud: 'AUD',
123
+ Cad: 'CAD',
124
+ Ddk: 'DDK',
125
+ Huf: 'HUF',
126
+ Nok: 'NOK',
127
+ Sek: 'SEK'
128
+ } as const;
129
+
130
+ export type SettlementClassCurrencyEnum = typeof SettlementClassCurrencyEnum[keyof typeof SettlementClassCurrencyEnum];
131
+ export const SettlementClassStatusEnum = {
132
+ Open: 'open',
133
+ Closed: 'closed'
134
+ } as const;
135
+
136
+ export type SettlementClassStatusEnum = typeof SettlementClassStatusEnum[keyof typeof SettlementClassStatusEnum];
137
+ export const SettlementClassDomainEntityTypeEnum = {
138
+ Other: 'other',
139
+ Claim: 'claim',
140
+ Policy: 'policy'
141
+ } as const;
142
+
143
+ export type SettlementClassDomainEntityTypeEnum = typeof SettlementClassDomainEntityTypeEnum[keyof typeof SettlementClassDomainEntityTypeEnum];
144
+
145
+
@@ -0,0 +1,160 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL SettlementService
5
+ * The EMIL SettlementService API description
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 SettlementEntryClass
21
+ */
22
+ export interface SettlementEntryClass {
23
+ /**
24
+ * id
25
+ * @type {number}
26
+ * @memberof SettlementEntryClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * code
31
+ * @type {string}
32
+ * @memberof SettlementEntryClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * settlementCode
37
+ * @type {string}
38
+ * @memberof SettlementEntryClass
39
+ */
40
+ 'settlementCode': string;
41
+ /**
42
+ * financialEntityCode
43
+ * @type {string}
44
+ * @memberof SettlementEntryClass
45
+ */
46
+ 'financialEntityCode': string;
47
+ /**
48
+ * financialEntityType
49
+ * @type {string}
50
+ * @memberof SettlementEntryClass
51
+ */
52
+ 'financialEntityType': SettlementEntryClassFinancialEntityTypeEnum;
53
+ /**
54
+ * domainEntityCode
55
+ * @type {string}
56
+ * @memberof SettlementEntryClass
57
+ */
58
+ 'domainEntityCode': string;
59
+ /**
60
+ * domainEntityNumber
61
+ * @type {string}
62
+ * @memberof SettlementEntryClass
63
+ */
64
+ 'domainEntityNumber': string;
65
+ /**
66
+ * domainEntityType
67
+ * @type {string}
68
+ * @memberof SettlementEntryClass
69
+ */
70
+ 'domainEntityType': SettlementEntryClassDomainEntityTypeEnum;
71
+ /**
72
+ * A description of the origin of the entry
73
+ * @type {string}
74
+ * @memberof SettlementEntryClass
75
+ */
76
+ 'details'?: string;
77
+ /**
78
+ * amount
79
+ * @type {number}
80
+ * @memberof SettlementEntryClass
81
+ */
82
+ 'amount': number;
83
+ /**
84
+ * currency
85
+ * @type {string}
86
+ * @memberof SettlementEntryClass
87
+ */
88
+ 'currency': SettlementEntryClassCurrencyEnum;
89
+ /**
90
+ * type can either be DEBIT or CREDIT
91
+ * @type {string}
92
+ * @memberof SettlementEntryClass
93
+ */
94
+ 'type': SettlementEntryClassTypeEnum;
95
+ /**
96
+ * Time at which the object was created.
97
+ * @type {string}
98
+ * @memberof SettlementEntryClass
99
+ */
100
+ 'createdAt': string;
101
+ /**
102
+ * Time at which the object was updated.
103
+ * @type {string}
104
+ * @memberof SettlementEntryClass
105
+ */
106
+ 'updatedAt': string;
107
+ /**
108
+ * Identifier of the user who created the record.
109
+ * @type {string}
110
+ * @memberof SettlementEntryClass
111
+ */
112
+ 'createdBy': string;
113
+ /**
114
+ * Identifier of the user who last updated the record.
115
+ * @type {string}
116
+ * @memberof SettlementEntryClass
117
+ */
118
+ 'updatedBy': string;
119
+ }
120
+
121
+ export const SettlementEntryClassFinancialEntityTypeEnum = {
122
+ PaymentReceipt: 'payment_receipt',
123
+ ClaimRegulation: 'claim_regulation',
124
+ RefundAllocation: 'refund_allocation',
125
+ Premium: 'premium',
126
+ Tax: 'tax',
127
+ Other: 'other'
128
+ } as const;
129
+
130
+ export type SettlementEntryClassFinancialEntityTypeEnum = typeof SettlementEntryClassFinancialEntityTypeEnum[keyof typeof SettlementEntryClassFinancialEntityTypeEnum];
131
+ export const SettlementEntryClassDomainEntityTypeEnum = {
132
+ Other: 'other',
133
+ Claim: 'claim',
134
+ Policy: 'policy'
135
+ } as const;
136
+
137
+ export type SettlementEntryClassDomainEntityTypeEnum = typeof SettlementEntryClassDomainEntityTypeEnum[keyof typeof SettlementEntryClassDomainEntityTypeEnum];
138
+ export const SettlementEntryClassCurrencyEnum = {
139
+ Eur: 'EUR',
140
+ Usd: 'USD',
141
+ Gbp: 'GBP',
142
+ Chf: 'CHF',
143
+ Pln: 'PLN',
144
+ Aud: 'AUD',
145
+ Cad: 'CAD',
146
+ Ddk: 'DDK',
147
+ Huf: 'HUF',
148
+ Nok: 'NOK',
149
+ Sek: 'SEK'
150
+ } as const;
151
+
152
+ export type SettlementEntryClassCurrencyEnum = typeof SettlementEntryClassCurrencyEnum[keyof typeof SettlementEntryClassCurrencyEnum];
153
+ export const SettlementEntryClassTypeEnum = {
154
+ Debit: 'DEBIT',
155
+ Credit: 'CREDIT'
156
+ } as const;
157
+
158
+ export type SettlementEntryClassTypeEnum = typeof SettlementEntryClassTypeEnum[keyof typeof SettlementEntryClassTypeEnum];
159
+
160
+
@@ -0,0 +1,118 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL SettlementService
5
+ * The EMIL SettlementService API description
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 SettlementEntryInputDto
21
+ */
22
+ export interface SettlementEntryInputDto {
23
+ /**
24
+ * Code of the financial entity
25
+ * @type {string}
26
+ * @memberof SettlementEntryInputDto
27
+ */
28
+ 'financialEntityCode': string;
29
+ /**
30
+ * Type of the financial entity
31
+ * @type {string}
32
+ * @memberof SettlementEntryInputDto
33
+ */
34
+ 'financialEntityType': SettlementEntryInputDtoFinancialEntityTypeEnum;
35
+ /**
36
+ * Code of the domain entity
37
+ * @type {string}
38
+ * @memberof SettlementEntryInputDto
39
+ */
40
+ 'domainEntityCode': string;
41
+ /**
42
+ * Number of the domain entity
43
+ * @type {string}
44
+ * @memberof SettlementEntryInputDto
45
+ */
46
+ 'domainEntityNumber': string;
47
+ /**
48
+ * Type of the domain entity
49
+ * @type {string}
50
+ * @memberof SettlementEntryInputDto
51
+ */
52
+ 'domainEntityType': SettlementEntryInputDtoDomainEntityTypeEnum;
53
+ /**
54
+ * A description of the origin of the entry
55
+ * @type {string}
56
+ * @memberof SettlementEntryInputDto
57
+ */
58
+ 'details'?: string;
59
+ /**
60
+ * Amount of the entry
61
+ * @type {number}
62
+ * @memberof SettlementEntryInputDto
63
+ */
64
+ 'amount': number;
65
+ /**
66
+ * Currency of the entry
67
+ * @type {string}
68
+ * @memberof SettlementEntryInputDto
69
+ */
70
+ 'currency': SettlementEntryInputDtoCurrencyEnum;
71
+ /**
72
+ * Type of the entry can either be DEBIT or CREDIT
73
+ * @type {string}
74
+ * @memberof SettlementEntryInputDto
75
+ */
76
+ 'type': SettlementEntryInputDtoTypeEnum;
77
+ }
78
+
79
+ export const SettlementEntryInputDtoFinancialEntityTypeEnum = {
80
+ PaymentReceipt: 'payment_receipt',
81
+ ClaimRegulation: 'claim_regulation',
82
+ RefundAllocation: 'refund_allocation',
83
+ Premium: 'premium',
84
+ Tax: 'tax',
85
+ Other: 'other'
86
+ } as const;
87
+
88
+ export type SettlementEntryInputDtoFinancialEntityTypeEnum = typeof SettlementEntryInputDtoFinancialEntityTypeEnum[keyof typeof SettlementEntryInputDtoFinancialEntityTypeEnum];
89
+ export const SettlementEntryInputDtoDomainEntityTypeEnum = {
90
+ Other: 'other',
91
+ Claim: 'claim',
92
+ Policy: 'policy'
93
+ } as const;
94
+
95
+ export type SettlementEntryInputDtoDomainEntityTypeEnum = typeof SettlementEntryInputDtoDomainEntityTypeEnum[keyof typeof SettlementEntryInputDtoDomainEntityTypeEnum];
96
+ export const SettlementEntryInputDtoCurrencyEnum = {
97
+ Eur: 'EUR',
98
+ Usd: 'USD',
99
+ Gbp: 'GBP',
100
+ Chf: 'CHF',
101
+ Pln: 'PLN',
102
+ Aud: 'AUD',
103
+ Cad: 'CAD',
104
+ Ddk: 'DDK',
105
+ Huf: 'HUF',
106
+ Nok: 'NOK',
107
+ Sek: 'SEK'
108
+ } as const;
109
+
110
+ export type SettlementEntryInputDtoCurrencyEnum = typeof SettlementEntryInputDtoCurrencyEnum[keyof typeof SettlementEntryInputDtoCurrencyEnum];
111
+ export const SettlementEntryInputDtoTypeEnum = {
112
+ Debit: 'DEBIT',
113
+ Credit: 'CREDIT'
114
+ } as const;
115
+
116
+ export type SettlementEntryInputDtoTypeEnum = typeof SettlementEntryInputDtoTypeEnum[keyof typeof SettlementEntryInputDtoTypeEnum];
117
+
118
+
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@emilgroup/settlement-sdk",
3
+ "version": "0.3.1-beta.10",
4
+ "description": "OpenAPI client for @emilgroup/settlement-sdk",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "keywords": [
7
+ "axios",
8
+ "typescript",
9
+ "openapi-client",
10
+ "openapi-generator",
11
+ "@emilgroup/settlement-sdk"
12
+ ],
13
+ "license": "Unlicense",
14
+ "main": "./dist/index.js",
15
+ "typings": "./dist/index.d.ts",
16
+ "scripts": {
17
+ "build": "tsc --outDir dist/",
18
+ "prepare": "npm run build"
19
+ },
20
+ "dependencies": {
21
+ "axios": "1.12.0"
22
+ },
23
+ "devDependencies": {
24
+
25
+ "typescript": "^4.0"
26
+ }
27
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES5",
5
+ "module": "CommonJS",
6
+ "noImplicitAny": true,
7
+ "esModuleInterop": true,
8
+ "noImplicitOverride": true,
9
+ "outDir": "dist",
10
+ "rootDir": ".",
11
+ "lib": [
12
+ "es6",
13
+ "dom"
14
+ ],
15
+ "typeRoots": [
16
+ "node_modules/@types"
17
+ ]
18
+ },
19
+ "exclude": [
20
+ "dist",
21
+ "node_modules"
22
+ ]
23
+ }