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

# -*- 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 Frequency(DataObject): """ | The object containing the frequency and interval between recurring payments. """ __interval = None __interval_frequency = None @property def interval(self): """ | The interval between recurring payments specified as days, weeks, quarters, or years. Type: str """ return self.__interval @interval.setter def interval(self, value): self.__interval = value @property def interval_frequency(self): """ | The number of days, weeks, months, quarters, or years between recurring payments. Type: int """ return self.__interval_frequency @interval_frequency.setter def interval_frequency(self, value): self.__interval_frequency = value
[docs] def to_dictionary(self): dictionary = super(Frequency, self).to_dictionary() if self.interval is not None: dictionary['interval'] = self.interval if self.interval_frequency is not None: dictionary['intervalFrequency'] = self.interval_frequency return dictionary
[docs] def from_dictionary(self, dictionary): super(Frequency, self).from_dictionary(dictionary) if 'interval' in dictionary: self.interval = dictionary['interval'] if 'intervalFrequency' in dictionary: self.interval_frequency = dictionary['intervalFrequency'] return self