Represents a payout or transfer of funds from the merchant wallet to a destination address.
Proposed Steps:
- Create
src/shade/models/transfer.py.
- Fields:
id, source_address, destination_address, amount: Decimal, asset: str, status, stellar_tx_hash: Optional[str], fee: Optional[Decimal], created_at.
- Add
TransferStatus enum: pending, processing, completed, failed.
Acceptance Criteria:
Transfer.from_dict(api_response) populates all fields correctly.
transfer.asset defaults to "XLM" when absent from the response.
transfer.status is a TransferStatus enum.
Represents a payout or transfer of funds from the merchant wallet to a destination address.
Proposed Steps:
src/shade/models/transfer.py.id,source_address,destination_address,amount: Decimal,asset: str,status,stellar_tx_hash: Optional[str],fee: Optional[Decimal],created_at.TransferStatusenum:pending,processing,completed,failed.Acceptance Criteria:
Transfer.from_dict(api_response)populates all fields correctly.transfer.assetdefaults to"XLM"when absent from the response.transfer.statusis aTransferStatusenum.