@@ -886,6 +886,14 @@ class CustomLineItemSchema(helpers.BaseSchema):
886886 load_default = None ,
887887 data_key = "taxRate" ,
888888 )
889+ per_method_tax_rate = helpers .LazyNestedField (
890+ nested = helpers .absmod (__name__ , ".MethodTaxRateSchema" ),
891+ allow_none = True ,
892+ many = True ,
893+ unknown = marshmallow .EXCLUDE ,
894+ load_default = None ,
895+ data_key = "perMethodTaxRate" ,
896+ )
889897 discounted_price_per_quantity = helpers .LazyNestedField (
890898 nested = helpers .absmod (__name__ , ".DiscountedLineItemPriceForQuantitySchema" ),
891899 allow_none = True ,
@@ -2728,7 +2736,16 @@ class CartApplyDeltaToLineItemShippingDetailsTargetsActionSchema(
27282736 CartUpdateActionSchema
27292737):
27302738 line_item_id = marshmallow .fields .String (
2731- allow_none = True , load_default = None , data_key = "lineItemId"
2739+ allow_none = True ,
2740+ metadata = {"omit_empty" : True },
2741+ load_default = None ,
2742+ data_key = "lineItemId" ,
2743+ )
2744+ line_item_key = marshmallow .fields .String (
2745+ allow_none = True ,
2746+ metadata = {"omit_empty" : True },
2747+ load_default = None ,
2748+ data_key = "lineItemKey" ,
27322749 )
27332750 targets_delta = helpers .LazyNestedField (
27342751 nested = helpers .absmod (__name__ , ".ItemShippingTargetSchema" ),
@@ -2802,7 +2819,16 @@ def post_load(self, data, **kwargs):
28022819
28032820class CartChangeLineItemQuantityActionSchema (CartUpdateActionSchema ):
28042821 line_item_id = marshmallow .fields .String (
2805- allow_none = True , load_default = None , data_key = "lineItemId"
2822+ allow_none = True ,
2823+ metadata = {"omit_empty" : True },
2824+ load_default = None ,
2825+ data_key = "lineItemId" ,
2826+ )
2827+ line_item_key = marshmallow .fields .String (
2828+ allow_none = True ,
2829+ metadata = {"omit_empty" : True },
2830+ load_default = None ,
2831+ data_key = "lineItemKey" ,
28062832 )
28072833 quantity = marshmallow .fields .Integer (allow_none = True , load_default = None )
28082834 external_price = helpers .LazyNestedField (
@@ -2956,7 +2982,16 @@ def post_load(self, data, **kwargs):
29562982
29572983class CartRemoveLineItemActionSchema (CartUpdateActionSchema ):
29582984 line_item_id = marshmallow .fields .String (
2959- allow_none = True , load_default = None , data_key = "lineItemId"
2985+ allow_none = True ,
2986+ metadata = {"omit_empty" : True },
2987+ load_default = None ,
2988+ data_key = "lineItemId" ,
2989+ )
2990+ line_item_key = marshmallow .fields .String (
2991+ allow_none = True ,
2992+ metadata = {"omit_empty" : True },
2993+ load_default = None ,
2994+ data_key = "lineItemKey" ,
29602995 )
29612996 quantity = marshmallow .fields .Integer (
29622997 allow_none = True , metadata = {"omit_empty" : True }, load_default = None
@@ -3543,7 +3578,16 @@ def post_load(self, data, **kwargs):
35433578
35443579class CartSetLineItemCustomFieldActionSchema (CartUpdateActionSchema ):
35453580 line_item_id = marshmallow .fields .String (
3546- allow_none = True , load_default = None , data_key = "lineItemId"
3581+ allow_none = True ,
3582+ metadata = {"omit_empty" : True },
3583+ load_default = None ,
3584+ data_key = "lineItemId" ,
3585+ )
3586+ line_item_key = marshmallow .fields .String (
3587+ allow_none = True ,
3588+ metadata = {"omit_empty" : True },
3589+ load_default = None ,
3590+ data_key = "lineItemKey" ,
35473591 )
35483592 name = marshmallow .fields .String (allow_none = True , load_default = None )
35493593 value = marshmallow .fields .Raw (
@@ -3561,7 +3605,16 @@ def post_load(self, data, **kwargs):
35613605
35623606class CartSetLineItemCustomTypeActionSchema (CartUpdateActionSchema ):
35633607 line_item_id = marshmallow .fields .String (
3564- allow_none = True , load_default = None , data_key = "lineItemId"
3608+ allow_none = True ,
3609+ metadata = {"omit_empty" : True },
3610+ load_default = None ,
3611+ data_key = "lineItemId" ,
3612+ )
3613+ line_item_key = marshmallow .fields .String (
3614+ allow_none = True ,
3615+ metadata = {"omit_empty" : True },
3616+ load_default = None ,
3617+ data_key = "lineItemKey" ,
35653618 )
35663619 type = helpers .LazyNestedField (
35673620 nested = helpers .absmod (__name__ , ".type.TypeResourceIdentifierSchema" ),
@@ -3588,7 +3641,16 @@ def post_load(self, data, **kwargs):
35883641
35893642class CartSetLineItemDistributionChannelActionSchema (CartUpdateActionSchema ):
35903643 line_item_id = marshmallow .fields .String (
3591- allow_none = True , load_default = None , data_key = "lineItemId"
3644+ allow_none = True ,
3645+ metadata = {"omit_empty" : True },
3646+ load_default = None ,
3647+ data_key = "lineItemId" ,
3648+ )
3649+ line_item_key = marshmallow .fields .String (
3650+ allow_none = True ,
3651+ metadata = {"omit_empty" : True },
3652+ load_default = None ,
3653+ data_key = "lineItemKey" ,
35923654 )
35933655 distribution_channel = helpers .LazyNestedField (
35943656 nested = helpers .absmod (__name__ , ".channel.ChannelResourceIdentifierSchema" ),
@@ -3610,7 +3672,16 @@ def post_load(self, data, **kwargs):
36103672
36113673class CartSetLineItemInventoryModeActionSchema (CartUpdateActionSchema ):
36123674 line_item_id = marshmallow .fields .String (
3613- allow_none = True , load_default = None , data_key = "lineItemId"
3675+ allow_none = True ,
3676+ metadata = {"omit_empty" : True },
3677+ load_default = None ,
3678+ data_key = "lineItemId" ,
3679+ )
3680+ line_item_key = marshmallow .fields .String (
3681+ allow_none = True ,
3682+ metadata = {"omit_empty" : True },
3683+ load_default = None ,
3684+ data_key = "lineItemKey" ,
36143685 )
36153686 inventory_mode = marshmallow_enum .EnumField (
36163687 InventoryMode ,
@@ -3632,7 +3703,16 @@ def post_load(self, data, **kwargs):
36323703
36333704class CartSetLineItemPriceActionSchema (CartUpdateActionSchema ):
36343705 line_item_id = marshmallow .fields .String (
3635- allow_none = True , load_default = None , data_key = "lineItemId"
3706+ allow_none = True ,
3707+ metadata = {"omit_empty" : True },
3708+ load_default = None ,
3709+ data_key = "lineItemId" ,
3710+ )
3711+ line_item_key = marshmallow .fields .String (
3712+ allow_none = True ,
3713+ metadata = {"omit_empty" : True },
3714+ load_default = None ,
3715+ data_key = "lineItemKey" ,
36363716 )
36373717 external_price = helpers .LazyNestedField (
36383718 nested = helpers .absmod (__name__ , ".common.MoneySchema" ),
@@ -3654,7 +3734,16 @@ def post_load(self, data, **kwargs):
36543734
36553735class CartSetLineItemShippingDetailsActionSchema (CartUpdateActionSchema ):
36563736 line_item_id = marshmallow .fields .String (
3657- allow_none = True , load_default = None , data_key = "lineItemId"
3737+ allow_none = True ,
3738+ metadata = {"omit_empty" : True },
3739+ load_default = None ,
3740+ data_key = "lineItemId" ,
3741+ )
3742+ line_item_key = marshmallow .fields .String (
3743+ allow_none = True ,
3744+ metadata = {"omit_empty" : True },
3745+ load_default = None ,
3746+ data_key = "lineItemKey" ,
36583747 )
36593748 shipping_details = helpers .LazyNestedField (
36603749 nested = helpers .absmod (__name__ , ".ItemShippingDetailsDraftSchema" ),
@@ -3676,7 +3765,16 @@ def post_load(self, data, **kwargs):
36763765
36773766class CartSetLineItemSupplyChannelActionSchema (CartUpdateActionSchema ):
36783767 line_item_id = marshmallow .fields .String (
3679- allow_none = True , load_default = None , data_key = "lineItemId"
3768+ allow_none = True ,
3769+ metadata = {"omit_empty" : True },
3770+ load_default = None ,
3771+ data_key = "lineItemId" ,
3772+ )
3773+ line_item_key = marshmallow .fields .String (
3774+ allow_none = True ,
3775+ metadata = {"omit_empty" : True },
3776+ load_default = None ,
3777+ data_key = "lineItemKey" ,
36803778 )
36813779 supply_channel = helpers .LazyNestedField (
36823780 nested = helpers .absmod (__name__ , ".channel.ChannelResourceIdentifierSchema" ),
@@ -3698,7 +3796,16 @@ def post_load(self, data, **kwargs):
36983796
36993797class CartSetLineItemTaxAmountActionSchema (CartUpdateActionSchema ):
37003798 line_item_id = marshmallow .fields .String (
3701- allow_none = True , load_default = None , data_key = "lineItemId"
3799+ allow_none = True ,
3800+ metadata = {"omit_empty" : True },
3801+ load_default = None ,
3802+ data_key = "lineItemId" ,
3803+ )
3804+ line_item_key = marshmallow .fields .String (
3805+ allow_none = True ,
3806+ metadata = {"omit_empty" : True },
3807+ load_default = None ,
3808+ data_key = "lineItemKey" ,
37023809 )
37033810 external_tax_amount = helpers .LazyNestedField (
37043811 nested = helpers .absmod (__name__ , ".ExternalTaxAmountDraftSchema" ),
@@ -3726,7 +3833,16 @@ def post_load(self, data, **kwargs):
37263833
37273834class CartSetLineItemTaxRateActionSchema (CartUpdateActionSchema ):
37283835 line_item_id = marshmallow .fields .String (
3729- allow_none = True , load_default = None , data_key = "lineItemId"
3836+ allow_none = True ,
3837+ metadata = {"omit_empty" : True },
3838+ load_default = None ,
3839+ data_key = "lineItemId" ,
3840+ )
3841+ line_item_key = marshmallow .fields .String (
3842+ allow_none = True ,
3843+ metadata = {"omit_empty" : True },
3844+ load_default = None ,
3845+ data_key = "lineItemKey" ,
37303846 )
37313847 external_tax_rate = helpers .LazyNestedField (
37323848 nested = helpers .absmod (__name__ , ".ExternalTaxRateDraftSchema" ),
@@ -3754,7 +3870,16 @@ def post_load(self, data, **kwargs):
37543870
37553871class CartSetLineItemTotalPriceActionSchema (CartUpdateActionSchema ):
37563872 line_item_id = marshmallow .fields .String (
3757- allow_none = True , load_default = None , data_key = "lineItemId"
3873+ allow_none = True ,
3874+ metadata = {"omit_empty" : True },
3875+ load_default = None ,
3876+ data_key = "lineItemId" ,
3877+ )
3878+ line_item_key = marshmallow .fields .String (
3879+ allow_none = True ,
3880+ metadata = {"omit_empty" : True },
3881+ load_default = None ,
3882+ data_key = "lineItemKey" ,
37583883 )
37593884 external_total_price = helpers .LazyNestedField (
37603885 nested = helpers .absmod (__name__ , ".ExternalLineItemTotalPriceSchema" ),
0 commit comments