Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions com/alipay/ams/api/model/fund_move_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def __init__(self):

self.__memo = None # type: str
self.__reference_transaction_id = None # type: str
self.__payer_asset_id = None # type: str
self.__beneficiary_asset_id = None # type: str


@property
Expand All @@ -30,6 +32,26 @@ def reference_transaction_id(self):
@reference_transaction_id.setter
def reference_transaction_id(self, value):
self.__reference_transaction_id = value
@property
def payer_asset_id(self):
"""Gets the payer_asset_id of this FundMoveDetail.

"""
return self.__payer_asset_id

@payer_asset_id.setter
def payer_asset_id(self, value):
self.__payer_asset_id = value
@property
def beneficiary_asset_id(self):
"""Gets the beneficiary_asset_id of this FundMoveDetail.

"""
return self.__beneficiary_asset_id

@beneficiary_asset_id.setter
def beneficiary_asset_id(self, value):
self.__beneficiary_asset_id = value



Expand All @@ -40,6 +62,10 @@ def to_ams_dict(self):
params['memo'] = self.memo
if hasattr(self, "reference_transaction_id") and self.reference_transaction_id is not None:
params['referenceTransactionId'] = self.reference_transaction_id
if hasattr(self, "payer_asset_id") and self.payer_asset_id is not None:
params['payerAssetId'] = self.payer_asset_id
if hasattr(self, "beneficiary_asset_id") and self.beneficiary_asset_id is not None:
params['beneficiaryAssetId'] = self.beneficiary_asset_id
return params


Expand All @@ -50,3 +76,7 @@ def parse_rsp_body(self, response_body):
self.__memo = response_body['memo']
if 'referenceTransactionId' in response_body:
self.__reference_transaction_id = response_body['referenceTransactionId']
if 'payerAssetId' in response_body:
self.__payer_asset_id = response_body['payerAssetId']
if 'beneficiaryAssetId' in response_body:
self.__beneficiary_asset_id = response_body['beneficiaryAssetId']
30 changes: 30 additions & 0 deletions com/alipay/ams/api/model/statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def __init__(self):

self.__statement_id = None # type: str
self.__fund_move_detail = None # type: FundMoveDetail
self.__transaction_type = None # type: str
self.__beneficiary_asset_id = None # type: str


@property
Expand All @@ -31,6 +33,26 @@ def fund_move_detail(self):
@fund_move_detail.setter
def fund_move_detail(self, value):
self.__fund_move_detail = value
@property
def transaction_type(self):
"""Gets the transaction_type of this Statement.

"""
return self.__transaction_type

@transaction_type.setter
def transaction_type(self, value):
self.__transaction_type = value
@property
def beneficiary_asset_id(self):
"""Gets the beneficiary_asset_id of this Statement.

"""
return self.__beneficiary_asset_id

@beneficiary_asset_id.setter
def beneficiary_asset_id(self, value):
self.__beneficiary_asset_id = value



Expand All @@ -41,6 +63,10 @@ def to_ams_dict(self):
params['statementId'] = self.statement_id
if hasattr(self, "fund_move_detail") and self.fund_move_detail is not None:
params['fundMoveDetail'] = self.fund_move_detail
if hasattr(self, "transaction_type") and self.transaction_type is not None:
params['transactionType'] = self.transaction_type
if hasattr(self, "beneficiary_asset_id") and self.beneficiary_asset_id is not None:
params['beneficiaryAssetId'] = self.beneficiary_asset_id
return params


Expand All @@ -52,3 +78,7 @@ def parse_rsp_body(self, response_body):
if 'fundMoveDetail' in response_body:
self.__fund_move_detail = FundMoveDetail()
self.__fund_move_detail.parse_rsp_body(response_body['fundMoveDetail'])
if 'transactionType' in response_body:
self.__transaction_type = response_body['transactionType']
if 'beneficiaryAssetId' in response_body:
self.__beneficiary_asset_id = response_body['beneficiaryAssetId']