@emilgroup/billing-sdk 1.2.1 → 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.
@@ -22,7 +22,6 @@ models/create-invoice-request-dto.ts
22
22
  models/create-invoice-response-class.ts
23
23
  models/create-invoice-status-request-dto.ts
24
24
  models/create-termination-invoice-request-dto.ts
25
- models/currency-class.ts
26
25
  models/index.ts
27
26
  models/invoice-class.ts
28
27
  models/invoice-item-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/billing-sdk@1.2.1 --save
20
+ npm install @emilgroup/billing-sdk@1.4.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk@1.2.1
24
+ yarn add @emilgroup/billing-sdk@1.4.0
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
package/base.ts CHANGED
@@ -160,6 +160,8 @@ export class BaseAPI {
160
160
  public loadTokenData() {
161
161
  if (typeof window !== 'undefined') {
162
162
  this.tokenData = defaultStorage().get<TokenData>(TOKEN_DATA) || {};
163
+ } else {
164
+ this.tokenData = {};
163
165
  }
164
166
  }
165
167
 
package/dist/base.js CHANGED
@@ -204,6 +204,9 @@ var BaseAPI = /** @class */ (function () {
204
204
  if (typeof window !== 'undefined') {
205
205
  this.tokenData = (0, common_1.defaultStorage)().get(TOKEN_DATA) || {};
206
206
  }
207
+ else {
208
+ this.tokenData = {};
209
+ }
207
210
  };
208
211
  BaseAPI.prototype.cleanTokenData = function () {
209
212
  this.storeTokenData(null);
@@ -7,7 +7,6 @@ export * from './create-invoice-request-dto';
7
7
  export * from './create-invoice-response-class';
8
8
  export * from './create-invoice-status-request-dto';
9
9
  export * from './create-termination-invoice-request-dto';
10
- export * from './currency-class';
11
10
  export * from './invoice-class';
12
11
  export * from './invoice-item-class';
13
12
  export * from './invoice-status-class';
@@ -23,7 +23,6 @@ __exportStar(require("./create-invoice-request-dto"), exports);
23
23
  __exportStar(require("./create-invoice-response-class"), exports);
24
24
  __exportStar(require("./create-invoice-status-request-dto"), exports);
25
25
  __exportStar(require("./create-termination-invoice-request-dto"), exports);
26
- __exportStar(require("./currency-class"), exports);
27
26
  __exportStar(require("./invoice-class"), exports);
28
27
  __exportStar(require("./invoice-item-class"), exports);
29
28
  __exportStar(require("./invoice-status-class"), exports);
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CurrencyClass } from './currency-class';
13
12
  import { InvoiceItemClass } from './invoice-item-class';
14
13
  import { InvoiceStatusClass } from './invoice-status-class';
15
14
  /**
@@ -128,10 +127,10 @@ export interface InvoiceClass {
128
127
  'statuses': Array<InvoiceStatusClass>;
129
128
  /**
130
129
  * Invoice currency. EUR is used by default.
131
- * @type {CurrencyClass}
130
+ * @type {string}
132
131
  * @memberof InvoiceClass
133
132
  */
134
- 'currency': CurrencyClass;
133
+ 'currency': string;
135
134
  }
136
135
  export declare const InvoiceClassTypeEnum: {
137
136
  readonly Initial: "initial";
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CurrencyClass } from './currency-class';
13
12
  import { InvoiceItemClass } from './invoice-item-class';
14
13
  /**
15
14
  *
@@ -121,10 +120,10 @@ export interface OmitTypeClass {
121
120
  'invoiceItems': Array<InvoiceItemClass>;
122
121
  /**
123
122
  * Invoice currency. EUR is used by default.
124
- * @type {CurrencyClass}
123
+ * @type {string}
125
124
  * @memberof OmitTypeClass
126
125
  */
127
- 'currency': CurrencyClass;
126
+ 'currency': string;
128
127
  }
129
128
  export declare const OmitTypeClassTypeEnum: {
130
129
  readonly Initial: "initial";
@@ -111,7 +111,7 @@ export interface PolicyDto {
111
111
  * @type {string}
112
112
  * @memberof PolicyDto
113
113
  */
114
- 'tenantHierarchy': string;
114
+ 'ern': string;
115
115
  }
116
116
  export declare const PolicyDtoStatusEnum: {
117
117
  readonly Active: "ACTIVE";
@@ -39,4 +39,10 @@ export interface PolicyObjectDto {
39
39
  * @memberof PolicyObjectDto
40
40
  */
41
41
  'data': object;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PolicyObjectDto
46
+ */
47
+ 'code': string;
42
48
  }
@@ -40,4 +40,10 @@ export interface PolicyPremiumDto {
40
40
  * @memberof PolicyPremiumDto
41
41
  */
42
42
  'premiumItems': Array<PolicyPremiumItemDto>;
43
+ /**
44
+ * The currency of policy premium
45
+ * @type {string}
46
+ * @memberof PolicyPremiumDto
47
+ */
48
+ 'currency': string;
43
49
  }
package/models/index.ts CHANGED
@@ -7,7 +7,6 @@ export * from './create-invoice-request-dto';
7
7
  export * from './create-invoice-response-class';
8
8
  export * from './create-invoice-status-request-dto';
9
9
  export * from './create-termination-invoice-request-dto';
10
- export * from './currency-class';
11
10
  export * from './invoice-class';
12
11
  export * from './invoice-item-class';
13
12
  export * from './invoice-status-class';
@@ -13,7 +13,6 @@
13
13
  */
14
14
 
15
15
 
16
- import { CurrencyClass } from './currency-class';
17
16
  import { InvoiceItemClass } from './invoice-item-class';
18
17
  import { InvoiceStatusClass } from './invoice-status-class';
19
18
 
@@ -133,10 +132,10 @@ export interface InvoiceClass {
133
132
  'statuses': Array<InvoiceStatusClass>;
134
133
  /**
135
134
  * Invoice currency. EUR is used by default.
136
- * @type {CurrencyClass}
135
+ * @type {string}
137
136
  * @memberof InvoiceClass
138
137
  */
139
- 'currency': CurrencyClass;
138
+ 'currency': string;
140
139
  }
141
140
 
142
141
  export const InvoiceClassTypeEnum = {
@@ -13,7 +13,6 @@
13
13
  */
14
14
 
15
15
 
16
- import { CurrencyClass } from './currency-class';
17
16
  import { InvoiceItemClass } from './invoice-item-class';
18
17
 
19
18
  /**
@@ -126,10 +125,10 @@ export interface OmitTypeClass {
126
125
  'invoiceItems': Array<InvoiceItemClass>;
127
126
  /**
128
127
  * Invoice currency. EUR is used by default.
129
- * @type {CurrencyClass}
128
+ * @type {string}
130
129
  * @memberof OmitTypeClass
131
130
  */
132
- 'currency': CurrencyClass;
131
+ 'currency': string;
133
132
  }
134
133
 
135
134
  export const OmitTypeClassTypeEnum = {
@@ -116,7 +116,7 @@ export interface PolicyDto {
116
116
  * @type {string}
117
117
  * @memberof PolicyDto
118
118
  */
119
- 'tenantHierarchy': string;
119
+ 'ern': string;
120
120
  }
121
121
 
122
122
  export const PolicyDtoStatusEnum = {
@@ -44,5 +44,11 @@ export interface PolicyObjectDto {
44
44
  * @memberof PolicyObjectDto
45
45
  */
46
46
  'data': object;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof PolicyObjectDto
51
+ */
52
+ 'code': string;
47
53
  }
48
54
 
@@ -45,5 +45,11 @@ export interface PolicyPremiumDto {
45
45
  * @memberof PolicyPremiumDto
46
46
  */
47
47
  'premiumItems': Array<PolicyPremiumItemDto>;
48
+ /**
49
+ * The currency of policy premium
50
+ * @type {string}
51
+ * @memberof PolicyPremiumDto
52
+ */
53
+ 'currency': string;
48
54
  }
49
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "OpenAPI client for @emilgroup/billing-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,48 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService API description
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 CurrencyClass
16
- */
17
- export interface CurrencyClass {
18
- /**
19
- * Internal unique identifier for the object. You should not have to use this, use code instead.
20
- * @type {number}
21
- * @memberof CurrencyClass
22
- */
23
- 'id': number;
24
- /**
25
- * Name of currency in English.
26
- * @type {string}
27
- * @memberof CurrencyClass
28
- */
29
- 'name': string;
30
- /**
31
- * Name of currency in native language.
32
- * @type {string}
33
- * @memberof CurrencyClass
34
- */
35
- 'nativeName': string;
36
- /**
37
- * Code defined by ISO 4217 standard.
38
- * @type {string}
39
- * @memberof CurrencyClass
40
- */
41
- 'code': string;
42
- /**
43
- * Currency symbols are graphical representations used to denote a particular currency in written or printed form.
44
- * @type {string}
45
- * @memberof CurrencyClass
46
- */
47
- 'symbol': string;
48
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService API description
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 });
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 CurrencyClass
21
- */
22
- export interface CurrencyClass {
23
- /**
24
- * Internal unique identifier for the object. You should not have to use this, use code instead.
25
- * @type {number}
26
- * @memberof CurrencyClass
27
- */
28
- 'id': number;
29
- /**
30
- * Name of currency in English.
31
- * @type {string}
32
- * @memberof CurrencyClass
33
- */
34
- 'name': string;
35
- /**
36
- * Name of currency in native language.
37
- * @type {string}
38
- * @memberof CurrencyClass
39
- */
40
- 'nativeName': string;
41
- /**
42
- * Code defined by ISO 4217 standard.
43
- * @type {string}
44
- * @memberof CurrencyClass
45
- */
46
- 'code': string;
47
- /**
48
- * Currency symbols are graphical representations used to denote a particular currency in written or printed form.
49
- * @type {string}
50
- * @memberof CurrencyClass
51
- */
52
- 'symbol': string;
53
- }
54
-