@@ -17,6 +17,8 @@ def __init__(self, client, prefill=None):
1717 self ._client = client
1818
1919 self ._vouchers = None
20+ self ._available_balance = None
21+ self ._customer_action = None
2022 if prefill is not None :
2123 self .fill_with_data (prefill )
2224
@@ -45,18 +47,68 @@ def vouchers(self, val):
4547 self ._vouchers = l
4648 return self
4749
50+ @property
51+ def available_balance (self ):
52+ """Get available_balance"""
53+ return self ._available_balance
54+
55+ @available_balance .setter
56+ def available_balance (self , val ):
57+ """Set available_balance
58+ Keyword argument:
59+ val -- New available_balance value"""
60+ if val is None :
61+ self ._available_balance = val
62+ return self
63+
64+ if isinstance (val , dict ):
65+ obj = processout .Balance (self ._client )
66+ obj .fill_with_data (val )
67+ self ._available_balance = obj
68+ else :
69+ self ._available_balance = val
70+ return self
71+
72+ @property
73+ def customer_action (self ):
74+ """Get customer_action"""
75+ return self ._customer_action
76+
77+ @customer_action .setter
78+ def customer_action (self , val ):
79+ """Set customer_action
80+ Keyword argument:
81+ val -- New customer_action value"""
82+ if val is None :
83+ self ._customer_action = val
84+ return self
85+
86+ if isinstance (val , dict ):
87+ obj = processout .BalancesCustomerAction (self ._client )
88+ obj .fill_with_data (val )
89+ self ._customer_action = obj
90+ else :
91+ self ._customer_action = val
92+ return self
93+
4894 def fill_with_data (self , data ):
4995 """Fill the current object with the new values pulled from data
5096 Keyword argument:
5197 data -- The data from which to pull the new values"""
5298 if "vouchers" in data .keys ():
5399 self .vouchers = data ["vouchers" ]
100+ if "available_balance" in data .keys ():
101+ self .available_balance = data ["available_balance" ]
102+ if "customer_action" in data .keys ():
103+ self .customer_action = data ["customer_action" ]
54104
55105 return self
56106
57107 def to_json (self ):
58108 return {
59109 "vouchers" : self .vouchers ,
110+ "available_balance" : self .available_balance ,
111+ "customer_action" : self .customer_action ,
60112 }
61113
62114 def find (self , token_id , options = {}):
0 commit comments