Skip to content

Commit cf8eb01

Browse files
add can_get_balance to customer token
1 parent 54fbd8a commit cf8eb01

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

processout/token.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def __init__(self, client, prefill=None):
3636
self._invoice = None
3737
self._invoice_id = None
3838
self._manual_invoice_cancellation = None
39+
self._can_get_balance = None
3940
if prefill is not None:
4041
self.fill_with_data(prefill)
4142

@@ -335,6 +336,19 @@ def manual_invoice_cancellation(self, val):
335336
self._manual_invoice_cancellation = val
336337
return self
337338

339+
@property
340+
def can_get_balance(self):
341+
"""Get can_get_balance"""
342+
return self._can_get_balance
343+
344+
@can_get_balance.setter
345+
def can_get_balance(self, val):
346+
"""Set can_get_balance
347+
Keyword argument:
348+
val -- New can_get_balance value"""
349+
self._can_get_balance = val
350+
return self
351+
338352
def fill_with_data(self, data):
339353
"""Fill the current object with the new values pulled from data
340354
Keyword argument:
@@ -379,6 +393,8 @@ def fill_with_data(self, data):
379393
self.invoice_id = data["invoice_id"]
380394
if "manual_invoice_cancellation" in data.keys():
381395
self.manual_invoice_cancellation = data["manual_invoice_cancellation"]
396+
if "can_get_balance" in data.keys():
397+
self.can_get_balance = data["can_get_balance"]
382398

383399
return self
384400

@@ -404,6 +420,7 @@ def to_json(self):
404420
"invoice": self.invoice,
405421
"invoice_id": self.invoice_id,
406422
"manual_invoice_cancellation": self.manual_invoice_cancellation,
423+
"can_get_balance": self.can_get_balance,
407424
}
408425

409426
def fetch_customer_tokens(self, customer_id, options={}):

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
setup(
44
name = 'processout',
55
packages = ['processout', 'processout.errors', 'processout.networking'],
6-
version = '6.20.0',
6+
version = '6.21.0',
77
description = 'ProcessOut API bindings.',
88
author = 'ProcessOut',
99
author_email = '[email protected]',
1010
url = 'https://github.com/processout/processout-python',
11-
download_url = 'https://github.com/processout/processout-python/tarball/6.20.0',
11+
download_url = 'https://github.com/processout/processout-python/tarball/6.21.0',
1212
keywords = ['ProcessOut', 'api', 'bindings'],
1313
classifiers = [],
1414
)

0 commit comments

Comments
 (0)