An object containing Distribution agreements with exact Hubs, enriched with additional information on details about the relation.
A Marketplace is a way to list Products to specified regions (based on Distribution Agreements) and use specific Hubs to provision incoming Fulfillment requests.
Static methods
staticget(id:String):Marketplace
Returns:
The Marketplace with the given id, or null
if it was not found.
staticlist(filters:Query):Collection<Marketplace>
Lists all marketplaces that match the given filters. Supported filters are:
id
name
owner.id
owner.name
sourcing
search
owner__id
Returns:
A Collection of Marketplaces.
Constructor
Variables
hubs:Collection<ExtIdHub>
Collection of account-hub relations associated with the Marketplace object.
zone:String
Zone where the marketplace is located, there can be following zones: AF, NA, OC, AS, EU, SA (It is continents).
Methods
register():Marketplace
Registers a new Marketplace on Connect, based on the data of this
Marketplace.
Returns:
The new Marketplace, or null
if it couldn't be created.
update():Marketplace
Updates the Marketplace in the server with the data changed in this
model.
You should reassign your marketplace with the object returned by this method, so the next time
you call update
on the object, the SDK knows the fields that already got updated in a
previous call, like this:
marketplace = marketplace.update();
Returns:
The Marketplace returned from the server, which should contain
the same data as this
Marketplace, or null
if the updating fails.