-
Notifications
You must be signed in to change notification settings - Fork 12
/
patchshifttraderequest.go
33 lines (23 loc) · 1.09 KB
/
patchshifttraderequest.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Patchshifttraderequest
type Patchshifttraderequest struct {
// ReceivingUserId - Update the ID of the receiving user to direct the request at a specific user, or set the wrapped id to null to open up a trade to be matched by any user.
ReceivingUserId *Valuewrapperstring `json:"receivingUserId,omitempty"`
// Expiration - Update the expiration time for this shift trade.
Expiration *Valuewrapperdate `json:"expiration,omitempty"`
// AcceptableIntervals - Update the acceptable intervals the initiating user is willing to accept in trade. Setting the enclosed list to empty will make this a one sided trade request
AcceptableIntervals *Listwrapperinterval `json:"acceptableIntervals,omitempty"`
// Metadata - Version metadata
Metadata *Wfmversionedentitymetadata `json:"metadata,omitempty"`
}
// String returns a JSON representation of the model
func (o *Patchshifttraderequest) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}