@epilot/pricing-client 3.21.4 → 3.22.1

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.
@@ -2997,6 +2998,15 @@ declare namespace Components {
2997
2998
  type?: "VAT" | "GST" | "Custom";
2998
2999
  _id?: string;
2999
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
+ }
3000
3010
  /**
3001
3011
  * The total details with tax (and discount) aggregated totals.
3002
3012
  */
package/dist/openapi.json CHANGED
@@ -3669,6 +3669,12 @@
3669
3669
  "tiered_flatfee",
3670
3670
  "external_getag"
3671
3671
  ]
3672
+ },
3673
+ "tiers_details": {
3674
+ "type": "array",
3675
+ "items": {
3676
+ "$ref": "#/components/schemas/TierDetails"
3677
+ }
3672
3678
  }
3673
3679
  },
3674
3680
  "required": [
@@ -4388,6 +4394,41 @@
4388
4394
  "hidden",
4389
4395
  "on_request"
4390
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
+ },
4423
+ "required": [
4424
+ "quantity",
4425
+ "unit_amount",
4426
+ "unit_amount_gross",
4427
+ "unit_amount_net",
4428
+ "amount_total",
4429
+ "amount_subtotal",
4430
+ "amount_tax"
4431
+ ]
4391
4432
  }
4392
4433
  },
4393
4434
  "examples": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.21.4",
3
+ "version": "3.22.1",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",