Offers class
Properties
client |
Methods
query(Sql |
Query all offers. |
query<T>(Sql |
Query all offers. |
read |
Read all offers. Example Read all offers to array.
|
Property Details
client
Method Details
query(SqlQuerySpec, FeedOptions)
Query all offers.
function query(query: SqlQuerySpec, options?: FeedOptions): QueryIterator<any>
Parameters
- query
- SqlQuerySpec
Query configuration for the operation. See SqlQuerySpec for more info on how to configure a query.
- options
- FeedOptions
Returns
QueryIterator<any>
query<T>(SqlQuerySpec, FeedOptions)
Query all offers.
function query<T>(query: SqlQuerySpec, options?: FeedOptions): QueryIterator<T>
Parameters
- query
- SqlQuerySpec
Query configuration for the operation. See SqlQuerySpec for more info on how to configure a query.
- options
- FeedOptions
Returns
readAll(FeedOptions)
Read all offers.
Example
Read all offers to array.
const {body: offerList} = await client.offers.readAll().fetchAll();
function readAll(options?: FeedOptions): QueryIterator<OfferDefinition & Resource>
Parameters
- options
- FeedOptions