Source code for worldline.connect.sdk.v1.domain.payment_product863_specific_data

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from typing import List, Optional

from worldline.connect.sdk.domain.data_object import DataObject


[docs] class PaymentProduct863SpecificData(DataObject): __integration_types: Optional[List[str]] = None @property def integration_types(self) -> Optional[List[str]]: """ | 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: Optional[List[str]]) -> None: self.__integration_types = value
[docs] def to_dictionary(self) -> dict: 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: dict) -> 'PaymentProduct863SpecificData': 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