Library referenceTypes
AppTrade
type AppTrade = {
completed_at?: string;
created_at: string;
message?: string;
offered: AppTradeSide;
partner: AppPlayerRef | null;
requested: AppTradeSide;
role: "sender" | "recipient";
status: "open" | "completed";
trade_id: number;
};one row of GET /app/v1/trades
Properties
| Property | Type | Description |
|---|---|---|
completed_at? | string | - |
created_at | string | - |
message? | string | - |
offered | AppTradeSide | what the sender gives |
partner | AppPlayerRef | null | null when that account no longer exists |
requested | AppTradeSide | what the sender asks for |
role | "sender" | "recipient" | sender when the player created the trade, recipient when it was sent to them |
status | "open" | "completed" | - |
trade_id | number | - |