Skip to content

Commit ef2a8d3

Browse files
Release 5.0.0
1 parent c7e1ccd commit ef2a8d3

25 files changed

Lines changed: 288 additions & 69 deletions

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Library facilitates your interaction with various services such as transactions,
2121
pip3 install --upgrade postfinancecheckout
2222
```
2323

24-
### pip3 install from source via github
24+
### pip3 install from source via GitHub
2525

2626
```sh
2727
pip3 install git+http://github.com/pfpayments/python-sdk.git
@@ -49,7 +49,6 @@ You can also optionally set `default_headers` to set some headers that will be s
4949
```python
5050
from postfinancecheckout import Configuration
5151
from postfinancecheckout.api import TransactionServiceApi, TransactionPaymentPageServiceApi
52-
from postfinancecheckout.models import LineItem, LineItemType, TransactionCreate
5352

5453
space_id = 405
5554

postfinancecheckout/api/charge_flow_service_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def fetch_charge_flow_payment_page_url_with_http_info(self, space_id, id, **kwar
419419
body_params = None
420420
# HTTP header `Accept`
421421
header_params['Accept'] = self.api_client.select_header_accept(
422-
['application/json', 'text/plain;charset=utf-8'])
422+
['text/plain;charset=utf-8', 'application/json'])
423423

424424
# Authentication setting
425425
auth_settings = []

postfinancecheckout/api/human_user_service_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def export_with_http_info(self, request, **kwargs):
395395
body_params = params['request']
396396
# HTTP header `Accept`
397397
header_params['Accept'] = self.api_client.select_header_accept(
398-
['application/json;charset=utf-8', 'text/csv'])
398+
['text/csv', 'application/json;charset=utf-8'])
399399

400400
# HTTP header `Content-Type`
401401
header_params['Content-Type'] = self.api_client.select_header_content_type(

postfinancecheckout/api/refund_comment_service_api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def create(self, space_id, entity, **kwargs):
135135
136136
:param async_req bool
137137
:param int space_id: (required)
138-
:param RefundCommentCreate entity: (required)
138+
:param RefundCommentCreate entity: The comment object which should be created. (required)
139139
:return: RefundComment
140140
If the method is called asynchronously,
141141
returns the request thread.
@@ -161,7 +161,7 @@ def create_with_http_info(self, space_id, entity, **kwargs):
161161
162162
:param async_req bool
163163
:param int space_id: (required)
164-
:param RefundCommentCreate entity: (required)
164+
:param RefundCommentCreate entity: The comment object which should be created. (required)
165165
:return: RefundComment
166166
If the method is called asynchronously,
167167
returns the request thread.
@@ -309,15 +309,15 @@ def delete_with_http_info(self, space_id, id, **kwargs):
309309
query_params = []
310310
if 'space_id' in params:
311311
query_params.append(('spaceId', params['space_id']))
312-
if 'id' in params:
313-
query_params.append(('id', params['id']))
314312

315313
header_params = {}
316314

317315
form_params = []
318316
local_var_files = {}
319317

320318
body_params = None
319+
if 'id' in params:
320+
body_params = params['id']
321321
# HTTP header `Accept`
322322
header_params['Accept'] = self.api_client.select_header_accept(
323323
['application/json;charset=utf-8'])
@@ -357,7 +357,7 @@ def pin(self, space_id, id, **kwargs):
357357
358358
:param async_req bool
359359
:param int space_id: (required)
360-
:param int id: (required)
360+
:param int id: The id of the comment to pin to the top. (required)
361361
:return: None
362362
If the method is called asynchronously,
363363
returns the request thread.
@@ -383,7 +383,7 @@ def pin_with_http_info(self, space_id, id, **kwargs):
383383
384384
:param async_req bool
385385
:param int space_id: (required)
386-
:param int id: (required)
386+
:param int id: The id of the comment to pin to the top. (required)
387387
:return: None
388388
If the method is called asynchronously,
389389
returns the request thread.
@@ -468,7 +468,7 @@ def read(self, space_id, id, **kwargs):
468468
469469
:param async_req bool
470470
:param int space_id: (required)
471-
:param int id: (required)
471+
:param int id: The id of the comment which should be returned. (required)
472472
:return: RefundComment
473473
If the method is called asynchronously,
474474
returns the request thread.
@@ -494,7 +494,7 @@ def read_with_http_info(self, space_id, id, **kwargs):
494494
495495
:param async_req bool
496496
:param int space_id: (required)
497-
:param int id: (required)
497+
:param int id: The id of the comment which should be returned. (required)
498498
:return: RefundComment
499499
If the method is called asynchronously,
500500
returns the request thread.
@@ -579,7 +579,7 @@ def unpin(self, space_id, id, **kwargs):
579579
580580
:param async_req bool
581581
:param int space_id: (required)
582-
:param int id: (required)
582+
:param int id: The id of the comment to unpin. (required)
583583
:return: None
584584
If the method is called asynchronously,
585585
returns the request thread.
@@ -605,7 +605,7 @@ def unpin_with_http_info(self, space_id, id, **kwargs):
605605
606606
:param async_req bool
607607
:param int space_id: (required)
608-
:param int id: (required)
608+
:param int id: The id of the comment to unpin. (required)
609609
:return: None
610610
If the method is called asynchronously,
611611
returns the request thread.
@@ -690,7 +690,7 @@ def update(self, space_id, entity, **kwargs):
690690
691691
:param async_req bool
692692
:param int space_id: (required)
693-
:param RefundCommentActive entity: (required)
693+
:param RefundCommentActive entity: The comment object with the properties which should be updated. (required)
694694
:return: RefundComment
695695
If the method is called asynchronously,
696696
returns the request thread.
@@ -716,7 +716,7 @@ def update_with_http_info(self, space_id, entity, **kwargs):
716716
717717
:param async_req bool
718718
:param int space_id: (required)
719-
:param RefundCommentActive entity: (required)
719+
:param RefundCommentActive entity: The comment object with the properties which should be updated. (required)
720720
:return: RefundComment
721721
If the method is called asynchronously,
722722
returns the request thread.

postfinancecheckout/api/transaction_comment_service_api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def create(self, space_id, entity, **kwargs):
135135
136136
:param async_req bool
137137
:param int space_id: (required)
138-
:param TransactionCommentCreate entity: (required)
138+
:param TransactionCommentCreate entity: The comment object which should be created. (required)
139139
:return: TransactionComment
140140
If the method is called asynchronously,
141141
returns the request thread.
@@ -161,7 +161,7 @@ def create_with_http_info(self, space_id, entity, **kwargs):
161161
162162
:param async_req bool
163163
:param int space_id: (required)
164-
:param TransactionCommentCreate entity: (required)
164+
:param TransactionCommentCreate entity: The comment object which should be created. (required)
165165
:return: TransactionComment
166166
If the method is called asynchronously,
167167
returns the request thread.
@@ -309,15 +309,15 @@ def delete_with_http_info(self, space_id, id, **kwargs):
309309
query_params = []
310310
if 'space_id' in params:
311311
query_params.append(('spaceId', params['space_id']))
312-
if 'id' in params:
313-
query_params.append(('id', params['id']))
314312

315313
header_params = {}
316314

317315
form_params = []
318316
local_var_files = {}
319317

320318
body_params = None
319+
if 'id' in params:
320+
body_params = params['id']
321321
# HTTP header `Accept`
322322
header_params['Accept'] = self.api_client.select_header_accept(
323323
['application/json;charset=utf-8'])
@@ -357,7 +357,7 @@ def pin(self, space_id, id, **kwargs):
357357
358358
:param async_req bool
359359
:param int space_id: (required)
360-
:param int id: (required)
360+
:param int id: The id of the comment to pin to the top. (required)
361361
:return: None
362362
If the method is called asynchronously,
363363
returns the request thread.
@@ -383,7 +383,7 @@ def pin_with_http_info(self, space_id, id, **kwargs):
383383
384384
:param async_req bool
385385
:param int space_id: (required)
386-
:param int id: (required)
386+
:param int id: The id of the comment to pin to the top. (required)
387387
:return: None
388388
If the method is called asynchronously,
389389
returns the request thread.
@@ -468,7 +468,7 @@ def read(self, space_id, id, **kwargs):
468468
469469
:param async_req bool
470470
:param int space_id: (required)
471-
:param int id: (required)
471+
:param int id: The id of the comment which should be returned. (required)
472472
:return: TransactionComment
473473
If the method is called asynchronously,
474474
returns the request thread.
@@ -494,7 +494,7 @@ def read_with_http_info(self, space_id, id, **kwargs):
494494
495495
:param async_req bool
496496
:param int space_id: (required)
497-
:param int id: (required)
497+
:param int id: The id of the comment which should be returned. (required)
498498
:return: TransactionComment
499499
If the method is called asynchronously,
500500
returns the request thread.
@@ -579,7 +579,7 @@ def unpin(self, space_id, id, **kwargs):
579579
580580
:param async_req bool
581581
:param int space_id: (required)
582-
:param int id: (required)
582+
:param int id: The id of the comment to unpin. (required)
583583
:return: None
584584
If the method is called asynchronously,
585585
returns the request thread.
@@ -605,7 +605,7 @@ def unpin_with_http_info(self, space_id, id, **kwargs):
605605
606606
:param async_req bool
607607
:param int space_id: (required)
608-
:param int id: (required)
608+
:param int id: The id of the comment to unpin. (required)
609609
:return: None
610610
If the method is called asynchronously,
611611
returns the request thread.
@@ -690,7 +690,7 @@ def update(self, space_id, entity, **kwargs):
690690
691691
:param async_req bool
692692
:param int space_id: (required)
693-
:param TransactionCommentActive entity: (required)
693+
:param TransactionCommentActive entity: The comment object with the properties which should be updated. (required)
694694
:return: TransactionComment
695695
If the method is called asynchronously,
696696
returns the request thread.
@@ -716,7 +716,7 @@ def update_with_http_info(self, space_id, entity, **kwargs):
716716
717717
:param async_req bool
718718
:param int space_id: (required)
719-
:param TransactionCommentActive entity: (required)
719+
:param TransactionCommentActive entity: The comment object with the properties which should be updated. (required)
720720
:return: TransactionComment
721721
If the method is called asynchronously,
722722
returns the request thread.

postfinancecheckout/api/transaction_iframe_service_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def javascript_url_with_http_info(self, space_id, id, **kwargs):
9898
body_params = None
9999
# HTTP header `Accept`
100100
header_params['Accept'] = self.api_client.select_header_accept(
101-
['application/json', 'text/plain;charset=utf-8'])
101+
['text/plain;charset=utf-8', 'application/json'])
102102

103103
# Authentication setting
104104
auth_settings = []

postfinancecheckout/api/transaction_invoice_comment_service_api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def create(self, space_id, entity, **kwargs):
135135
136136
:param async_req bool
137137
:param int space_id: (required)
138-
:param TransactionInvoiceCommentCreate entity: (required)
138+
:param TransactionInvoiceCommentCreate entity: The comment object which should be created. (required)
139139
:return: TransactionInvoiceComment
140140
If the method is called asynchronously,
141141
returns the request thread.
@@ -161,7 +161,7 @@ def create_with_http_info(self, space_id, entity, **kwargs):
161161
162162
:param async_req bool
163163
:param int space_id: (required)
164-
:param TransactionInvoiceCommentCreate entity: (required)
164+
:param TransactionInvoiceCommentCreate entity: The comment object which should be created. (required)
165165
:return: TransactionInvoiceComment
166166
If the method is called asynchronously,
167167
returns the request thread.
@@ -309,15 +309,15 @@ def delete_with_http_info(self, space_id, id, **kwargs):
309309
query_params = []
310310
if 'space_id' in params:
311311
query_params.append(('spaceId', params['space_id']))
312-
if 'id' in params:
313-
query_params.append(('id', params['id']))
314312

315313
header_params = {}
316314

317315
form_params = []
318316
local_var_files = {}
319317

320318
body_params = None
319+
if 'id' in params:
320+
body_params = params['id']
321321
# HTTP header `Accept`
322322
header_params['Accept'] = self.api_client.select_header_accept(
323323
['application/json;charset=utf-8'])
@@ -357,7 +357,7 @@ def pin(self, space_id, id, **kwargs):
357357
358358
:param async_req bool
359359
:param int space_id: (required)
360-
:param int id: (required)
360+
:param int id: The id of the comment to pin to the top. (required)
361361
:return: None
362362
If the method is called asynchronously,
363363
returns the request thread.
@@ -383,7 +383,7 @@ def pin_with_http_info(self, space_id, id, **kwargs):
383383
384384
:param async_req bool
385385
:param int space_id: (required)
386-
:param int id: (required)
386+
:param int id: The id of the comment to pin to the top. (required)
387387
:return: None
388388
If the method is called asynchronously,
389389
returns the request thread.
@@ -468,7 +468,7 @@ def read(self, space_id, id, **kwargs):
468468
469469
:param async_req bool
470470
:param int space_id: (required)
471-
:param int id: (required)
471+
:param int id: The id of the comment which should be returned. (required)
472472
:return: TransactionInvoiceComment
473473
If the method is called asynchronously,
474474
returns the request thread.
@@ -494,7 +494,7 @@ def read_with_http_info(self, space_id, id, **kwargs):
494494
495495
:param async_req bool
496496
:param int space_id: (required)
497-
:param int id: (required)
497+
:param int id: The id of the comment which should be returned. (required)
498498
:return: TransactionInvoiceComment
499499
If the method is called asynchronously,
500500
returns the request thread.
@@ -579,7 +579,7 @@ def unpin(self, space_id, id, **kwargs):
579579
580580
:param async_req bool
581581
:param int space_id: (required)
582-
:param int id: (required)
582+
:param int id: The id of the comment to unpin. (required)
583583
:return: None
584584
If the method is called asynchronously,
585585
returns the request thread.
@@ -605,7 +605,7 @@ def unpin_with_http_info(self, space_id, id, **kwargs):
605605
606606
:param async_req bool
607607
:param int space_id: (required)
608-
:param int id: (required)
608+
:param int id: The id of the comment to unpin. (required)
609609
:return: None
610610
If the method is called asynchronously,
611611
returns the request thread.
@@ -690,7 +690,7 @@ def update(self, space_id, entity, **kwargs):
690690
691691
:param async_req bool
692692
:param int space_id: (required)
693-
:param TransactionInvoiceCommentActive entity: (required)
693+
:param TransactionInvoiceCommentActive entity: The comment object with the properties which should be updated. (required)
694694
:return: TransactionInvoiceComment
695695
If the method is called asynchronously,
696696
returns the request thread.
@@ -716,7 +716,7 @@ def update_with_http_info(self, space_id, entity, **kwargs):
716716
717717
:param async_req bool
718718
:param int space_id: (required)
719-
:param TransactionInvoiceCommentActive entity: (required)
719+
:param TransactionInvoiceCommentActive entity: The comment object with the properties which should be updated. (required)
720720
:return: TransactionInvoiceComment
721721
If the method is called asynchronously,
722722
returns the request thread.

postfinancecheckout/api/transaction_lightbox_service_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def javascript_url_with_http_info(self, space_id, id, **kwargs):
9898
body_params = None
9999
# HTTP header `Accept`
100100
header_params['Accept'] = self.api_client.select_header_accept(
101-
['application/json', 'text/plain;charset=utf-8'])
101+
['text/plain;charset=utf-8', 'application/json'])
102102

103103
# Authentication setting
104104
auth_settings = []

postfinancecheckout/api/transaction_mobile_sdk_service_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def payment_form_url_with_http_info(self, credentials, **kwargs):
9090
body_params = None
9191
# HTTP header `Accept`
9292
header_params['Accept'] = self.api_client.select_header_accept(
93-
['application/json', 'text/plain;charset=utf-8'])
93+
['text/plain;charset=utf-8', 'application/json'])
9494

9595
# Authentication setting
9696
auth_settings = []

postfinancecheckout/api/transaction_payment_page_service_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def payment_page_url_with_http_info(self, space_id, id, **kwargs):
9898
body_params = None
9999
# HTTP header `Accept`
100100
header_params['Accept'] = self.api_client.select_header_accept(
101-
['application/json', 'text/plain;charset=utf-8'])
101+
['text/plain;charset=utf-8', 'application/json'])
102102

103103
# Authentication setting
104104
auth_settings = []

0 commit comments

Comments
 (0)