Source code for worldline.connect.sdk.v1.domain.dispute_creation_detail
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from typing import Optional
from worldline.connect.sdk.domain.data_object import DataObject
[docs]
class DisputeCreationDetail(DataObject):
__dispute_creation_date: Optional[str] = None
__dispute_originator: Optional[str] = None
__user_name: Optional[str] = None
@property
def dispute_creation_date(self) -> Optional[str]:
"""
| The date and time of creation of this dispute, in yyyyMMddHHmmss format.
Type: str
"""
return self.__dispute_creation_date
@dispute_creation_date.setter
def dispute_creation_date(self, value: Optional[str]) -> None:
self.__dispute_creation_date = value
@property
def dispute_originator(self) -> Optional[str]:
"""
| The originator of this dispute, which is either Worldline or you as our client.
Type: str
"""
return self.__dispute_originator
@dispute_originator.setter
def dispute_originator(self, value: Optional[str]) -> None:
self.__dispute_originator = value
@property
def user_name(self) -> Optional[str]:
"""
| The user account name of the dispute creator.
Type: str
"""
return self.__user_name
@user_name.setter
def user_name(self, value: Optional[str]) -> None:
self.__user_name = value
[docs]
def to_dictionary(self) -> dict:
dictionary = super(DisputeCreationDetail, self).to_dictionary()
if self.dispute_creation_date is not None:
dictionary['disputeCreationDate'] = self.dispute_creation_date
if self.dispute_originator is not None:
dictionary['disputeOriginator'] = self.dispute_originator
if self.user_name is not None:
dictionary['userName'] = self.user_name
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'DisputeCreationDetail':
super(DisputeCreationDetail, self).from_dictionary(dictionary)
if 'disputeCreationDate' in dictionary:
self.dispute_creation_date = dictionary['disputeCreationDate']
if 'disputeOriginator' in dictionary:
self.dispute_originator = dictionary['disputeOriginator']
if 'userName' in dictionary:
self.user_name = dictionary['userName']
return self