V. Enum Type Definitions
1. Order Status - orderStatus
| Enum Name | Description | Final State |
|---|---|---|
| init | Order is initialized | N |
| processing | Order is processing | N |
| success | Order is successful | Y |
| refunding | Order is refunding | N |
| refunded | Refund successfully | Y |
| refundFail | Refund failed | Y |
| fail | Order failed | Y |
| expired | Order expired | Y |
2. Order Type - side
| Enum Name | Description | Remarks |
|---|---|---|
| BUY | Buy transaction | |
| SELL | Sell transaction | |
| BUY_TO_WALLET | Buy and withdraw to wallet | Buy coins and withdraw to a specified wallet address |
3. Client Type - clientType
| Enum Name | Description | Remarks |
|---|---|---|
| IOS | ||
| ANDROID | ||
| WEB | Default: WEB |
4. Payment Method - paymentMethod
| Enum Name | Description | Remarks |
|---|---|---|
| CARD | Card Payment | |
| BANK_TRANSFER | Bank Transfer | |
| ALL | All Payment Methods | User would need to select an available payment method on the cashier page later on. |
5. KYC Share Result
| Enum Name | Description |
|---|---|
| FAIL | Failed |
| SUCCESS | Successful |
6. KYC Document Type
| Enum Name | Description | Remarks |
|---|---|---|
| ID_CARD | ||
| PASSPORT | ||
| DRIVING_LICENSE | ||
| VISA | ||
| CPF | ||
| OTHER | OTHER needs to be pre-defined |