@@ -1016,9 +1016,9 @@ def debit(self, amount=None, appears_on_statement_as=None,
1016
1016
raise ResourceError ('Must have amount or hold_uri' )
1017
1017
1018
1018
meta = meta or {}
1019
- parent = getattr (self , 'account' , None ) or self .customer
1019
+ participant = getattr (self , 'account' , None ) or self .customer
1020
1020
return Debit (
1021
- uri = parent .debits_uri ,
1021
+ uri = participant .debits_uri ,
1022
1022
amount = amount ,
1023
1023
appears_on_statement_as = appears_on_statement_as ,
1024
1024
hold_uri = hold_uri ,
@@ -1035,9 +1035,9 @@ def hold(self, amount, meta=None, description=None):
1035
1035
:rtype: Hold
1036
1036
"""
1037
1037
meta = meta or {}
1038
- parent = getattr (self , 'account' , None ) or self .customer
1038
+ participant = getattr (self , 'account' , None ) or self .customer
1039
1039
return Hold (
1040
- uri = parent .holds_uri ,
1040
+ uri = participant .holds_uri ,
1041
1041
amount = amount ,
1042
1042
meta = meta ,
1043
1043
description = description ,
@@ -1069,9 +1069,9 @@ def debit(self, amount, appears_on_statement_as=None,
1069
1069
if not amount or amount <= 0 :
1070
1070
raise ResourceError ('Must have an amount' )
1071
1071
meta = meta or {}
1072
- parent = getattr (self , 'account' , None ) or self .customer
1072
+ participant = getattr (self , 'account' , None ) or self .customer
1073
1073
return Debit (
1074
- uri = parent .debits_uri ,
1074
+ uri = participant .debits_uri ,
1075
1075
amount = amount ,
1076
1076
appears_on_statement_as = appears_on_statement_as ,
1077
1077
meta = meta ,
0 commit comments