Source code for ingenico.connect.sdk.domain.payment.definitions.abstract_payment_method_specific_output
# -*- 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 AbstractPaymentMethodSpecificOutput(DataObject):
__payment_product_id = None
@property
def payment_product_id(self):
"""
| Payment product identifier
| Please see payment products <https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
"""
return self.__payment_product_id
@payment_product_id.setter
def payment_product_id(self, value):
self.__payment_product_id = value
[docs]
def to_dictionary(self):
dictionary = super(AbstractPaymentMethodSpecificOutput, self).to_dictionary()
if self.payment_product_id is not None:
dictionary['paymentProductId'] = self.payment_product_id
return dictionary
[docs]
def from_dictionary(self, dictionary):
super(AbstractPaymentMethodSpecificOutput, self).from_dictionary(dictionary)
if 'paymentProductId' in dictionary:
self.payment_product_id = dictionary['paymentProductId']
return self