Skip to content

Commit 8c42daf

Browse files
author
WorldlineConnect
committed
Release 4.1.0.
1 parent bfc7cf7 commit 8c42daf

File tree

6 files changed

+59
-5
lines changed

6 files changed

+59
-5
lines changed

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.1'
65+
version = '4.1.0'
6666
# The full version, including alpha/beta/rc tags.
67-
release = '4.0.1'
67+
release = '4.1.0'
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.1'
141+
# html_title = 'Python SDK v4.1.0'
142142

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_collector():
2121

2222
setup(
2323
name="connect-sdk-python3",
24-
version="4.0.1",
24+
version="4.1.0",
2525
author="Worldline Global Collect",
2626
author_email="github.connect@worldline.com",
2727
description="SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API",

worldline/connect/sdk/communication/metadata_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MetadataProvider(object):
2222
"""
2323
Provides meta info about the server.
2424
"""
25-
__sdk_version = "4.0.1"
25+
__sdk_version = "4.1.0"
2626
__server_meta_info_header = "X-GCS-ServerMetaInfo"
2727
__prohibited_headers = tuple(sorted([__server_meta_info_header, "X-GCS-Idempotence-Key", "Date", "Content-Type", "Authorization"],
2828
key=str.lower))

worldline/connect/sdk/v1/domain/card_payment_method_specific_output.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class CardPaymentMethodSpecificOutput(AbstractPaymentMethodSpecificOutput):
2020
__card: Optional[CardEssentials] = None
2121
__fraud_results: Optional[CardFraudResults] = None
2222
__initial_scheme_transaction_id: Optional[str] = None
23+
__network_token_used: Optional[bool] = None
2324
__scheme_transaction_id: Optional[str] = None
2425
__three_d_secure_results: Optional[ThreeDSecureResults] = None
2526
__token: Optional[str] = None
@@ -77,6 +78,19 @@ def initial_scheme_transaction_id(self) -> Optional[str]:
7778
def initial_scheme_transaction_id(self, value: Optional[str]) -> None:
7879
self.__initial_scheme_transaction_id = value
7980

81+
@property
82+
def network_token_used(self) -> Optional[bool]:
83+
"""
84+
| Indicates if a network token was used during the payment.
85+
86+
Type: bool
87+
"""
88+
return self.__network_token_used
89+
90+
@network_token_used.setter
91+
def network_token_used(self, value: Optional[bool]) -> None:
92+
self.__network_token_used = value
93+
8094
@property
8195
def scheme_transaction_id(self) -> Optional[str]:
8296
"""
@@ -127,6 +141,8 @@ def to_dictionary(self) -> dict:
127141
dictionary['fraudResults'] = self.fraud_results.to_dictionary()
128142
if self.initial_scheme_transaction_id is not None:
129143
dictionary['initialSchemeTransactionId'] = self.initial_scheme_transaction_id
144+
if self.network_token_used is not None:
145+
dictionary['networkTokenUsed'] = self.network_token_used
130146
if self.scheme_transaction_id is not None:
131147
dictionary['schemeTransactionId'] = self.scheme_transaction_id
132148
if self.three_d_secure_results is not None:
@@ -151,6 +167,8 @@ def from_dictionary(self, dictionary: dict) -> 'CardPaymentMethodSpecificOutput'
151167
self.fraud_results = value.from_dictionary(dictionary['fraudResults'])
152168
if 'initialSchemeTransactionId' in dictionary:
153169
self.initial_scheme_transaction_id = dictionary['initialSchemeTransactionId']
170+
if 'networkTokenUsed' in dictionary:
171+
self.network_token_used = dictionary['networkTokenUsed']
154172
if 'schemeTransactionId' in dictionary:
155173
self.scheme_transaction_id = dictionary['schemeTransactionId']
156174
if 'threeDSecureResults' in dictionary:

worldline/connect/sdk/v1/domain/order_line_details.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class OrderLineDetails(DataObject):
1313
__discount_amount: Optional[int] = None
1414
__google_product_category_id: Optional[int] = None
1515
__line_amount_total: Optional[int] = None
16+
__naics_commodity_code: Optional[str] = None
1617
__product_category: Optional[str] = None
1718
__product_code: Optional[str] = None
1819
__product_name: Optional[str] = None
@@ -62,6 +63,19 @@ def line_amount_total(self) -> Optional[int]:
6263
def line_amount_total(self, value: Optional[int]) -> None:
6364
self.__line_amount_total = value
6465

66+
@property
67+
def naics_commodity_code(self) -> Optional[str]:
68+
"""
69+
| The UNSPC commodity code of the item.
70+
71+
Type: str
72+
"""
73+
return self.__naics_commodity_code
74+
75+
@naics_commodity_code.setter
76+
def naics_commodity_code(self, value: Optional[str]) -> None:
77+
self.__naics_commodity_code = value
78+
6579
@property
6680
def product_category(self) -> Optional[str]:
6781
"""
@@ -190,6 +204,8 @@ def to_dictionary(self) -> dict:
190204
dictionary['googleProductCategoryId'] = self.google_product_category_id
191205
if self.line_amount_total is not None:
192206
dictionary['lineAmountTotal'] = self.line_amount_total
207+
if self.naics_commodity_code is not None:
208+
dictionary['naicsCommodityCode'] = self.naics_commodity_code
193209
if self.product_category is not None:
194210
dictionary['productCategory'] = self.product_category
195211
if self.product_code is not None:
@@ -218,6 +234,8 @@ def from_dictionary(self, dictionary: dict) -> 'OrderLineDetails':
218234
self.google_product_category_id = dictionary['googleProductCategoryId']
219235
if 'lineAmountTotal' in dictionary:
220236
self.line_amount_total = dictionary['lineAmountTotal']
237+
if 'naicsCommodityCode' in dictionary:
238+
self.naics_commodity_code = dictionary['naicsCommodityCode']
221239
if 'productCategory' in dictionary:
222240
self.product_category = dictionary['productCategory']
223241
if 'productCode' in dictionary:

worldline/connect/sdk/v1/domain/shipping.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Shipping(DataObject):
2020
__email_address: Optional[str] = None
2121
__first_usage_date: Optional[str] = None
2222
__is_first_usage: Optional[bool] = None
23+
__shipped_from_zip: Optional[str] = None
2324
__tracking_number: Optional[str] = None
2425
__type: Optional[str] = None
2526

@@ -113,6 +114,19 @@ def is_first_usage(self) -> Optional[bool]:
113114
def is_first_usage(self, value: Optional[bool]) -> None:
114115
self.__is_first_usage = value
115116

117+
@property
118+
def shipped_from_zip(self) -> Optional[str]:
119+
"""
120+
| The zip/postal code of the location from which the goods were shipped.
121+
122+
Type: str
123+
"""
124+
return self.__shipped_from_zip
125+
126+
@shipped_from_zip.setter
127+
def shipped_from_zip(self, value: Optional[str]) -> None:
128+
self.__shipped_from_zip = value
129+
116130
@property
117131
def tracking_number(self) -> Optional[str]:
118132
"""
@@ -162,6 +176,8 @@ def to_dictionary(self) -> dict:
162176
dictionary['firstUsageDate'] = self.first_usage_date
163177
if self.is_first_usage is not None:
164178
dictionary['isFirstUsage'] = self.is_first_usage
179+
if self.shipped_from_zip is not None:
180+
dictionary['shippedFromZip'] = self.shipped_from_zip
165181
if self.tracking_number is not None:
166182
dictionary['trackingNumber'] = self.tracking_number
167183
if self.type is not None:
@@ -185,6 +201,8 @@ def from_dictionary(self, dictionary: dict) -> 'Shipping':
185201
self.first_usage_date = dictionary['firstUsageDate']
186202
if 'isFirstUsage' in dictionary:
187203
self.is_first_usage = dictionary['isFirstUsage']
204+
if 'shippedFromZip' in dictionary:
205+
self.shipped_from_zip = dictionary['shippedFromZip']
188206
if 'trackingNumber' in dictionary:
189207
self.tracking_number = dictionary['trackingNumber']
190208
if 'type' in dictionary:

0 commit comments

Comments
 (0)