Tier Accounts.

Static methods

staticget(id:String):TierAccount

Returns:

The TierAccount with the given id, or null if it was not found.

staticlist(filters:Query):Collection<TierAccount>

Lists all TierAccounts that match the given filters. Supported filters are:

  • id
  • external_id
  • external_uid
  • environment
  • scopes
  • marketplace.id
  • marketplace.name
  • hub.id
  • hub.name
  • search (search based on all fields - generic search option)

Returns:

A Collection of TierAccounts.

Constructor

new()

Variables

contactInfo:ContactInfo

Tier ContactInfo object.

environment:String

Type of account in respect to operation. One of: test, preview, production.

externalId:String

Only in case of filtering by this field.

externalUid:String

Only in case of filtering by this field.

hub:Hub

Hub Reference

marketplace:Marketplace

Marketplace Object reference

name:String

Tier name.

scopes:Collection<String>

Scopes of the tier account in asset tier chain. Possible: tier1, tier2, customer

taxId:String

Used for storing "Tax Registration ID" value of CloudBlue Commerce.

Methods

getTierConfig(productId:String, tierLevel:Int):TierConfig

Gets the TierConfig for this TierAccount, based on the product id and tier level specified.

Parameters:

productId

Product id of the TierConfig we want to get.

tierLevel

Tier level of the tier account.

Returns:

TierConfig The TierConfig, or null if none could be found with the given parameters.

Inherited Variables

Defined by IdModel

id:String

Id of the model.

Inherited Methods

Defined by Model

toObject():Dynamic

Returns:

A Haxe dynamic object with a shallow copy of this model's properties.

toString():String

Returns:

A String with the JSON representation of this Model.