Source code for worldline.acquiring.sdk.v1.domain.merchant_root_id_item

# -*- coding: utf-8 -*-
#
# This file was automatically generated.
#
from typing import Optional

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


[docs] class MerchantRootIdItem(DataObject): __acquirer_id: Optional[str] = None __merchant_root_id: Optional[str] = None @property def acquirer_id(self) -> Optional[str]: """ | The unique identifier of the acquirer. Type: str """ return self.__acquirer_id @acquirer_id.setter def acquirer_id(self, value: Optional[str]) -> None: self.__acquirer_id = value @property def merchant_root_id(self) -> Optional[str]: """ | The root identifier of the merchant, which is the same for all sub-merchants under the same parent company. Type: str """ return self.__merchant_root_id @merchant_root_id.setter def merchant_root_id(self, value: Optional[str]) -> None: self.__merchant_root_id = value
[docs] def to_dictionary(self) -> dict: dictionary = super(MerchantRootIdItem, self).to_dictionary() if self.acquirer_id is not None: dictionary['acquirerId'] = self.acquirer_id if self.merchant_root_id is not None: dictionary['merchantRootId'] = self.merchant_root_id return dictionary
[docs] def from_dictionary(self, dictionary: dict) -> 'MerchantRootIdItem': super(MerchantRootIdItem, self).from_dictionary(dictionary) if 'acquirerId' in dictionary: self.acquirer_id = dictionary['acquirerId'] if 'merchantRootId' in dictionary: self.merchant_root_id = dictionary['merchantRootId'] return self