shipstation

package
v1.4.5-alpha1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConstConfigPathShipstation         = "general.shipstation"
	ConstConfigPathShipstationEnabled  = "general.shipstation.enabled"
	ConstConfigPathShipstationUsername = "general.shipstation.username"
	ConstConfigPathShipstationPassword = "general.shipstation.password"
)
View Source
const (
	ConstErrorModule = "shipstation"
	ConstErrorLevel  = env.ConstErrorLevel
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingAddress

type BillingAddress struct {
	Name string
}

type Customer

type Customer struct {
	CustomerCode string // We use email address here

	// Containers
	BillingAddress  BillingAddress  `xml:"BillTo"`
	ShippingAddress ShippingAddress `xml:"ShipTo"`
}

type Order

type Order struct {
	OrderId        string `xml:"OrderID"`
	OrderNumber    string
	OrderDate      string // Set to string because we can't control the date formatting otherwise
	OrderStatus    string
	LastModified   string // Same formatting issue
	TaxAmount      float64
	ShippingAmount float64
	OrderTotal     float64

	// Containers
	Customer Customer
	Items    []OrderItem `xml:"Items>Item"`
}

type OrderItem

type OrderItem struct {
	Sku        string `xml:"SKU"`
	Name       string
	Quantity   int
	UnitPrice  float64
	Adjustment bool
}

type Orders

type Orders struct {
	Orders []Order `xml:"Order"`
}

struct goes here

type ShippingAddress

type ShippingAddress struct {
	Name       string
	Address1   string
	City       string
	State      string
	PostalCode string
	Country    string
}

Jump to

Keyboard shortcuts

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