-
Notifications
You must be signed in to change notification settings - Fork 3
/
command_revise_fixed_price_item.go
46 lines (37 loc) · 1.28 KB
/
command_revise_fixed_price_item.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
34
35
36
37
38
39
40
41
42
43
44
45
46
package ebay
import "encoding/xml"
type ReviseFixedPriceItem struct {
ItemID string
StartPrice string `xml:",omitempty"`
ConditionID uint `xml:",omitempty"`
Quantity uint
Title string `xml:",omitempty"`
Description string `xml:",omitempty"`
PayPalEmailAddress string `xml:",omitempty"`
PictureDetails *PictureDetails `xml:",omitempty"`
ShippingDetails *ShippingDetails `xml:",omitempty"`
PrimaryCategory *PrimaryCategory
ReturnPolicy *ReturnPolicy `xml:",omitempty"`
ProductListingDetails *ProductListingDetails `xml:",omitempty"`
ItemSpecifics []ItemSpecifics `xml:",omitempty"`
}
func (c ReviseFixedPriceItem) CallName() string {
return "ReviseFixedPriceItem"
}
func (c ReviseFixedPriceItem) Body() interface{} {
type Item struct {
ReviseFixedPriceItem
}
return Item{c}
}
func (c ReviseFixedPriceItem) ParseResponse(r []byte) (EbayResponse, error) {
var xmlResponse ReviseFixedPriceItemResponse
err := xml.Unmarshal(r, &xmlResponse)
return xmlResponse, err
}
type ReviseFixedPriceItemResponse struct {
ebayResponse
}
func (r ReviseFixedPriceItemResponse) ResponseErrors() ebayErrors {
return r.ebayResponse.Errors
}