diff --git a/com/alipay/ams/api/model/fund_move_detail.py b/com/alipay/ams/api/model/fund_move_detail.py index 1c5ca8f..90a9409 100644 --- a/com/alipay/ams/api/model/fund_move_detail.py +++ b/com/alipay/ams/api/model/fund_move_detail.py @@ -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 @@ -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 @@ -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 @@ -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'] diff --git a/com/alipay/ams/api/model/statement.py b/com/alipay/ams/api/model/statement.py index 708e8b2..952ef48 100644 --- a/com/alipay/ams/api/model/statement.py +++ b/com/alipay/ams/api/model/statement.py @@ -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 @@ -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 @@ -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 @@ -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']