Source code for ingenico.connect.sdk.domain.services.convert_amount

# -*- 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 ConvertAmount(DataObject): __converted_amount = None @property def converted_amount(self): """ | Converted amount in cents and having 2 decimal Type: long """ return self.__converted_amount @converted_amount.setter def converted_amount(self, value): self.__converted_amount = value
[docs] def to_dictionary(self): dictionary = super(ConvertAmount, self).to_dictionary() if self.converted_amount is not None: dictionary['convertedAmount'] = self.converted_amount return dictionary
[docs] def from_dictionary(self, dictionary): super(ConvertAmount, self).from_dictionary(dictionary) if 'convertedAmount' in dictionary: self.converted_amount = dictionary['convertedAmount'] return self