@emilgroup/billing-sdk 1.63.1-beta.4 → 1.63.1-beta.40

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 (43) hide show
  1. package/README.md +2 -2
  2. package/api/correction-invoices-api.ts +23 -8
  3. package/api/draft-invoice-api.ts +24 -9
  4. package/api/estimated-invoices-api.ts +32 -12
  5. package/api/health-api.ts +1 -1
  6. package/api/initial-invoices-api.ts +15 -5
  7. package/api/invoices-api.ts +47 -22
  8. package/api/policy-billing-api.ts +24 -9
  9. package/api/recurring-invoices-api.ts +15 -5
  10. package/api/termination-invoices-api.ts +15 -5
  11. package/api/withdraw-invoices-api.ts +15 -5
  12. package/base.ts +239 -43
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/correction-invoices-api.d.ts +2 -2
  16. package/dist/api/correction-invoices-api.js +35 -18
  17. package/dist/api/draft-invoice-api.d.ts +3 -3
  18. package/dist/api/draft-invoice-api.js +45 -24
  19. package/dist/api/estimated-invoices-api.d.ts +4 -4
  20. package/dist/api/estimated-invoices-api.js +60 -32
  21. package/dist/api/health-api.d.ts +1 -1
  22. package/dist/api/health-api.js +1 -1
  23. package/dist/api/initial-invoices-api.d.ts +1 -1
  24. package/dist/api/initial-invoices-api.js +20 -10
  25. package/dist/api/invoices-api.d.ts +12 -12
  26. package/dist/api/invoices-api.js +59 -37
  27. package/dist/api/policy-billing-api.d.ts +3 -3
  28. package/dist/api/policy-billing-api.js +41 -23
  29. package/dist/api/recurring-invoices-api.d.ts +1 -1
  30. package/dist/api/recurring-invoices-api.js +20 -10
  31. package/dist/api/termination-invoices-api.d.ts +1 -1
  32. package/dist/api/termination-invoices-api.js +20 -10
  33. package/dist/api/withdraw-invoices-api.d.ts +1 -1
  34. package/dist/api/withdraw-invoices-api.js +20 -10
  35. package/dist/base.d.ts +26 -0
  36. package/dist/base.js +243 -60
  37. package/dist/common.d.ts +1 -1
  38. package/dist/common.js +1 -0
  39. package/dist/configuration.d.ts +17 -0
  40. package/dist/configuration.js +2 -0
  41. package/dist/models/invoice-item-class.d.ts +12 -0
  42. package/models/invoice-item-class.ts +12 -0
  43. package/package.json +2 -2
@@ -17,6 +17,8 @@ export interface ConfigurationParameters {
17
17
  basePath?: string;
18
18
  baseOptions?: any;
19
19
  formDataCtor?: new () => any;
20
+ cookieAuth?: boolean;
21
+ account?: string;
20
22
  }
21
23
  export declare class Configuration {
22
24
  /**
@@ -68,6 +70,21 @@ export declare class Configuration {
68
70
  * @type {new () => FormData}
69
71
  */
70
72
  formDataCtor?: new () => any;
73
+ /**
74
+ * Use a server session when authservice makes one; otherwise the token, as without this option.
75
+ * Set `account` too, so each SDK object keeps its own account.
76
+ *
77
+ * @type {boolean}
78
+ * @memberof Configuration
79
+ */
80
+ cookieAuth?: boolean;
81
+ /**
82
+ * The session account (Cognito sub) this app shows, so the SDK never takes another tab's account.
83
+ *
84
+ * @type {string}
85
+ * @memberof Configuration
86
+ */
87
+ account?: string;
71
88
  constructor(param?: ConfigurationParameters);
72
89
  /**
73
90
  * Check if the given MIME is a JSON MIME.
@@ -24,6 +24,8 @@ var Configuration = /** @class */ (function () {
24
24
  this.basePath = param.basePath;
25
25
  this.baseOptions = param.baseOptions;
26
26
  this.formDataCtor = param.formDataCtor;
27
+ this.cookieAuth = param.cookieAuth;
28
+ this.account = param.account;
27
29
  }
28
30
  /**
29
31
  * Check if the given MIME is a JSON MIME.
@@ -27,6 +27,18 @@ export interface InvoiceItemClass {
27
27
  * @memberof InvoiceItemClass
28
28
  */
29
29
  'premiumFormulaId': number;
30
+ /**
31
+ * Unique identifier of the premium formula that this object belongs to.
32
+ * @type {string}
33
+ * @memberof InvoiceItemClass
34
+ */
35
+ 'premiumFormulaCode'?: string;
36
+ /**
37
+ * Unique identifier of the original invoice that this object belongs to.
38
+ * @type {string}
39
+ * @memberof InvoiceItemClass
40
+ */
41
+ 'reversedInvoiceCode'?: string;
30
42
  /**
31
43
  * Product name.
32
44
  * @type {string}
@@ -32,6 +32,18 @@ export interface InvoiceItemClass {
32
32
  * @memberof InvoiceItemClass
33
33
  */
34
34
  'premiumFormulaId': number;
35
+ /**
36
+ * Unique identifier of the premium formula that this object belongs to.
37
+ * @type {string}
38
+ * @memberof InvoiceItemClass
39
+ */
40
+ 'premiumFormulaCode'?: string;
41
+ /**
42
+ * Unique identifier of the original invoice that this object belongs to.
43
+ * @type {string}
44
+ * @memberof InvoiceItemClass
45
+ */
46
+ 'reversedInvoiceCode'?: string;
35
47
  /**
36
48
  * Product name.
37
49
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk",
3
- "version": "1.63.1-beta.4",
3
+ "version": "1.63.1-beta.40",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.18.0"
21
+ "axios": "1.20.0"
22
22
  },
23
23
  "devDependencies": {
24
24