@epilot/pricing-client 3.21.3 → 3.22.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.
package/dist/openapi.d.ts CHANGED
@@ -2124,6 +2124,7 @@ declare namespace Components {
2124
2124
  *
2125
2125
  */
2126
2126
  pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
2127
+ tiers_details?: TierDetails[];
2127
2128
  }
2128
2129
  /**
2129
2130
  * Represents a price input to the pricing library.
@@ -2555,6 +2556,10 @@ declare namespace Components {
2555
2556
  * The unit gross amount value.
2556
2557
  */
2557
2558
  unit_amount_gross?: number;
2559
+ /**
2560
+ * The unit net amount value.
2561
+ */
2562
+ unit_amount_net?: number;
2558
2563
  /**
2559
2564
  * This is the sum of all the price item tax amounts.
2560
2565
  */
@@ -2705,6 +2710,10 @@ declare namespace Components {
2705
2710
  * The unit gross amount value.
2706
2711
  */
2707
2712
  unit_amount_gross?: number;
2713
+ /**
2714
+ * The unit net amount value.
2715
+ */
2716
+ unit_amount_net?: number;
2708
2717
  /**
2709
2718
  * Total of all items taxes, with same recurrence.
2710
2719
  */
@@ -2750,6 +2759,10 @@ declare namespace Components {
2750
2759
  * The unit gross amount value.
2751
2760
  */
2752
2761
  unit_amount_gross?: number;
2762
+ /**
2763
+ * The unit net amount value.
2764
+ */
2765
+ unit_amount_net?: number;
2753
2766
  /**
2754
2767
  * Total of all items taxes, with same recurrence.
2755
2768
  */
@@ -2985,6 +2998,15 @@ declare namespace Components {
2985
2998
  type?: "VAT" | "GST" | "Custom";
2986
2999
  _id?: string;
2987
3000
  }
3001
+ export interface TierDetails {
3002
+ quantity?: number;
3003
+ unit_amount?: number;
3004
+ unit_amount_gross?: number;
3005
+ unit_amount_net?: number;
3006
+ amount_total?: number;
3007
+ amount_subtotal?: number;
3008
+ amount_tax?: number;
3009
+ }
2988
3010
  /**
2989
3011
  * The total details with tax (and discount) aggregated totals.
2990
3012
  */
package/dist/openapi.json CHANGED
@@ -3295,6 +3295,10 @@
3295
3295
  "type": "integer",
3296
3296
  "description": "The unit gross amount value."
3297
3297
  },
3298
+ "unit_amount_net": {
3299
+ "type": "integer",
3300
+ "description": "The unit net amount value."
3301
+ },
3298
3302
  "amount_tax": {
3299
3303
  "type": "integer",
3300
3304
  "description": "Total of all items taxes, with same recurrence."
@@ -3665,6 +3669,12 @@
3665
3669
  "tiered_flatfee",
3666
3670
  "external_getag"
3667
3671
  ]
3672
+ },
3673
+ "tiers_details": {
3674
+ "type": "array",
3675
+ "items": {
3676
+ "$ref": "#/components/schemas/TierDetails"
3677
+ }
3668
3678
  }
3669
3679
  },
3670
3680
  "required": [
@@ -3754,6 +3764,10 @@
3754
3764
  "type": "integer",
3755
3765
  "description": "The unit gross amount value."
3756
3766
  },
3767
+ "unit_amount_net": {
3768
+ "type": "integer",
3769
+ "description": "The unit net amount value."
3770
+ },
3757
3771
  "amount_tax": {
3758
3772
  "type": "integer",
3759
3773
  "description": "Total of all items taxes, with same recurrence."
@@ -3901,6 +3915,10 @@
3901
3915
  "type": "integer",
3902
3916
  "description": "The unit gross amount value."
3903
3917
  },
3918
+ "unit_amount_net": {
3919
+ "type": "integer",
3920
+ "description": "The unit net amount value."
3921
+ },
3904
3922
  "amount_tax": {
3905
3923
  "type": "integer",
3906
3924
  "description": "This is the sum of all the price item tax amounts."
@@ -4376,6 +4394,32 @@
4376
4394
  "hidden",
4377
4395
  "on_request"
4378
4396
  ]
4397
+ },
4398
+ "TierDetails": {
4399
+ "type": "object",
4400
+ "properties": {
4401
+ "quantity": {
4402
+ "type": "number"
4403
+ },
4404
+ "unit_amount": {
4405
+ "type": "number"
4406
+ },
4407
+ "unit_amount_gross": {
4408
+ "type": "number"
4409
+ },
4410
+ "unit_amount_net": {
4411
+ "type": "number"
4412
+ },
4413
+ "amount_total": {
4414
+ "type": "number"
4415
+ },
4416
+ "amount_subtotal": {
4417
+ "type": "number"
4418
+ },
4419
+ "amount_tax": {
4420
+ "type": "number"
4421
+ }
4422
+ }
4379
4423
  }
4380
4424
  },
4381
4425
  "examples": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.21.3",
3
+ "version": "3.22.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",