Source code for worldline.connect.sdk.v1.domain.convert_amount

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from worldline.connect.sdk.domain.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