@emilgroup/account-sdk 1.1.0 → 1.4.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 (38) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/README.md +11 -11
  3. package/api/accounts-api.ts +54 -40
  4. package/api.ts +0 -5
  5. package/base.ts +122 -63
  6. package/common.ts +61 -0
  7. package/configuration.ts +0 -8
  8. package/dist/api/accounts-api.d.ts +54 -45
  9. package/dist/api/accounts-api.js +71 -71
  10. package/dist/api.d.ts +0 -4
  11. package/dist/api.js +4 -21
  12. package/dist/base.d.ts +10 -6
  13. package/dist/base.js +105 -66
  14. package/dist/common.d.ts +26 -0
  15. package/dist/common.js +42 -20
  16. package/dist/configuration.d.ts +0 -7
  17. package/dist/configuration.js +0 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +8 -19
  20. package/dist/models/account-class.d.ts +31 -5
  21. package/dist/models/account-class.js +6 -0
  22. package/dist/models/create-account-request-dto.d.ts +40 -10
  23. package/dist/models/create-account-request-dto.js +10 -1
  24. package/dist/models/index.d.ts +1 -1
  25. package/dist/models/index.js +6 -24
  26. package/dist/models/policy-class.d.ts +30 -0
  27. package/dist/models/update-account-request-dto.d.ts +41 -17
  28. package/dist/models/update-account-request-dto.js +10 -1
  29. package/index.ts +1 -1
  30. package/models/account-class.ts +34 -5
  31. package/models/create-account-request-dto.ts +42 -10
  32. package/models/index.ts +1 -1
  33. package/models/policy-class.ts +36 -0
  34. package/models/update-account-request-dto.ts +43 -17
  35. package/package.json +3 -3
  36. package/dist/models/get-account-request-dto.d.ts +0 -30
  37. package/models/get-account-request-dto.ts +0 -36
  38. /package/dist/models/{get-account-request-dto.js → policy-class.js} +0 -0
@@ -21,61 +21,73 @@
21
21
  */
22
22
  export interface UpdateAccountRequestDto {
23
23
  /**
24
- * The account\'s first name.
24
+ * Optional field to enter the honorific title you want to be called.
25
+ * @type {string}
26
+ * @memberof UpdateAccountRequestDto
27
+ */
28
+ 'title'?: UpdateAccountRequestDtoTitleEnum;
29
+ /**
30
+ * The account holder\'s first name.
25
31
  * @type {string}
26
32
  * @memberof UpdateAccountRequestDto
27
33
  */
28
34
  'firstName': string;
29
35
  /**
30
- * The account\'s last name.
36
+ * The account holder\'s last name.
31
37
  * @type {string}
32
38
  * @memberof UpdateAccountRequestDto
33
39
  */
34
40
  'lastName': string;
35
41
  /**
36
- * The account\'s email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
42
+ * The account holder\'s email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
37
43
  * @type {string}
38
44
  * @memberof UpdateAccountRequestDto
39
45
  */
40
46
  'email': string;
41
47
  /**
42
- * The account\'s gender.
48
+ * The account holder\'s gender.
43
49
  * @type {string}
44
50
  * @memberof UpdateAccountRequestDto
45
51
  */
46
52
  'gender': UpdateAccountRequestDtoGenderEnum;
47
53
  /**
48
- * The account\'s street name.
54
+ * The account holder\'s street name.
49
55
  * @type {string}
50
56
  * @memberof UpdateAccountRequestDto
51
57
  */
52
58
  'street': string;
53
59
  /**
54
- * The account\'s ZIP or postal code.
60
+ * The account holder\'s ZIP or postal code.
55
61
  * @type {string}
56
62
  * @memberof UpdateAccountRequestDto
57
63
  */
58
64
  'zipCode': string;
59
65
  /**
60
- * The account\'s city, district, suburb, town, or village.
66
+ * The account holder\'s city, district, suburb, town, or village.
61
67
  * @type {string}
62
68
  * @memberof UpdateAccountRequestDto
63
69
  */
64
70
  'city': string;
65
71
  /**
66
- * The account\'s house number.
72
+ * The account holder\'s house number.
67
73
  * @type {string}
68
74
  * @memberof UpdateAccountRequestDto
69
75
  */
70
76
  'houseNumber': string;
71
77
  /**
72
- * Account\'s birth date.
78
+ * Optional field to enter the type of the account holder.
73
79
  * @type {string}
74
80
  * @memberof UpdateAccountRequestDto
75
81
  */
76
- 'birthDate': string;
82
+ 'type'?: UpdateAccountRequestDtoTypeEnum;
77
83
  /**
78
- * The account\'s phone number.
84
+ * The account holder\'s company name (Required for account of type org).
85
+ * @type {string}
86
+ * @memberof UpdateAccountRequestDto
87
+ */
88
+ 'companyName'?: string;
89
+ /**
90
+ * The account holder\'s phone number.
79
91
  * @type {string}
80
92
  * @memberof UpdateAccountRequestDto
81
93
  */
@@ -86,6 +98,12 @@ export interface UpdateAccountRequestDto {
86
98
  * @memberof UpdateAccountRequestDto
87
99
  */
88
100
  'accountNumber'?: string;
101
+ /**
102
+ * The account holder\'s date of birth (Required for account of type person).
103
+ * @type {string}
104
+ * @memberof UpdateAccountRequestDto
105
+ */
106
+ 'birthDate': string;
89
107
  /**
90
108
  * Optional field to enter extra information.
91
109
  * @type {object}
@@ -98,14 +116,16 @@ export interface UpdateAccountRequestDto {
98
116
  * @memberof UpdateAccountRequestDto
99
117
  */
100
118
  'customFields'?: object;
101
- /**
102
- * The account\'s code.
103
- * @type {string}
104
- * @memberof UpdateAccountRequestDto
105
- */
106
- 'code'?: string;
107
119
  }
108
120
 
121
+ export const UpdateAccountRequestDtoTitleEnum = {
122
+ Empty: '',
123
+ Dr: 'Dr.',
124
+ DrMed: 'Dr. med.',
125
+ ProfDrMed: 'Prof. Dr. med.'
126
+ } as const;
127
+
128
+ export type UpdateAccountRequestDtoTitleEnum = typeof UpdateAccountRequestDtoTitleEnum[keyof typeof UpdateAccountRequestDtoTitleEnum];
109
129
  export const UpdateAccountRequestDtoGenderEnum = {
110
130
  Male: 'male',
111
131
  Female: 'female',
@@ -113,5 +133,11 @@ export const UpdateAccountRequestDtoGenderEnum = {
113
133
  } as const;
114
134
 
115
135
  export type UpdateAccountRequestDtoGenderEnum = typeof UpdateAccountRequestDtoGenderEnum[keyof typeof UpdateAccountRequestDtoGenderEnum];
136
+ export const UpdateAccountRequestDtoTypeEnum = {
137
+ Person: 'person',
138
+ Org: 'org'
139
+ } as const;
140
+
141
+ export type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
116
142
 
117
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/account-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.4.0",
4
4
  "description": "OpenAPI client for @emilgroup/account-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,10 +18,10 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^0.26.1"
21
+ "axios": "^0.27.2"
22
22
  },
23
23
  "devDependencies": {
24
- "@types/node": "^12.11.5",
24
+
25
25
  "typescript": "^4.0"
26
26
  }
27
27
  }
@@ -1,30 +0,0 @@
1
- /**
2
- * EMIL AccountService
3
- * The EMIL AccountService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
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 GetAccountRequestDto
16
- */
17
- export interface GetAccountRequestDto {
18
- /**
19
- * The account\'s code.
20
- * @type {string}
21
- * @memberof GetAccountRequestDto
22
- */
23
- 'code': string;
24
- /**
25
- * Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task
26
- * @type {string}
27
- * @memberof GetAccountRequestDto
28
- */
29
- 'expand'?: string;
30
- }
@@ -1,36 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL AccountService
5
- * The EMIL AccountService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
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 GetAccountRequestDto
21
- */
22
- export interface GetAccountRequestDto {
23
- /**
24
- * The account\'s code.
25
- * @type {string}
26
- * @memberof GetAccountRequestDto
27
- */
28
- 'code': string;
29
- /**
30
- * Use the expand query parameter when you need additional information. The expand query parameter increases the set of fields that appear in the response in addition to the default fields. Expanding resources reduces the number of API calls required to accomplish a task
31
- * @type {string}
32
- * @memberof GetAccountRequestDto
33
- */
34
- 'expand'?: string;
35
- }
36
-