Versions in this module Expand all Collapse all v1 v1.3.0 Mar 21, 2019 Changes in this version type Client + DiscountCode DiscountCodeService + InventoryItem InventoryItemService + type DiscountCodeResource struct + PriceRuleDiscountCode *PriceRuleDiscountCode + type DiscountCodeService interface + Create func(int, PriceRuleDiscountCode) (*PriceRuleDiscountCode, error) + Delete func(int, int) error + Get func(int, int) (*PriceRuleDiscountCode, error) + List func(int) ([]PriceRuleDiscountCode, error) + Update func(int, PriceRuleDiscountCode) (*PriceRuleDiscountCode, error) + type DiscountCodeServiceOp struct + func (s *DiscountCodeServiceOp) Create(priceRuleID int, dc PriceRuleDiscountCode) (*PriceRuleDiscountCode, error) + func (s *DiscountCodeServiceOp) Delete(priceRuleID int, discountCodeID int) error + func (s *DiscountCodeServiceOp) Get(priceRuleID int, discountCodeID int) (*PriceRuleDiscountCode, error) + func (s *DiscountCodeServiceOp) List(priceRuleID int) ([]PriceRuleDiscountCode, error) + func (s *DiscountCodeServiceOp) Update(priceRuleID int, dc PriceRuleDiscountCode) (*PriceRuleDiscountCode, error) + type DiscountCodesResource struct + DiscountCodes []PriceRuleDiscountCode + type InventoryItem struct + AdminGraphqlAPIID string + Cost *decimal.Decimal + CreatedAt *time.Time + ID int + SKU string + Tracked *bool + UpdatedAt *time.Time + type InventoryItemResource struct + InventoryItem *InventoryItem + type InventoryItemService interface + Get func(int, interface{}) (*InventoryItem, error) + List func(interface{}) ([]InventoryItem, error) + Update func(InventoryItem) (*InventoryItem, error) + type InventoryItemServiceOp struct + func (s *InventoryItemServiceOp) Get(id int, options interface{}) (*InventoryItem, error) + func (s *InventoryItemServiceOp) List(options interface{}) ([]InventoryItem, error) + func (s *InventoryItemServiceOp) Update(item InventoryItem) (*InventoryItem, error) + type InventoryItemsResource struct + InventoryItems []InventoryItem + type PriceRuleDiscountCode struct + Code string + CreatedAt *time.Time + ID int + PriceRuleID int + UpdatedAt *time.Time + UsageCount int type Shop + EligibleForPayments bool + GoogleAppsDomain string + GoogleAppsLoginEnabled bool + MoneyInEmailsFormat string + MoneyWithCurrencyInEmailsFormat string + RequiresExtraPaymentsAgreement bool + Source string v1.2.0 Dec 20, 2018 Changes in this version type Client + Collect CollectService + CustomerAddress CustomerAddressService + Location LocationService + UsageCharge UsageChargeService + type Collect struct + CollectionID int + CreatedAt *time.Time + Featured bool + ID int + Position int + ProductID int + SortValue string + UpdatedAt *time.Time + type CollectResource struct + Collect *Collect + type CollectService interface + Count func(interface{}) (int, error) + List func(interface{}) ([]Collect, error) + type CollectServiceOp struct + func (s *CollectServiceOp) Count(options interface{}) (int, error) + func (s *CollectServiceOp) List(options interface{}) ([]Collect, error) + type CollectsResource struct + Collects []Collect + type CustomerAddressResource struct + Address *CustomerAddress + type CustomerAddressService interface + Create func(int, CustomerAddress) (*CustomerAddress, error) + Delete func(int, int) error + Get func(int, int, interface{}) (*CustomerAddress, error) + List func(int, interface{}) ([]CustomerAddress, error) + Update func(int, CustomerAddress) (*CustomerAddress, error) + type CustomerAddressServiceOp struct + func (s *CustomerAddressServiceOp) Create(customerID int, address CustomerAddress) (*CustomerAddress, error) + func (s *CustomerAddressServiceOp) Delete(customerID, addressID int) error + func (s *CustomerAddressServiceOp) Get(customerID, addressID int, options interface{}) (*CustomerAddress, error) + func (s *CustomerAddressServiceOp) List(customerID int, options interface{}) ([]CustomerAddress, error) + func (s *CustomerAddressServiceOp) Update(customerID int, address CustomerAddress) (*CustomerAddress, error) + type CustomerAddressesResource struct + Addresses []CustomerAddress type CustomerService + ListTags func(interface{}) ([]string, error) type CustomerServiceOp + func (s *CustomerServiceOp) ListTags(options interface{}) ([]string, error) + type CustomerTagsResource struct + Tags []string + type Location struct + Active bool + Address1 string + Address2 string + AdminGraphqlAPIID string + City string + Country string + CountryCode string + CountryName string + CreatedAt time.Time + ID int + Legacy bool + Name string + Phone string + Province string + ProvinceCode string + UpdatedAt time.Time + Zip string + type LocationResource struct + Location *Location + type LocationService interface + Count func(options interface{}) (int, error) + Get func(ID int, options interface{}) (*Location, error) + List func(options interface{}) ([]Location, error) + type LocationServiceOp struct + func (s *LocationServiceOp) Count(options interface{}) (int, error) + func (s *LocationServiceOp) Get(ID int, options interface{}) (*Location, error) + func (s *LocationServiceOp) List(options interface{}) ([]Location, error) + type LocationsResource struct + Locations []Location type OrderService + Update func(Order) (*Order, error) type OrderServiceOp + func (s *OrderServiceOp) Update(order Order) (*Order, error) type Product + AdminGraphqlAPIID string type RefundLineItem + Subtotal *decimal.Decimal + TotalTax *decimal.Decimal + type UsageCharge struct + BalanceRemaining *decimal.Decimal + BalanceUsed *decimal.Decimal + BillingOn *time.Time + CreatedAt *time.Time + Description string + ID int + Price *decimal.Decimal + RiskLevel *decimal.Decimal + func (r *UsageCharge) UnmarshalJSON(data []byte) error + type UsageChargeResource struct + Charge *UsageCharge + type UsageChargeService interface + Create func(int, UsageCharge) (*UsageCharge, error) + Get func(int, int, interface{}) (*UsageCharge, error) + List func(int, interface{}) ([]UsageCharge, error) + type UsageChargeServiceOp struct + func (r *UsageChargeServiceOp) Create(chargeID int, usageCharge UsageCharge) (*UsageCharge, error) + func (r *UsageChargeServiceOp) Get(chargeID int, usageChargeID int, options interface{}) (*UsageCharge, error) + func (r *UsageChargeServiceOp) List(chargeID int, options interface{}) ([]UsageCharge, error) + type UsageChargesResource struct + Charges []UsageCharge type Variant + AdminGraphqlAPIID string v1.1.0 Sep 28, 2018 Changes in this version type App + func (app App) VerifyWebhookRequestVerbose(httpRequest *http.Request) (bool, error) type Client + StorefrontAccessToken StorefrontAccessTokenService type CustomerService + ListOrders func(int, interface{}) ([]Order, error) type CustomerServiceOp + func (s *CustomerServiceOp) ListOrders(customerID int, options interface{}) ([]Order, error) type ListOptions + IDs []int type Shop + PrimaryLocationId int + type StorefrontAccessToken struct + AccessScope string + AccessToken string + AdminGraphqlAPIID string + CreatedAt *time.Time + ID int + Title string + type StorefrontAccessTokenResource struct + StorefrontAccessToken *StorefrontAccessToken + type StorefrontAccessTokenService interface + Create func(StorefrontAccessToken) (*StorefrontAccessToken, error) + Delete func(int) error + List func(interface{}) ([]StorefrontAccessToken, error) + type StorefrontAccessTokenServiceOp struct + func (s *StorefrontAccessTokenServiceOp) Create(storefrontAccessToken StorefrontAccessToken) (*StorefrontAccessToken, error) + func (s *StorefrontAccessTokenServiceOp) Delete(ID int) error + func (s *StorefrontAccessTokenServiceOp) List(options interface{}) ([]StorefrontAccessToken, error) + type StorefrontAccessTokensResource struct + StorefrontAccessTokens []StorefrontAccessToken v1.0.0 Sep 13, 2018 Changes in this version + const UserAgent + func CheckResponseError(r *http.Response) error + func FulfillmentPathPrefix(resource string, resourceID int) string + func MetafieldPathPrefix(resource string, resourceID int) string + func ShopBaseUrl(name string) string + func ShopFullName(name string) string + func ShopShortName(name string) string + type Address struct + Address1 string + Address2 string + City string + Company string + Country string + CountryCode string + FirstName string + ID int + LastName string + Latitude float64 + Longitude float64 + Name string + Phone string + Province string + ProvinceCode string + Zip string + type App struct + ApiKey string + ApiSecret string + Password string + RedirectUrl string + Scope string + func (a App) NewClient(shopName, token string) *Client + func (app App) AuthorizeUrl(shopName string, state string) string + func (app App) GetAccessToken(shopName string, code string) (string, error) + func (app App) VerifyAuthorizationURL(u *url.URL) (bool, error) + func (app App) VerifyMessage(message, messageMAC string) bool + func (app App) VerifyWebhookRequest(httpRequest *http.Request) bool + type ApplicationCharge struct + APIClientID int + ChargeType *string + ConfirmationURL string + CreatedAt *time.Time + DecoratedReturnURL string + ID int + Name string + Price *decimal.Decimal + ReturnURL string + Status string + Test *bool + UpdatedAt *time.Time + type ApplicationChargeResource struct + Charge *ApplicationCharge + type ApplicationChargeService interface + Activate func(ApplicationCharge) (*ApplicationCharge, error) + Create func(ApplicationCharge) (*ApplicationCharge, error) + Get func(int, interface{}) (*ApplicationCharge, error) + List func(interface{}) ([]ApplicationCharge, error) + type ApplicationChargeServiceOp struct + func (a ApplicationChargeServiceOp) Activate(charge ApplicationCharge) (*ApplicationCharge, error) + func (a ApplicationChargeServiceOp) Create(charge ApplicationCharge) (*ApplicationCharge, error) + func (a ApplicationChargeServiceOp) Get(chargeID int, options interface{}) (*ApplicationCharge, error) + func (a ApplicationChargeServiceOp) List(options interface{}) ([]ApplicationCharge, error) + type ApplicationChargesResource struct + Charges []ApplicationCharge + type Asset struct + Attachment string + ContentType string + CreatedAt *time.Time + Key string + PublicURL string + Size int + SourceKey string + Src string + ThemeID int + UpdatedAt *time.Time + Value string + type AssetResource struct + Asset *Asset + type AssetService interface + Delete func(int, string) error + Get func(int, string) (*Asset, error) + List func(int, interface{}) ([]Asset, error) + Update func(int, Asset) (*Asset, error) + type AssetServiceOp struct + func (s *AssetServiceOp) Delete(themeID int, key string) error + func (s *AssetServiceOp) Get(themeID int, key string) (*Asset, error) + func (s *AssetServiceOp) List(themeID int, options interface{}) ([]Asset, error) + func (s *AssetServiceOp) Update(themeID int, asset Asset) (*Asset, error) + type AssetsResource struct + Assets []Asset + type Blog struct + Commentable string + CreatedAt *time.Time + Feedburner string + FeedburnerLocation string + Handle string + ID int + Metafield Metafield + Tags string + TemplateSuffix string + Title string + UpdatedAt *time.Time + type BlogResource struct + Blog *Blog + type BlogService interface + Count func(interface{}) (int, error) + Create func(Blog) (*Blog, error) + Delete func(int) error + Get func(int, interface{}) (*Blog, error) + List func(interface{}) ([]Blog, error) + Update func(Blog) (*Blog, error) + type BlogServiceOp struct + func (s *BlogServiceOp) Count(options interface{}) (int, error) + func (s *BlogServiceOp) Create(blog Blog) (*Blog, error) + func (s *BlogServiceOp) Delete(blogId int) error + func (s *BlogServiceOp) Get(blogId int, options interface{}) (*Blog, error) + func (s *BlogServiceOp) List(options interface{}) ([]Blog, error) + func (s *BlogServiceOp) Update(blog Blog) (*Blog, error) + type BlogsResource struct + Blogs []Blog + type Client struct + ApplicationCharge ApplicationChargeService + Asset AssetService + Blog BlogService + Client *http.Client + CustomCollection CustomCollectionService + Customer CustomerService + Image ImageService + Metafield MetafieldService + Order OrderService + Page PageService + Product ProductService + RecurringApplicationCharge RecurringApplicationChargeService + Redirect RedirectService + ScriptTag ScriptTagService + Shop ShopService + SmartCollection SmartCollectionService + Theme ThemeService + Transaction TransactionService + Variant VariantService + Webhook WebhookService + func NewClient(app App, shopName, token string) *Client + func (c *Client) Count(path string, options interface{}) (int, error) + func (c *Client) CreateAndDo(method, path string, data, options, resource interface{}) error + func (c *Client) Delete(path string) error + func (c *Client) Do(req *http.Request, v interface{}) error + func (c *Client) Get(path string, resource, options interface{}) error + func (c *Client) NewRequest(method, urlStr string, body, options interface{}) (*http.Request, error) + func (c *Client) Post(path string, data, resource interface{}) error + func (c *Client) Put(path string, data, resource interface{}) error + type ClientDetails struct + AcceptLanguage string + BrowserHeight int + BrowserIp string + BrowserWidth int + SessionHash string + UserAgent string + type CountOptions struct + CreatedAtMax time.Time + CreatedAtMin time.Time + UpdatedAtMax time.Time + UpdatedAtMin time.Time + type CustomCollection struct + BodyHTML string + Handle string + ID int + Image Image + Metafields []Metafield + Published bool + PublishedAt *time.Time + PublishedScope string + SortOrder string + TemplateSuffix string + Title string + UpdatedAt *time.Time + type CustomCollectionResource struct + Collection *CustomCollection + type CustomCollectionService interface + Count func(interface{}) (int, error) + Create func(CustomCollection) (*CustomCollection, error) + Delete func(int) error + Get func(int, interface{}) (*CustomCollection, error) + List func(interface{}) ([]CustomCollection, error) + Update func(CustomCollection) (*CustomCollection, error) + type CustomCollectionServiceOp struct + func (s *CustomCollectionServiceOp) Count(options interface{}) (int, error) + func (s *CustomCollectionServiceOp) CountMetafields(customCollectionID int, options interface{}) (int, error) + func (s *CustomCollectionServiceOp) Create(collection CustomCollection) (*CustomCollection, error) + func (s *CustomCollectionServiceOp) CreateMetafield(customCollectionID int, metafield Metafield) (*Metafield, error) + func (s *CustomCollectionServiceOp) Delete(collectionID int) error + func (s *CustomCollectionServiceOp) DeleteMetafield(customCollectionID int, metafieldID int) error + func (s *CustomCollectionServiceOp) Get(collectionID int, options interface{}) (*CustomCollection, error) + func (s *CustomCollectionServiceOp) GetMetafield(customCollectionID int, metafieldID int, options interface{}) (*Metafield, error) + func (s *CustomCollectionServiceOp) List(options interface{}) ([]CustomCollection, error) + func (s *CustomCollectionServiceOp) ListMetafields(customCollectionID int, options interface{}) ([]Metafield, error) + func (s *CustomCollectionServiceOp) Update(collection CustomCollection) (*CustomCollection, error) + func (s *CustomCollectionServiceOp) UpdateMetafield(customCollectionID int, metafield Metafield) (*Metafield, error) + type CustomCollectionsResource struct + Collections []CustomCollection + type Customer struct + AcceptsMarketing bool + Addresses []*CustomerAddress + CreatedAt *time.Time + DefaultAddress *CustomerAddress + Email string + FirstName string + ID int + LastName string + LastOrderId int + LastOrderName string + Metafields []Metafield + MultipassIdentifier string + Note string + OrdersCount int + Phone string + State string + Tags string + TaxExempt bool + TotalSpent *decimal.Decimal + UpdatedAt *time.Time + VerifiedEmail bool + type CustomerAddress struct + Address1 string + Address2 string + City string + Company string + Country string + CountryCode string + CountryName string + CustomerID int + Default bool + FirstName string + ID int + LastName string + Name string + Phone string + Province string + ProvinceCode string + Zip string + type CustomerResource struct + Customer *Customer + type CustomerSearchOptions struct + Fields string + Limit int + Order string + Page int + Query string + type CustomerService interface + Count func(interface{}) (int, error) + Create func(Customer) (*Customer, error) + Delete func(int) error + Get func(int, interface{}) (*Customer, error) + List func(interface{}) ([]Customer, error) + Search func(interface{}) ([]Customer, error) + Update func(Customer) (*Customer, error) + type CustomerServiceOp struct + func (s *CustomerServiceOp) Count(options interface{}) (int, error) + func (s *CustomerServiceOp) CountMetafields(customerID int, options interface{}) (int, error) + func (s *CustomerServiceOp) Create(customer Customer) (*Customer, error) + func (s *CustomerServiceOp) CreateMetafield(customerID int, metafield Metafield) (*Metafield, error) + func (s *CustomerServiceOp) Delete(customerID int) error + func (s *CustomerServiceOp) DeleteMetafield(customerID int, metafieldID int) error + func (s *CustomerServiceOp) Get(customerID int, options interface{}) (*Customer, error) + func (s *CustomerServiceOp) GetMetafield(customerID int, metafieldID int, options interface{}) (*Metafield, error) + func (s *CustomerServiceOp) List(options interface{}) ([]Customer, error) + func (s *CustomerServiceOp) ListMetafields(customerID int, options interface{}) ([]Metafield, error) + func (s *CustomerServiceOp) Search(options interface{}) ([]Customer, error) + func (s *CustomerServiceOp) Update(customer Customer) (*Customer, error) + func (s *CustomerServiceOp) UpdateMetafield(customerID int, metafield Metafield) (*Metafield, error) + type CustomersResource struct + Customers []Customer + type DiscountCode struct + Amount *decimal.Decimal + Code string + Type string + type Fulfillment struct + CreatedAt *time.Time + ID int + LineItems []LineItem + LocationID int + NotifyCustomer bool + OrderID int + Receipt Receipt + Service string + ShipmentStatus string + Status string + TrackingCompany string + TrackingNumber string + TrackingNumbers []string + TrackingUrl string + TrackingUrls []string + UpdatedAt *time.Time + type FulfillmentResource struct + Fulfillment *Fulfillment + type FulfillmentService interface + Cancel func(int) (*Fulfillment, error) + Complete func(int) (*Fulfillment, error) + Count func(interface{}) (int, error) + Create func(Fulfillment) (*Fulfillment, error) + Get func(int, interface{}) (*Fulfillment, error) + List func(interface{}) ([]Fulfillment, error) + Transition func(int) (*Fulfillment, error) + Update func(Fulfillment) (*Fulfillment, error) + type FulfillmentServiceOp struct + func (s *FulfillmentServiceOp) Cancel(fulfillmentID int) (*Fulfillment, error) + func (s *FulfillmentServiceOp) Complete(fulfillmentID int) (*Fulfillment, error) + func (s *FulfillmentServiceOp) Count(options interface{}) (int, error) + func (s *FulfillmentServiceOp) Create(fulfillment Fulfillment) (*Fulfillment, error) + func (s *FulfillmentServiceOp) Get(fulfillmentID int, options interface{}) (*Fulfillment, error) + func (s *FulfillmentServiceOp) List(options interface{}) ([]Fulfillment, error) + func (s *FulfillmentServiceOp) Transition(fulfillmentID int) (*Fulfillment, error) + func (s *FulfillmentServiceOp) Update(fulfillment Fulfillment) (*Fulfillment, error) + type FulfillmentsResource struct + Fulfillments []Fulfillment + type FulfillmentsService interface + CancelFulfillment func(int, int) (*Fulfillment, error) + CompleteFulfillment func(int, int) (*Fulfillment, error) + CountFulfillments func(int, interface{}) (int, error) + CreateFulfillment func(int, Fulfillment) (*Fulfillment, error) + GetFulfillment func(int, int, interface{}) (*Fulfillment, error) + ListFulfillments func(int, interface{}) ([]Fulfillment, error) + TransitionFulfillment func(int, int) (*Fulfillment, error) + UpdateFulfillment func(int, Fulfillment) (*Fulfillment, error) + type Image struct + Attachment string + CreatedAt *time.Time + Filename string + Height int + ID int + Position int + ProductID int + Src string + UpdatedAt *time.Time + VariantIds []int + Width int + type ImageResource struct + Image *Image + type ImageService interface + Count func(int, interface{}) (int, error) + Create func(int, Image) (*Image, error) + Delete func(int, int) error + Get func(int, int, interface{}) (*Image, error) + List func(int, interface{}) ([]Image, error) + Update func(int, Image) (*Image, error) + type ImageServiceOp struct + func (s *ImageServiceOp) Count(productID int, options interface{}) (int, error) + func (s *ImageServiceOp) Create(productID int, image Image) (*Image, error) + func (s *ImageServiceOp) Delete(productID int, imageID int) error + func (s *ImageServiceOp) Get(productID int, imageID int, options interface{}) (*Image, error) + func (s *ImageServiceOp) List(productID int, options interface{}) ([]Image, error) + func (s *ImageServiceOp) Update(productID int, image Image) (*Image, error) + type ImagesResource struct + Images []Image + type LineItem struct + DestinationLocation *Address + FulfillableQuantity int + FulfillmentService string + FulfillmentStatus string + GiftCard bool + Grams int + ID int + Name string + OriginLocation *Address + PreTaxPrice *decimal.Decimal + Price *decimal.Decimal + ProductExists bool + ProductID int + Properties []NoteAttribute + Quantity int + RequiresShipping bool + SKU string + TaxLines []TaxLine + Taxable bool + Title string + TotalDiscount *decimal.Decimal + VariantID int + VariantInventoryManagement string + VariantTitle string + Vendor string + type LineItemProperty struct + Message string + type ListOptions struct + CreatedAtMax time.Time + CreatedAtMin time.Time + Fields string + Limit int + Order string + Page int + SinceID int + UpdatedAtMax time.Time + UpdatedAtMin time.Time + type Metafield struct + CreatedAt *time.Time + Description string + ID int + Key string + Namespace string + OwnerId int + OwnerResource string + UpdatedAt *time.Time + Value interface{} + ValueType string + type MetafieldResource struct + Metafield *Metafield + type MetafieldService interface + Count func(interface{}) (int, error) + Create func(Metafield) (*Metafield, error) + Delete func(int) error + Get func(int, interface{}) (*Metafield, error) + List func(interface{}) ([]Metafield, error) + Update func(Metafield) (*Metafield, error) + type MetafieldServiceOp struct + func (s *MetafieldServiceOp) Count(options interface{}) (int, error) + func (s *MetafieldServiceOp) Create(metafield Metafield) (*Metafield, error) + func (s *MetafieldServiceOp) Delete(metafieldID int) error + func (s *MetafieldServiceOp) Get(metafieldID int, options interface{}) (*Metafield, error) + func (s *MetafieldServiceOp) List(options interface{}) ([]Metafield, error) + func (s *MetafieldServiceOp) Update(metafield Metafield) (*Metafield, error) + type MetafieldsResource struct + Metafields []Metafield + type MetafieldsService interface + CountMetafields func(int, interface{}) (int, error) + CreateMetafield func(int, Metafield) (*Metafield, error) + DeleteMetafield func(int, int) error + GetMetafield func(int, int, interface{}) (*Metafield, error) + ListMetafields func(int, interface{}) ([]Metafield, error) + UpdateMetafield func(int, Metafield) (*Metafield, error) + type NoteAttribute struct + Name string + Value interface{} + type Order struct + AppID int + BillingAddress *Address + BrowserIp string + BuyerAcceptsMarketing bool + CancelReason string + CancelledAt *time.Time + CartToken string + CheckoutID int + CheckoutToken string + ClientDetails *ClientDetails + ClosedAt *time.Time + Confirmed bool + ContactEmail string + CreatedAt *time.Time + Currency string + Customer *Customer + CustomerLocale string + DeviceID int + DiscountCodes []DiscountCode + Email string + FinancialStatus string + FulfillmentStatus string + Fulfillments []Fulfillment + Gateway string + ID int + LandingSite string + LandingSiteRef string + LineItems []LineItem + LocationId int + Metafields []Metafield + Name string + Note string + NoteAttributes []NoteAttribute + Number int + OrderNumber int + OrderStatusUrl string + PaymentGatewayNames []string + Phone string + ProcessedAt *time.Time + ProcessingMethod string + Reference string + ReferringSite string + Refunds []Refund + ShippingAddress *Address + ShippingLines []ShippingLines + SourceIdentifier string + SourceName string + SourceURL string + SubtotalPrice *decimal.Decimal + Tags string + TaxLines []TaxLine + TaxesIncluded bool + Test bool + Token string + TotalDiscounts *decimal.Decimal + TotalLineItemsPrice *decimal.Decimal + TotalPrice *decimal.Decimal + TotalPriceUSD *decimal.Decimal + TotalTax *decimal.Decimal + TotalWeight int + Transactions []Transaction + UpdatedAt *time.Time + UserId int + type OrderCountOptions struct + CreatedAtMax time.Time + CreatedAtMin time.Time + Fields string + FinancialStatus string + FulfillmentStatus string + Limit int + Order string + Page int + SinceID int + Status string + UpdatedAtMax time.Time + UpdatedAtMin time.Time + type OrderListOptions struct + CreatedAtMax time.Time + CreatedAtMin time.Time + Fields string + FinancialStatus string + FulfillmentStatus string + Limit int + Order string + Page int + ProcessedAtMax time.Time + ProcessedAtMin time.Time + SinceID int + Status string + UpdatedAtMax time.Time + UpdatedAtMin time.Time + type OrderResource struct + Order *Order + type OrderService interface + Count func(interface{}) (int, error) + Create func(Order) (*Order, error) + Get func(int, interface{}) (*Order, error) + List func(interface{}) ([]Order, error) + type OrderServiceOp struct + func (s *OrderServiceOp) CancelFulfillment(orderID int, fulfillmentID int) (*Fulfillment, error) + func (s *OrderServiceOp) CompleteFulfillment(orderID int, fulfillmentID int) (*Fulfillment, error) + func (s *OrderServiceOp) Count(options interface{}) (int, error) + func (s *OrderServiceOp) CountFulfillments(orderID int, options interface{}) (int, error) + func (s *OrderServiceOp) CountMetafields(orderID int, options interface{}) (int, error) + func (s *OrderServiceOp) Create(order Order) (*Order, error) + func (s *OrderServiceOp) CreateFulfillment(orderID int, fulfillment Fulfillment) (*Fulfillment, error) + func (s *OrderServiceOp) CreateMetafield(orderID int, metafield Metafield) (*Metafield, error) + func (s *OrderServiceOp) DeleteMetafield(orderID int, metafieldID int) error + func (s *OrderServiceOp) Get(orderID int, options interface{}) (*Order, error) + func (s *OrderServiceOp) GetFulfillment(orderID int, fulfillmentID int, options interface{}) (*Fulfillment, error) + func (s *OrderServiceOp) GetMetafield(orderID int, metafieldID int, options interface{}) (*Metafield, error) + func (s *OrderServiceOp) List(options interface{}) ([]Order, error) + func (s *OrderServiceOp) ListFulfillments(orderID int, options interface{}) ([]Fulfillment, error) + func (s *OrderServiceOp) ListMetafields(orderID int, options interface{}) ([]Metafield, error) + func (s *OrderServiceOp) TransitionFulfillment(orderID int, fulfillmentID int) (*Fulfillment, error) + func (s *OrderServiceOp) UpdateFulfillment(orderID int, fulfillment Fulfillment) (*Fulfillment, error) + func (s *OrderServiceOp) UpdateMetafield(orderID int, metafield Metafield) (*Metafield, error) + type OrdersResource struct + Orders []Order + type Page struct + Author string + BodyHTML string + CreatedAt *time.Time + Handle string + ID int + Metafields []Metafield + PublishedAt *time.Time + ShopID int + TemplateSuffix string + Title string + UpdatedAt *time.Time + type PageResource struct + Page *Page + type PageService interface + Count func(interface{}) (int, error) + Create func(Page) (*Page, error) + Delete func(int) error + Get func(int, interface{}) (*Page, error) + List func(interface{}) ([]Page, error) + Update func(Page) (*Page, error) + type PageServiceOp struct + func (s *PageServiceOp) Count(options interface{}) (int, error) + func (s *PageServiceOp) CountMetafields(pageID int, options interface{}) (int, error) + func (s *PageServiceOp) Create(page Page) (*Page, error) + func (s *PageServiceOp) CreateMetafield(pageID int, metafield Metafield) (*Metafield, error) + func (s *PageServiceOp) Delete(pageID int) error + func (s *PageServiceOp) DeleteMetafield(pageID int, metafieldID int) error + func (s *PageServiceOp) Get(pageID int, options interface{}) (*Page, error) + func (s *PageServiceOp) GetMetafield(pageID int, metafieldID int, options interface{}) (*Metafield, error) + func (s *PageServiceOp) List(options interface{}) ([]Page, error) + func (s *PageServiceOp) ListMetafields(pageID int, options interface{}) ([]Metafield, error) + func (s *PageServiceOp) Update(page Page) (*Page, error) + func (s *PageServiceOp) UpdateMetafield(pageID int, metafield Metafield) (*Metafield, error) + type PagesResource struct + Pages []Page + type PaymentDetails struct + AVSResultCode string + CVVResultCode string + CreditCardBin string + CreditCardCompany string + CreditCardNumber string + type Product struct + BodyHTML string + CreatedAt *time.Time + Handle string + ID int + Image Image + Images []Image + Metafields []Metafield + MetafieldsGlobalDescriptionTag string + MetafieldsGlobalTitleTag string + Options []ProductOption + ProductType string + PublishedAt *time.Time + PublishedScope string + Tags string + TemplateSuffix string + Title string + UpdatedAt *time.Time + Variants []Variant + Vendor string + type ProductOption struct + ID int + Name string + Position int + ProductID int + Values []string + type ProductResource struct + Product *Product + type ProductService interface + Count func(interface{}) (int, error) + Create func(Product) (*Product, error) + Delete func(int) error + Get func(int, interface{}) (*Product, error) + List func(interface{}) ([]Product, error) + Update func(Product) (*Product, error) + type ProductServiceOp struct + func (s *ProductServiceOp) Count(options interface{}) (int, error) + func (s *ProductServiceOp) CountMetafields(productID int, options interface{}) (int, error) + func (s *ProductServiceOp) Create(product Product) (*Product, error) + func (s *ProductServiceOp) CreateMetafield(productID int, metafield Metafield) (*Metafield, error) + func (s *ProductServiceOp) Delete(productID int) error + func (s *ProductServiceOp) DeleteMetafield(productID int, metafieldID int) error + func (s *ProductServiceOp) Get(productID int, options interface{}) (*Product, error) + func (s *ProductServiceOp) GetMetafield(productID int, metafieldID int, options interface{}) (*Metafield, error) + func (s *ProductServiceOp) List(options interface{}) ([]Product, error) + func (s *ProductServiceOp) ListMetafields(productID int, options interface{}) ([]Metafield, error) + func (s *ProductServiceOp) Update(product Product) (*Product, error) + func (s *ProductServiceOp) UpdateMetafield(productID int, metafield Metafield) (*Metafield, error) + type ProductsResource struct + Products []Product + type RateLimitError struct + RetryAfter int + type Receipt struct + Authorization string + TestCase bool + type RecurringApplicationCharge struct + APIClientID int + ActivatedOn *time.Time + BalanceRemaining *decimal.Decimal + BalanceUsed *decimal.Decimal + BillingOn *time.Time + CancelledOn *time.Time + CappedAmount *decimal.Decimal + ConfirmationURL string + CreatedAt *time.Time + DecoratedReturnURL string + ID int + Name string + Price *decimal.Decimal + ReturnURL string + RiskLevel *decimal.Decimal + Status string + Terms string + Test *bool + TrialDays int + TrialEndsOn *time.Time + UpdateCappedAmountURL string + UpdatedAt *time.Time + func (r *RecurringApplicationCharge) UnmarshalJSON(data []byte) error + type RecurringApplicationChargeResource struct + Charge *RecurringApplicationCharge + type RecurringApplicationChargeService interface + Activate func(RecurringApplicationCharge) (*RecurringApplicationCharge, error) + Create func(RecurringApplicationCharge) (*RecurringApplicationCharge, error) + Delete func(int) error + Get func(int, interface{}) (*RecurringApplicationCharge, error) + List func(interface{}) ([]RecurringApplicationCharge, error) + Update func(int, int) (*RecurringApplicationCharge, error) + type RecurringApplicationChargeServiceOp struct + func (r *RecurringApplicationChargeServiceOp) Activate(charge RecurringApplicationCharge) (*RecurringApplicationCharge, error) + func (r *RecurringApplicationChargeServiceOp) Create(charge RecurringApplicationCharge) (*RecurringApplicationCharge, error) + func (r *RecurringApplicationChargeServiceOp) Delete(chargeID int) error + func (r *RecurringApplicationChargeServiceOp) Get(chargeID int, options interface{}) (*RecurringApplicationCharge, error) + func (r *RecurringApplicationChargeServiceOp) List(options interface{}) ([]RecurringApplicationCharge, error) + func (r *RecurringApplicationChargeServiceOp) Update(chargeID, newCappedAmount int) (*RecurringApplicationCharge, error) + type RecurringApplicationChargesResource struct + Charges []RecurringApplicationCharge + type Redirect struct + ID int + Path string + Target string + type RedirectResource struct + Redirect *Redirect + type RedirectService interface + Count func(interface{}) (int, error) + Create func(Redirect) (*Redirect, error) + Delete func(int) error + Get func(int, interface{}) (*Redirect, error) + List func(interface{}) ([]Redirect, error) + Update func(Redirect) (*Redirect, error) + type RedirectServiceOp struct + func (s *RedirectServiceOp) Count(options interface{}) (int, error) + func (s *RedirectServiceOp) Create(redirect Redirect) (*Redirect, error) + func (s *RedirectServiceOp) Delete(redirectID int) error + func (s *RedirectServiceOp) Get(redirectID int, options interface{}) (*Redirect, error) + func (s *RedirectServiceOp) List(options interface{}) ([]Redirect, error) + func (s *RedirectServiceOp) Update(redirect Redirect) (*Redirect, error) + type RedirectsResource struct + Redirects []Redirect + type Refund struct + CreatedAt *time.Time + Id int + Note string + OrderId int + RefundLineItems []RefundLineItem + Restock bool + Transactions []Transaction + UserId int + type RefundLineItem struct + Id int + LineItem *LineItem + LineItemId int + Quantity int + type ResponseDecodingError struct + Body []byte + Message string + Status int + func (e ResponseDecodingError) Error() string + type ResponseError struct + Errors []string + Message string + Status int + func (e ResponseError) Error() string + type Rule struct + Column string + Condition string + Relation string + type ScriptTag struct + CreatedAt *time.Time + DisplayScope string + Event string + ID int + Src string + UpdatedAt *time.Time + type ScriptTagOption struct + CreatedAtMax time.Time + CreatedAtMin time.Time + Fields string + Limit int + Page int + SinceID int + Src string + UpdatedAtMax time.Time + UpdatedAtMin time.Time + type ScriptTagResource struct + ScriptTag *ScriptTag + type ScriptTagService interface + Count func(interface{}) (int, error) + Create func(ScriptTag) (*ScriptTag, error) + Delete func(int) error + Get func(int, interface{}) (*ScriptTag, error) + List func(interface{}) ([]ScriptTag, error) + Update func(ScriptTag) (*ScriptTag, error) + type ScriptTagServiceOp struct + func (s *ScriptTagServiceOp) Count(options interface{}) (int, error) + func (s *ScriptTagServiceOp) Create(tag ScriptTag) (*ScriptTag, error) + func (s *ScriptTagServiceOp) Delete(tagID int) error + func (s *ScriptTagServiceOp) Get(tagID int, options interface{}) (*ScriptTag, error) + func (s *ScriptTagServiceOp) List(options interface{}) ([]ScriptTag, error) + func (s *ScriptTagServiceOp) Update(tag ScriptTag) (*ScriptTag, error) + type ScriptTagsResource struct + ScriptTags []ScriptTag + type ShippingLines struct + CarrierIdentifier string + Code string + DeliveryCategory string + ID int + Phone string + Price *decimal.Decimal + RequestedFulfillmentServiceID string + Source string + TaxLines []TaxLine + Title string + type Shop struct + Address1 string + Address2 string + CheckoutAPISupported bool + City string + Country string + CountryCode string + CountryName string + CountyTaxes bool + CreatedAt *time.Time + Currency string + CustomerEmail string + Domain string + Email string + ForceSSL bool + HasDiscounts bool + HasGiftcards bool + HasStorefront bool + ID int + IanaTimezone string + Latitude float64 + Longitude float64 + MoneyFormat string + MoneyWithCurrencyFormat string + MyshopifyDomain string + Name string + PasswordEnabled bool + Phone string + PlanDisplayName string + PlanName string + PrimaryLocale string + Province string + ProvinceCode string + SetupRequire bool + ShopOwner string + TaxShipping bool + TaxesIncluded bool + Timezone string + UpdatedAt *time.Time + WeightUnit string + Zip string + type ShopResource struct + Shop *Shop + type ShopService interface + Get func(options interface{}) (*Shop, error) + type ShopServiceOp struct + func (s *ShopServiceOp) Get(options interface{}) (*Shop, error) + type SmartCollection struct + BodyHTML string + Disjunctive bool + Handle string + ID int + Image Image + Metafields []Metafield + Published bool + PublishedAt *time.Time + PublishedScope string + Rules []Rule + SortOrder string + TemplateSuffix string + Title string + UpdatedAt *time.Time + type SmartCollectionResource struct + Collection *SmartCollection + type SmartCollectionService interface + Count func(interface{}) (int, error) + Create func(SmartCollection) (*SmartCollection, error) + Delete func(int) error + Get func(int, interface{}) (*SmartCollection, error) + List func(interface{}) ([]SmartCollection, error) + Update func(SmartCollection) (*SmartCollection, error) + type SmartCollectionServiceOp struct + func (s *SmartCollectionServiceOp) Count(options interface{}) (int, error) + func (s *SmartCollectionServiceOp) CountMetafields(smartCollectionID int, options interface{}) (int, error) + func (s *SmartCollectionServiceOp) Create(collection SmartCollection) (*SmartCollection, error) + func (s *SmartCollectionServiceOp) CreateMetafield(smartCollectionID int, metafield Metafield) (*Metafield, error) + func (s *SmartCollectionServiceOp) Delete(collectionID int) error + func (s *SmartCollectionServiceOp) DeleteMetafield(smartCollectionID int, metafieldID int) error + func (s *SmartCollectionServiceOp) Get(collectionID int, options interface{}) (*SmartCollection, error) + func (s *SmartCollectionServiceOp) GetMetafield(smartCollectionID int, metafieldID int, options interface{}) (*Metafield, error) + func (s *SmartCollectionServiceOp) List(options interface{}) ([]SmartCollection, error) + func (s *SmartCollectionServiceOp) ListMetafields(smartCollectionID int, options interface{}) ([]Metafield, error) + func (s *SmartCollectionServiceOp) Update(collection SmartCollection) (*SmartCollection, error) + func (s *SmartCollectionServiceOp) UpdateMetafield(smartCollectionID int, metafield Metafield) (*Metafield, error) + type SmartCollectionsResource struct + Collections []SmartCollection + type TaxLine struct + Price *decimal.Decimal + Rate *decimal.Decimal + Title string + type Theme struct + CreatedAt *time.Time + ID int + Name string + Previewable bool + Processing bool + Role string + ThemeStoreID int + UpdatedAt *time.Time + type ThemeListOptions struct + Role string + type ThemeService interface + List func(interface{}) ([]Theme, error) + type ThemeServiceOp struct + func (s *ThemeServiceOp) List(options interface{}) ([]Theme, error) + type ThemesResource struct + Themes []Theme + type Transaction struct + Amount *decimal.Decimal + Authorization string + CreatedAt *time.Time + Currency string + DeviceID *int + ErrorCode string + Gateway string + ID int + Kind string + LocationID *int + Message string + OrderID int + ParentID *int + PaymentDetails *PaymentDetails + SourceName string + Status string + Test bool + UserID *int + type TransactionResource struct + Transaction *Transaction + type TransactionService interface + Count func(int, interface{}) (int, error) + Create func(int, Transaction) (*Transaction, error) + Get func(int, int, interface{}) (*Transaction, error) + List func(int, interface{}) ([]Transaction, error) + type TransactionServiceOp struct + func (s *TransactionServiceOp) Count(orderID int, options interface{}) (int, error) + func (s *TransactionServiceOp) Create(orderID int, transaction Transaction) (*Transaction, error) + func (s *TransactionServiceOp) Get(orderID int, transactionID int, options interface{}) (*Transaction, error) + func (s *TransactionServiceOp) List(orderID int, options interface{}) ([]Transaction, error) + type TransactionsResource struct + Transactions []Transaction + type Variant struct + Barcode string + CompareAtPrice *decimal.Decimal + CreatedAt *time.Time + FulfillmentService string + Grams int + ID int + ImageID int + InventoryItemId int + InventoryManagement string + InventoryPolicy string + InventoryQuantity int + OldInventoryQuantity int + Option1 string + Option2 string + Option3 string + Position int + Price *decimal.Decimal + ProductID int + RequireShipping bool + Sku string + Taxable bool + Title string + UpdatedAt *time.Time + Weight *decimal.Decimal + WeightUnit string + type VariantResource struct + Variant *Variant + type VariantService interface + Count func(int, interface{}) (int, error) + Create func(int, Variant) (*Variant, error) + Delete func(int, int) error + Get func(int, interface{}) (*Variant, error) + List func(int, interface{}) ([]Variant, error) + Update func(Variant) (*Variant, error) + type VariantServiceOp struct + func (s *VariantServiceOp) Count(productID int, options interface{}) (int, error) + func (s *VariantServiceOp) Create(productID int, variant Variant) (*Variant, error) + func (s *VariantServiceOp) Delete(productID int, variantID int) error + func (s *VariantServiceOp) Get(variantID int, options interface{}) (*Variant, error) + func (s *VariantServiceOp) List(productID int, options interface{}) ([]Variant, error) + func (s *VariantServiceOp) Update(variant Variant) (*Variant, error) + type VariantsResource struct + Variants []Variant + type Webhook struct + Address string + CreatedAt *time.Time + Fields []string + Format string + ID int + MetafieldNamespaces []string + Topic string + UpdatedAt *time.Time + type WebhookOptions struct + Address string + Topic string + type WebhookResource struct + Webhook *Webhook + type WebhookService interface + Count func(interface{}) (int, error) + Create func(Webhook) (*Webhook, error) + Delete func(int) error + Get func(int, interface{}) (*Webhook, error) + List func(interface{}) ([]Webhook, error) + Update func(Webhook) (*Webhook, error) + type WebhookServiceOp struct + func (s *WebhookServiceOp) Count(options interface{}) (int, error) + func (s *WebhookServiceOp) Create(webhook Webhook) (*Webhook, error) + func (s *WebhookServiceOp) Delete(ID int) error + func (s *WebhookServiceOp) Get(webhookdID int, options interface{}) (*Webhook, error) + func (s *WebhookServiceOp) List(options interface{}) ([]Webhook, error) + func (s *WebhookServiceOp) Update(webhook Webhook) (*Webhook, error) + type WebhooksResource struct + Webhooks []Webhook Incompatible versions in this module v2.3.0+incompatible Sep 6, 2019