Source code for worldline.connect.sdk.v1.domain.approve_payout_request
# -*- 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 ApprovePayoutRequest(DataObject):
__date_payout: Optional[str] = None
@property
def date_payout(self) -> Optional[str]:
"""
| The desired date for the payout
| Format: YYYYMMDD
Type: str
"""
return self.__date_payout
@date_payout.setter
def date_payout(self, value: Optional[str]) -> None:
self.__date_payout = value
[docs]
def to_dictionary(self) -> dict:
dictionary = super(ApprovePayoutRequest, self).to_dictionary()
if self.date_payout is not None:
dictionary['datePayout'] = self.date_payout
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'ApprovePayoutRequest':
super(ApprovePayoutRequest, self).from_dictionary(dictionary)
if 'datePayout' in dictionary:
self.date_payout = dictionary['datePayout']
return self