Source code for worldline.connect.sdk.v1.domain.fraud_fields_shipping_details
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from typing import Optional
from worldline.connect.sdk.domain.data_object import DataObject
[docs]
class FraudFieldsShippingDetails(DataObject):
"""
Deprecated; No replacement
"""
__method_details: Optional[str] = None
__method_speed: Optional[int] = None
__method_type: Optional[int] = None
@property
def method_details(self) -> Optional[str]:
"""
| Details regarding the shipping method
Type: str
Deprecated; No replacement
"""
return self.__method_details
@method_details.setter
def method_details(self, value: Optional[str]) -> None:
self.__method_details = value
@property
def method_speed(self) -> Optional[int]:
"""
| Shipping method speed indicator
Type: int
Deprecated; No replacement
"""
return self.__method_speed
@method_speed.setter
def method_speed(self, value: Optional[int]) -> None:
self.__method_speed = value
@property
def method_type(self) -> Optional[int]:
"""
| Shipping method type indicator
Type: int
Deprecated; No replacement
"""
return self.__method_type
@method_type.setter
def method_type(self, value: Optional[int]) -> None:
self.__method_type = value
[docs]
def to_dictionary(self) -> dict:
dictionary = super(FraudFieldsShippingDetails, self).to_dictionary()
if self.method_details is not None:
dictionary['methodDetails'] = self.method_details
if self.method_speed is not None:
dictionary['methodSpeed'] = self.method_speed
if self.method_type is not None:
dictionary['methodType'] = self.method_type
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'FraudFieldsShippingDetails':
super(FraudFieldsShippingDetails, self).from_dictionary(dictionary)
if 'methodDetails' in dictionary:
self.method_details = dictionary['methodDetails']
if 'methodSpeed' in dictionary:
self.method_speed = dictionary['methodSpeed']
if 'methodType' in dictionary:
self.method_type = dictionary['methodType']
return self