@@ -565,6 +565,12 @@ class CartUpdateSchema(helpers.BaseSchema):
565565 "setBillingAddress" : helpers .absmod (
566566 __name__ , ".CartSetBillingAddressActionSchema"
567567 ),
568+ "setBillingAddressCustomField" : helpers .absmod (
569+ __name__ , ".CartSetBillingAddressCustomFieldActionSchema"
570+ ),
571+ "setBillingAddressCustomType" : helpers .absmod (
572+ __name__ , ".CartSetBillingAddressCustomTypeActionSchema"
573+ ),
568574 "setCartTotalTax" : helpers .absmod (
569575 __name__ , ".CartSetCartTotalTaxActionSchema"
570576 ),
@@ -605,6 +611,18 @@ class CartUpdateSchema(helpers.BaseSchema):
605611 "setDeleteDaysAfterLastModification" : helpers .absmod (
606612 __name__ , ".CartSetDeleteDaysAfterLastModificationActionSchema"
607613 ),
614+ "setDeliveryAddressCustomField" : helpers .absmod (
615+ __name__ , ".CartSetDeliveryAddressCustomFieldActionSchema"
616+ ),
617+ "setDeliveryAddressCustomType" : helpers .absmod (
618+ __name__ , ".CartSetDeliveryAddressCustomTypeActionSchema"
619+ ),
620+ "setItemShippingAddressCustomField" : helpers .absmod (
621+ __name__ , ".CartSetItemShippingAddressCustomFieldActionSchema"
622+ ),
623+ "setItemShippingAddressCustomType" : helpers .absmod (
624+ __name__ , ".CartSetItemShippingAddressCustomTypeActionSchema"
625+ ),
608626 "setKey" : helpers .absmod (__name__ , ".CartSetKeyActionSchema" ),
609627 "setLineItemCustomField" : helpers .absmod (
610628 __name__ , ".CartSetLineItemCustomFieldActionSchema"
@@ -634,6 +652,12 @@ class CartUpdateSchema(helpers.BaseSchema):
634652 "setShippingAddress" : helpers .absmod (
635653 __name__ , ".CartSetShippingAddressActionSchema"
636654 ),
655+ "setShippingAddressCustomField" : helpers .absmod (
656+ __name__ , ".CartSetShippingAddressCustomFieldActionSchema"
657+ ),
658+ "setShippingAddressCustomType" : helpers .absmod (
659+ __name__ , ".CartSetShippingAddressCustomTypeActionSchema"
660+ ),
637661 "setShippingMethod" : helpers .absmod (
638662 __name__ , ".CartSetShippingMethodActionSchema"
639663 ),
@@ -2231,6 +2255,45 @@ def post_load(self, data, **kwargs):
22312255 return models .CartSetBillingAddressAction (** data )
22322256
22332257
2258+ class CartSetBillingAddressCustomFieldActionSchema (CartUpdateActionSchema ):
2259+ name = marshmallow .fields .String (allow_none = True , missing = None )
2260+ value = marshmallow .fields .Raw (
2261+ allow_none = True , metadata = {"omit_empty" : True }, missing = None
2262+ )
2263+
2264+ class Meta :
2265+ unknown = marshmallow .EXCLUDE
2266+
2267+ @marshmallow .post_load
2268+ def post_load (self , data , ** kwargs ):
2269+ del data ["action" ]
2270+ return models .CartSetBillingAddressCustomFieldAction (** data )
2271+
2272+
2273+ class CartSetBillingAddressCustomTypeActionSchema (CartUpdateActionSchema ):
2274+ type = helpers .LazyNestedField (
2275+ nested = helpers .absmod (__name__ , ".type.TypeResourceIdentifierSchema" ),
2276+ allow_none = True ,
2277+ unknown = marshmallow .EXCLUDE ,
2278+ metadata = {"omit_empty" : True },
2279+ missing = None ,
2280+ )
2281+ fields = FieldContainerField (
2282+ allow_none = True ,
2283+ values = marshmallow .fields .Raw (allow_none = True ),
2284+ metadata = {"omit_empty" : True },
2285+ missing = None ,
2286+ )
2287+
2288+ class Meta :
2289+ unknown = marshmallow .EXCLUDE
2290+
2291+ @marshmallow .post_load
2292+ def post_load (self , data , ** kwargs ):
2293+ del data ["action" ]
2294+ return models .CartSetBillingAddressCustomTypeAction (** data )
2295+
2296+
22342297class CartSetCartTotalTaxActionSchema (CartUpdateActionSchema ):
22352298 external_total_gross = helpers .LazyNestedField (
22362299 nested = helpers .absmod (__name__ , ".common.MoneySchema" ),
@@ -2528,6 +2591,96 @@ def post_load(self, data, **kwargs):
25282591 return models .CartSetDeleteDaysAfterLastModificationAction (** data )
25292592
25302593
2594+ class CartSetDeliveryAddressCustomFieldActionSchema (CartUpdateActionSchema ):
2595+ delivery_id = marshmallow .fields .String (
2596+ allow_none = True , missing = None , data_key = "deliveryId"
2597+ )
2598+ type = helpers .LazyNestedField (
2599+ nested = helpers .absmod (__name__ , ".type.TypeResourceIdentifierSchema" ),
2600+ allow_none = True ,
2601+ unknown = marshmallow .EXCLUDE ,
2602+ metadata = {"omit_empty" : True },
2603+ missing = None ,
2604+ )
2605+ fields = FieldContainerField (
2606+ allow_none = True ,
2607+ values = marshmallow .fields .Raw (allow_none = True ),
2608+ metadata = {"omit_empty" : True },
2609+ missing = None ,
2610+ )
2611+
2612+ class Meta :
2613+ unknown = marshmallow .EXCLUDE
2614+
2615+ @marshmallow .post_load
2616+ def post_load (self , data , ** kwargs ):
2617+ del data ["action" ]
2618+ return models .CartSetDeliveryAddressCustomFieldAction (** data )
2619+
2620+
2621+ class CartSetDeliveryAddressCustomTypeActionSchema (CartUpdateActionSchema ):
2622+ delivery_id = marshmallow .fields .String (
2623+ allow_none = True , missing = None , data_key = "deliveryId"
2624+ )
2625+ name = marshmallow .fields .String (allow_none = True , missing = None )
2626+ value = marshmallow .fields .Raw (
2627+ allow_none = True , metadata = {"omit_empty" : True }, missing = None
2628+ )
2629+
2630+ class Meta :
2631+ unknown = marshmallow .EXCLUDE
2632+
2633+ @marshmallow .post_load
2634+ def post_load (self , data , ** kwargs ):
2635+ del data ["action" ]
2636+ return models .CartSetDeliveryAddressCustomTypeAction (** data )
2637+
2638+
2639+ class CartSetItemShippingAddressCustomFieldActionSchema (CartUpdateActionSchema ):
2640+ address_key = marshmallow .fields .String (
2641+ allow_none = True , missing = None , data_key = "addressKey"
2642+ )
2643+ name = marshmallow .fields .String (allow_none = True , missing = None )
2644+ value = marshmallow .fields .Raw (
2645+ allow_none = True , metadata = {"omit_empty" : True }, missing = None
2646+ )
2647+
2648+ class Meta :
2649+ unknown = marshmallow .EXCLUDE
2650+
2651+ @marshmallow .post_load
2652+ def post_load (self , data , ** kwargs ):
2653+ del data ["action" ]
2654+ return models .CartSetItemShippingAddressCustomFieldAction (** data )
2655+
2656+
2657+ class CartSetItemShippingAddressCustomTypeActionSchema (CartUpdateActionSchema ):
2658+ address_key = marshmallow .fields .String (
2659+ allow_none = True , missing = None , data_key = "addressKey"
2660+ )
2661+ type = helpers .LazyNestedField (
2662+ nested = helpers .absmod (__name__ , ".type.TypeResourceIdentifierSchema" ),
2663+ allow_none = True ,
2664+ unknown = marshmallow .EXCLUDE ,
2665+ metadata = {"omit_empty" : True },
2666+ missing = None ,
2667+ )
2668+ fields = FieldContainerField (
2669+ allow_none = True ,
2670+ values = marshmallow .fields .Raw (allow_none = True ),
2671+ metadata = {"omit_empty" : True },
2672+ missing = None ,
2673+ )
2674+
2675+ class Meta :
2676+ unknown = marshmallow .EXCLUDE
2677+
2678+ @marshmallow .post_load
2679+ def post_load (self , data , ** kwargs ):
2680+ del data ["action" ]
2681+ return models .CartSetItemShippingAddressCustomTypeAction (** data )
2682+
2683+
25312684class CartSetKeyActionSchema (CartUpdateActionSchema ):
25322685 key = marshmallow .fields .String (
25332686 allow_none = True , metadata = {"omit_empty" : True }, missing = None
@@ -2751,6 +2904,45 @@ def post_load(self, data, **kwargs):
27512904 return models .CartSetShippingAddressAction (** data )
27522905
27532906
2907+ class CartSetShippingAddressCustomFieldActionSchema (CartUpdateActionSchema ):
2908+ name = marshmallow .fields .String (allow_none = True , missing = None )
2909+ value = marshmallow .fields .Raw (
2910+ allow_none = True , metadata = {"omit_empty" : True }, missing = None
2911+ )
2912+
2913+ class Meta :
2914+ unknown = marshmallow .EXCLUDE
2915+
2916+ @marshmallow .post_load
2917+ def post_load (self , data , ** kwargs ):
2918+ del data ["action" ]
2919+ return models .CartSetShippingAddressCustomFieldAction (** data )
2920+
2921+
2922+ class CartSetShippingAddressCustomTypeActionSchema (CartUpdateActionSchema ):
2923+ type = helpers .LazyNestedField (
2924+ nested = helpers .absmod (__name__ , ".type.TypeResourceIdentifierSchema" ),
2925+ allow_none = True ,
2926+ unknown = marshmallow .EXCLUDE ,
2927+ metadata = {"omit_empty" : True },
2928+ missing = None ,
2929+ )
2930+ fields = FieldContainerField (
2931+ allow_none = True ,
2932+ values = marshmallow .fields .Raw (allow_none = True ),
2933+ metadata = {"omit_empty" : True },
2934+ missing = None ,
2935+ )
2936+
2937+ class Meta :
2938+ unknown = marshmallow .EXCLUDE
2939+
2940+ @marshmallow .post_load
2941+ def post_load (self , data , ** kwargs ):
2942+ del data ["action" ]
2943+ return models .CartSetShippingAddressCustomTypeAction (** data )
2944+
2945+
27542946class CartSetShippingMethodActionSchema (CartUpdateActionSchema ):
27552947 shipping_method = helpers .LazyNestedField (
27562948 nested = helpers .absmod (
0 commit comments