1010
1111# The content of this file was automatically generated
1212
13- class Discount :
13+ class Discount ( object ) :
1414 def __init__ (self , client , prefill = None ):
1515 self ._client = client
1616
@@ -50,12 +50,12 @@ def project(self, val):
5050 """Set project
5151 Keyword argument:
5252 val -- New project value"""
53- if isinstance (val , Project ):
54- self ._project = val
55- else :
53+ if isinstance (val , dict ):
5654 obj = processout .Project (self ._client )
5755 obj .fillWithData (val )
5856 self ._project = obj
57+ else :
58+ self ._project = val
5959 return self
6060
6161 @property
@@ -68,12 +68,12 @@ def subscription(self, val):
6868 """Set subscription
6969 Keyword argument:
7070 val -- New subscription value"""
71- if isinstance (val , Subscription ):
72- self ._subscription = val
73- else :
71+ if isinstance (val , dict ):
7472 obj = processout .Subscription (self ._client )
7573 obj .fillWithData (val )
7674 self ._subscription = obj
75+ else :
76+ self ._subscription = val
7777 return self
7878
7979 @property
@@ -86,12 +86,12 @@ def coupon(self, val):
8686 """Set coupon
8787 Keyword argument:
8888 val -- New coupon value"""
89- if isinstance (val , Coupon ):
90- self ._coupon = val
91- else :
89+ if isinstance (val , dict ):
9290 obj = processout .Coupon (self ._client )
9391 obj .fillWithData (val )
9492 self ._coupon = obj
93+ else :
94+ self ._coupon = val
9595 return self
9696
9797 @property
0 commit comments