@@ -10123,6 +10123,12 @@ class RevenueWithdrawalStatePending(RevenueWithdrawalState):
10123
10123
def __init__ (self , type , ** kwargs ):
10124
10124
self .type : str = type
10125
10125
10126
+ @classmethod
10127
+ def de_json (cls , json_string ):
10128
+ if json_string is None : return None
10129
+ obj = cls .check_json (json_string )
10130
+ return cls (** obj )
10131
+
10126
10132
10127
10133
class RevenueWithdrawalStateSucceeded (RevenueWithdrawalState ):
10128
10134
"""
@@ -10148,6 +10154,13 @@ def __init__(self, type, date, url, **kwargs):
10148
10154
self .date : int = date
10149
10155
self .url : str = url
10150
10156
10157
+ @classmethod
10158
+ def de_json (cls , json_string ):
10159
+ if json_string is None : return None
10160
+ obj = cls .check_json (json_string )
10161
+ return cls (** obj )
10162
+
10163
+
10151
10164
10152
10165
class RevenueWithdrawalStateFailed (RevenueWithdrawalState ):
10153
10166
"""
@@ -10165,6 +10178,12 @@ class RevenueWithdrawalStateFailed(RevenueWithdrawalState):
10165
10178
def __init__ (self , type , ** kwargs ):
10166
10179
self .type : str = type
10167
10180
10181
+ @classmethod
10182
+ def de_json (cls , json_string ):
10183
+ if json_string is None : return None
10184
+ obj = cls .check_json (json_string )
10185
+ return cls (** obj )
10186
+
10168
10187
10169
10188
class TransactionPartner (JsonDeserializable ):
10170
10189
"""
@@ -10214,6 +10233,15 @@ def __init__(self, type, withdrawal_state=None, **kwargs):
10214
10233
self .type : str = type
10215
10234
self .withdrawal_state : Optional [RevenueWithdrawalState ] = withdrawal_state
10216
10235
10236
+ @classmethod
10237
+ def de_json (cls , json_string ):
10238
+ if json_string is None : return None
10239
+ obj = cls .check_json (json_string )
10240
+ if 'withdrawal_state' in obj :
10241
+ obj ['withdrawal_state' ] = RevenueWithdrawalState .de_json (obj ['withdrawal_state' ])
10242
+ return cls (** obj )
10243
+
10244
+
10217
10245
10218
10246
class TransactionPartnerUser (TransactionPartner ):
10219
10247
"""
@@ -10234,6 +10262,14 @@ class TransactionPartnerUser(TransactionPartner):
10234
10262
def __init__ (self , type , user , ** kwargs ):
10235
10263
self .type : str = type
10236
10264
self .user : User = user
10265
+
10266
+ @classmethod
10267
+ def de_json (cls , json_string ):
10268
+ if json_string is None : return None
10269
+ obj = cls .check_json (json_string )
10270
+ obj ['user' ] = User .de_json (obj ['user' ])
10271
+ return cls (** obj )
10272
+
10237
10273
10238
10274
class TransactionPartnerOther (TransactionPartner ):
10239
10275
"""
@@ -10251,6 +10287,13 @@ class TransactionPartnerOther(TransactionPartner):
10251
10287
def __init__ (self , type , ** kwargs ):
10252
10288
self .type : str = type
10253
10289
10290
+ @classmethod
10291
+ def de_json (cls , json_string ):
10292
+ if json_string is None : return None
10293
+ obj = cls .check_json (json_string )
10294
+ return cls (** obj )
10295
+
10296
+
10254
10297
10255
10298
class StarTransaction (JsonDeserializable ):
10256
10299
"""
0 commit comments