@epilot/pricing-client 3.33.2 → 3.35.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 +882 -393
- package/dist/openapi.json +100 -74
- 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,31 @@
|
|
|
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
|
+
"before_discount_unit_amount": {
|
|
3837
|
+
"type": "integer",
|
|
3838
|
+
"description": "The unit amount before any discount is applied",
|
|
3839
|
+
"readOnly": true
|
|
3840
|
+
},
|
|
3841
|
+
"unit_amount_decimal": {
|
|
3842
|
+
"description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
3843
|
+
"type": "string",
|
|
3844
|
+
"readOnly": true
|
|
3845
|
+
},
|
|
3846
|
+
"unit_discount_amount": {
|
|
3847
|
+
"type": "integer",
|
|
3848
|
+
"description": "The discount amount applied for each unit",
|
|
3849
|
+
"readOnly": true
|
|
3850
|
+
},
|
|
3851
|
+
"unit_discount_amount_decimal": {
|
|
3852
|
+
"type": "string",
|
|
3853
|
+
"description": "The discount amount applied for each unit represented as a decimal string",
|
|
3854
|
+
"readOnly": true
|
|
3855
|
+
},
|
|
3825
3856
|
"unit_amount_gross": {
|
|
3826
3857
|
"type": "integer",
|
|
3827
3858
|
"description": "The unit gross amount value.",
|
|
@@ -3832,10 +3863,6 @@
|
|
|
3832
3863
|
"description": "The unit gross amount value.",
|
|
3833
3864
|
"readOnly": true
|
|
3834
3865
|
},
|
|
3835
|
-
"amount_tax": {
|
|
3836
|
-
"type": "integer",
|
|
3837
|
-
"description": "Total tax amount for this line item."
|
|
3838
|
-
},
|
|
3839
3866
|
"unit_amount_net": {
|
|
3840
3867
|
"type": "integer",
|
|
3841
3868
|
"description": "Net unit amount without taxes or discounts.",
|
|
@@ -3846,32 +3873,42 @@
|
|
|
3846
3873
|
"description": "Net unit amount without taxes or discounts.",
|
|
3847
3874
|
"readOnly": true
|
|
3848
3875
|
},
|
|
3849
|
-
"
|
|
3850
|
-
"
|
|
3851
|
-
"
|
|
3852
|
-
|
|
3853
|
-
"currency": {
|
|
3854
|
-
"$ref": "#/components/schemas/Currency"
|
|
3876
|
+
"unit_discount_amount_net": {
|
|
3877
|
+
"type": "integer",
|
|
3878
|
+
"description": "The net discount amount applied for each unit",
|
|
3879
|
+
"readOnly": true
|
|
3855
3880
|
},
|
|
3856
|
-
"
|
|
3881
|
+
"unit_discount_amount_net_decimal": {
|
|
3857
3882
|
"type": "string",
|
|
3858
|
-
"description": "
|
|
3883
|
+
"description": "The net discount amount applied for each unit represented as a decimal string",
|
|
3884
|
+
"readOnly": true
|
|
3859
3885
|
},
|
|
3860
|
-
"
|
|
3886
|
+
"tax_discount_amount": {
|
|
3861
3887
|
"type": "integer",
|
|
3862
|
-
"description": "The
|
|
3888
|
+
"description": "The discount amount applied to the tax",
|
|
3889
|
+
"readOnly": true
|
|
3863
3890
|
},
|
|
3864
|
-
"
|
|
3891
|
+
"tax_discount_amount_decimal": {
|
|
3865
3892
|
"type": "string",
|
|
3866
|
-
"description": "The
|
|
3893
|
+
"description": "The discount amount applied to the tax represented as a decimal string",
|
|
3894
|
+
"readOnly": true
|
|
3867
3895
|
},
|
|
3868
|
-
"
|
|
3896
|
+
"amount_tax": {
|
|
3897
|
+
"type": "integer",
|
|
3898
|
+
"description": "Total tax amount for this line item."
|
|
3899
|
+
},
|
|
3900
|
+
"before_discount_tax_amount": {
|
|
3901
|
+
"type": "integer",
|
|
3902
|
+
"description": "The tax amount before any discount is applied",
|
|
3903
|
+
"readOnly": true
|
|
3904
|
+
},
|
|
3905
|
+
"before_discount_tax_amount_decimal": {
|
|
3869
3906
|
"type": "string",
|
|
3870
|
-
"description": "The
|
|
3907
|
+
"description": "The tax amount before any discount is applied represented as a decimal string",
|
|
3908
|
+
"readOnly": true
|
|
3871
3909
|
},
|
|
3872
|
-
"
|
|
3873
|
-
"
|
|
3874
|
-
"type": "boolean"
|
|
3910
|
+
"currency": {
|
|
3911
|
+
"$ref": "#/components/schemas/Currency"
|
|
3875
3912
|
},
|
|
3876
3913
|
"_price": {
|
|
3877
3914
|
"description": "The price snapshot data.",
|
|
@@ -3884,9 +3921,6 @@
|
|
|
3884
3921
|
}
|
|
3885
3922
|
]
|
|
3886
3923
|
},
|
|
3887
|
-
"_product": {
|
|
3888
|
-
"$ref": "#/components/schemas/Product"
|
|
3889
|
-
},
|
|
3890
3924
|
"taxes": {
|
|
3891
3925
|
"type": "array",
|
|
3892
3926
|
"description": "The taxes applied to the price item.",
|
|
@@ -3911,17 +3945,9 @@
|
|
|
3911
3945
|
]
|
|
3912
3946
|
}
|
|
3913
3947
|
},
|
|
3914
|
-
"price_mappings": {
|
|
3915
|
-
"description": "Price mapping information required to compute totals",
|
|
3916
|
-
"$ref": "#/components/schemas/PriceInputMappings"
|
|
3917
|
-
},
|
|
3918
3948
|
"on_request_approved": {
|
|
3919
3949
|
"type": "boolean",
|
|
3920
3950
|
"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
3951
|
}
|
|
3926
3952
|
}
|
|
3927
3953
|
},
|