Methods
close(lotId, state) → {Promise.<JsonApiResponse>}
Close the lot.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
lotId |
string
|
ID of the lot. |
state |
string
|
New lot state. |
Returns:
- Type:
-
Promise.<JsonApiResponse>
create(lot) → {Promise.<JsonApiResponse>}
Create a lot. Creation might need approval depending on the account type.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lot |
object
|
Lot data.
|
Returns:
- Type:
-
Promise.<JsonApiResponse>
createCallback(lotId) → {JsonApiResponse}
Create a callback request
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
lotId |
String
|
ID of the lot |
Returns:
- Type:
-
JsonApiResponse
deleteCallback(lotId, accountIdopt) → {JsonApiResponse}
Delete a callback request
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
lotId |
String
|
ID of the lot |
||
accountId |
string
|
<optional> |
null |
Account ID of the user. |
Returns:
- Type:
-
JsonApiResponse
get(lotId, queryopt) → {JsonApiResponse}
Get lot by ID.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
lotId |
string
|
ID of the lot. |
|||||||||
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getBidRequests(queryopt) → {JsonApiResponse}
Get the lot bid requests.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getCount(queryopt) → {JsonApiResponse}
Get lots count.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
object
|
<optional> |
Request options. |
Returns:
- Type:
-
JsonApiResponse
getMessages(queryopt) → {JsonApiResponse}
Get messages associated with the lot.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getPage(queryopt) → {JsonApiResponse}
Get lots.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getParticipants(queryopt) → {JsonApiResponse}
Get lot participants.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
getParticipationRequests(queryopt) → {JsonApiResponse}
Get the lot participation requests.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query |
object
|
<optional> |
Request options.
|
Returns:
- Type:
-
JsonApiResponse
participate(lotId, buyNowopt) → {Promise.<JsonApiResponse>}
Participate in auction or sale.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
lotId |
string
|
ID of the lot. |
||
buyNow |
boolean
|
<optional> |
false |
Request "Buy Now" if true. |
Returns:
- Type:
-
Promise.<JsonApiResponse>
rejectParticipant(lotId, participantId) → {Promise.<JsonApiResponse>}
Manage auction participant.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
lotId |
string
|
ID of the lot. |
participantId |
string
|
ID of the participant to be rejected. |
Returns:
- Type:
-
Promise.<JsonApiResponse>
requestBuyNow(lotId, participantId) → {Promise.<JsonApiResponse>}
Request "buy now" for a lot.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
lotId |
string
|
ID of the lot. |
participantId |
string
|
ID of the participant to request "Buy Now" for. |
Returns:
- Type:
-
Promise.<JsonApiResponse>
setWinner(lotId, participantId, buyNowopt) → {Promise.<JsonApiResponse>}
Set the winner.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
lotId |
string
|
ID of the lot. |
||
participantId |
string
|
ID of the winner. |
||
buyNow |
boolean
|
<optional> |
false |
Is 'buy now' winner. |
Returns:
- Type:
-
Promise.<JsonApiResponse>
setWinnerDetails(lotId, details)
Set lot winner details
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lotId |
String
|
|||||||||||||||||||||||||||||||||||||
details |
Object
|
|
submitBid(lotId, amount) → {Promise.<JsonApiResponse>}
Submit a bid.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
lotId |
string
|
ID of the lot. |
amount |
string
|
Bid amount in lot currency. |
Returns:
- Type:
-
Promise.<JsonApiResponse>