mws

package module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 15 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	// ReportTypeSettlement ...
	ReportTypeSettlement = "_GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2_"
	// ReportsPath The reports path
	ReportsPath = "/Reports/2009-01-01"
	// OrdersPath The orders path
	OrdersPath = "/Orders/2013-09-01"
	// FeedsPath The feeds path
	FeedsPath = "/Feeds/2009-01-01"
	// InboundShipmentPath The inbound shipment path
	InboundShipmentPath = "/FulfillmentInboundShipment/2010-10-01"
	// FinancesPath The finances path
	FinancesPath = "/Finances/2015-05-01"
)

Variables

View Source
var Endpoint = map[string]string{
	"BR": "https://mws.amazonservices.com",
	"CA": "https://mws.amazonservices.ca",
	"MX": "https://mws.amazonservices.com.mx",
	"US": "https://mws.amazonservices.com",
	"AE": "https://mws.amazonservices.ae",
	"DE": "https://mws-eu.amazonservices.com",
	"EG": "https://mws-eu.amazonservices.com",
	"ES": "https://mws-eu.amazonservices.com",
	"FR": "https://mws-eu.amazonservices.com",
	"GB": "https://mws-eu.amazonservices.com",
	"IN": "https://mws.amazonservices.in",
	"IT": "https://mws-eu.amazonservices.com",
	"NL": "https://mws-eu.amazonservices.com",
	"SA": "https://mws-eu.amazonservices.com",
	"TR": "https://mws-eu.amazonservices.com",
	"SG": "https://mws-fe.amazonservices.com",
	"AU": "https://mws.amazonservices.com.au",
	"JP": "https://mws.amazonservices.jp",
}

Endpoint The MWS endpoint

View Source
var MarketplaceID = map[string]string{
	"BR": "A2Q3Y263D00KWC",
	"CA": "A2EUQ1WTGCTBG2",
	"MX": "A1AM78C64UM0Y8",
	"US": "ATVPDKIKX0DER",
	"AE": "A2VIGQ35RCS4UG",
	"DE": "A1PA6795UKMFR9",
	"EG": "ARBP9OOSHTCHU",
	"ES": "A1RKKUPIHCS9HS",
	"FR": "A13V1IB3VIYZZH",
	"GB": "A1F83G8C2ARO7P",
	"IN": "A21TJRUUN4KGV",
	"IT": "APJ6JRA9NG5V4",
	"NL": "A1805IZSGTT6HS",
	"SA": "A17E79C6D8DWNP",
	"TR": "A33AVAJ2PDY3EV",
	"SG": "A19VAU5U5O7RUS",
	"AU": "A39IBJ37TRP1C6",
	"JP": "A1VC38T7YXB528",
}

MarketplaceID The MWS aarketplace id

Functions

This section is empty.

Types

type AdjustmentEventList added in v1.2.0

type AdjustmentEventList struct {
	Text            string `xml:",chardata"`
	AdjustmentEvent []struct {
		Text               string `xml:",chardata"`
		AdjustmentType     string `xml:"AdjustmentType"`
		AdjustmentItemList struct {
			Text           string `xml:",chardata"`
			AdjustmentItem struct {
				Text          string `xml:",chardata"`
				PerUnitAmount struct {
					Text           string `xml:",chardata"`
					CurrencyAmount string `xml:"CurrencyAmount"`
					CurrencyCode   string `xml:"CurrencyCode"`
				} `xml:"PerUnitAmount"`
				TotalAmount struct {
					Text           string `xml:",chardata"`
					CurrencyAmount string `xml:"CurrencyAmount"`
					CurrencyCode   string `xml:"CurrencyCode"`
				} `xml:"TotalAmount"`
				Quantity           string `xml:"Quantity"`
				SellerSKU          string `xml:"SellerSKU"`
				ProductDescription string `xml:"ProductDescription"`
			} `xml:"AdjustmentItem"`
		} `xml:"AdjustmentItemList"`
		AdjustmentAmount struct {
			Text           string `xml:",chardata"`
			CurrencyAmount string `xml:"CurrencyAmount"`
			CurrencyCode   string `xml:"CurrencyCode"`
		} `xml:"AdjustmentAmount"`
		PostedDate string `xml:"PostedDate"`
	} `xml:"AdjustmentEvent"`
}

AdjustmentEventList ...

type FeedSubmissionInfo added in v1.2.0

type FeedSubmissionInfo struct {
	Text                    string `xml:",chardata"`
	FeedProcessingStatus    string `xml:"FeedProcessingStatus"`
	FeedType                string `xml:"FeedType"`
	FeedSubmissionID        string `xml:"FeedSubmissionId"`
	StartedProcessingDate   string `xml:"StartedProcessingDate"`
	SubmittedDate           string `xml:"SubmittedDate"`
	CompletedProcessingDate string `xml:"CompletedProcessingDate"`
}

FeedSubmissionInfo ...

type FinancialEvents added in v1.2.0

type FinancialEvents struct {
	Text                                   string                `xml:",chardata"`
	ProductAdsPaymentEventList             string                `xml:"ProductAdsPaymentEventList"`
	RentalTransactionEventList             string                `xml:"RentalTransactionEventList"`
	ServiceFeeEventList                    string                `xml:"ServiceFeeEventList"`
	ShipmentSettleEventList                string                `xml:"ShipmentSettleEventList"`
	ServiceProviderCreditEventList         string                `xml:"ServiceProviderCreditEventList"`
	ImagingServicesFeeEventList            string                `xml:"ImagingServicesFeeEventList"`
	SellerDealPaymentEventList             string                `xml:"SellerDealPaymentEventList"`
	SellerReviewEnrollmentPaymentEventList string                `xml:"SellerReviewEnrollmentPaymentEventList"`
	DebtRecoveryEventList                  string                `xml:"DebtRecoveryEventList"`
	ShipmentEventList                      []ShipmentEventList   `xml:"ShipmentEventList"`
	TaxWithholdingEventList                string                `xml:"TaxWithholdingEventList"`
	GuaranteeClaimEventList                string                `xml:"GuaranteeClaimEventList"`
	TDSReimbursementEventList              string                `xml:"TDSReimbursementEventList"`
	ChargebackEventList                    string                `xml:"ChargebackEventList"`
	NetworkComminglingTransactionEventList string                `xml:"NetworkComminglingTransactionEventList"`
	LoanServicingEventList                 string                `xml:"LoanServicingEventList"`
	RefundEventList                        []RefundEventList     `xml:"RefundEventList"`
	RemovalShipmentEventList               string                `xml:"RemovalShipmentEventList"`
	PerformanceBondRefundEventList         string                `xml:"PerformanceBondRefundEventList"`
	AffordabilityExpenseReversalEventList  string                `xml:"AffordabilityExpenseReversalEventList"`
	PayWithAmazonEventList                 string                `xml:"PayWithAmazonEventList"`
	AdhocDisbursementEventList             string                `xml:"AdhocDisbursementEventList"`
	CouponPaymentEventList                 string                `xml:"CouponPaymentEventList"`
	ChargeRefundEventList                  string                `xml:"ChargeRefundEventList"`
	RetrochargeEventList                   string                `xml:"RetrochargeEventList"`
	TrialShipmentEventList                 string                `xml:"TrialShipmentEventList"`
	SAFETReimbursementEventList            string                `xml:"SAFETReimbursementEventList"`
	RemovalShipmentAdjustmentEventList     string                `xml:"RemovalShipmentAdjustmentEventList"`
	FBALiquidationEventList                string                `xml:"FBALiquidationEventList"`
	AffordabilityExpenseEventList          string                `xml:"AffordabilityExpenseEventList"`
	AdjustmentEventList                    []AdjustmentEventList `xml:"AdjustmentEventList"`
}

FinancialEvents ...

type GetFeedSubmissionListByNextTokenResponse added in v1.2.0

type GetFeedSubmissionListByNextTokenResponse struct {
	XMLName                     xml.Name                    `xml:"GetFeedSubmissionListByNextTokenResponse"`
	Text                        string                      `xml:",chardata"`
	Xmlns                       string                      `xml:"xmlns,attr"`
	GetFeedSubmissionListResult GetFeedSubmissionListResult `xml:"GetFeedSubmissionListByNextTokenResult"`
	ResponseMetadata            ResponseMetadata            `xml:"ResponseMetadata"`
}

GetFeedSubmissionListByNextTokenResponse ...

type GetFeedSubmissionListParams added in v1.1.0

type GetFeedSubmissionListParams struct {
	SubmittedFromDate time.Time
	SubmittedToDate   time.Time
}

GetFeedSubmissionListParams MWS GetFeedSubmissionList API params

type GetFeedSubmissionListResponse added in v1.2.0

type GetFeedSubmissionListResponse struct {
	XMLName                     xml.Name                    `xml:"GetFeedSubmissionListResponse"`
	Text                        string                      `xml:",chardata"`
	Xmlns                       string                      `xml:"xmlns,attr"`
	GetFeedSubmissionListResult GetFeedSubmissionListResult `xml:"GetFeedSubmissionListResult"`
	ResponseMetadata            ResponseMetadata            `xml:"ResponseMetadata"`
}

GetFeedSubmissionListResponse ...

type GetFeedSubmissionListResult added in v1.2.0

type GetFeedSubmissionListResult struct {
	Text               string               `xml:",chardata"`
	NextToken          string               `xml:"NextToken"`
	HasNext            bool                 `xml:"HasNext"`
	FeedSubmissionInfo []FeedSubmissionInfo `xml:"FeedSubmissionInfo"`
}

GetFeedSubmissionListResult ...

type GetReportListByNextTokenResponse

type GetReportListByNextTokenResponse struct {
	XMLName             xml.Name            `xml:"GetReportListByNextTokenResponse"`
	Text                string              `xml:",chardata"`
	Xmlns               string              `xml:"xmlns,attr"`
	GetReportListResult GetReportListResult `xml:"GetReportListResult"`
	ResponseMetadata    ResponseMetadata    `xml:"ResponseMetadata"`
}

GetReportListByNextTokenResponse The Get report list by next token response

type GetReportListResponse

type GetReportListResponse struct {
	XMLName             xml.Name            `xml:"GetReportListResponse"`
	Text                string              `xml:",chardata"`
	Xmlns               string              `xml:"xmlns,attr"`
	GetReportListResult GetReportListResult `xml:"GetReportListResult"`
	ResponseMetadata    ResponseMetadata    `xml:"ResponseMetadata"`
}

GetReportListResponse Get report list api response

type GetReportListResult

type GetReportListResult struct {
	Text       string                `xml:",chardata"`
	NextToken  string                `xml:"NextToken"`
	HasNext    bool                  `xml:"HasNext"`
	ReportInfo []SingleReportInfoRow `xml:"ReportInfo"`
}

GetReportListResult The Get report list result

type ListFinancialEventsByNextTokenResponse added in v1.2.0

type ListFinancialEventsByNextTokenResponse struct {
	XMLName                   xml.Name                  `xml:"ListFinancialEventsByNextTokenResponse"`
	Text                      string                    `xml:",chardata"`
	Xmlns                     string                    `xml:"xmlns,attr"`
	ListFinancialEventsResult ListFinancialEventsResult `xml:"ListFinancialEventsByNextTokenResult"`
	ResponseMetadata          ResponseMetadata          `xml:"ResponseMetadata"`
}

ListFinancialEventsByNextTokenResponse ...

type ListFinancialEventsParams added in v1.1.0

type ListFinancialEventsParams struct {
	PostedAfter  time.Time
	PostedBefore time.Time
}

ListFinancialEventsParams ListFinancialEvents API Params

type ListFinancialEventsResponse added in v1.2.0

type ListFinancialEventsResponse struct {
	XMLName                   xml.Name                  `xml:"ListFinancialEventsResponse"`
	Text                      string                    `xml:",chardata"`
	Xmlns                     string                    `xml:"xmlns,attr"`
	ListFinancialEventsResult ListFinancialEventsResult `xml:"ListFinancialEventsResult"`
	ResponseMetadata          ResponseMetadata          `xml:"ResponseMetadata"`
}

ListFinancialEventsResponse ...

type ListFinancialEventsResult added in v1.2.0

type ListFinancialEventsResult struct {
	Text            string          `xml:",chardata"`
	NextToken       string          `xml:"NextToken"`
	FinancialEvents FinancialEvents `xml:"FinancialEvents"`
}

ListFinancialEventsResult ...

type ListInboundShipmentsByNextTokenResponse added in v1.2.0

type ListInboundShipmentsByNextTokenResponse struct {
	XMLName                    xml.Name                   `xml:"ListInboundShipmentsByNextTokenResponse"`
	Text                       string                     `xml:",chardata"`
	Xmlns                      string                     `xml:"xmlns,attr"`
	ListInboundShipmentsResult ListInboundShipmentsResult `xml:"ListInboundShipmentsByNextTokenResult"`
	ResponseMetadata           ResponseMetadata           `xml:"ResponseMetadata"`
}

ListInboundShipmentsByNextTokenResponse ...

type ListInboundShipmentsParams added in v1.1.0

type ListInboundShipmentsParams struct {
	ShipmentStatusList []shipmentStatus
	LastUpdatedAfter   time.Time
	LastUpdatedBefore  time.Time
}

ListInboundShipmentsParams ListInboundShipments API params

type ListInboundShipmentsResponse added in v1.2.0

type ListInboundShipmentsResponse struct {
	XMLName                    xml.Name                   `xml:"ListInboundShipmentsResponse"`
	Text                       string                     `xml:",chardata"`
	Xmlns                      string                     `xml:"xmlns,attr"`
	ListInboundShipmentsResult ListInboundShipmentsResult `xml:"ListInboundShipmentsResult"`
	ResponseMetadata           ResponseMetadata           `xml:"ResponseMetadata"`
}

ListInboundShipmentsResponse ...

type ListInboundShipmentsResult added in v1.2.0

type ListInboundShipmentsResult struct {
	Text         string       `xml:",chardata"`
	NextToken    string       `xml:"NextToken"`
	ShipmentData ShipmentData `xml:"ShipmentData"`
}

ListInboundShipmentsResult ...

type ListOrdersParams added in v1.1.0

type ListOrdersParams struct {
	LastUpdatedAfter  time.Time
	LastUpdatedBefore time.Time
}

ListOrdersParams MWS ListOrders API params

type ListOrdersResponse added in v1.1.0

type ListOrdersResponse struct {
	XMLName          xml.Name         `xml:"ListOrdersResponse"`
	Text             string           `xml:",chardata"`
	Xmlns            string           `xml:"xmlns,attr"`
	ListOrdersResult ListOrdersResult `xml:"ListOrdersResult"`
	ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"`
}

ListOrdersResponse ...

type ListOrdersResult added in v1.1.0

type ListOrdersResult struct {
	Text      string `xml:",chardata"`
	NextToken string `xml:"NextToken"`
	Orders    struct {
		Text  string      `xml:",chardata"`
		Order []OrderInfo `xml:"Order"`
	} `xml:"Orders"`
	LastUpdatedBefore string `xml:"LastUpdatedBefore"`
}

ListOrdersResult ...

type OrderInfo added in v1.1.0

type OrderInfo struct {
	Text                   string `xml:",chardata"`
	LatestShipDate         string `xml:"LatestShipDate"`
	OrderType              string `xml:"OrderType"`
	PurchaseDate           string `xml:"PurchaseDate"`
	AmazonOrderID          string `xml:"AmazonOrderId"`
	BuyerEmail             string `xml:"BuyerEmail"`
	LastUpdateDate         string `xml:"LastUpdateDate"`
	IsReplacementOrder     string `xml:"IsReplacementOrder"`
	NumberOfItemsShipped   string `xml:"NumberOfItemsShipped"`
	ShipServiceLevel       string `xml:"ShipServiceLevel"`
	OrderStatus            string `xml:"OrderStatus"`
	SalesChannel           string `xml:"SalesChannel"`
	IsBusinessOrder        string `xml:"IsBusinessOrder"`
	NumberOfItemsUnshipped string `xml:"NumberOfItemsUnshipped"`
	PaymentMethodDetails   struct {
		Text                string `xml:",chardata"`
		PaymentMethodDetail string `xml:"PaymentMethodDetail"`
	} `xml:"PaymentMethodDetails"`
	IsGlobalExpressEnabled string `xml:"IsGlobalExpressEnabled"`
	IsSoldByAB             string `xml:"IsSoldByAB"`
	IsPremiumOrder         string `xml:"IsPremiumOrder"`
	OrderTotal             struct {
		Text         string `xml:",chardata"`
		Amount       string `xml:"Amount"`
		CurrencyCode string `xml:"CurrencyCode"`
	} `xml:"OrderTotal"`
	EarliestShipDate   string `xml:"EarliestShipDate"`
	MarketplaceID      string `xml:"MarketplaceId"`
	FulfillmentChannel string `xml:"FulfillmentChannel"`
	PaymentMethod      string `xml:"PaymentMethod"`
	ShippingAddress    struct {
		Text                         string `xml:",chardata"`
		City                         string `xml:"City"`
		PostalCode                   string `xml:"PostalCode"`
		IsAddressSharingConfidential string `xml:"isAddressSharingConfidential"`
		StateOrRegion                string `xml:"StateOrRegion"`
		CountryCode                  string `xml:"CountryCode"`
	} `xml:"ShippingAddress"`
	IsISPU                       string `xml:"IsISPU"`
	IsPrime                      string `xml:"IsPrime"`
	SellerOrderID                string `xml:"SellerOrderId"`
	ShipmentServiceLevelCategory string `xml:"ShipmentServiceLevelCategory"`
}

OrderInfo ...

type RefundEventList added in v1.2.0

type RefundEventList struct {
	Text          string `xml:",chardata"`
	ShipmentEvent struct {
		Text                       string `xml:",chardata"`
		AmazonOrderID              string `xml:"AmazonOrderId"`
		PostedDate                 string `xml:"PostedDate"`
		ShipmentItemAdjustmentList struct {
			Text         string `xml:",chardata"`
			ShipmentItem struct {
				Text                string `xml:",chardata"`
				ItemTaxWithheldList struct {
					Text                 string `xml:",chardata"`
					TaxWithheldComponent struct {
						Text               string `xml:",chardata"`
						TaxCollectionModel string `xml:"TaxCollectionModel"`
						TaxesWithheld      struct {
							Text            string `xml:",chardata"`
							ChargeComponent struct {
								Text         string `xml:",chardata"`
								ChargeType   string `xml:"ChargeType"`
								ChargeAmount struct {
									Text           string `xml:",chardata"`
									CurrencyAmount string `xml:"CurrencyAmount"`
									CurrencyCode   string `xml:"CurrencyCode"`
								} `xml:"ChargeAmount"`
							} `xml:"ChargeComponent"`
						} `xml:"TaxesWithheld"`
					} `xml:"TaxWithheldComponent"`
				} `xml:"ItemTaxWithheldList"`
				ItemFeeAdjustmentList struct {
					Text         string `xml:",chardata"`
					FeeComponent []struct {
						Text      string `xml:",chardata"`
						FeeAmount struct {
							Text           string `xml:",chardata"`
							CurrencyAmount string `xml:"CurrencyAmount"`
							CurrencyCode   string `xml:"CurrencyCode"`
						} `xml:"FeeAmount"`
						FeeType string `xml:"FeeType"`
					} `xml:"FeeComponent"`
				} `xml:"ItemFeeAdjustmentList"`
				OrderAdjustmentItemID    string `xml:"OrderAdjustmentItemId"`
				QuantityShipped          string `xml:"QuantityShipped"`
				ItemChargeAdjustmentList struct {
					Text            string `xml:",chardata"`
					ChargeComponent []struct {
						Text         string `xml:",chardata"`
						ChargeType   string `xml:"ChargeType"`
						ChargeAmount struct {
							Text           string `xml:",chardata"`
							CurrencyAmount string `xml:"CurrencyAmount"`
							CurrencyCode   string `xml:"CurrencyCode"`
						} `xml:"ChargeAmount"`
					} `xml:"ChargeComponent"`
				} `xml:"ItemChargeAdjustmentList"`
				SellerSKU string `xml:"SellerSKU"`
			} `xml:"ShipmentItem"`
		} `xml:"ShipmentItemAdjustmentList"`
		MarketplaceName string `xml:"MarketplaceName"`
		SellerOrderID   string `xml:"SellerOrderId"`
	} `xml:"ShipmentEvent"`
}

RefundEventList ...

type ResponseMetadata added in v1.2.0

type ResponseMetadata struct {
	Text      string `xml:",chardata"`
	RequestID string `xml:"RequestId"`
}

ResponseMetadata ...

type Seller

type Seller struct {
	Country   string
	SellerID  string
	AuthToken string
	AccessKey string
	SecretKey string
}

Seller The seller info

func (*Seller) GetAllReportIds

func (seller *Seller) GetAllReportIds(startTime time.Time, endTime time.Time) []string

GetAllReportIds Get all report ids if has next

func (*Seller) GetFeedSubmissionList added in v1.1.0

func (seller *Seller) GetFeedSubmissionList(params GetFeedSubmissionListParams) []FeedSubmissionInfo

GetFeedSubmissionList ... https://docs.developer.amazonservices.com/en_UK/feeds/Feeds_GetFeedSubmissionList.html Maximum request quota Restore rate Hourly request quota 10 requests One request every 45 seconds 80 requests per hour

func (*Seller) GetReportByID

func (seller *Seller) GetReportByID(reportID string) []SettlementReportRow

GetReportByID Get seller report by report id

func (*Seller) GetReportList

func (seller *Seller) GetReportList(startTime time.Time, endTime time.Time, nextToken string) *GetReportListResult

GetReportList Get seller report list by report type

func (*Seller) ListFinancialEvents added in v1.1.0

func (seller *Seller) ListFinancialEvents(params ListFinancialEventsParams) []FinancialEvents

ListFinancialEvents ...

func (*Seller) ListInboundShipments added in v1.1.0

func (seller *Seller) ListInboundShipments(params ListInboundShipmentsParams) []ShipmentMember

ListInboundShipments ...

func (*Seller) ListOrders

func (seller *Seller) ListOrders(params ListOrdersParams)

ListOrders List orders

type SettlementReportRow

type SettlementReportRow struct {
	SettlementID             string
	SettlementStartDate      string
	SettlementEndDate        string
	DepositDate              string
	TotalAmount              float64
	Currency                 string
	TransactionType          string
	OrderID                  string
	MerchantOrderID          string
	AdjustmentID             string
	ShipmentID               string
	MarketplaceName          string
	AmountType               string
	AmountDescription        string
	Amount                   float64
	FulfillmentID            string
	PostedDate               string
	PostedDateTime           string
	OrderItemCode            string
	MerchantOrderItemID      string
	MerchantAdjustmentItemID string
	Sku                      string
	QuantityPurchased        string
	PromotionID              string
}

SettlementReportRow The settlement report row

type ShipmentData added in v1.2.0

type ShipmentData struct {
	Text   string           `xml:",chardata"`
	Member []ShipmentMember `xml:"member"`
}

ShipmentData ...

type ShipmentEventList added in v1.2.0

type ShipmentEventList struct {
	Text          string `xml:",chardata"`
	ShipmentEvent []struct {
		Text             string `xml:",chardata"`
		ShipmentItemList struct {
			Text         string `xml:",chardata"`
			ShipmentItem []struct {
				Text                string `xml:",chardata"`
				ItemTaxWithheldList struct {
					Text                 string `xml:",chardata"`
					TaxWithheldComponent struct {
						Text               string `xml:",chardata"`
						TaxCollectionModel string `xml:"TaxCollectionModel"`
						TaxesWithheld      struct {
							Text            string `xml:",chardata"`
							ChargeComponent []struct {
								Text         string `xml:",chardata"`
								ChargeType   string `xml:"ChargeType"`
								ChargeAmount struct {
									Text           string `xml:",chardata"`
									CurrencyAmount string `xml:"CurrencyAmount"`
									CurrencyCode   string `xml:"CurrencyCode"`
								} `xml:"ChargeAmount"`
							} `xml:"ChargeComponent"`
						} `xml:"TaxesWithheld"`
					} `xml:"TaxWithheldComponent"`
				} `xml:"ItemTaxWithheldList"`
				ItemChargeList struct {
					Text            string `xml:",chardata"`
					ChargeComponent []struct {
						Text         string `xml:",chardata"`
						ChargeType   string `xml:"ChargeType"`
						ChargeAmount struct {
							Text           string `xml:",chardata"`
							CurrencyAmount string `xml:"CurrencyAmount"`
							CurrencyCode   string `xml:"CurrencyCode"`
						} `xml:"ChargeAmount"`
					} `xml:"ChargeComponent"`
				} `xml:"ItemChargeList"`
				ItemFeeList struct {
					Text         string `xml:",chardata"`
					FeeComponent []struct {
						Text      string `xml:",chardata"`
						FeeAmount struct {
							Text           string `xml:",chardata"`
							CurrencyAmount string `xml:"CurrencyAmount"`
							CurrencyCode   string `xml:"CurrencyCode"`
						} `xml:"FeeAmount"`
						FeeType string `xml:"FeeType"`
					} `xml:"FeeComponent"`
				} `xml:"ItemFeeList"`
				OrderItemID     string `xml:"OrderItemId"`
				QuantityShipped string `xml:"QuantityShipped"`
				SellerSKU       string `xml:"SellerSKU"`
				PromotionList   struct {
					Text      string `xml:",chardata"`
					Promotion []struct {
						Text            string `xml:",chardata"`
						PromotionType   string `xml:"PromotionType"`
						PromotionAmount struct {
							Text           string `xml:",chardata"`
							CurrencyAmount string `xml:"CurrencyAmount"`
							CurrencyCode   string `xml:"CurrencyCode"`
						} `xml:"PromotionAmount"`
						PromotionID string `xml:"PromotionId"`
					} `xml:"Promotion"`
				} `xml:"PromotionList"`
			} `xml:"ShipmentItem"`
		} `xml:"ShipmentItemList"`
		AmazonOrderID   string `xml:"AmazonOrderId"`
		PostedDate      string `xml:"PostedDate"`
		MarketplaceName string `xml:"MarketplaceName"`
		SellerOrderID   string `xml:"SellerOrderId"`
		ShipmentFeeList struct {
			Text         string `xml:",chardata"`
			FeeComponent struct {
				Text      string `xml:",chardata"`
				FeeAmount struct {
					Text           string `xml:",chardata"`
					CurrencyAmount string `xml:"CurrencyAmount"`
					CurrencyCode   string `xml:"CurrencyCode"`
				} `xml:"FeeAmount"`
				FeeType string `xml:"FeeType"`
			} `xml:"FeeComponent"`
		} `xml:"ShipmentFeeList"`
	} `xml:"ShipmentEvent"`
}

ShipmentEventList ...

type ShipmentMember added in v1.2.0

type ShipmentMember struct {
	Text                           string `xml:",chardata"`
	DestinationFulfillmentCenterID string `xml:"DestinationFulfillmentCenterId"`
	LabelPrepType                  string `xml:"LabelPrepType"`
	ShipFromAddress                struct {
		Text                string `xml:",chardata"`
		City                string `xml:"City"`
		CountryCode         string `xml:"CountryCode"`
		PostalCode          string `xml:"PostalCode"`
		Name                string `xml:"Name"`
		AddressLine1        string `xml:"AddressLine1"`
		StateOrProvinceCode string `xml:"StateOrProvinceCode"`
		DistrictOrCounty    string `xml:"DistrictOrCounty"`
		AddressLine2        string `xml:"AddressLine2"`
	} `xml:"ShipFromAddress"`
	ShipmentID          string `xml:"ShipmentId"`
	AreCasesRequired    string `xml:"AreCasesRequired"`
	ShipmentName        string `xml:"ShipmentName"`
	BoxContentsSource   string `xml:"BoxContentsSource"`
	ShipmentStatus      string `xml:"ShipmentStatus"`
	ConfirmedNeedByDate string `xml:"ConfirmedNeedByDate"`
}

ShipmentMember ...

type SingleReportInfoRow

type SingleReportInfoRow struct {
	Text            string `xml:",chardata"`
	ReportType      string `xml:"ReportType"`
	Acknowledged    string `xml:"Acknowledged"`
	ReportID        string `xml:"ReportId"`
	ReportRequestID string `xml:"ReportRequestId"`
	AvailableDate   string `xml:"AvailableDate"`
}

SingleReportInfoRow The report info row

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL