7272class ItemState (_BaseType ):
7373 """The item's state."""
7474
75- quantity : float
75+ quantity : int
7676 #: Maps to `ItemState.state`.
7777 state : "StateKeyReference"
7878
79- def __init__ (self , * , quantity : float , state : "StateKeyReference" ):
79+ def __init__ (self , * , quantity : int , state : "StateKeyReference" ):
8080 self .quantity = quantity
8181 self .state = state
8282 super ().__init__ ()
@@ -99,9 +99,9 @@ class ItemShippingTarget(_BaseType):
9999 #: Maps to `ItemShippingTarget.addressKey`.
100100 address_key : str
101101 #: Maps to `ItemShippingTarget.quantity`.
102- quantity : float
102+ quantity : int
103103
104- def __init__ (self , * , address_key : str , quantity : float ):
104+ def __init__ (self , * , address_key : str , quantity : int ):
105105 self .address_key = address_key
106106 self .quantity = quantity
107107 super ().__init__ ()
@@ -255,7 +255,7 @@ class LineItemImportDraft(_BaseType):
255255 #: Maps to `LineItem.price`.
256256 price : "LineItemPrice"
257257 #: Maps to `LineItem.quantity`.
258- quantity : float
258+ quantity : int
259259 state : typing .Optional [typing .List ["ItemState" ]]
260260 #: References a supply channel. Maps to `LineItem.supplyChannel`.
261261 #:
@@ -281,7 +281,7 @@ def __init__(
281281 name : "LocalizedString" ,
282282 variant : "LineItemProductVariantImportDraft" ,
283283 price : "LineItemPrice" ,
284- quantity : float ,
284+ quantity : int ,
285285 state : typing .Optional [typing .List ["ItemState" ]] = None ,
286286 supply_channel : typing .Optional ["ChannelKeyReference" ] = None ,
287287 distribution_channel : typing .Optional ["ChannelKeyReference" ] = None ,
@@ -470,9 +470,9 @@ def serialize(self) -> typing.Dict[str, typing.Any]:
470470
471471class DeliveryItem (_BaseType ):
472472 id : str
473- quantity : float
473+ quantity : int
474474
475- def __init__ (self , * , id : str , quantity : float ):
475+ def __init__ (self , * , id : str , quantity : int ):
476476 self .id = id
477477 self .quantity = quantity
478478 super ().__init__ ()
@@ -748,7 +748,7 @@ class CustomLineItemDraft(_BaseType):
748748 taxed_price : typing .Optional ["CustomLineItemTaxedPrice" ]
749749 total_price : "TypedMoney"
750750 slug : str
751- quantity : float
751+ quantity : int
752752 state : typing .Optional [typing .List ["ItemState" ]]
753753 #: References a tax category by its key.
754754 tax_category : typing .Optional ["TaxCategoryKeyReference" ]
@@ -767,7 +767,7 @@ def __init__(
767767 taxed_price : typing .Optional ["CustomLineItemTaxedPrice" ] = None ,
768768 total_price : "TypedMoney" ,
769769 slug : str ,
770- quantity : float ,
770+ quantity : int ,
771771 state : typing .Optional [typing .List ["ItemState" ]] = None ,
772772 tax_category : typing .Optional ["TaxCategoryKeyReference" ] = None ,
773773 tax_rate : typing .Optional ["TaxRate" ] = None ,
0 commit comments