shopify

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Templates = []string{
		"order_confirmation",
		"order_edited",
		"order_edit_invoice",
		"order_invoice",
		"order_cancelled",
		"refund_notification",
		"draft_order_invoice",
		"buy_online",
		"abandoned_checkout_notification",
		"pos_exchange_receipt",
		"gift_card_notification",
		"failed_payment_processing",
		"fulfillment_request",
		"shipping_confirmation",
		"shipping_update",
		"shipment_out_for_delivery",
		"shipment_delivered",
		"local_out_for_delivery",
		"local_delivered",
		"local_missed_delivery",
		"ready_for_pickup",
		"pickup_receipt",
		"customer_account_activate",
		"customer_account_welcome",
		"customer_account_reset",
		"customer_update_payment_method",
		"contact_buyer",
		"customer_marketing_confirmation",
		"return_created",
		"return_label_notification",
		"new_order_notification",
	}
)

Functions

func ChromeContext

func ChromeContext(head bool) (context.Context, func())

head=false means headless

func IsValid

func IsValid(id string) bool

Types

type Client

type Client struct {
	Location string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(head bool) *Client

head=false means headless

func (*Client) Close

func (c *Client) Close() error

func (*Client) FetchEmailTemplate

func (c *Client) FetchEmailTemplate(id string, subject, body *string) error

id must be one of Templates. *body will be set to the email template body.

func (*Client) Login

func (c *Client) Login(shop, username, password string) error

func (*Client) URL

func (c *Client) URL(id string) (string, error)

func (*Client) UpdateEmailTemplate

func (c *Client) UpdateEmailTemplate(id, subject, body string) error

id must be one of Templates. *body will be set to the email template body.

Jump to

Keyboard shortcuts

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