Skip to content

Commit 35ab44b

Browse files
Manuel HuezManuel Huez
authored andcommitted
Add category field to card object
1 parent 047564e commit 35ab44b

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

processout/cardinformation.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def __init__(self, client, prefill = None):
1919
self._type = None
2020
self._bank_name = None
2121
self._brand = None
22+
self._category = None
2223
self._country = None
2324
if prefill != None:
2425
self.fill_with_data(prefill)
@@ -89,6 +90,19 @@ def brand(self, val):
8990
self._brand = val
9091
return self
9192

93+
@property
94+
def category(self):
95+
"""Get category"""
96+
return self._category
97+
98+
@category.setter
99+
def category(self, val):
100+
"""Set category
101+
Keyword argument:
102+
val -- New category value"""
103+
self._category = val
104+
return self
105+
92106
@property
93107
def country(self):
94108
"""Get country"""
@@ -117,6 +131,8 @@ def fill_with_data(self, data):
117131
self.bank_name = data["bank_name"]
118132
if "brand" in data.keys():
119133
self.brand = data["brand"]
134+
if "category" in data.keys():
135+
self.category = data["category"]
120136
if "country" in data.keys():
121137
self.country = data["country"]
122138

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

0 commit comments

Comments
 (0)