Skip to content

Commit b4e3d71

Browse files
authored
Merge pull request #78 from CyberSource/Nov_2021_Changes
Changes for November 2021 SDK Release
2 parents a0f8ec5 + d05c58c commit b4e3d71

File tree

54 files changed

+1558
-78
lines changed

Some content is hidden

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

54 files changed

+1558
-78
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,3 @@ target/
6262

6363
#Ipython Notebook
6464
.ipynb_checkpoints
65-
.swagger-codegen-ignore
66-
.idea
67-
.swagger-codegen

CyberSource/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,12 @@
163163
from .models.pts_v2_payments_captures_post201_response_processor_information import PtsV2PaymentsCapturesPost201ResponseProcessorInformation
164164
from .models.pts_v2_payments_captures_post400_response import PtsV2PaymentsCapturesPost400Response
165165
from .models.pts_v2_payments_post201_response import PtsV2PaymentsPost201Response
166+
from .models.pts_v2_payments_post201_response_buyer_information import PtsV2PaymentsPost201ResponseBuyerInformation
166167
from .models.pts_v2_payments_post201_response_client_reference_information import PtsV2PaymentsPost201ResponseClientReferenceInformation
167168
from .models.pts_v2_payments_post201_response_consumer_authentication_information import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation
168169
from .models.pts_v2_payments_post201_response_consumer_authentication_information_ivr import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr
170+
from .models.pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication
171+
from .models.pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication_issuer_information import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation
169172
from .models.pts_v2_payments_post201_response_error_information import PtsV2PaymentsPost201ResponseErrorInformation
170173
from .models.pts_v2_payments_post201_response_error_information_details import PtsV2PaymentsPost201ResponseErrorInformationDetails
171174
from .models.pts_v2_payments_post201_response_installment_information import PtsV2PaymentsPost201ResponseInstallmentInformation
@@ -662,6 +665,7 @@
662665
from .models.tss_v2_transactions_post201_response__embedded_application_information_applications import TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications
663666
from .models.tss_v2_transactions_post201_response__embedded_buyer_information import TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
664667
from .models.tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation
668+
from .models.tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner
665669
from .models.tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation
666670
from .models.tss_v2_transactions_post201_response__embedded_device_information import TssV2TransactionsPost201ResponseEmbeddedDeviceInformation
667671
from .models.tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks

CyberSource/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def call_authentication_header(self, method, header_params, body):
207207

208208
token = "Bearer " + token
209209
header_params['Authorization'] = str(token)
210-
210+
211211

212212
# Set the digest
213213
def set_digest(self, body):

CyberSource/apis/invoices_api.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def create_invoice_with_http_info(self, create_invoice_request, **kwargs):
133133
body_params = params['create_invoice_request']
134134
# HTTP header `Accept`
135135
header_params['Accept'] = self.api_client.\
136-
select_header_accept(['application/hal+json;charset=utf-8'])
136+
select_header_accept(['application/json;charset=utf-8'])
137137

138138
# HTTP header `Content-Type`
139139
header_params['Content-Type'] = self.api_client.\
@@ -258,7 +258,7 @@ def get_all_invoices_with_http_info(self, offset, limit, **kwargs):
258258
body_params = None
259259
# HTTP header `Accept`
260260
header_params['Accept'] = self.api_client.\
261-
select_header_accept(['application/hal+json;charset=utf-8'])
261+
select_header_accept(['application/json;charset=utf-8'])
262262

263263
# HTTP header `Content-Type`
264264
header_params['Content-Type'] = self.api_client.\
@@ -370,7 +370,7 @@ def get_invoice_with_http_info(self, id, **kwargs):
370370
body_params = None
371371
# HTTP header `Accept`
372372
header_params['Accept'] = self.api_client.\
373-
select_header_accept(['application/hal+json;charset=utf-8'])
373+
select_header_accept(['application/json;charset=utf-8'])
374374

375375
# HTTP header `Content-Type`
376376
header_params['Content-Type'] = self.api_client.\
@@ -482,7 +482,7 @@ def perform_cancel_action_with_http_info(self, id, **kwargs):
482482
body_params = None
483483
# HTTP header `Accept`
484484
header_params['Accept'] = self.api_client.\
485-
select_header_accept(['application/hal+json;charset=utf-8'])
485+
select_header_accept(['application/json;charset=utf-8'])
486486

487487
# HTTP header `Content-Type`
488488
header_params['Content-Type'] = self.api_client.\
@@ -594,7 +594,7 @@ def perform_send_action_with_http_info(self, id, **kwargs):
594594
body_params = None
595595
# HTTP header `Accept`
596596
header_params['Accept'] = self.api_client.\
597-
select_header_accept(['application/hal+json;charset=utf-8'])
597+
select_header_accept(['application/json;charset=utf-8'])
598598

599599
# HTTP header `Content-Type`
600600
header_params['Content-Type'] = self.api_client.\
@@ -715,7 +715,7 @@ def update_invoice_with_http_info(self, id, update_invoice_request, **kwargs):
715715
body_params = params['update_invoice_request']
716716
# HTTP header `Accept`
717717
header_params['Accept'] = self.api_client.\
718-
select_header_accept(['application/hal+json;charset=utf-8'])
718+
select_header_accept(['application/json;charset=utf-8'])
719719

720720
# HTTP header `Content-Type`
721721
header_params['Content-Type'] = self.api_client.\

CyberSource/models/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,12 @@
163163
from .pts_v2_payments_captures_post201_response_processor_information import PtsV2PaymentsCapturesPost201ResponseProcessorInformation
164164
from .pts_v2_payments_captures_post400_response import PtsV2PaymentsCapturesPost400Response
165165
from .pts_v2_payments_post201_response import PtsV2PaymentsPost201Response
166+
from .pts_v2_payments_post201_response_buyer_information import PtsV2PaymentsPost201ResponseBuyerInformation
166167
from .pts_v2_payments_post201_response_client_reference_information import PtsV2PaymentsPost201ResponseClientReferenceInformation
167168
from .pts_v2_payments_post201_response_consumer_authentication_information import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation
168169
from .pts_v2_payments_post201_response_consumer_authentication_information_ivr import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr
170+
from .pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication
171+
from .pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication_issuer_information import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation
169172
from .pts_v2_payments_post201_response_error_information import PtsV2PaymentsPost201ResponseErrorInformation
170173
from .pts_v2_payments_post201_response_error_information_details import PtsV2PaymentsPost201ResponseErrorInformationDetails
171174
from .pts_v2_payments_post201_response_installment_information import PtsV2PaymentsPost201ResponseInstallmentInformation
@@ -662,6 +665,7 @@
662665
from .tss_v2_transactions_post201_response__embedded_application_information_applications import TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications
663666
from .tss_v2_transactions_post201_response__embedded_buyer_information import TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
664667
from .tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation
668+
from .tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner
665669
from .tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation
666670
from .tss_v2_transactions_post201_response__embedded_device_information import TssV2TransactionsPost201ResponseEmbeddedDeviceInformation
667671
from .tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks

CyberSource/models/create_search_request.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def timezone(self, timezone):
151151
def query(self):
152152
"""
153153
Gets the query of this CreateSearchRequest.
154-
String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/txn_search_api/creating_txn_search_request.html) section of the Transaction Search Developer Guide.
154+
String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/txn-search-intro/txn-filtering.html) section of the Transaction Search Developer Guide.
155155
156156
:return: The query of this CreateSearchRequest.
157157
:rtype: str
@@ -162,7 +162,7 @@ def query(self):
162162
def query(self, query):
163163
"""
164164
Sets the query of this CreateSearchRequest.
165-
String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/txn_search_api/creating_txn_search_request.html) section of the Transaction Search Developer Guide.
165+
String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/txn-search-intro/txn-filtering.html) section of the Transaction Search Developer Guide.
166166
167167
:param query: The query of this CreateSearchRequest.
168168
:type: str

CyberSource/models/pts_v2_payments_post201_response.py

+27-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class PtsV2PaymentsPost201Response(object):
4747
'point_of_sale_information': 'PtsV2PaymentsPost201ResponsePointOfSaleInformation',
4848
'installment_information': 'PtsV2PaymentsPost201ResponseInstallmentInformation',
4949
'token_information': 'PtsV2PaymentsPost201ResponseTokenInformation',
50+
'buyer_information': 'PtsV2PaymentsPost201ResponseBuyerInformation',
5051
'risk_information': 'PtsV2PaymentsPost201ResponseRiskInformation',
5152
'consumer_authentication_information': 'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation'
5253
}
@@ -68,11 +69,12 @@ class PtsV2PaymentsPost201Response(object):
6869
'point_of_sale_information': 'pointOfSaleInformation',
6970
'installment_information': 'installmentInformation',
7071
'token_information': 'tokenInformation',
72+
'buyer_information': 'buyerInformation',
7173
'risk_information': 'riskInformation',
7274
'consumer_authentication_information': 'consumerAuthenticationInformation'
7375
}
7476

75-
def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, error_information=None, client_reference_information=None, processing_information=None, processor_information=None, issuer_information=None, payment_account_information=None, payment_information=None, order_information=None, point_of_sale_information=None, installment_information=None, token_information=None, risk_information=None, consumer_authentication_information=None):
77+
def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, error_information=None, client_reference_information=None, processing_information=None, processor_information=None, issuer_information=None, payment_account_information=None, payment_information=None, order_information=None, point_of_sale_information=None, installment_information=None, token_information=None, buyer_information=None, risk_information=None, consumer_authentication_information=None):
7678
"""
7779
PtsV2PaymentsPost201Response - a model defined in Swagger
7880
"""
@@ -93,6 +95,7 @@ def __init__(self, links=None, id=None, submit_time_utc=None, status=None, recon
9395
self._point_of_sale_information = None
9496
self._installment_information = None
9597
self._token_information = None
98+
self._buyer_information = None
9699
self._risk_information = None
97100
self._consumer_authentication_information = None
98101

@@ -128,6 +131,8 @@ def __init__(self, links=None, id=None, submit_time_utc=None, status=None, recon
128131
self.installment_information = installment_information
129132
if token_information is not None:
130133
self.token_information = token_information
134+
if buyer_information is not None:
135+
self.buyer_information = buyer_information
131136
if risk_information is not None:
132137
self.risk_information = risk_information
133138
if consumer_authentication_information is not None:
@@ -477,6 +482,27 @@ def token_information(self, token_information):
477482

478483
self._token_information = token_information
479484

485+
@property
486+
def buyer_information(self):
487+
"""
488+
Gets the buyer_information of this PtsV2PaymentsPost201Response.
489+
490+
:return: The buyer_information of this PtsV2PaymentsPost201Response.
491+
:rtype: PtsV2PaymentsPost201ResponseBuyerInformation
492+
"""
493+
return self._buyer_information
494+
495+
@buyer_information.setter
496+
def buyer_information(self, buyer_information):
497+
"""
498+
Sets the buyer_information of this PtsV2PaymentsPost201Response.
499+
500+
:param buyer_information: The buyer_information of this PtsV2PaymentsPost201Response.
501+
:type: PtsV2PaymentsPost201ResponseBuyerInformation
502+
"""
503+
504+
self._buyer_information = buyer_information
505+
480506
@property
481507
def risk_information(self):
482508
"""

0 commit comments

Comments
 (0)