Global

Members

(constant) AddressType :string

Represents the type of address.
Source:
Type:
  • string

(constant) ApplicationDomain :string

Represents the domain of an application.
Source:
Type:
  • string

(constant) ArticleAvailability :string

Represents the availability status of an article.
Source:
Type:
  • string

(constant) CartType :string

Represents the type of cart.
Source:
Type:
  • string

(constant) CodeType :string

Represents different types of codes.
Source:
Type:
  • string

(constant) ConditionOperator :string

Represents logical operators for conditions.
Source:
Type:
  • string

(constant) CustomerGroup :string

Represents customer groups.
Source:
Type:
  • string

(constant) CustomerType :string

Represents the type of customer.
Source:
Type:
  • string

(constant) DiscountType :string

Represents types of discounts.
Source:
Type:
  • string

(constant) OrderState :string

Represents the state of an order.
Source:
Type:
  • string

(constant) QuantityMode :string

Represents the mode for handling quantity.
Source:
Type:
  • string

(constant) Salutation :string

Represents different salutations for customers.
Source:
Type:
  • string

(constant) ShippingStatus :string

Represents the status of shipping.
Source:
Type:
  • string

Methods

errorHandler(error)

Shows a alert with an error-message.
Source:
Parameters:
Name Type Description
error any The exception. Could be an instance of HTTPError or any other error/value.

getSkey() → {Promise.<String>}

Return a new skey.
Source:
Returns:
Type:
Promise.<String>
The resolved json-Promise (the skey).

request(url, jsonopt, methodopt, paramsopt, customConfigopt) → {Promise.<Response>}

Wrapper for fetch. Inspired by https://kentcdodds.com/blog/replace-axios-with-a-simple-custom-fetch-wrapper
Source:
Parameters:
Name Type Attributes Description
url String The url of the ressource to fetch.
json Object <optional>
Optional. Data used as json-serialized payload.
method String <optional>
Optional. The HTTP method, e.g. POST. Default: GET (if json is unset).
params Object <optional>
Optional. Params used as body for POST and get-query-String for others.
customConfig Object <optional>
Some custom values for the fetch call.
Returns:
Type:
Promise.<Response>
Returns the raw request a promise, or throws a HTTPError.