Home Manual Reference Source Repository
public class | source

Shop

Extends:

evee → Shop

Shopify Shop entity.

Constructor Summary

Public Constructor
public

Construct a new instance of the shop entity.

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public

Method Summary

Public Methods
public

initialize(shopData: ShopifyShop)

Initialize the shop entity with the global shop state.

public

Generates an absolute URL containing the shop primary domain.

public

Generates an absolute URL containing the shop's myshopify domain.

Private Methods
private

Loads properties from the given shop.

private

Normalizes a relative URL according to the current pathname.

Public Constructors

public constructor() source

Construct a new instance of the shop entity.

Public Members

public address: ShopifyAddress source

public collections_count: Number source

public currency: String source

public description: String source

public domain: String source

public email: String source

public enabled_payment_types: String[] source

public locale: String source

public money_format: String source

public money_format_with_currency: String source

public name: String source

public password_message: String source

public permanent_domain: String source

public policies: ShopifyPolicy[] source

public refund_policy: String source

public secure_url: String source

public terms_of_service: String source

public types: String[] source

public url: String source

public vendors: String[] source

Public Methods

public initialize(shopData: ShopifyShop) source

Initialize the shop entity with the global shop state.

Params:

NameTypeAttributeDescription
shopData ShopifyShop

Shopify shop object.

public makeAbsoluteUrl(relative: String): String source

Generates an absolute URL containing the shop primary domain.

Params:

NameTypeAttributeDescription
relative String

A relative URL to make absolute (i.e. '/collections/all')

Return:

String

public makePermanentUrl(relative: String): String source

Generates an absolute URL containing the shop's myshopify domain.

Params:

NameTypeAttributeDescription
relative String

A relative URL to make absolute (i.e. '/collections/all')

Return:

String

Private Methods

private _loadFromShopifyShop(shop: ShopifyShop) source

Loads properties from the given shop.

Params:

NameTypeAttributeDescription
shop ShopifyShop

private _normalizeRelativeUrl(rel: String): String source

Normalizes a relative URL according to the current pathname.

Params:

NameTypeAttributeDescription
rel String

Return:

String