Source code for ingenico.connect.sdk.domain.refund.approve_refund_request

# -*- 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 ApproveRefundRequest(DataObject): __amount = None @property def amount(self): """ | Refund amount to be approved Type: long """ return self.__amount @amount.setter def amount(self, value): self.__amount = value
[docs] def to_dictionary(self): dictionary = super(ApproveRefundRequest, self).to_dictionary() if self.amount is not None: dictionary['amount'] = self.amount return dictionary
[docs] def from_dictionary(self, dictionary): super(ApproveRefundRequest, self).from_dictionary(dictionary) if 'amount' in dictionary: self.amount = dictionary['amount'] return self