@@ -705,14 +705,14 @@ def deserialize(cls, data: typing.Dict[str, typing.Any]) -> "CustomerUpdateActio
705705 from ._schemas .customer import CustomerRemoveStoreActionSchema
706706
707707 return CustomerRemoveStoreActionSchema ().load (data )
708- if data ["action" ] == "setAddressCustomType" :
709- from ._schemas .customer import CustomerSetAddressCustomTypeActionSchema
710-
711- return CustomerSetAddressCustomTypeActionSchema ().load (data )
712708 if data ["action" ] == "setAddressCustomField" :
713709 from ._schemas .customer import CustomerSetAddressCustomFieldActionSchema
714710
715711 return CustomerSetAddressCustomFieldActionSchema ().load (data )
712+ if data ["action" ] == "setAddressCustomType" :
713+ from ._schemas .customer import CustomerSetAddressCustomTypeActionSchema
714+
715+ return CustomerSetAddressCustomTypeActionSchema ().load (data )
716716 if data ["action" ] == "setCompanyName" :
717717 from ._schemas .customer import CustomerSetCompanyNameActionSchema
718718
@@ -1047,6 +1047,33 @@ def serialize(self) -> typing.Dict[str, typing.Any]:
10471047 return CustomerRemoveStoreActionSchema ().dump (self )
10481048
10491049
1050+ class CustomerSetAddressCustomFieldAction (CustomerUpdateAction ):
1051+ address_id : str
1052+ name : str
1053+ value : typing .Optional [typing .Any ]
1054+
1055+ def __init__ (
1056+ self , * , address_id : str , name : str , value : typing .Optional [typing .Any ] = None
1057+ ):
1058+ self .address_id = address_id
1059+ self .name = name
1060+ self .value = value
1061+ super ().__init__ (action = "setAddressCustomField" )
1062+
1063+ @classmethod
1064+ def deserialize (
1065+ cls , data : typing .Dict [str , typing .Any ]
1066+ ) -> "CustomerSetAddressCustomFieldAction" :
1067+ from ._schemas .customer import CustomerSetAddressCustomFieldActionSchema
1068+
1069+ return CustomerSetAddressCustomFieldActionSchema ().load (data )
1070+
1071+ def serialize (self ) -> typing .Dict [str , typing .Any ]:
1072+ from ._schemas .customer import CustomerSetAddressCustomFieldActionSchema
1073+
1074+ return CustomerSetAddressCustomFieldActionSchema ().dump (self )
1075+
1076+
10501077class CustomerSetAddressCustomTypeAction (CustomerUpdateAction ):
10511078 type : typing .Optional ["TypeResourceIdentifier" ]
10521079 fields : typing .Optional ["FieldContainer" ]
@@ -1078,33 +1105,6 @@ def serialize(self) -> typing.Dict[str, typing.Any]:
10781105 return CustomerSetAddressCustomTypeActionSchema ().dump (self )
10791106
10801107
1081- class CustomerSetAddressCustomFieldAction (CustomerUpdateAction ):
1082- address_id : str
1083- name : str
1084- value : typing .Optional [typing .Any ]
1085-
1086- def __init__ (
1087- self , * , address_id : str , name : str , value : typing .Optional [typing .Any ] = None
1088- ):
1089- self .address_id = address_id
1090- self .name = name
1091- self .value = value
1092- super ().__init__ (action = "setAddressCustomField" )
1093-
1094- @classmethod
1095- def deserialize (
1096- cls , data : typing .Dict [str , typing .Any ]
1097- ) -> "CustomerSetAddressCustomFieldAction" :
1098- from ._schemas .customer import CustomerSetAddressCustomFieldActionSchema
1099-
1100- return CustomerSetAddressCustomFieldActionSchema ().load (data )
1101-
1102- def serialize (self ) -> typing .Dict [str , typing .Any ]:
1103- from ._schemas .customer import CustomerSetAddressCustomFieldActionSchema
1104-
1105- return CustomerSetAddressCustomFieldActionSchema ().dump (self )
1106-
1107-
11081108class CustomerSetCompanyNameAction (CustomerUpdateAction ):
11091109 #: If not defined, the company name is unset.
11101110 company_name : typing .Optional [str ]
0 commit comments