TBD54566975 / tbdex

56 stars 25 forks source link

Consider including a list of recommended order statuses #329

Closed mistermoe closed 1 month ago

mistermoe commented 2 months ago

the orderStatus property of an OrderStatus message is effectively plaintext which becomes quite difficult to wrangle especially from a wallet's perspective. We should include a list of recommended order statuses in the spec and a description of said status.

Additionally, It would be helpful to provide these recommended order statuses as enums via our SDKs

Here's a few that come to mind immediately:

Status Description
PAYIN_PENDING Order has been received and PFI is waiting to receive the quoted payin amount from Alice
PAYIN_RECEIVED the quoted payin amount has been received by the PFI
PAYOUT_INITIATED the PFI has initiated the quoted payout
mistermoe commented 2 months ago

cc: @angiejones

jiyoontbd commented 1 month ago