Versions in this module Expand all Collapse all v1 v1.5.0 Jun 8, 2021 Changes in this version + func CheckUTF8(b []byte) []byte + func PrintToFile(b []byte, fileName string) + func StringToIntSlice(strs []string) []int + type Api struct + Debug bool + func NewApi() *Api + func (a *Api) UpdateOrderStatus(os []OrdStatus) + func (api *Api) UpdateProducts(products []Product, createNew bool) + func (self *Api) CatalogRequestConfirm(o string) + func (self *Api) Execute() (n []byte) + func (self *Api) GetAllCategories(isTopLevel bool) + func (self *Api) GetAllCategoriesExcept(exceptIDs []string) + func (self *Api) GetCatalogRequestsNew() CatalogRequests + func (self *Api) GetCustomerGroups() + func (self *Api) GetOrdersNew() + func (self *Api) GetOrdersRange(o string, p string) + func (self *Api) GetProductIds() ProductIDs + func (self *Api) GetProductRange(start string, end string) + func (self *Api) GetProductSKU(o string, t bool) + func (self *Api) GetProductSKUs(o []string, t bool) + func (self *Api) GetProductSingle(o []string) + func (self *Api) GetProductSingleBySKU(o string) + func (self *Api) GetProductSkus() + func (self *Api) OrderConfirm(o []string) + func (self *Api) PushInventory(o string, t bool) + func (self *Api) SetCredentials(username, password, serviceID string) + func (self *Api) UnmarshalCategories(n []byte) Categories + func (self *Api) UnmarshalInventory(n []byte) Products + func (self *Api) UnmarshalOrders(n []byte) Orders + func (self *Api) UnmarshalProduct(n []byte) Product + type Attribute struct + Active string + Values []string + type C struct + CV3Data RequestBody + Confirms []Confirm + OrderStatuses []OrderStatus + Products Products + type CV3Data struct + CV3Data RequestBody + Confirms []Confirm + OrderStatuses []OrderStatus + Products []ProductCall + type CatalogRequest struct + Address string + Address2 string + CatalogId string + City string + Company string + Country string + DateRequested string + Email string + FirstName string + LastName string + Phone string + PostalCode string + Source string + State string + Type string + type CatalogRequests struct + CatalogRequests []CatalogRequest + type Categories struct + Categories []Category + type Category struct + CustomFields []Custom + Description string + Featured string + FeaturedProducts []string + ID string + Invisible string + MetaDescription string + MetaKeywords string + MetaTitle string + Name string + NumProductsPerPage string + Products []string + SubCategories []SubCategory + Template string + TopLevel string + URLName string + type Confirm struct + Confirm string + type Credentials struct + Debug bool + Password string + ServiceID string + User string + XMLName xml.Name + func (c *Credentials) GetPendingOrders() (*Orders, error) + func (c *Credentials) GetPendingOrdersWithProducts() (*Orders, error) + func (c *Credentials) RemoveOrdersFromPending(orders *Orders) error + func (c *Credentials) UpdateOrderStatus(status []OrdStatus) error + func (c *Credentials) UpdateProducts(products []Product, createNew bool) error + type Custom struct + Custom string + ID string + type CustomField struct + Value string + type DependancyProducts struct + SKUs []string + Type string + type Document struct + DaysAvailable string + Description string + type ElectronicDelivery struct + Active string + Document Document + type GiftCardPayment struct + Amount string + Certificate string + type GiftCertificate struct + Active string + DaysAvailable string + Value string + type Image struct + ImageSetLarge string + ImageSetPoprUp string + ImageSetThumb string + type Images struct + Image []Image + type InventoryControl struct + InventoryBackorderedDate string + InventoryControlExempt string + InventoryOnHand string + InventoryStatus string + OnOrder string + OutOfStock string + type Meta struct + MetaDescription string + MetaKeywords string + MetaTitle string + type OrdStatus struct + CustomerNumber string + OrderID string + SendTrackingNotification bool + Status string + Tracking string + type Order struct + AuthAmount string + AuthCode string + BillingAddress string + BillingAddress2 string + BillingCity string + BillingCompany string + BillingCountry string + BillingEmail string + BillingFirstName string + BillingLastName string + BillingOptOut string + BillingPhone string + BillingState string + BillingTitle string + BillingTransactionID string + BillingZip string + CCExpM string + CCExpY string + CCName string + CCNum string + CCType string + Comments string + CustomFields []CustomField + DateOrdered string + GiftCardPayments []GiftCardPayment + GiftCardPaymentsTotal string + IP string + MemberID string + OrderID string + PayMethod string + PayPalAmount string + PayPalBuyer string + PayPalTransactionID string + PriceCategory string + PromoCode string + PurchaseOrder string + RequestToken string + ShipTos []ShipTo + SourceCode string + SubTotal string + TimeOrdered string + TotalOrderDiscount TotalOrderDiscount + TotalPrice string + TotalShipping string + TotalTax string + type OrderStatus struct + OrderStatus string + type Orders struct + Orders []Order + type Package struct + Height string + Length string + ShipsInOwnBox string + Width string + type Price struct + type Pricing struct + PriceCategory string + SpecialPrice string + StandardPrice string + type ProdCategories struct + IDs []string + type ProdCustomField struct + Id string + Value string + type Product struct + Brand string + Categories *ProdCategories + Description string + Images *Images + Inactive string + InventoryControl *InventoryControl + Keywords string + Meta *Meta + Name string + OutOfSeason string + ParentSKU string + ProdCustomFields []ProdCustomField + ProdId string + Retail *Retail + Shipping *Shipping + Sku string + Special *Special + SubProducts *SubProducts + UrlName string + Weight *Weight + WholeSale *WholeSale + XMLName xml.Name + type ProductCall struct + ProductCall string + type ProductIDs struct + ID []string + type Products struct + Products []Product + XMLName xml.Name + type Request struct + Request string + type RequestBody struct + Auth Credentials + Requests []Request + XMLName xml.Name + type Retail struct + Active string + Price []Pricing + type ShipTo struct + Address string + Address2 string + City string + Company string + Country string + FirstName string + GiftWrap string + LastName string + Message string + Name string + Phone string + ShipEmail string + ShipMethod string + ShipMethodCode string + ShipOn string + ShipToProducts []ShipToProduct + Shipping string + State string + Tax string + Title string + Zip string + type ShipToProduct struct + Price string + Product Product + Quantity string + SKU string + type Shipping struct + FixedRate string + Package Package + ShipPreference string + type Special struct + AllowFree string + End string + Ongoing string + Start string + type SubCategory struct + ID string + Invisible string + Name string + type SubProduct struct + Active string + AltID string + Attribute Attribute + ElectronicDelivery ElectronicDelivery + GiftCertificate GiftCertificate + GoogleCheckoutExempt string + Image string + Inactive string + InventoryControl InventoryControl + Name string + OutOfSeason string + ProdId string + Retail Retail + Shipping Shipping + Sku string + Special Special + Subscription Subscription + TaxExempt string + Weight Weight + WholeSale WholeSale + XMLName xml.Name + type SubProducts struct + Active string + SubProducts []SubProduct + type Subscription struct + Active string + Price string + type TotalOrderDiscount struct + Amount string + TotalDiscount string + Type string + type Weight struct + DisplayUnit string + DisplayWeight string + ShipWeight string + type WholeSale struct + Active string + Qty string + StandardPrice string