Documentation ¶
Index ¶
- Constants
- Variables
- type AdjustmentEventList
- type ChargeComponent
- type CouponPaymentEventList
- type EarliestAvailability
- type ErrorResponse
- type FeeComponent
- type FeedSubmissionInfo
- type FinancialAdjustmentEvent
- type FinancialCouponPaymentEvent
- type FinancialEvents
- type FinancialRefundShipmentEvent
- type FinancialServiceFeeEvent
- type FinancialShipmentEvent
- type GetFeedSubmissionListByNextTokenResponse
- type GetFeedSubmissionListParams
- type GetFeedSubmissionListResponse
- type GetFeedSubmissionListResult
- type GetInboundGuidanceForSKUParams
- type GetInboundGuidanceForSKUResponse
- type GetInboundGuidanceForSKUResult
- type GetReportListByNextTokenResponse
- type GetReportListParams
- type GetReportListResponse
- type GetReportListResult
- type GuidanceReasonList
- type InboundShipmentItemData
- type InboundShipmentItemMember
- type InvalidSKU
- type InvalidSKUList
- type InventoryReportRow
- type InventorySupplyList
- type InventorySupplyMember
- type ItemChargeAdjustmentList
- type ItemChargeList
- type ItemFeeAdjustmentList
- type ItemFeeList
- type ItemTaxWithheldList
- type ListFinancialEventsByNextTokenResponse
- type ListFinancialEventsParams
- type ListFinancialEventsResponse
- type ListFinancialEventsResult
- type ListInboundShipmentItemsByNextTokenResponse
- type ListInboundShipmentItemsParams
- type ListInboundShipmentItemsResponse
- type ListInboundShipmentItemsResult
- type ListInboundShipmentsByNextTokenResponse
- type ListInboundShipmentsParams
- type ListInboundShipmentsResponse
- type ListInboundShipmentsResult
- type ListInventorySupplyByNextTokenResponse
- type ListInventorySupplyParams
- type ListInventorySupplyResponse
- type ListInventorySupplyResult
- type ListOrderItemsByNextTokenResponse
- type ListOrderItemsResponse
- type ListOrderItemsResult
- type ListOrdersByNextTokenResponse
- type ListOrdersParams
- type ListOrdersResponse
- type ListOrdersResult
- type OrderInfo
- type OrderItem
- type OrderItemList
- type OrderList
- type OrderShippingAddress
- type OrderStatus
- type OrderTotal
- type PrepDetail
- type PrepDetailsList
- type ProductAdsPaymentEventList
- type Promotion
- type PromotionList
- type RefundEventList
- type ReportType
- type ResponseMetadata
- type SKUInboundGuidance
- type SKUInboundGuidanceList
- type Seller
- func (seller *Seller) GetFeedSubmissionList(params GetFeedSubmissionListParams) []FeedSubmissionInfo
- func (seller *Seller) GetFeedSubmissionListByNextToken(nextToken string) GetFeedSubmissionListResult
- func (seller *Seller) GetFeedSubmissionResult(feedSubmissionID string)
- func (seller *Seller) GetInboundGuidanceForSKU(params GetInboundGuidanceForSKUParams) ([]SKUInboundGuidance, []InvalidSKU)
- func (seller *Seller) GetReportByID(reportID string) string
- func (seller *Seller) GetReportList(params GetReportListParams) []string
- func (seller *Seller) ListFinancialEvents(params ListFinancialEventsParams) []FinancialEvents
- func (seller *Seller) ListFinancialEventsByNextToken(nextToken string) ListFinancialEventsResult
- func (seller *Seller) ListInboundShipmentItems(params ListInboundShipmentItemsParams) []InboundShipmentItemMember
- func (seller *Seller) ListInboundShipmentItemsByNextToken(nextToken string) ListInboundShipmentItemsResult
- func (seller *Seller) ListInboundShipments(params ListInboundShipmentsParams) []ShipmentMember
- func (seller *Seller) ListInboundShipmentsByNextToken(nextToken string) ListInboundShipmentsResult
- func (seller *Seller) ListInventorySupply(params ListInventorySupplyParams) []InventorySupplyMember
- func (seller *Seller) ListInventorySupplyByNextToken(nextToken string) ListInventorySupplyResult
- func (seller *Seller) ListOrderItems(amazonOrderID string) []OrderItem
- func (seller *Seller) ListOrderItemsByNextToken(nextToken string) ListOrderItemsResult
- func (seller *Seller) ListOrders(params ListOrdersParams) []OrderInfo
- func (seller *Seller) ListOrdersByNextToken(nextToken string) ListOrdersResult
- type ServiceFeeEventList
- type SettlementReportRow
- type ShipFromAddress
- type ShipmentData
- type ShipmentEventList
- type ShipmentItem
- type ShipmentItemAdjustment
- type ShipmentMember
- type ShipmentStatus
- type SingleReportInfoRow
- type SupplyDetailResponse
Constants ¶
const ( // 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" // InventoryPath The inventory path InventoryPath = "/FulfillmentInventory/2010-10-01" )
const ( // ShipmentStatusWorking ... ShipmentStatusWorking ShipmentStatus = "WORKING" // ShipmentStatusShipped ... ShipmentStatusShipped = "SHIPPED" // ShipmentStatusInTransit ... ShipmentStatusInTransit = "IN_TRANSIT" // ShipmentStatusDelivered ... ShipmentStatusDelivered = "DELIVERED" // ShipmentStatusCheckedIn ... ShipmentStatusCheckedIn = "CHECKED_IN" // ShipmentStatusReceiving ... ShipmentStatusReceiving = "RECEIVING" // ShipmentStatusClosed ... ShipmentStatusClosed = "CLOSED" // ShipmentStatusCancelled ... ShipmentStatusCancelled = "CANCELLED" // ShipmentStatusDeleted ... ShipmentStatusDeleted = "DELETED" // ShipmentStatusError ... ShipmentStatusError = "ERROR" )
const ( // OrderStatusPendingAvailability ... OrderStatusPendingAvailability OrderStatus = "PendingAvailability" // OrderStatusPending ... OrderStatusPending = "Pending" // OrderStatusUnshipped ... OrderStatusUnshipped = "Unshipped" // OrderStatusPartiallyShipped ... OrderStatusPartiallyShipped = "PartiallyShipped" // OrderStatusShipped ... OrderStatusShipped = "Shipped" // OrderStatusCanceled ... OrderStatusCanceled = "Canceled" // OrderStatusUnfulfillable ... OrderStatusUnfulfillable = "Unfulfillable" // OrderStatusInvoiceUnconfirmed ... OrderStatusInvoiceUnconfirmed = "InvoiceUnconfirmed" )
Variables ¶
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
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 ¶
type AdjustmentEventList struct {
AdjustmentEvents []FinancialAdjustmentEvent `xml:"AdjustmentEvent"`
}
AdjustmentEventList ...
type ChargeComponent ¶
type ChargeComponent struct { ChargeType string `xml:"ChargeType"` ChargeAmount struct { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"ChargeAmount"` }
ChargeComponent ...
type CouponPaymentEventList ¶
type CouponPaymentEventList struct {
CouponPaymentEvents []FinancialCouponPaymentEvent `xml:"CouponPaymentEvent"`
}
CouponPaymentEventList ...
type EarliestAvailability ¶ added in v2.3.2
type EarliestAvailability struct { TimepointType string `xml:"TimepointType"` DateTime string `xml:"DateTime"` }
EarliestAvailability ...
type ErrorResponse ¶ added in v2.2.3
type ErrorResponse struct { XMLName xml.Name `xml:"ErrorResponse"` Xmlns string `xml:"xmlns,attr"` Error struct { Type string `xml:"Type"` Code string `xml:"Code"` Message string `xml:"Message"` } `xml:"Error"` RequestID string `xml:"RequestID"` }
ErrorResponse ...
type FeeComponent ¶
type FeeComponent struct { FeeType string `xml:"FeeType"` FeeAmount struct { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"FeeAmount"` }
FeeComponent ...
type FeedSubmissionInfo ¶
type FeedSubmissionInfo struct { 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 FinancialAdjustmentEvent ¶ added in v2.2.2
type FinancialAdjustmentEvent struct { AdjustmentType string `xml:"AdjustmentType"` AdjustmentItemList struct { AdjustmentItems []struct { PerUnitAmount struct { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"PerUnitAmount"` TotalAmount struct { 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 { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"AdjustmentAmount"` PostedDate string `xml:"PostedDate"` }
FinancialAdjustmentEvent ...
type FinancialCouponPaymentEvent ¶ added in v2.2.2
type FinancialCouponPaymentEvent struct { TotalAmount struct { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"TotalAmount"` PaymentEventID string `xml:"PaymentEventId"` SellerCouponDescription string `xml:"SellerCouponDescription"` FeeComponent FeeComponent `xml:"FeeComponent"` ChargeComponent ChargeComponent `xml:"ChargeComponent"` CouponID string `xml:"CouponId"` ClipOrRedemptionCount string `xml:"ClipOrRedemptionCount"` PostedDate string `xml:"PostedDate"` }
FinancialCouponPaymentEvent ...
type FinancialEvents ¶
type FinancialEvents struct { ProductAdsPaymentEventList ProductAdsPaymentEventList `xml:"ProductAdsPaymentEventList"` RentalTransactionEventList string `xml:"RentalTransactionEventList"` ServiceFeeEventList ServiceFeeEventList `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 CouponPaymentEventList `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 FinancialRefundShipmentEvent ¶ added in v2.2.2
type FinancialRefundShipmentEvent struct { AmazonOrderID string `xml:"AmazonOrderId"` PostedDate string `xml:"PostedDate"` ShipmentItemAdjustmentList struct { ShipmentItems []ShipmentItemAdjustment `xml:"ShipmentItem"` } `xml:"ShipmentItemAdjustmentList"` MarketplaceName string `xml:"MarketplaceName"` SellerOrderID string `xml:"SellerOrderId"` }
FinancialRefundShipmentEvent ...
type FinancialServiceFeeEvent ¶ added in v2.2.2
type FinancialServiceFeeEvent struct { FeeReason string `xml:"FeeReason"` AmazonOrderID string `xml:"AmazonOrderId"` FeeList struct { FeeComponents []FeeComponent `xml:"FeeComponent"` } `xml:"FeeList"` }
FinancialServiceFeeEvent ...
type FinancialShipmentEvent ¶ added in v2.2.2
type FinancialShipmentEvent struct { ShipmentItemList struct { ShipmentItems []ShipmentItem `xml:"ShipmentItem"` } `xml:"ShipmentItemList"` AmazonOrderID string `xml:"AmazonOrderId"` PostedDate string `xml:"PostedDate"` MarketplaceName string `xml:"MarketplaceName"` SellerOrderID string `xml:"SellerOrderId"` ShipmentFeeList struct { FeeComponents []FeeComponent `xml:"FeeComponent"` } `xml:"ShipmentFeeList"` }
FinancialShipmentEvent ...
type GetFeedSubmissionListByNextTokenResponse ¶
type GetFeedSubmissionListByNextTokenResponse struct { XMLName xml.Name `xml:"GetFeedSubmissionListByNextTokenResponse"` Xmlns string `xml:"xmlns,attr"` GetFeedSubmissionListResult GetFeedSubmissionListResult `xml:"GetFeedSubmissionListByNextTokenResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
GetFeedSubmissionListByNextTokenResponse ...
type GetFeedSubmissionListParams ¶
GetFeedSubmissionListParams MWS GetFeedSubmissionList API params
type GetFeedSubmissionListResponse ¶
type GetFeedSubmissionListResponse struct { XMLName xml.Name `xml:"GetFeedSubmissionListResponse"` Xmlns string `xml:"xmlns,attr"` GetFeedSubmissionListResult GetFeedSubmissionListResult `xml:"GetFeedSubmissionListResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
GetFeedSubmissionListResponse ...
type GetFeedSubmissionListResult ¶
type GetFeedSubmissionListResult struct { NextToken string `xml:"NextToken"` HasNext bool `xml:"HasNext"` FeedSubmissionInfos []FeedSubmissionInfo `xml:"FeedSubmissionInfo"` }
GetFeedSubmissionListResult ...
type GetInboundGuidanceForSKUParams ¶ added in v2.3.0
type GetInboundGuidanceForSKUParams struct {
SellerSKUList []string
}
GetInboundGuidanceForSKUParams GetInboundGuidanceForSKU API params
type GetInboundGuidanceForSKUResponse ¶ added in v2.3.0
type GetInboundGuidanceForSKUResponse struct { XMLName xml.Name `xml:"GetInboundGuidanceForSKUResponse"` Xmlns string `xml:"xmlns,attr"` GetInboundGuidanceForSKUResult GetInboundGuidanceForSKUResult `xml:"GetInboundGuidanceForSKUResult"` InvalidSKUList InvalidSKUList `xml:"InvalidSKUList"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
GetInboundGuidanceForSKUResponse ...
type GetInboundGuidanceForSKUResult ¶ added in v2.3.0
type GetInboundGuidanceForSKUResult struct { SKUInboundGuidanceList SKUInboundGuidanceList `xml:"SKUInboundGuidanceList"` InvalidSKUList InvalidSKUList `xml:"InvalidSKUList"` }
GetInboundGuidanceForSKUResult ...
type GetReportListByNextTokenResponse ¶
type GetReportListByNextTokenResponse struct { XMLName xml.Name `xml:"GetReportListByNextTokenResponse"` Xmlns string `xml:"xmlns,attr"` GetReportListResult GetReportListResult `xml:"GetReportListResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
GetReportListByNextTokenResponse The Get report list by next token response
type GetReportListParams ¶ added in v2.3.0
type GetReportListParams struct { ReportType ReportType StartTime time.Time EndTime time.Time }
GetReportListParams ...
type GetReportListResponse ¶
type GetReportListResponse struct { XMLName xml.Name `xml:"GetReportListResponse"` Xmlns string `xml:"xmlns,attr"` GetReportListResult GetReportListResult `xml:"GetReportListResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
GetReportListResponse Get report list api response
type GetReportListResult ¶
type GetReportListResult struct { NextToken string `xml:"NextToken"` HasNext bool `xml:"HasNext"` ReportInfos []SingleReportInfoRow `xml:"ReportInfo"` }
GetReportListResult The Get report list result
type GuidanceReasonList ¶ added in v2.3.3
type GuidanceReasonList struct {
GuidanceReason string `xml:"GuidanceReason"`
}
GuidanceReasonList ...
type InboundShipmentItemData ¶ added in v2.4.0
type InboundShipmentItemData struct {
Members []InboundShipmentItemMember `xml:"member"`
}
InboundShipmentItemData ...
type InboundShipmentItemMember ¶ added in v2.4.0
type InboundShipmentItemMember struct { QuantityShipped string `xml:"QuantityShipped"` ShipmentID string `xml:"ShipmentId"` PrepDetailsList PrepDetailsList `xml:"PrepDetailsList"` FulfillmentNetworkSKU string `xml:"FulfillmentNetworkSKU"` SellerSKU string `xml:"SellerSKU"` QuantityReceived string `xml:"QuantityReceived"` QuantityInCase string `xml:"QuantityInCase"` }
InboundShipmentItemMember ...
type InvalidSKU ¶ added in v2.3.0
type InvalidSKU struct { ErrorReason string `xml:"ErrorReason"` SellerSKU string `xml:"SellerSKU"` }
InvalidSKU ...
type InvalidSKUList ¶ added in v2.3.0
type InvalidSKUList struct { XMLName xml.Name `xml:"InvalidSKUList"` InvalidSKUs []InvalidSKU `xml:"InvalidSKU"` }
InvalidSKUList ...
type InventoryReportRow ¶ added in v2.3.0
InventoryReportRow The inventory report row
func ParseInventoryReport ¶ added in v2.3.0
func ParseInventoryReport(csv string) []InventoryReportRow
ParseInventoryReport Parse Amazon inventory report
type InventorySupplyList ¶ added in v2.3.0
type InventorySupplyList struct {
Members []InventorySupplyMember `xml:"member"`
}
InventorySupplyList ...
type InventorySupplyMember ¶ added in v2.3.0
type InventorySupplyMember struct { Condition string `xml:"Condition"` SupplyDetail string `xml:"SupplyDetail"` TotalSupplyQuantity string `xml:"TotalSupplyQuantity"` EarliestAvailability EarliestAvailability `xml:"EarliestAvailability"` FNSKU string `xml:"FNSKU"` InStockSupplyQuantity string `xml:"InStockSupplyQuantity"` ASIN string `xml:"ASIN"` SellerSKU string `xml:"SellerSKU"` }
InventorySupplyMember ...
type ItemChargeAdjustmentList ¶ added in v2.2.4
type ItemChargeAdjustmentList struct {
ChargeComponents []ChargeComponent `xml:"ChargeComponent"`
}
ItemChargeAdjustmentList ...
type ItemChargeList ¶ added in v2.2.4
type ItemChargeList struct {
ChargeComponents []ChargeComponent `xml:"ChargeComponent"`
}
ItemChargeList ...
type ItemFeeAdjustmentList ¶ added in v2.2.4
type ItemFeeAdjustmentList struct {
FeeComponents []FeeComponent `xml:"FeeComponent"`
}
ItemFeeAdjustmentList ...
type ItemFeeList ¶ added in v2.2.4
type ItemFeeList struct {
FeeComponents []FeeComponent `xml:"FeeComponent"`
}
ItemFeeList ...
type ItemTaxWithheldList ¶
type ItemTaxWithheldList struct { TaxWithheldComponent struct { TaxCollectionModel string `xml:"TaxCollectionModel"` TaxesWithheld struct { ChargeComponents []ChargeComponent `xml:"ChargeComponent"` } `xml:"TaxesWithheld"` } `xml:"TaxWithheldComponent"` }
ItemTaxWithheldList ...
type ListFinancialEventsByNextTokenResponse ¶
type ListFinancialEventsByNextTokenResponse struct { XMLName xml.Name `xml:"ListFinancialEventsByNextTokenResponse"` Xmlns string `xml:"xmlns,attr"` ListFinancialEventsResult ListFinancialEventsResult `xml:"ListFinancialEventsByNextTokenResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListFinancialEventsByNextTokenResponse ...
type ListFinancialEventsParams ¶
ListFinancialEventsParams ListFinancialEvents API Params
type ListFinancialEventsResponse ¶
type ListFinancialEventsResponse struct { XMLName xml.Name `xml:"ListFinancialEventsResponse"` Xmlns string `xml:"xmlns,attr"` ListFinancialEventsResult ListFinancialEventsResult `xml:"ListFinancialEventsResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListFinancialEventsResponse ...
type ListFinancialEventsResult ¶
type ListFinancialEventsResult struct { NextToken string `xml:"NextToken"` FinancialEvents FinancialEvents `xml:"FinancialEvents"` }
ListFinancialEventsResult ...
type ListInboundShipmentItemsByNextTokenResponse ¶ added in v2.4.0
type ListInboundShipmentItemsByNextTokenResponse struct { XMLName xml.Name `xml:"ListInboundShipmentItemsByNextTokenResponse"` Xmlns string `xml:"xmlns,attr"` ListInboundShipmentItemsResult ListInboundShipmentItemsResult `xml:"ListInboundShipmentItemsByNextTokenResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListInboundShipmentItemsByNextTokenResponse ...
type ListInboundShipmentItemsParams ¶ added in v2.4.0
type ListInboundShipmentItemsParams struct { ShipmentID string LastUpdatedAfter time.Time LastUpdatedBefore time.Time }
ListInboundShipmentItemsParams ListInboundShipmentItems API params
type ListInboundShipmentItemsResponse ¶ added in v2.4.0
type ListInboundShipmentItemsResponse struct { XMLName xml.Name `xml:"ListInboundShipmentItemsResponse"` Xmlns string `xml:"xmlns,attr"` ListInboundShipmentItemsResult ListInboundShipmentItemsResult `xml:"ListInboundShipmentItemsResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListInboundShipmentItemsResponse ...
type ListInboundShipmentItemsResult ¶ added in v2.4.0
type ListInboundShipmentItemsResult struct { ItemData InboundShipmentItemData `xml:"ItemData"` NextToken string `xml:"NextToken"` }
ListInboundShipmentItemsResult ...
type ListInboundShipmentsByNextTokenResponse ¶
type ListInboundShipmentsByNextTokenResponse struct { XMLName xml.Name `xml:"ListInboundShipmentsByNextTokenResponse"` Xmlns string `xml:"xmlns,attr"` ListInboundShipmentsResult ListInboundShipmentsResult `xml:"ListInboundShipmentsByNextTokenResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListInboundShipmentsByNextTokenResponse ...
type ListInboundShipmentsParams ¶
type ListInboundShipmentsParams struct { ShipmentStatusList []ShipmentStatus LastUpdatedAfter time.Time LastUpdatedBefore time.Time }
ListInboundShipmentsParams ListInboundShipments API params
type ListInboundShipmentsResponse ¶
type ListInboundShipmentsResponse struct { XMLName xml.Name `xml:"ListInboundShipmentsResponse"` Xmlns string `xml:"xmlns,attr"` ListInboundShipmentsResult ListInboundShipmentsResult `xml:"ListInboundShipmentsResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListInboundShipmentsResponse ...
type ListInboundShipmentsResult ¶
type ListInboundShipmentsResult struct { NextToken string `xml:"NextToken"` ShipmentData ShipmentData `xml:"ShipmentData"` }
ListInboundShipmentsResult ...
type ListInventorySupplyByNextTokenResponse ¶ added in v2.3.0
type ListInventorySupplyByNextTokenResponse struct { XMLName xml.Name `xml:"ListInventorySupplyByNextTokenResponse"` Xmlns string `xml:"xmlns,attr"` ListInventorySupplyResult ListInventorySupplyResult `xml:"ListInventorySupplyByNextTokenResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListInventorySupplyByNextTokenResponse ...
type ListInventorySupplyParams ¶ added in v2.3.0
type ListInventorySupplyParams struct { SellerSkus []string QueryStartDateTime time.Time ResponseGroup SupplyDetailResponse }
ListInventorySupplyParams The ListInventorySupply params
type ListInventorySupplyResponse ¶ added in v2.3.0
type ListInventorySupplyResponse struct { XMLName xml.Name `xml:"ListInventorySupplyResponse"` Xmlns string `xml:"xmlns,attr"` ListInventorySupplyResult ListInventorySupplyResult `xml:"ListInventorySupplyResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListInventorySupplyResponse ...
type ListInventorySupplyResult ¶ added in v2.3.0
type ListInventorySupplyResult struct { MarketplaceID string `xml:"MarketplaceId"` InventorySupplyList InventorySupplyList `xml:"InventorySupplyList"` NextToken string `xml:"NextToken"` }
ListInventorySupplyResult ...
type ListOrderItemsByNextTokenResponse ¶ added in v2.5.0
type ListOrderItemsByNextTokenResponse struct { XMLName xml.Name `xml:"ListOrderItemsByNextTokenResponse"` Xmlns string `xml:"xmlns,attr"` ListOrderItemsResult ListOrderItemsResult `xml:"ListOrderItemsByNextTokenResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListOrderItemsByNextTokenResponse ...
type ListOrderItemsResponse ¶ added in v2.5.0
type ListOrderItemsResponse struct { XMLName xml.Name `xml:"ListOrderItemsResponse"` Xmlns string `xml:"xmlns,attr"` ListOrderItemsResult ListOrderItemsResult `xml:"ListOrderItemsResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListOrderItemsResponse ...
type ListOrderItemsResult ¶ added in v2.5.0
type ListOrderItemsResult struct { AmazonOrderID string `xml:"AmazonOrderId"` NextToken string `xml:"NextToken"` OrderItemList OrderItemList `xml:"OrderItems"` }
ListOrderItemsResult ...
type ListOrdersByNextTokenResponse ¶ added in v2.5.0
type ListOrdersByNextTokenResponse struct { XMLName xml.Name `xml:"ListOrdersByNextTokenResponse"` Xmlns string `xml:"xmlns,attr"` ListOrdersResult ListOrdersResult `xml:"ListOrdersByNextTokenResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListOrdersByNextTokenResponse ...
type ListOrdersParams ¶
type ListOrdersParams struct { LastUpdatedAfter time.Time LastUpdatedBefore time.Time Statuses []OrderStatus }
ListOrdersParams MWS ListOrders API params
type ListOrdersResponse ¶
type ListOrdersResponse struct { XMLName xml.Name `xml:"ListOrdersResponse"` Xmlns string `xml:"xmlns,attr"` ListOrdersResult ListOrdersResult `xml:"ListOrdersResult"` ResponseMetadata ResponseMetadata `xml:"ResponseMetadata"` }
ListOrdersResponse ...
type ListOrdersResult ¶
type ListOrdersResult struct { NextToken string `xml:"NextToken"` OrderList OrderList `xml:"Orders"` LastUpdatedBefore string `xml:"LastUpdatedBefore"` }
ListOrdersResult ...
type OrderInfo ¶
type OrderInfo struct { 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 { PaymentMethodDetail string `xml:"PaymentMethodDetail"` } `xml:"PaymentMethodDetails"` IsGlobalExpressEnabled string `xml:"IsGlobalExpressEnabled"` IsSoldByAB string `xml:"IsSoldByAB"` IsPremiumOrder string `xml:"IsPremiumOrder"` OrderTotal OrderTotal `xml:"OrderTotal"` EarliestShipDate string `xml:"EarliestShipDate"` MarketplaceID string `xml:"MarketplaceId"` FulfillmentChannel string `xml:"FulfillmentChannel"` PaymentMethod string `xml:"PaymentMethod"` ShippingAddress OrderShippingAddress `xml:"ShippingAddress"` IsISPU string `xml:"IsISPU"` IsPrime string `xml:"IsPrime"` SellerOrderID string `xml:"SellerOrderId"` ShipmentServiceLevelCategory string `xml:"ShipmentServiceLevelCategory"` }
OrderInfo ...
type OrderItem ¶ added in v2.5.0
type OrderItem struct { QuantityOrdered string `xml:"QuantityOrdered"` Title string `xml:"Title"` PromotionDiscount struct { Amount string `xml:"Amount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"PromotionDiscount"` IsGift string `xml:"IsGift"` ASIN string `xml:"ASIN"` SellerSKU string `xml:"SellerSKU"` OrderItemID string `xml:"OrderItemId"` IsTransparency string `xml:"IsTransparency"` ProductInfo struct { NumberOfItems string `xml:"NumberOfItems"` } `xml:"ProductInfo"` QuantityShipped string `xml:"QuantityShipped"` ItemPrice struct { Amount string `xml:"Amount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"ItemPrice"` ItemTax struct { Amount string `xml:"Amount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"ItemTax"` PromotionDiscountTax struct { Amount string `xml:"Amount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"PromotionDiscountTax"` }
OrderItem ...
type OrderItemList ¶ added in v2.5.0
type OrderItemList struct {
OrderItems []OrderItem `xml:"OrderItem"`
}
OrderItemList ...
type OrderShippingAddress ¶ added in v2.5.0
type OrderShippingAddress struct { City string `xml:"City"` PostalCode string `xml:"PostalCode"` IsAddressSharingConfidential string `xml:"isAddressSharingConfidential"` StateOrRegion string `xml:"StateOrRegion"` CountryCode string `xml:"CountryCode"` }
OrderShippingAddress ...
type OrderTotal ¶ added in v2.5.0
OrderTotal ...
type PrepDetail ¶ added in v2.4.1
type PrepDetail struct { PrepOwner string `xml:"PrepOwner"` PrepInstruction string `xml:"PrepInstruction"` }
PrepDetail ...
type PrepDetailsList ¶ added in v2.4.1
type PrepDetailsList struct {
PrepDetails []PrepDetail `xml:"PrepDetails"`
}
PrepDetailsList ...
type ProductAdsPaymentEventList ¶
type ProductAdsPaymentEventList struct { ProductAdsPaymentEvents []struct { TransactionType string `xml:"transactionType"` BaseValue struct { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"baseValue"` TaxValue struct { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"taxValue"` InvoiceID string `xml:"invoiceId"` TransactionValue struct { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"transactionValue"` PostedDate string `xml:"postedDate"` } `xml:"ProductAdsPaymentEvent"` }
ProductAdsPaymentEventList ...
type Promotion ¶
type Promotion struct { PromotionType string `xml:"PromotionType"` PromotionAmount struct { CurrencyAmount string `xml:"CurrencyAmount"` CurrencyCode string `xml:"CurrencyCode"` } `xml:"PromotionAmount"` PromotionID string `xml:"PromotionId"` }
Promotion ...
type PromotionList ¶ added in v2.2.4
type PromotionList struct {
Promotions []Promotion `xml:"Promotion"`
}
PromotionList ...
type RefundEventList ¶
type RefundEventList struct {
ShipmentEvents []FinancialRefundShipmentEvent `xml:"ShipmentEvent"`
}
RefundEventList ...
type ReportType ¶ added in v2.3.0
type ReportType string
ReportType The Amazon report type
const ( // SettlementReport ... SettlementReport ReportType = "_GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2_" // InventoryReport ... InventoryReport = "_GET_FLAT_FILE_OPEN_LISTINGS_DATA_" )
type ResponseMetadata ¶
type ResponseMetadata struct {
RequestID string `xml:"RequestId"`
}
ResponseMetadata ...
type SKUInboundGuidance ¶ added in v2.3.0
type SKUInboundGuidance struct { InboundGuidance string `xml:"InboundGuidance"` GuidanceReasonList GuidanceReasonList `xml:"GuidanceReasonList"` ASIN string `xml:"ASIN"` SellerSKU string `xml:"SellerSKU"` }
SKUInboundGuidance ...
type SKUInboundGuidanceList ¶ added in v2.3.0
type SKUInboundGuidanceList struct {
SKUInboundGuidances []SKUInboundGuidance `xml:"SKUInboundGuidance"`
}
SKUInboundGuidanceList ...
type Seller ¶
type Seller struct { Country string SellerID string AuthToken string AccessKey string SecretKey string }
Seller The seller info
func (*Seller) GetFeedSubmissionList ¶
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) GetFeedSubmissionListByNextToken ¶ added in v2.5.0
func (seller *Seller) GetFeedSubmissionListByNextToken(nextToken string) GetFeedSubmissionListResult
GetFeedSubmissionListByNextToken ...
func (*Seller) GetFeedSubmissionResult ¶ added in v2.4.0
GetFeedSubmissionResult ...
func (*Seller) GetInboundGuidanceForSKU ¶ added in v2.3.0
func (seller *Seller) GetInboundGuidanceForSKU(params GetInboundGuidanceForSKUParams) ([]SKUInboundGuidance, []InvalidSKU)
GetInboundGuidanceForSKU ...
func (*Seller) GetReportByID ¶
GetReportByID Get seller report by report id
func (*Seller) GetReportList ¶
func (seller *Seller) GetReportList(params GetReportListParams) []string
GetReportList Get all report ids if has next
func (*Seller) ListFinancialEvents ¶
func (seller *Seller) ListFinancialEvents(params ListFinancialEventsParams) []FinancialEvents
ListFinancialEvents ...
func (*Seller) ListFinancialEventsByNextToken ¶ added in v2.5.0
func (seller *Seller) ListFinancialEventsByNextToken(nextToken string) ListFinancialEventsResult
ListFinancialEventsByNextToken ...
func (*Seller) ListInboundShipmentItems ¶ added in v2.4.0
func (seller *Seller) ListInboundShipmentItems(params ListInboundShipmentItemsParams) []InboundShipmentItemMember
ListInboundShipmentItems ...
func (*Seller) ListInboundShipmentItemsByNextToken ¶ added in v2.5.0
func (seller *Seller) ListInboundShipmentItemsByNextToken(nextToken string) ListInboundShipmentItemsResult
ListInboundShipmentItemsByNextToken ...
func (*Seller) ListInboundShipments ¶
func (seller *Seller) ListInboundShipments(params ListInboundShipmentsParams) []ShipmentMember
ListInboundShipments ...
func (*Seller) ListInboundShipmentsByNextToken ¶ added in v2.5.0
func (seller *Seller) ListInboundShipmentsByNextToken(nextToken string) ListInboundShipmentsResult
ListInboundShipmentsByNextToken ...
func (*Seller) ListInventorySupply ¶ added in v2.3.0
func (seller *Seller) ListInventorySupply(params ListInventorySupplyParams) []InventorySupplyMember
ListInventorySupply ...
func (*Seller) ListInventorySupplyByNextToken ¶ added in v2.5.0
func (seller *Seller) ListInventorySupplyByNextToken(nextToken string) ListInventorySupplyResult
ListInventorySupplyByNextToken ...
func (*Seller) ListOrderItems ¶ added in v2.5.0
ListOrderItems List order items
func (*Seller) ListOrderItemsByNextToken ¶ added in v2.5.0
func (seller *Seller) ListOrderItemsByNextToken(nextToken string) ListOrderItemsResult
ListOrderItemsByNextToken ...
func (*Seller) ListOrders ¶
func (seller *Seller) ListOrders(params ListOrdersParams) []OrderInfo
ListOrders List orders
func (*Seller) ListOrdersByNextToken ¶ added in v2.5.0
func (seller *Seller) ListOrdersByNextToken(nextToken string) ListOrdersResult
ListOrdersByNextToken ...
type ServiceFeeEventList ¶
type ServiceFeeEventList struct {
ServiceFeeEvents []FinancialServiceFeeEvent `xml:"ServiceFeeEvent"`
}
ServiceFeeEventList ...
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
func ParseSettlementReport ¶ added in v2.3.0
func ParseSettlementReport(csv string) []SettlementReportRow
ParseSettlementReport Parse Amazon settlement report
type ShipFromAddress ¶ added in v2.2.5
type ShipFromAddress struct { 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"` }
ShipFromAddress ...
type ShipmentData ¶
type ShipmentData struct {
Members []ShipmentMember `xml:"member"`
}
ShipmentData ...
type ShipmentEventList ¶
type ShipmentEventList struct {
ShipmentEvents []FinancialShipmentEvent `xml:"ShipmentEvent"`
}
ShipmentEventList ...
type ShipmentItem ¶
type ShipmentItem struct { ItemTaxWithheldList ItemTaxWithheldList `xml:"ItemTaxWithheldList"` ItemChargeList ItemChargeList `xml:"ItemChargeList"` ItemFeeList ItemFeeList `xml:"ItemFeeList"` OrderItemID string `xml:"OrderItemId"` QuantityShipped string `xml:"QuantityShipped"` SellerSKU string `xml:"SellerSKU"` PromotionList PromotionList `xml:"PromotionList"` }
ShipmentItem ...
type ShipmentItemAdjustment ¶
type ShipmentItemAdjustment struct { ItemTaxWithheldList ItemTaxWithheldList `xml:"ItemTaxWithheldList"` ItemFeeAdjustmentList ItemFeeAdjustmentList `xml:"ItemFeeAdjustmentList"` OrderAdjustmentItemID string `xml:"OrderAdjustmentItemId"` QuantityShipped string `xml:"QuantityShipped"` ItemChargeAdjustmentList ItemChargeAdjustmentList `xml:"ItemChargeAdjustmentList"` SellerSKU string `xml:"SellerSKU"` PromotionAdjustmentList PromotionList `xml:"PromotionAdjustmentList"` }
ShipmentItemAdjustment ...
type ShipmentMember ¶
type ShipmentMember struct { DestinationFulfillmentCenterID string `xml:"DestinationFulfillmentCenterId"` LabelPrepType string `xml:"LabelPrepType"` ShipFromAddress ShipFromAddress `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 { 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
type SupplyDetailResponse ¶ added in v2.3.0
type SupplyDetailResponse string
SupplyDetailResponse The ResponseGroup param for ListInventorySupply
const ( // SupplyDetailResponseBasic ... SupplyDetailResponseBasic SupplyDetailResponse = "Basic" // SupplyDetailResponseDetail ... SupplyDetailResponseDetail = "SupplyDetail" )
Source Files ¶
- common_model.go
- constant.go
- feed_submission_list.go
- feed_submission_list_model.go
- feed_submission_result.go
- finance.go
- finance_model.go
- inbound_guidance.go
- inbound_guidance_model.go
- inbound_shipment.go
- inbound_shipment_item.go
- inbound_shipment_item_model.go
- inbound_shipment_model.go
- inventory.go
- inventory_model.go
- order.go
- order_item.go
- order_item_model.go
- order_model.go
- report.go
- report_model.go
- report_util.go
- seller.go
- util.go