Merchant

Merchant

Service to interact with merchant data for merchants the customer has transacted with.

Constructor

new Merchant(options)

Creates an instance of the merchant client

Source:
Parameters:
Name Type Description
options Object

application config

Methods

getMerchant(accessToken, merchantUid) → {Promise}

Retrieves a merchant

Source:
Parameters:
Name Type Description
accessToken string

the oauth bearer token

merchantUid string

Unique identifier of the merchant.

Returns:
Type:
Promise
  • the http request promise

getMerchantLocation(accessToken, merchantUid, merchantLocationUid) → {Promise}

Retrieves a merchant location of a merchant

Source:
Parameters:
Name Type Description
accessToken string

the oauth bearer token

merchantUid string

Unique identifier of the merchant the location belongs to.

merchantLocationUid string

Unique identifier of the location for the merchant.

Returns:
Type:
Promise
  • the http request promise