Skip to content

Commit 00fe989

Browse files
Manuel HuezManuel Huez
authored andcommitted
Add legal_document and phone_number fields to customer
1 parent 30b2990 commit 00fe989

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

processout/customer.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def __init__(self, client, prefill = None):
3434
self._zip = None
3535
self._country_code = None
3636
self._ip_address = None
37+
self._phone_number = None
38+
self._legal_document = None
3739
self._transactions_count = None
3840
self._subscriptions_count = None
3941
self._mrr_local = None
@@ -359,6 +361,32 @@ def ip_address(self, val):
359361
self._ip_address = val
360362
return self
361363

364+
@property
365+
def phone_number(self):
366+
"""Get phone_number"""
367+
return self._phone_number
368+
369+
@phone_number.setter
370+
def phone_number(self, val):
371+
"""Set phone_number
372+
Keyword argument:
373+
val -- New phone_number value"""
374+
self._phone_number = val
375+
return self
376+
377+
@property
378+
def legal_document(self):
379+
"""Get legal_document"""
380+
return self._legal_document
381+
382+
@legal_document.setter
383+
def legal_document(self, val):
384+
"""Set legal_document
385+
Keyword argument:
386+
val -- New legal_document value"""
387+
self._legal_document = val
388+
return self
389+
362390
@property
363391
def transactions_count(self):
364392
"""Get transactions_count"""
@@ -495,6 +523,10 @@ def fill_with_data(self, data):
495523
self.country_code = data["country_code"]
496524
if "ip_address" in data.keys():
497525
self.ip_address = data["ip_address"]
526+
if "phone_number" in data.keys():
527+
self.phone_number = data["phone_number"]
528+
if "legal_document" in data.keys():
529+
self.legal_document = data["legal_document"]
498530
if "transactions_count" in data.keys():
499531
self.transactions_count = data["transactions_count"]
500532
if "subscriptions_count" in data.keys():
@@ -695,6 +727,8 @@ def create(self, options = {}):
695727
'zip': self.zip,
696728
'country_code': self.country_code,
697729
'ip_address': self.ip_address,
730+
'phone_number': self.phone_number,
731+
'legal_document': self.legal_document,
698732
'metadata': self.metadata
699733
}
700734

@@ -760,6 +794,8 @@ def save(self, options = {}):
760794
'zip': self.zip,
761795
'country_code': self.country_code,
762796
'ip_address': self.ip_address,
797+
'phone_number': self.phone_number,
798+
'legal_document': self.legal_document,
763799
'metadata': self.metadata
764800
}
765801

processout/networking/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _get_headers(self, options):
2525
"""Return the headers sent with the request"""
2626
headers = {}
2727
headers["API-Version"] = "1.4.0.0"
28-
headers["User-Agent"] = "ProcessOut Python-Bindings/6.9.0"
28+
headers["User-Agent"] = "ProcessOut Python-Bindings/6.10.0"
2929

3030
if options is None:
3131
return headers

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.9.0',
6+
version = '6.10.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.9.0',
11+
download_url = 'https://github.com/processout/processout-python/tarball/6.10.0',
1212
keywords = ['ProcessOut', 'api', 'bindings'],
1313
classifiers = [],
1414
)

0 commit comments

Comments
 (0)