Skip to content

Commit dae5383

Browse files
authored
Merge pull request #57 from CyberSource/nov2020
November 2020 Release
2 parents cc8da37 + 6724c86 commit dae5383

File tree

78 files changed

+2069
-238
lines changed

Some content is hidden

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

78 files changed

+2069
-238
lines changed

.travis.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
language: python
33
python:
44
- "2.7"
5-
- "3.2"
6-
- "3.3"
7-
- "3.4"
85
- "3.5"
9-
#- "3.5-dev" # 3.5 development branch
10-
#- "nightly" # points to the latest development branch e.g. 3.6-dev
6+
- "3.6"
7+
- "3.7"
8+
- "3.8"
119
# command to install dependencies
12-
install: "pip install -r requirements.txt"
10+
install:
11+
- pip install -r requirements.txt
12+
- pip install -r test-requirements.txt
1313
# command to run tests
1414
script: nosetests

CyberSource/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
from .models.invoicing_v2_invoices_post201_response_order_information import InvoicingV2InvoicesPost201ResponseOrderInformation
7272
from .models.invoicing_v2_invoices_post201_response_order_information_amount_details import InvoicingV2InvoicesPost201ResponseOrderInformationAmountDetails
7373
from .models.invoicing_v2_invoices_post202_response import InvoicingV2InvoicesPost202Response
74+
from .models.invoicingv2invoice_settings_invoice_settings_information import Invoicingv2invoiceSettingsInvoiceSettingsInformation
7475
from .models.invoicingv2invoices_customer_information import Invoicingv2invoicesCustomerInformation
7576
from .models.invoicingv2invoices_invoice_information import Invoicingv2invoicesInvoiceInformation
7677
from .models.invoicingv2invoices_order_information import Invoicingv2invoicesOrderInformation
@@ -626,6 +627,7 @@
626627
from .models.tss_v2_transactions_get200_response_processing_information_japan_payment_options import TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions
627628
from .models.tss_v2_transactions_get200_response_processor_information import TssV2TransactionsGet200ResponseProcessorInformation
628629
from .models.tss_v2_transactions_get200_response_processor_information_electronic_verification_results import TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults
630+
from .models.tss_v2_transactions_get200_response_processor_information_multi_processor_routing import TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting
629631
from .models.tss_v2_transactions_get200_response_processor_information_processor import TssV2TransactionsGet200ResponseProcessorInformationProcessor
630632
from .models.tss_v2_transactions_get200_response_risk_information import TssV2TransactionsGet200ResponseRiskInformation
631633
from .models.tss_v2_transactions_get200_response_risk_information_profile import TssV2TransactionsGet200ResponseRiskInformationProfile

CyberSource/apis/customer_payment_instrument_api.py

+2
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ def patch_customers_payment_instrument_with_http_info(self, customer_token_id, p
571571
def post_customer_payment_instrument(self, customer_token_id, post_customer_payment_instrument_request, **kwargs):
572572
"""
573573
Create a Customer Payment Instrument
574+
Include an existing TMS Customer & Instrument Identifier token id in the request. * A Customer token can be created by calling: **POST */tms/v2/customers*** * An Instrument Identifier token can be created by calling: **POST */tms/v1/instrumentidentifiers***
574575
This method makes a synchronous HTTP request by default. To make an
575576
asynchronous HTTP request, please define a `callback` function
576577
to be invoked when receiving the response.
@@ -598,6 +599,7 @@ def post_customer_payment_instrument(self, customer_token_id, post_customer_paym
598599
def post_customer_payment_instrument_with_http_info(self, customer_token_id, post_customer_payment_instrument_request, **kwargs):
599600
"""
600601
Create a Customer Payment Instrument
602+
Include an existing TMS Customer & Instrument Identifier token id in the request. * A Customer token can be created by calling: **POST */tms/v2/customers*** * An Instrument Identifier token can be created by calling: **POST */tms/v1/instrumentidentifiers***
601603
This method makes a synchronous HTTP request by default. To make an
602604
asynchronous HTTP request, please define a `callback` function
603605
to be invoked when receiving the response.

CyberSource/apis/customer_shipping_address_api.py

+2
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ def patch_customers_shipping_address_with_http_info(self, customer_token_id, shi
571571
def post_customer_shipping_address(self, customer_token_id, post_customer_shipping_address_request, **kwargs):
572572
"""
573573
Create a Customer Shipping Address
574+
Include an existing TMS Customer token id in the request URI. * A Customer token can be created by calling: **POST */tms/v2/customers***
574575
This method makes a synchronous HTTP request by default. To make an
575576
asynchronous HTTP request, please define a `callback` function
576577
to be invoked when receiving the response.
@@ -598,6 +599,7 @@ def post_customer_shipping_address(self, customer_token_id, post_customer_shippi
598599
def post_customer_shipping_address_with_http_info(self, customer_token_id, post_customer_shipping_address_request, **kwargs):
599600
"""
600601
Create a Customer Shipping Address
602+
Include an existing TMS Customer token id in the request URI. * A Customer token can be created by calling: **POST */tms/v2/customers***
601603
This method makes a synchronous HTTP request by default. To make an
602604
asynchronous HTTP request, please define a `callback` function
603605
to be invoked when receiving the response.

CyberSource/apis/payment_instrument_api.py

+2
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ def patch_payment_instrument_with_http_info(self, payment_instrument_token_id, p
408408
def post_payment_instrument(self, post_payment_instrument_request, **kwargs):
409409
"""
410410
Create a Payment Instrument
411+
Include an existing TMS Instrument Identifier id in the request body. * An Instrument Identifier token can be created by calling: **POST */tms/v1/instrumentidentifiers***
411412
This method makes a synchronous HTTP request by default. To make an
412413
asynchronous HTTP request, please define a `callback` function
413414
to be invoked when receiving the response.
@@ -434,6 +435,7 @@ def post_payment_instrument(self, post_payment_instrument_request, **kwargs):
434435
def post_payment_instrument_with_http_info(self, post_payment_instrument_request, **kwargs):
435436
"""
436437
Create a Payment Instrument
438+
Include an existing TMS Instrument Identifier id in the request body. * An Instrument Identifier token can be created by calling: **POST */tms/v1/instrumentidentifiers***
437439
This method makes a synchronous HTTP request by default. To make an
438440
asynchronous HTTP request, please define a `callback` function
439441
to be invoked when receiving the response.

CyberSource/models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
from .invoicing_v2_invoices_post201_response_order_information import InvoicingV2InvoicesPost201ResponseOrderInformation
7272
from .invoicing_v2_invoices_post201_response_order_information_amount_details import InvoicingV2InvoicesPost201ResponseOrderInformationAmountDetails
7373
from .invoicing_v2_invoices_post202_response import InvoicingV2InvoicesPost202Response
74+
from .invoicingv2invoice_settings_invoice_settings_information import Invoicingv2invoiceSettingsInvoiceSettingsInformation
7475
from .invoicingv2invoices_customer_information import Invoicingv2invoicesCustomerInformation
7576
from .invoicingv2invoices_invoice_information import Invoicingv2invoicesInvoiceInformation
7677
from .invoicingv2invoices_order_information import Invoicingv2invoicesOrderInformation
@@ -626,6 +627,7 @@
626627
from .tss_v2_transactions_get200_response_processing_information_japan_payment_options import TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions
627628
from .tss_v2_transactions_get200_response_processor_information import TssV2TransactionsGet200ResponseProcessorInformation
628629
from .tss_v2_transactions_get200_response_processor_information_electronic_verification_results import TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults
630+
from .tss_v2_transactions_get200_response_processor_information_multi_processor_routing import TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting
629631
from .tss_v2_transactions_get200_response_processor_information_processor import TssV2TransactionsGet200ResponseProcessorInformationProcessor
630632
from .tss_v2_transactions_get200_response_risk_information import TssV2TransactionsGet200ResponseRiskInformation
631633
from .tss_v2_transactions_get200_response_risk_information_profile import TssV2TransactionsGet200ResponseRiskInformationProfile

CyberSource/models/invoice_settings_request.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class InvoiceSettingsRequest(object):
3131
and the value is json key in definition.
3232
"""
3333
swagger_types = {
34-
'invoice_settings_information': 'InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation'
34+
'invoice_settings_information': 'Invoicingv2invoiceSettingsInvoiceSettingsInformation'
3535
}
3636

3737
attribute_map = {
@@ -54,7 +54,7 @@ def invoice_settings_information(self):
5454
Gets the invoice_settings_information of this InvoiceSettingsRequest.
5555
5656
:return: The invoice_settings_information of this InvoiceSettingsRequest.
57-
:rtype: InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation
57+
:rtype: Invoicingv2invoiceSettingsInvoiceSettingsInformation
5858
"""
5959
return self._invoice_settings_information
6060

@@ -64,7 +64,7 @@ def invoice_settings_information(self, invoice_settings_information):
6464
Sets the invoice_settings_information of this InvoiceSettingsRequest.
6565
6666
:param invoice_settings_information: The invoice_settings_information of this InvoiceSettingsRequest.
67-
:type: InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation
67+
:type: Invoicingv2invoiceSettingsInvoiceSettingsInformation
6868
"""
6969

7070
self._invoice_settings_information = invoice_settings_information

CyberSource/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.py

+33-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation(object)
3737
'enable_reminders': 'bool',
3838
'header_style': 'InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle',
3939
'delivery_language': 'str',
40-
'default_currency_code': 'str'
40+
'default_currency_code': 'str',
41+
'payer_authentication3_ds_version': 'str'
4142
}
4243

4344
attribute_map = {
@@ -47,10 +48,11 @@ class InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation(object)
4748
'enable_reminders': 'enableReminders',
4849
'header_style': 'headerStyle',
4950
'delivery_language': 'deliveryLanguage',
50-
'default_currency_code': 'defaultCurrencyCode'
51+
'default_currency_code': 'defaultCurrencyCode',
52+
'payer_authentication3_ds_version': 'payerAuthentication3DSVersion'
5153
}
5254

53-
def __init__(self, merchant_logo=None, merchant_display_name=None, custom_email_message=None, enable_reminders=None, header_style=None, delivery_language=None, default_currency_code=None):
55+
def __init__(self, merchant_logo=None, merchant_display_name=None, custom_email_message=None, enable_reminders=None, header_style=None, delivery_language=None, default_currency_code=None, payer_authentication3_ds_version=None):
5456
"""
5557
InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation - a model defined in Swagger
5658
"""
@@ -62,6 +64,7 @@ def __init__(self, merchant_logo=None, merchant_display_name=None, custom_email_
6264
self._header_style = None
6365
self._delivery_language = None
6466
self._default_currency_code = None
67+
self._payer_authentication3_ds_version = None
6568

6669
if merchant_logo is not None:
6770
self.merchant_logo = merchant_logo
@@ -77,6 +80,8 @@ def __init__(self, merchant_logo=None, merchant_display_name=None, custom_email_
7780
self.delivery_language = delivery_language
7881
if default_currency_code is not None:
7982
self.default_currency_code = default_currency_code
83+
if payer_authentication3_ds_version is not None:
84+
self.payer_authentication3_ds_version = payer_authentication3_ds_version
8085

8186
@property
8287
def merchant_logo(self):
@@ -247,6 +252,31 @@ def default_currency_code(self, default_currency_code):
247252

248253
self._default_currency_code = default_currency_code
249254

255+
@property
256+
def payer_authentication3_ds_version(self):
257+
"""
258+
Gets the payer_authentication3_ds_version of this InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.
259+
The 3D Secure payer authentication version or status for a merchant's invoice payments. Possible values are: - `1` - `2` - `None` - `Disabled`
260+
261+
:return: The payer_authentication3_ds_version of this InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.
262+
:rtype: str
263+
"""
264+
return self._payer_authentication3_ds_version
265+
266+
@payer_authentication3_ds_version.setter
267+
def payer_authentication3_ds_version(self, payer_authentication3_ds_version):
268+
"""
269+
Sets the payer_authentication3_ds_version of this InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.
270+
The 3D Secure payer authentication version or status for a merchant's invoice payments. Possible values are: - `1` - `2` - `None` - `Disabled`
271+
272+
:param payer_authentication3_ds_version: The payer_authentication3_ds_version of this InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.
273+
:type: str
274+
"""
275+
if payer_authentication3_ds_version is not None and len(payer_authentication3_ds_version) > 8:
276+
raise ValueError("Invalid value for `payer_authentication3_ds_version`, length must be less than or equal to `8`")
277+
278+
self._payer_authentication3_ds_version = payer_authentication3_ds_version
279+
250280
def to_dict(self):
251281
"""
252282
Returns the model properties as a dict

0 commit comments

Comments
 (0)