8000 better naming · balanced/balanced-python@b974845 · GitHub
[go: up one dir, main page]

Skip to content

Commit b974845

Browse files
author
Marshall Jones
committed
better naming
1 parent ab2eb15 commit b974845

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

balanced/resources.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,9 @@ def debit(self, amount=None, appears_on_statement_as=None,
10161016
raise ResourceError('Must have amount or hold_uri')
10171017

10181018
meta = meta or {}
1019-
parent = getattr(self, 'account', None) or self.customer
1019+
participant = getattr(self, 'account', None) or self.customer
10201020
return Debit(
1021-
uri=parent.debits_uri,
1021+
uri=participant.debits_uri,
10221022
amount=amount,
10231023
appears_on_statement_as=appears_on_statement_as,
10241024
hold_uri=hold_uri,
@@ -1035,9 +1035,9 @@ def hold(self, amount, meta=None, description=None):
10351035
:rtype: Hold
10361036
"""
10371037
meta = meta or {}
1038-
parent = getattr(self, 'account', None) or self.customer
1038+
participant = getattr(self, 'account', None) or self.customer
10391039
return Hold(
1040-
uri=parent.holds_uri,
1040+
uri=participant.holds_uri,
10411041
amount=amount,
10421042
meta=meta,
10431043
description=description,
@@ -1069,9 +1069,9 @@ def debit(self, amount, appears_on_statement_as=None,
10691069
if not amount or amount <= 0:
10701070
raise ResourceError('Must have an amount')
10711071
meta = meta or {}
1072-
parent = getattr(self, 'account', None) or self.customer
1072+
participant = getattr(self, 'account', None) or self.customer
10731073
return Debit(
1074-
uri=parent.debits_uri,
1074+
uri=participant.debits_uri,
10751075
amount=amount,
10761076
appears_on_statement_as=appears_on_statement_as,
10771077
meta=meta,

0 commit comments

Comments
 (0)
0