Skip to content

Commit bfc7cf7

Browse files
author
WorldlineConnect
committed
Release 4.0.1.
1 parent ce257ce commit bfc7cf7

File tree

451 files changed

+2346
-2282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

451 files changed

+2346
-2282
lines changed

.github/workflows/api-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
path: code
1818
persist-credentials: false
1919
- name: Setup Python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: '3.11'
2323
- name: Install Sphinx and dependencies
@@ -26,7 +26,7 @@ jobs:
2626
run: sphinx-build . docs
2727
working-directory: code
2828
- name: Checkout pages
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
ref: gh-pages
3232
path: pages

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
persist-credentials: false
1818
- name: Setup Python
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: '3.11'
2222
- name: Install Twine and dependencies

conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
# built documents.
6363
#
6464
# The short X.Y version.
65-
version = '4.0.0'
65+
version = '4.0.1'
6666
# The full version, including alpha/beta/rc tags.
67-
release = '4.0.0'
67+
release = '4.0.1'
6868

6969
# The language for content autogenerated by Sphinx. Refer to documentation
7070
# for a list of supported languages.
@@ -138,7 +138,7 @@
138138
# The name for this set of Sphinx documents.
139139
# "<project> v<release> documentation" by default.
140140
#
141-
# html_title = 'Python SDK v4.0.0'
141+
# html_title = 'Python SDK v4.0.1'
142142

143143
# A shorter title for the navigation bar. Default is the same as html_title.
144144
#

examples/v1/merchant/captures/create_refund_capture_example.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ def example(self):
1818
with self.__get_client() as client:
1919
amount_of_money = AmountOfMoney()
2020
amount_of_money.amount = 500
21-
amount_of_money.currency_code = "EUR"
21+
amount_of_money.currency_code = 'EUR'
2222

2323
refund_references = RefundReferences()
24-
refund_references.merchant_reference = "AcmeOrder0001"
24+
refund_references.merchant_reference = 'AcmeOrder0001'
2525

2626
body = RefundRequest()
2727
body.amount_of_money = amount_of_money
2828
body.refund_references = refund_references
2929

3030
try:
31-
response = client.v1().merchant("merchantId").captures().refund("captureId", body)
31+
response = client.v1().merchant('merchantId').captures().refund('captureId', body)
3232
except DeclinedRefundException as e:
3333
self.handle_declined_refund(e.refund_result)
3434
except ApiException as e:
35-
self.handle_api_errors(e.errors)
35+
self.handle_error_response(e.error_id, e.errors)
3636

3737
@staticmethod
3838
def __get_client():
@@ -48,6 +48,6 @@ def handle_declined_refund(refund_result):
4848
pass
4949

5050
@staticmethod
51-
def handle_api_errors(errors):
52-
# handle the errors here
51+
def handle_error_response(error_id, errors):
52+
# handle the error response here
5353
pass

examples/v1/merchant/captures/get_capture_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GetCaptureExample(object):
1111

1212
def example(self):
1313
with self.__get_client() as client:
14-
response = client.v1().merchant("merchantId").captures().get("captureId")
14+
response = client.v1().merchant('merchantId').captures().get('captureId')
1515

1616
@staticmethod
1717
def __get_client():

examples/v1/merchant/disputes/cancel_dispute_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CancelDisputeExample(object):
1111

1212
def example(self):
1313
with self.__get_client() as client:
14-
response = client.v1().merchant("merchantId").disputes().cancel("disputeId")
14+
response = client.v1().merchant('merchantId').disputes().cancel('disputeId')
1515

1616
@staticmethod
1717
def __get_client():

examples/v1/merchant/disputes/get_dispute_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GetDisputeExample(object):
1111

1212
def example(self):
1313
with self.__get_client() as client:
14-
response = client.v1().merchant("merchantId").disputes().get("disputeId")
14+
response = client.v1().merchant('merchantId').disputes().get('disputeId')
1515

1616
@staticmethod
1717
def __get_client():

examples/v1/merchant/disputes/submit_dispute_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SubmitDisputeExample(object):
1111

1212
def example(self):
1313
with self.__get_client() as client:
14-
response = client.v1().merchant("merchantId").disputes().submit("disputeId")
14+
response = client.v1().merchant('merchantId').disputes().submit('disputeId')
1515

1616
@staticmethod
1717
def __get_client():

examples/v1/merchant/disputes/upload_dispute_file_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def example(self):
1717
with open("file.pdf", "rb") as file_content:
1818
body.file = UploadableFile("file.pdf", file_content, "application/pdf")
1919

20-
response = client.v1().merchant("merchantId").disputes().upload_file("disputeId", body)
20+
response = client.v1().merchant('merchantId').disputes().upload_file('disputeId', body)
2121

2222
@staticmethod
2323
def __get_client():

examples/v1/merchant/files/get_file_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GetFileExample(object):
1111

1212
def example(self):
1313
with self.__get_client() as client:
14-
headers, chunks = client.v1().merchant("merchantId").files().get_file("fileId")
14+
headers, chunks = client.v1().merchant('merchantId').files().get_file('fileId')
1515
# make sure all chunks are read
1616
for chunk in chunks:
1717
# use the chunk

0 commit comments

Comments
 (0)