Skip to content

Commit e0ab8d7

Browse files
Release 3.2.2
1 parent 1ebc698 commit e0ab8d7

File tree

6 files changed

+63
-14
lines changed

6 files changed

+63
-14
lines changed

.github/workflows/python-publish.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# They are provided by a third-party and are governed by
66
# separate terms of service, privacy policy, and support
77
# documentation.
8-
name: Upload Python Package
8+
name: Test & Upload Python Package
99

1010
on:
1111
push:
@@ -17,7 +17,8 @@ permissions:
1717
contents: read
1818

1919
jobs:
20-
build:
20+
21+
test:
2122
strategy:
2223
matrix:
2324
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
@@ -40,9 +41,29 @@ jobs:
4041
run: |
4142
echo "Starting build .."
4243
python -m unittest discover -s test/ -p 'test_*.py'
44+
4345
- name: Build Tar Ball
4446
run: python -m build --sdist --outdir dist/ .
45-
- name: Publish package
46-
uses: pypa/gh-action-pypi-publish@master
47-
with:
48-
password: ${{ secrets.PYPI_API_TOKEN }}
47+
48+
release:
49+
needs: test
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v3
53+
- name: Set up Python
54+
uses: actions/setup-python@v3
55+
with:
56+
python-version: '3.8'
57+
- name: Install dependencies with ${{ matrix.python-version }}
58+
run: |
59+
python -m pip install --upgrade pip
60+
pip install -r test-requirements.txt
61+
python -m pip install build --user
62+
63+
- name: Build Tar Ball
64+
run: python -m build --sdist --outdir dist/ .
65+
66+
- name: Publish package
67+
uses: pypa/gh-action-pypi-publish@master
68+
with:
69+
password: ${{ secrets.PYPI_API_TOKEN }}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
long_description = fh.read()
77

88
NAME = "wallee"
9-
VERSION = "3.2.0"
9+
VERSION = "3.2.2"
1010

1111
REQUIRES = [
1212
"certifi>=2017.4.17",

wallee/api_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Python SDK
66
7-
OpenAPI spec version: 3.2.0
7+
OpenAPI spec version: 3.2.2
88
99
"""
1010

@@ -64,7 +64,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6464
self.default_headers[header_name] = header_value
6565
self.cookie = cookie
6666
# Set default User-Agent.
67-
self.user_agent = 'wallee/3.2.0/python'
67+
self.user_agent = 'wallee/3.2.2/python'
6868

6969
def __del__(self):
7070
if self._pool is not None:
@@ -103,7 +103,7 @@ def __call_api(
103103

104104
# predefined default headers
105105
default_headers = {
106-
'x-meta-sdk-version': '3.2.0',
106+
'x-meta-sdk-version': '3.2.2',
107107
'x-meta-sdk-language': 'python',
108108
'x-meta-sdk-provider': 'wallee',
109109
'x-meta-sdk-language-version': platform.python_version()

wallee/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,6 @@ def to_debug_report(self):
254254
return "Python SDK Debug Report:\n"\
255255
"OS: {env}\n"\
256256
"Python Version: {pyversion}\n"\
257-
"Version of the API: 3.2.0\n"\
258-
"SDK Package Version: 3.2.0".\
257+
"Version of the API: 3.2.2\n"\
258+
"SDK Package Version: 3.2.2".\
259259
format(env=sys.platform, pyversion=sys.version)

wallee/models/payment_initiation_advice_file.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ class PaymentInitiationAdviceFile:
1515
'linked_space_id': 'int',
1616
'name': 'str',
1717
'processed_on': 'datetime',
18+
'processor': 'PaymentProcessor',
1819
'state': 'PaymentInitiationAdviceFileState',
1920
}
2021

2122
attribute_map = {
22-
'created_on': 'createdOn','file_generated_on': 'fileGeneratedOn','id': 'id','linked_space_id': 'linkedSpaceId','name': 'name','processed_on': 'processedOn','state': 'state',
23+
'created_on': 'createdOn','file_generated_on': 'fileGeneratedOn','id': 'id','linked_space_id': 'linkedSpaceId','name': 'name','processed_on': 'processedOn','processor': 'processor','state': 'state',
2324
}
2425

2526

@@ -29,6 +30,7 @@ class PaymentInitiationAdviceFile:
2930
_linked_space_id = None
3031
_name = None
3132
_processed_on = None
33+
_processor = None
3234
_state = None
3335

3436
def __init__(self, **kwargs):
@@ -40,6 +42,7 @@ def __init__(self, **kwargs):
4042
self.linked_space_id = kwargs.get('linked_space_id', None)
4143
self.name = kwargs.get('name', None)
4244
self.processed_on = kwargs.get('processed_on', None)
45+
self.processor = kwargs.get('processor', None)
4346
self.state = kwargs.get('state', None)
4447

4548

@@ -182,6 +185,29 @@ def processed_on(self, processed_on):
182185

183186
self._processed_on = processed_on
184187

188+
@property
189+
def processor(self):
190+
"""Gets the processor of this PaymentInitiationAdviceFile.
191+
192+
193+
194+
:return: The processor of this PaymentInitiationAdviceFile.
195+
:rtype: PaymentProcessor
196+
"""
197+
return self._processor
198+
199+
@processor.setter
200+
def processor(self, processor):
201+
"""Sets the processor of this PaymentInitiationAdviceFile.
202+
203+
204+
205+
:param processor: The processor of this PaymentInitiationAdviceFile.
206+
:type: PaymentProcessor
207+
"""
208+
209+
self._processor = processor
210+
185211
@property
186212
def state(self):
187213
"""Gets the state of this PaymentInitiationAdviceFile.

wallee/models/payment_initiation_advice_file_state.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
@unique
66
class PaymentInitiationAdviceFileState(Enum):
77

8-
PENDING = "PENDING"
8+
CREATED = "CREATED"
9+
UPLOADED = "UPLOADED"
10+
DOWNLOADED = "DOWNLOADED"
911
PROCESSED = "PROCESSED"
1012

0 commit comments

Comments
 (0)