Skip to content

Commit

Permalink
Release 4.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldlineConnect committed Jun 4, 2024
1 parent 436003c commit f99c0dc
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 5 deletions.
6 changes: 3 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
# built documents.
#
# The short X.Y version.
version = u'4.0.1'
version = u'4.1.0'
# The full version, including alpha/beta/rc tags.
release = u'4.0.1'
release = u'4.1.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -138,7 +138,7 @@
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
# html_title = u'Python SDK v4.0.1'
# html_title = u'Python SDK v4.1.0'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_collector():

setup(
name="connect-sdk-python2",
version="4.0.1",
version="4.1.0",
author="Worldline Global Collect",
author_email="[email protected]",
description="SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API",
Expand Down
2 changes: 1 addition & 1 deletion worldline/connect/sdk/communication/metadata_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MetadataProvider(object):
"""
Provides meta info about the server.
"""
__sdk_version = "4.0.1"
__sdk_version = "4.1.0"
__server_meta_info_header = "X-GCS-ServerMetaInfo"
__prohibited_headers = tuple(sorted([__server_meta_info_header, "X-GCS-Idempotence-Key", "Date", "Content-Type", "Authorization"],
key=str.lower))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class CardPaymentMethodSpecificOutput(AbstractPaymentMethodSpecificOutput):
__card = None
__fraud_results = None
__initial_scheme_transaction_id = None
__network_token_used = None
__scheme_transaction_id = None
__three_d_secure_results = None
__token = None
Expand Down Expand Up @@ -75,6 +76,19 @@ def initial_scheme_transaction_id(self):
def initial_scheme_transaction_id(self, value):
self.__initial_scheme_transaction_id = value

@property
def network_token_used(self):
"""
| Indicates if a network token was used during the payment.
Type: bool
"""
return self.__network_token_used

@network_token_used.setter
def network_token_used(self, value):
self.__network_token_used = value

@property
def scheme_transaction_id(self):
"""
Expand Down Expand Up @@ -125,6 +139,8 @@ def to_dictionary(self):
dictionary['fraudResults'] = self.fraud_results.to_dictionary()
if self.initial_scheme_transaction_id is not None:
dictionary['initialSchemeTransactionId'] = self.initial_scheme_transaction_id
if self.network_token_used is not None:
dictionary['networkTokenUsed'] = self.network_token_used
if self.scheme_transaction_id is not None:
dictionary['schemeTransactionId'] = self.scheme_transaction_id
if self.three_d_secure_results is not None:
Expand All @@ -149,6 +165,8 @@ def from_dictionary(self, dictionary):
self.fraud_results = value.from_dictionary(dictionary['fraudResults'])
if 'initialSchemeTransactionId' in dictionary:
self.initial_scheme_transaction_id = dictionary['initialSchemeTransactionId']
if 'networkTokenUsed' in dictionary:
self.network_token_used = dictionary['networkTokenUsed']
if 'schemeTransactionId' in dictionary:
self.scheme_transaction_id = dictionary['schemeTransactionId']
if 'threeDSecureResults' in dictionary:
Expand Down
18 changes: 18 additions & 0 deletions worldline/connect/sdk/v1/domain/order_line_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class OrderLineDetails(DataObject):
__discount_amount = None
__google_product_category_id = None
__line_amount_total = None
__naics_commodity_code = None
__product_category = None
__product_code = None
__product_name = None
Expand Down Expand Up @@ -60,6 +61,19 @@ def line_amount_total(self):
def line_amount_total(self, value):
self.__line_amount_total = value

@property
def naics_commodity_code(self):
"""
| The UNSPC commodity code of the item.
Type: str
"""
return self.__naics_commodity_code

@naics_commodity_code.setter
def naics_commodity_code(self, value):
self.__naics_commodity_code = value

@property
def product_category(self):
"""
Expand Down Expand Up @@ -188,6 +202,8 @@ def to_dictionary(self):
dictionary['googleProductCategoryId'] = self.google_product_category_id
if self.line_amount_total is not None:
dictionary['lineAmountTotal'] = self.line_amount_total
if self.naics_commodity_code is not None:
dictionary['naicsCommodityCode'] = self.naics_commodity_code
if self.product_category is not None:
dictionary['productCategory'] = self.product_category
if self.product_code is not None:
Expand Down Expand Up @@ -216,6 +232,8 @@ def from_dictionary(self, dictionary):
self.google_product_category_id = dictionary['googleProductCategoryId']
if 'lineAmountTotal' in dictionary:
self.line_amount_total = dictionary['lineAmountTotal']
if 'naicsCommodityCode' in dictionary:
self.naics_commodity_code = dictionary['naicsCommodityCode']
if 'productCategory' in dictionary:
self.product_category = dictionary['productCategory']
if 'productCode' in dictionary:
Expand Down
18 changes: 18 additions & 0 deletions worldline/connect/sdk/v1/domain/shipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Shipping(DataObject):
__email_address = None
__first_usage_date = None
__is_first_usage = None
__shipped_from_zip = None
__tracking_number = None
__type = None

Expand Down Expand Up @@ -111,6 +112,19 @@ def is_first_usage(self):
def is_first_usage(self, value):
self.__is_first_usage = value

@property
def shipped_from_zip(self):
"""
| The zip/postal code of the location from which the goods were shipped.
Type: str
"""
return self.__shipped_from_zip

@shipped_from_zip.setter
def shipped_from_zip(self, value):
self.__shipped_from_zip = value

@property
def tracking_number(self):
"""
Expand Down Expand Up @@ -160,6 +174,8 @@ def to_dictionary(self):
dictionary['firstUsageDate'] = self.first_usage_date
if self.is_first_usage is not None:
dictionary['isFirstUsage'] = self.is_first_usage
if self.shipped_from_zip is not None:
dictionary['shippedFromZip'] = self.shipped_from_zip
if self.tracking_number is not None:
dictionary['trackingNumber'] = self.tracking_number
if self.type is not None:
Expand All @@ -183,6 +199,8 @@ def from_dictionary(self, dictionary):
self.first_usage_date = dictionary['firstUsageDate']
if 'isFirstUsage' in dictionary:
self.is_first_usage = dictionary['isFirstUsage']
if 'shippedFromZip' in dictionary:
self.shipped_from_zip = dictionary['shippedFromZip']
if 'trackingNumber' in dictionary:
self.tracking_number = dictionary['trackingNumber']
if 'type' in dictionary:
Expand Down

0 comments on commit f99c0dc

Please sign in to comment.