Source code for ingenico.connect.sdk.domain.definitions.fraud_fields_shipping_details

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/
#
from ingenico.connect.sdk.data_object import DataObject


[docs] class FraudFieldsShippingDetails(DataObject): """ Deprecated; No replacement """ __method_details = None __method_speed = None __method_type = None @property def method_details(self): """ | Details regarding the shipping method Type: str Deprecated; No replacement """ return self.__method_details @method_details.setter def method_details(self, value): self.__method_details = value @property def method_speed(self): """ | Shipping method speed indicator Type: int Deprecated; No replacement """ return self.__method_speed @method_speed.setter def method_speed(self, value): self.__method_speed = value @property def method_type(self): """ | Shipping method type indicator Type: int Deprecated; No replacement """ return self.__method_type @method_type.setter def method_type(self, value): self.__method_type = value
[docs] def to_dictionary(self): 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): 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