Source code for ingenico.connect.sdk.domain.product.definitions.payment_product_field_tooltip
# -*- 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 PaymentProductFieldTooltip(DataObject):
__image = None
__label = None
@property
def image(self):
"""
| Relative URL that can be used to retrieve an image for the tooltip image. You can use our server-side resize functionality by appending '?size={{width}}x{{height}}' to the full URL, where width and height are specified in pixels. The resized image will always keep its correct aspect ratio.
Type: str
"""
return self.__image
@image.setter
def image(self, value):
self.__image = value
@property
def label(self):
"""
| A text explaining the field in more detail. This is meant to be used for displaying to the customer.
Type: str
"""
return self.__label
@label.setter
def label(self, value):
self.__label = value
[docs] def to_dictionary(self):
dictionary = super(PaymentProductFieldTooltip, self).to_dictionary()
if self.image is not None:
dictionary['image'] = self.image
if self.label is not None:
dictionary['label'] = self.label
return dictionary
[docs] def from_dictionary(self, dictionary):
super(PaymentProductFieldTooltip, self).from_dictionary(dictionary)
if 'image' in dictionary:
self.image = dictionary['image']
if 'label' in dictionary:
self.label = dictionary['label']
return self