@epilot/pricing-client 3.33.2 → 3.34.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 +736 -307
- package/dist/openapi.json +79 -78
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -3317,6 +3317,51 @@
|
|
|
3317
3317
|
],
|
|
3318
3318
|
"description": "\n| status | description |\n|-------------|-------|\n| `draft` | Starting state for all orders, at this point we can still edit the order |\n| `quote` | The order is in a quoting phase, bound to an expiration date |\n| `placed` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |\n| `cancelled` | The order has been cancelled |\n| `completed` | The order is now closed and finalized |\n"
|
|
3319
3319
|
},
|
|
3320
|
+
"BasePriceItemCommon": {
|
|
3321
|
+
"description": "Represents the common keys in BasePriceItem and BasePriceItemDto",
|
|
3322
|
+
"type": "object",
|
|
3323
|
+
"properties": {
|
|
3324
|
+
"metadata": {
|
|
3325
|
+
"$ref": "#/components/schemas/MetaData"
|
|
3326
|
+
},
|
|
3327
|
+
"quantity": {
|
|
3328
|
+
"type": "integer",
|
|
3329
|
+
"description": "The quantity of products being purchased."
|
|
3330
|
+
},
|
|
3331
|
+
"product_id": {
|
|
3332
|
+
"type": "string",
|
|
3333
|
+
"description": "The id of the product."
|
|
3334
|
+
},
|
|
3335
|
+
"price_id": {
|
|
3336
|
+
"type": "string",
|
|
3337
|
+
"description": "The id of the price."
|
|
3338
|
+
},
|
|
3339
|
+
"is_composite_price": {
|
|
3340
|
+
"description": "The flag for prices that contain price components.",
|
|
3341
|
+
"type": "boolean"
|
|
3342
|
+
},
|
|
3343
|
+
"description": {
|
|
3344
|
+
"type": "string",
|
|
3345
|
+
"description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
|
|
3346
|
+
},
|
|
3347
|
+
"price_mappings": {
|
|
3348
|
+
"description": "Price mapping information required to compute totals",
|
|
3349
|
+
"$ref": "#/components/schemas/PriceInputMappings"
|
|
3350
|
+
},
|
|
3351
|
+
"is_tax_inclusive": {
|
|
3352
|
+
"type": "boolean",
|
|
3353
|
+
"description": "Specifies whether the price is considered `inclusive` of taxes or not."
|
|
3354
|
+
},
|
|
3355
|
+
"_product": {
|
|
3356
|
+
"description": "The snapshot of the product.",
|
|
3357
|
+
"allOf": [
|
|
3358
|
+
{
|
|
3359
|
+
"$ref": "#/components/schemas/Product"
|
|
3360
|
+
}
|
|
3361
|
+
]
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3320
3365
|
"PriceItemsDto": {
|
|
3321
3366
|
"description": "A valid set of product prices, quantities, (discounts) and taxes from a client.",
|
|
3322
3367
|
"type": "array",
|
|
@@ -3334,18 +3379,12 @@
|
|
|
3334
3379
|
"BasePriceItemDto": {
|
|
3335
3380
|
"description": "Represents a valid base price item from a client.",
|
|
3336
3381
|
"type": "object",
|
|
3382
|
+
"allOf": [
|
|
3383
|
+
{
|
|
3384
|
+
"$ref": "#/components/schemas/BasePriceItemCommon"
|
|
3385
|
+
}
|
|
3386
|
+
],
|
|
3337
3387
|
"properties": {
|
|
3338
|
-
"metadata": {
|
|
3339
|
-
"$ref": "#/components/schemas/MetaData"
|
|
3340
|
-
},
|
|
3341
|
-
"quantity": {
|
|
3342
|
-
"type": "integer",
|
|
3343
|
-
"description": "The quantity of products being purchased."
|
|
3344
|
-
},
|
|
3345
|
-
"price_mappings": {
|
|
3346
|
-
"description": "Price mapping information required to compute totals",
|
|
3347
|
-
"$ref": "#/components/schemas/PriceInputMappings"
|
|
3348
|
-
},
|
|
3349
3388
|
"external_fees_mappings": {
|
|
3350
3389
|
"description": "External fees mapping information required to compute totals, for some pricing models",
|
|
3351
3390
|
"$ref": "#/components/schemas/ExternalFeeMappings"
|
|
@@ -3354,18 +3393,6 @@
|
|
|
3354
3393
|
"description": "External fees metadata information required to compute totals, for some pricing models",
|
|
3355
3394
|
"$ref": "#/components/schemas/ExternalFeeMetadata"
|
|
3356
3395
|
},
|
|
3357
|
-
"description": {
|
|
3358
|
-
"type": "string",
|
|
3359
|
-
"description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
|
|
3360
|
-
},
|
|
3361
|
-
"product_id": {
|
|
3362
|
-
"type": "string",
|
|
3363
|
-
"description": "The id of the product."
|
|
3364
|
-
},
|
|
3365
|
-
"price_id": {
|
|
3366
|
-
"type": "string",
|
|
3367
|
-
"description": "The id of the price."
|
|
3368
|
-
},
|
|
3369
3396
|
"coupon_ids": {
|
|
3370
3397
|
"type": "array",
|
|
3371
3398
|
"description": "The ids of the coupons applicable to the price item",
|
|
@@ -3399,18 +3426,6 @@
|
|
|
3399
3426
|
]
|
|
3400
3427
|
}
|
|
3401
3428
|
},
|
|
3402
|
-
"is_composite_price": {
|
|
3403
|
-
"description": "The flag for prices that contain price components.",
|
|
3404
|
-
"type": "boolean"
|
|
3405
|
-
},
|
|
3406
|
-
"_product": {
|
|
3407
|
-
"description": "The snapshot of the product.",
|
|
3408
|
-
"allOf": [
|
|
3409
|
-
{
|
|
3410
|
-
"$ref": "#/components/schemas/Product"
|
|
3411
|
-
}
|
|
3412
|
-
]
|
|
3413
|
-
},
|
|
3414
3429
|
"_coupons": {
|
|
3415
3430
|
"type": "array",
|
|
3416
3431
|
"description": "The coupons applicable to the price item",
|
|
@@ -3422,10 +3437,6 @@
|
|
|
3422
3437
|
}
|
|
3423
3438
|
]
|
|
3424
3439
|
}
|
|
3425
|
-
},
|
|
3426
|
-
"is_tax_inclusive": {
|
|
3427
|
-
"type": "boolean",
|
|
3428
|
-
"description": "Specifies whether the price is considered `inclusive` of taxes or not."
|
|
3429
3440
|
}
|
|
3430
3441
|
}
|
|
3431
3442
|
},
|
|
@@ -3806,6 +3817,9 @@
|
|
|
3806
3817
|
"allOf": [
|
|
3807
3818
|
{
|
|
3808
3819
|
"$ref": "#/components/schemas/Amounts"
|
|
3820
|
+
},
|
|
3821
|
+
{
|
|
3822
|
+
"$ref": "#/components/schemas/BasePriceItemCommon"
|
|
3809
3823
|
}
|
|
3810
3824
|
],
|
|
3811
3825
|
"properties": {
|
|
@@ -3814,14 +3828,26 @@
|
|
|
3814
3828
|
"description": "price item id",
|
|
3815
3829
|
"readOnly": true
|
|
3816
3830
|
},
|
|
3817
|
-
"metadata": {
|
|
3818
|
-
"$ref": "#/components/schemas/MetaData"
|
|
3819
|
-
},
|
|
3820
3831
|
"unit_amount": {
|
|
3821
3832
|
"type": "integer",
|
|
3822
3833
|
"description": "The unit amount value",
|
|
3823
3834
|
"readOnly": true
|
|
3824
3835
|
},
|
|
3836
|
+
"unit_amount_decimal": {
|
|
3837
|
+
"description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
3838
|
+
"type": "string",
|
|
3839
|
+
"readOnly": true
|
|
3840
|
+
},
|
|
3841
|
+
"unit_discount_amount": {
|
|
3842
|
+
"type": "integer",
|
|
3843
|
+
"description": "The discount amount applied for each unit",
|
|
3844
|
+
"readOnly": true
|
|
3845
|
+
},
|
|
3846
|
+
"unit_discount_amount_decimal": {
|
|
3847
|
+
"type": "string",
|
|
3848
|
+
"description": "The discount amount applied for each unit represented as a decimal string",
|
|
3849
|
+
"readOnly": true
|
|
3850
|
+
},
|
|
3825
3851
|
"unit_amount_gross": {
|
|
3826
3852
|
"type": "integer",
|
|
3827
3853
|
"description": "The unit gross amount value.",
|
|
@@ -3832,10 +3858,6 @@
|
|
|
3832
3858
|
"description": "The unit gross amount value.",
|
|
3833
3859
|
"readOnly": true
|
|
3834
3860
|
},
|
|
3835
|
-
"amount_tax": {
|
|
3836
|
-
"type": "integer",
|
|
3837
|
-
"description": "Total tax amount for this line item."
|
|
3838
|
-
},
|
|
3839
3861
|
"unit_amount_net": {
|
|
3840
3862
|
"type": "integer",
|
|
3841
3863
|
"description": "Net unit amount without taxes or discounts.",
|
|
@@ -3846,32 +3868,22 @@
|
|
|
3846
3868
|
"description": "Net unit amount without taxes or discounts.",
|
|
3847
3869
|
"readOnly": true
|
|
3848
3870
|
},
|
|
3849
|
-
"
|
|
3850
|
-
"description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
3851
|
-
"type": "string"
|
|
3852
|
-
},
|
|
3853
|
-
"currency": {
|
|
3854
|
-
"$ref": "#/components/schemas/Currency"
|
|
3855
|
-
},
|
|
3856
|
-
"description": {
|
|
3857
|
-
"type": "string",
|
|
3858
|
-
"description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
|
|
3859
|
-
},
|
|
3860
|
-
"quantity": {
|
|
3871
|
+
"unit_discount_amount_net": {
|
|
3861
3872
|
"type": "integer",
|
|
3862
|
-
"description": "The
|
|
3873
|
+
"description": "The net discount amount applied for each unit",
|
|
3874
|
+
"readOnly": true
|
|
3863
3875
|
},
|
|
3864
|
-
"
|
|
3876
|
+
"unit_discount_amount_net_decimal": {
|
|
3865
3877
|
"type": "string",
|
|
3866
|
-
"description": "The
|
|
3878
|
+
"description": "The net discount amount applied for each unit represented as a decimal string",
|
|
3879
|
+
"readOnly": true
|
|
3867
3880
|
},
|
|
3868
|
-
"
|
|
3869
|
-
"type": "
|
|
3870
|
-
"description": "
|
|
3881
|
+
"amount_tax": {
|
|
3882
|
+
"type": "integer",
|
|
3883
|
+
"description": "Total tax amount for this line item."
|
|
3871
3884
|
},
|
|
3872
|
-
"
|
|
3873
|
-
"
|
|
3874
|
-
"type": "boolean"
|
|
3885
|
+
"currency": {
|
|
3886
|
+
"$ref": "#/components/schemas/Currency"
|
|
3875
3887
|
},
|
|
3876
3888
|
"_price": {
|
|
3877
3889
|
"description": "The price snapshot data.",
|
|
@@ -3884,9 +3896,6 @@
|
|
|
3884
3896
|
}
|
|
3885
3897
|
]
|
|
3886
3898
|
},
|
|
3887
|
-
"_product": {
|
|
3888
|
-
"$ref": "#/components/schemas/Product"
|
|
3889
|
-
},
|
|
3890
3899
|
"taxes": {
|
|
3891
3900
|
"type": "array",
|
|
3892
3901
|
"description": "The taxes applied to the price item.",
|
|
@@ -3911,17 +3920,9 @@
|
|
|
3911
3920
|
]
|
|
3912
3921
|
}
|
|
3913
3922
|
},
|
|
3914
|
-
"price_mappings": {
|
|
3915
|
-
"description": "Price mapping information required to compute totals",
|
|
3916
|
-
"$ref": "#/components/schemas/PriceInputMappings"
|
|
3917
|
-
},
|
|
3918
3923
|
"on_request_approved": {
|
|
3919
3924
|
"type": "boolean",
|
|
3920
3925
|
"description": "When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'."
|
|
3921
|
-
},
|
|
3922
|
-
"is_tax_inclusive": {
|
|
3923
|
-
"type": "boolean",
|
|
3924
|
-
"description": "Specifies whether the price is considered `inclusive` of taxes or not."
|
|
3925
3926
|
}
|
|
3926
3927
|
}
|
|
3927
3928
|
},
|