@emilgroup/discount-sdk-node 1.12.1-beta.20 → 1.12.1-beta.21

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.
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/discount-sdk-node@1.12.1-beta.20 --save
20
+ npm install @emilgroup/discount-sdk-node@1.12.1-beta.21 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/discount-sdk-node@1.12.1-beta.20
24
+ yarn add @emilgroup/discount-sdk-node@1.12.1-beta.21
25
25
  ```
26
26
 
27
27
  And then you can import `CampaignApi`.
@@ -81,6 +81,12 @@ export interface ChargePolicyVoucherResponseClass {
81
81
  * @memberof ChargePolicyVoucherResponseClass
82
82
  */
83
83
  'chargedAmount': number;
84
+ /**
85
+ * The discount (in cents!) actually paid on the invoice: the charged amount, capped at the invoice gross amount. Equals the charged amount when the invoice could not be read.
86
+ * @type {number}
87
+ * @memberof ChargePolicyVoucherResponseClass
88
+ */
89
+ 'adjustedAmount': number;
84
90
  /**
85
91
  * The end date of the voucher discount. Calculated based on the policy start date and the voucher duration.
86
92
  * @type {string}
@@ -51,6 +51,12 @@ export interface PolicyVoucherTransactionClass {
51
51
  * @memberof PolicyVoucherTransactionClass
52
52
  */
53
53
  'amount': number;
54
+ /**
55
+ * The discount (in cents!) actually paid on the invoice: the amount, capped at the invoice gross amount. Empty for transactions other than charges and for charges made before it was stored.
56
+ * @type {number}
57
+ * @memberof PolicyVoucherTransactionClass
58
+ */
59
+ 'adjustedAmount': number;
54
60
  /**
55
61
  * The number of months the voucher months were descreased by
56
62
  * @type {number}
@@ -86,6 +86,12 @@ export interface ChargePolicyVoucherResponseClass {
86
86
  * @memberof ChargePolicyVoucherResponseClass
87
87
  */
88
88
  'chargedAmount': number;
89
+ /**
90
+ * The discount (in cents!) actually paid on the invoice: the charged amount, capped at the invoice gross amount. Equals the charged amount when the invoice could not be read.
91
+ * @type {number}
92
+ * @memberof ChargePolicyVoucherResponseClass
93
+ */
94
+ 'adjustedAmount': number;
89
95
  /**
90
96
  * The end date of the voucher discount. Calculated based on the policy start date and the voucher duration.
91
97
  * @type {string}
@@ -56,6 +56,12 @@ export interface PolicyVoucherTransactionClass {
56
56
  * @memberof PolicyVoucherTransactionClass
57
57
  */
58
58
  'amount': number;
59
+ /**
60
+ * The discount (in cents!) actually paid on the invoice: the amount, capped at the invoice gross amount. Empty for transactions other than charges and for charges made before it was stored.
61
+ * @type {number}
62
+ * @memberof PolicyVoucherTransactionClass
63
+ */
64
+ 'adjustedAmount': number;
59
65
  /**
60
66
  * The number of months the voucher months were descreased by
61
67
  * @type {number}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/discount-sdk-node",
3
- "version": "1.12.1-beta.20",
3
+ "version": "1.12.1-beta.21",
4
4
  "description": "OpenAPI client for @emilgroup/discount-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [