@epilot/pricing-client 3.22.0 → 3.22.2

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
@@ -1924,6 +1924,15 @@ declare namespace Components {
1924
1924
  */
1925
1925
  _tags?: string[];
1926
1926
  }
1927
+ export interface PriceGetAg {
1928
+ category: string;
1929
+ markup_amount: number;
1930
+ markup_amount_decimal: string;
1931
+ unit_amount_gross: number;
1932
+ unit_amount_gross_decimal?: string;
1933
+ unit_amount_net: number;
1934
+ unit_amount_net_decimal?: string;
1935
+ }
1927
1936
  /**
1928
1937
  * example:
1929
1938
  * {
@@ -2125,6 +2134,7 @@ declare namespace Components {
2125
2134
  */
2126
2135
  pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
2127
2136
  tiers_details?: TierDetails[];
2137
+ get_ag?: PriceGetAg;
2128
2138
  }
2129
2139
  /**
2130
2140
  * Represents a price input to the pricing library.
@@ -2999,13 +3009,13 @@ declare namespace Components {
2999
3009
  _id?: string;
3000
3010
  }
3001
3011
  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;
3012
+ quantity: number;
3013
+ unit_amount: number;
3014
+ unit_amount_gross: number;
3015
+ unit_amount_net: number;
3016
+ amount_total: number;
3017
+ amount_subtotal: number;
3018
+ amount_tax: number;
3009
3019
  }
3010
3020
  /**
3011
3021
  * The total details with tax (and discount) aggregated totals.
package/dist/openapi.json CHANGED
@@ -3675,6 +3675,9 @@
3675
3675
  "items": {
3676
3676
  "$ref": "#/components/schemas/TierDetails"
3677
3677
  }
3678
+ },
3679
+ "get_ag": {
3680
+ "$ref": "#/components/schemas/PriceGetAg"
3678
3681
  }
3679
3682
  },
3680
3683
  "required": [
@@ -4395,6 +4398,39 @@
4395
4398
  "on_request"
4396
4399
  ]
4397
4400
  },
4401
+ "PriceGetAg": {
4402
+ "type": "object",
4403
+ "properties": {
4404
+ "category": {
4405
+ "type": "string"
4406
+ },
4407
+ "markup_amount": {
4408
+ "type": "number"
4409
+ },
4410
+ "markup_amount_decimal": {
4411
+ "type": "string"
4412
+ },
4413
+ "unit_amount_gross": {
4414
+ "type": "number"
4415
+ },
4416
+ "unit_amount_gross_decimal": {
4417
+ "type": "string"
4418
+ },
4419
+ "unit_amount_net": {
4420
+ "type": "number"
4421
+ },
4422
+ "unit_amount_net_decimal": {
4423
+ "type": "string"
4424
+ }
4425
+ },
4426
+ "required": [
4427
+ "category",
4428
+ "markup_amount",
4429
+ "markup_amount_decimal",
4430
+ "unit_amount_gross",
4431
+ "unit_amount_net"
4432
+ ]
4433
+ },
4398
4434
  "TierDetails": {
4399
4435
  "type": "object",
4400
4436
  "properties": {
@@ -4419,7 +4455,16 @@
4419
4455
  "amount_tax": {
4420
4456
  "type": "number"
4421
4457
  }
4422
- }
4458
+ },
4459
+ "required": [
4460
+ "quantity",
4461
+ "unit_amount",
4462
+ "unit_amount_gross",
4463
+ "unit_amount_net",
4464
+ "amount_total",
4465
+ "amount_subtotal",
4466
+ "amount_tax"
4467
+ ]
4423
4468
  }
4424
4469
  },
4425
4470
  "examples": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.22.0",
3
+ "version": "3.22.2",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",