Source code for worldline.connect.sdk.v1.domain.automatic_reload_billing_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.v1.domain.base_billing_details import BaseBillingDetails


[docs] class AutomaticReloadBillingDetails(BaseBillingDetails): """ | An object that contains the reload amount and balance threshold for the automatic reload payment. """ __automatic_reload_payment_threshold_amount: Optional[int] = None @property def automatic_reload_payment_threshold_amount(self) -> Optional[int]: """ | The balance an account reaches for the automatic reload amount to be applied. Type: int """ return self.__automatic_reload_payment_threshold_amount @automatic_reload_payment_threshold_amount.setter def automatic_reload_payment_threshold_amount(self, value: Optional[int]) -> None: self.__automatic_reload_payment_threshold_amount = value
[docs] def to_dictionary(self) -> dict: dictionary = super(AutomaticReloadBillingDetails, self).to_dictionary() if self.automatic_reload_payment_threshold_amount is not None: dictionary['automaticReloadPaymentThresholdAmount'] = self.automatic_reload_payment_threshold_amount return dictionary
[docs] def from_dictionary(self, dictionary: dict) -> 'AutomaticReloadBillingDetails': super(AutomaticReloadBillingDetails, self).from_dictionary(dictionary) if 'automaticReloadPaymentThresholdAmount' in dictionary: self.automatic_reload_payment_threshold_amount = dictionary['automaticReloadPaymentThresholdAmount'] return self