Constructor
new AzryLeasingServer(sdk, serverUrl, opts)
Create a new Azry Leasing server instance.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sdk |
ShelfNetwork
|
Parent SDK instance. |
||||||||||||||||||||||||
serverUrl |
string
|
AzryLeasing URL. |
||||||||||||||||||||||||
opts |
Object
|
|
Methods
createStatement(attributes) → {JsonApiResponse}
Get multiple fees.
- Source:
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attributes |
object
|
Leasing statement attributes.
|
Returns:
- Type:
-
JsonApiResponse
(async) getStatement(lotId, clientId, opts) → {JsonApiResponse}
Get leasing statement by ID.
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
lotId |
string
|
Lot ID. |
|||||||||
clientId |
string
|
User accound ID |
|||||||||
opts |
object
|
Request misc options
|
Returns:
- Type:
-
JsonApiResponse
(async) getStatements()
Get multiple leasing statements
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
opts.sort |
string
|
Sort requests by: created_at, updated_at, lot_end_time |
opts.status |
string
|
Filter by request status: created, confirmed |
opts.lotId |
string
|
Filter by lot id |
opts.clientId |
string
|
Filter by user account id |