Source code for worldline.connect.sdk.v1.domain.mobile_payment_data
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from worldline.connect.sdk.domain.data_object import DataObject
[docs]class MobilePaymentData(DataObject):
__dpan = None
__expiry_date = None
@property
def dpan(self):
"""
| The obfuscated DPAN. Only the last four digits are visible.
Type: str
"""
return self.__dpan
@dpan.setter
def dpan(self, value):
self.__dpan = value
@property
def expiry_date(self):
"""
| Expiry date of the tokenized card
| Format: MMYY
Type: str
"""
return self.__expiry_date
@expiry_date.setter
def expiry_date(self, value):
self.__expiry_date = value
[docs] def to_dictionary(self):
dictionary = super(MobilePaymentData, self).to_dictionary()
if self.dpan is not None:
dictionary['dpan'] = self.dpan
if self.expiry_date is not None:
dictionary['expiryDate'] = self.expiry_date
return dictionary
[docs] def from_dictionary(self, dictionary):
super(MobilePaymentData, self).from_dictionary(dictionary)
if 'dpan' in dictionary:
self.dpan = dictionary['dpan']
if 'expiryDate' in dictionary:
self.expiry_date = dictionary['expiryDate']
return self