import { TradeOffer } from "https://deno.land/x/steam_trader@v0.4.0/mod.ts";
Constructors
Properties
milliseconds. if set before sending, this offer will be automatically cancelled after this amount of time passed.
If this offer needs to be confirmed by you, this is a value from EConfirmationMethod
A Date object representing when the trade offer will expire if not acted on
true
if this trade offer was created automatically from a real-time trade that was committed, false
if it was explicitly sent as a trade offer
An array of items to be given from your account should this offer be accepted If this offer has not yet been sent or was just sent, object in this array will not contain classid or instanceid properties, as it would had you loaded a sent offer
An array of items to be given from the other account and received by yours should this offer be accepted If this offer has not yet been sent or was just sent, object in this array will not contain classid or instanceid properties, as it would had you loaded a sent offer
milliseconds. if set before sending, this offer will be automatically cancelled after this amount of time passed (when still pending).
A numeric trade ID, represented as a string, if the offer was accepted. null otherwise. This value won't be very useful to you.
A Date object representing when the trade offer was last updated (equal to created if never updated)
Methods
Confirms an offer that is in CreatedNeedsConfirmation
state.
throws error if offer is unsent, not in CreatedNeedsConfirmation
state or confirmation object for offerid is not found