Skip to content

Implement Transfer model #40

Description

@codebestia

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions