Skip to content

Commit 09d3a57

Browse files
authored
feat: add missing cart properties (#373)
1 parent 5c8d75a commit 09d3a57

File tree

5 files changed

+179
-4
lines changed

5 files changed

+179
-4
lines changed

.changeset/hungry-sloths-approve.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@epcc-sdk/sdks-cart-checkout-order": patch
3+
"@epcc-sdk/sdks-shopper": patch
4+
---
5+
6+
add missing cart properties

packages/sdks/cart-checkout-order/src/client/types.gen.ts

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,36 @@ export type CustomItemResponseObject = CustomItemObjectData & {
134134
* Specifies the ID of the custom cart item
135135
*/
136136
id: string
137-
description?: unknown
137+
readonly image?: {
138+
/**
139+
* The MIME type for the uploaded file.
140+
*/
141+
readonly mime_type?: string
142+
/**
143+
* The name of the image file that was uploaded.
144+
*/
145+
readonly file_name?: string
146+
/**
147+
* The link to the image.
148+
*/
149+
readonly href?: string
150+
}
151+
readonly manage_stock?: boolean
152+
unit_price?: ItemPriceData
153+
value?: ItemPriceData
154+
readonly links?: {
155+
[key: string]: unknown
156+
}
157+
readonly meta?: {
158+
display_price?: {
159+
with_tax?: FormattedPriceData
160+
without_tax?: FormattedPriceData
161+
tax?: FormattedPriceData
162+
discount?: FormattedPriceData
163+
without_discount?: FormattedPriceData
164+
}
165+
timestamps?: Timestamps
166+
}
138167
}
139168

140169
export type PromotionItemResponseObject = PromotionItemObjectData & {

packages/sdks/shopper/src/client/types.gen.ts

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,36 @@ export type CustomItemResponseObject = CustomItemObjectData & {
19871987
* Specifies the ID of the custom cart item
19881988
*/
19891989
id: string
1990-
description?: unknown
1990+
readonly image?: {
1991+
/**
1992+
* The MIME type for the uploaded file.
1993+
*/
1994+
readonly mime_type?: string
1995+
/**
1996+
* The name of the image file that was uploaded.
1997+
*/
1998+
readonly file_name?: string
1999+
/**
2000+
* The link to the image.
2001+
*/
2002+
readonly href?: string
2003+
}
2004+
readonly manage_stock?: boolean
2005+
unit_price?: ItemPriceData
2006+
value?: ItemPriceData
2007+
readonly links?: {
2008+
[key: string]: unknown
2009+
}
2010+
readonly meta?: {
2011+
display_price?: {
2012+
with_tax?: FormattedPriceData
2013+
without_tax?: FormattedPriceData
2014+
tax?: FormattedPriceData
2015+
discount?: FormattedPriceData
2016+
without_discount?: FormattedPriceData
2017+
}
2018+
timestamps?: CartCheckoutTimestamps
2019+
}
19912020
}
19922021

19932022
export type PromotionItemResponseObject = PromotionItemObjectData & {

packages/sdks/specs/cart_checkout.yaml

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3490,7 +3490,62 @@ components:
34903490
description: Specifies the ID of the custom cart item
34913491
examples:
34923492
- 78d7b5c2-c852-40ad-87bb-beb161f61f37
3493-
description: ''
3493+
image:
3494+
type: object
3495+
readOnly: true
3496+
properties:
3497+
mime_type:
3498+
description: The MIME type for the uploaded file.
3499+
type: string
3500+
readOnly: true
3501+
examples:
3502+
- image/png
3503+
file_name:
3504+
description: The name of the image file that was uploaded.
3505+
type: string
3506+
readOnly: true
3507+
examples:
3508+
- shirt-trans.png
3509+
href:
3510+
description: The link to the image.
3511+
type: string
3512+
readOnly: true
3513+
examples:
3514+
- https://files-eu.epusercontent.com/e8c53cb0-120d-4ea5-8941-ce74dec06038/7cc08cbb-256e-4271-9b01-d03a9fac9f0a.png
3515+
manage_stock:
3516+
description:
3517+
type: boolean
3518+
readOnly: true
3519+
examples:
3520+
- true
3521+
unit_price:
3522+
readOnly: true
3523+
$ref: '#/components/schemas/ItemPriceData'
3524+
value:
3525+
readOnly: true
3526+
$ref: '#/components/schemas/ItemPriceData'
3527+
links:
3528+
type: object
3529+
readOnly: true
3530+
meta:
3531+
type: object
3532+
readOnly: true
3533+
properties:
3534+
display_price:
3535+
type: object
3536+
properties:
3537+
with_tax:
3538+
$ref: '#/components/schemas/FormattedPriceData'
3539+
without_tax:
3540+
$ref: '#/components/schemas/FormattedPriceData'
3541+
tax:
3542+
$ref: '#/components/schemas/FormattedPriceData'
3543+
discount:
3544+
$ref: '#/components/schemas/FormattedPriceData'
3545+
without_discount:
3546+
$ref: '#/components/schemas/FormattedPriceData'
3547+
timestamps:
3548+
$ref: '#/components/schemas/Timestamps'
34943549
PromotionItemResponseObject:
34953550
title: Promotion Item Object
34963551
type: object

packages/sdks/specs/shopper.yaml

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15134,7 +15134,63 @@ components:
1513415134
description: Specifies the ID of the custom cart item
1513515135
examples:
1513615136
- 78d7b5c2-c852-40ad-87bb-beb161f61f37
15137-
description: ''
15137+
image:
15138+
type: object
15139+
readOnly: true
15140+
properties:
15141+
mime_type:
15142+
description: The MIME type for the uploaded file.
15143+
type: string
15144+
readOnly: true
15145+
examples:
15146+
- image/png
15147+
file_name:
15148+
description: The name of the image file that was uploaded.
15149+
type: string
15150+
readOnly: true
15151+
examples:
15152+
- shirt-trans.png
15153+
href:
15154+
description: The link to the image.
15155+
type: string
15156+
readOnly: true
15157+
examples:
15158+
- >-
15159+
https://files-eu.epusercontent.com/e8c53cb0-120d-4ea5-8941-ce74dec06038/7cc08cbb-256e-4271-9b01-d03a9fac9f0a.png
15160+
manage_stock:
15161+
description: null
15162+
type: boolean
15163+
readOnly: true
15164+
examples:
15165+
- true
15166+
unit_price:
15167+
readOnly: true
15168+
$ref: '#/components/schemas/ItemPriceData'
15169+
value:
15170+
readOnly: true
15171+
$ref: '#/components/schemas/ItemPriceData'
15172+
links:
15173+
type: object
15174+
readOnly: true
15175+
meta:
15176+
type: object
15177+
readOnly: true
15178+
properties:
15179+
display_price:
15180+
type: object
15181+
properties:
15182+
with_tax:
15183+
$ref: '#/components/schemas/FormattedPriceData'
15184+
without_tax:
15185+
$ref: '#/components/schemas/FormattedPriceData'
15186+
tax:
15187+
$ref: '#/components/schemas/FormattedPriceData'
15188+
discount:
15189+
$ref: '#/components/schemas/FormattedPriceData'
15190+
without_discount:
15191+
$ref: '#/components/schemas/FormattedPriceData'
15192+
timestamps:
15193+
$ref: '#/components/schemas/CartCheckoutTimestamps'
1513815194
PromotionItemResponseObject:
1513915195
title: Promotion Item Object
1514015196
type: object

0 commit comments

Comments
 (0)