Source code for ingenico.connect.sdk.domain.product.definitions.payment_product863_specific_data
# -*- 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 PaymentProduct863SpecificData(DataObject):
__integration_types = None
@property
def integration_types(self):
"""
| The WeChat Pay integration types that can be used in the current payment context. Possible values:
* desktopQRCode - used on desktops, the customer opens the WeChat app by scanning a QR code.
* urlIntent - used in mobile apps or on mobile web pages, the customer opens the WeChat app using a URL intent.
* nativeInApp - used in mobile apps that use the WeChat Pay SDK.
Type: list[str]
"""
return self.__integration_types
@integration_types.setter
def integration_types(self, value):
self.__integration_types = value
[docs] def to_dictionary(self):
dictionary = super(PaymentProduct863SpecificData, self).to_dictionary()
if self.integration_types is not None:
dictionary['integrationTypes'] = []
for element in self.integration_types:
if element is not None:
dictionary['integrationTypes'].append(element)
return dictionary
[docs] def from_dictionary(self, dictionary):
super(PaymentProduct863SpecificData, self).from_dictionary(dictionary)
if 'integrationTypes' in dictionary:
if not isinstance(dictionary['integrationTypes'], list):
raise TypeError('value \'{}\' is not a list'.format(dictionary['integrationTypes']))
self.integration_types = []
for element in dictionary['integrationTypes']:
self.integration_types.append(element)
return self