@tillhub/javascript-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Products
constructor
endpoint
http
options
uri
Helper
base
Endpoint
book
Stock
bulk
Create
bulk
Delete
bulk
Edit
check
Barcode
count
create
delete
duplicate
export
get
get
All
get
Children
Details
get
Details
import
meta
pricebook
Entries
pricebooks
put
search
select
Hierarchy
ThBaseHandler
Products
Index
Constructors
constructor
Properties
endpoint
http
options
uri
Helper
base
Endpoint
Methods
book
Stock
bulk
Create
bulk
Delete
bulk
Edit
check
Barcode
count
create
delete
duplicate
export
get
get
All
get
Children
Details
get
Details
import
meta
pricebook
Entries
pricebooks
put
search
select
Constructors
constructor
new
Products
(
options
:
ProductsOptions
, http
:
Client
)
:
Products
Parameters
options:
ProductsOptions
http:
Client
Returns
Products
Properties
endpoint
endpoint
:
string
http
http
:
Client
options
options
:
ProductsOptions
uri
Helper
uri
Helper
:
UriHelper
Static
base
Endpoint
base
Endpoint
:
string
= '/api/v1/products'
Methods
book
Stock
book
Stock
(
requestOptions
:
BookStockQuery
)
:
Promise
<
ProductResponse
>
Parameters
requestOptions:
BookStockQuery
Returns
Promise
<
ProductResponse
>
bulk
Create
bulk
Create
(
products
:
Product
[]
, query
?:
HandlerProductsQuery
)
:
Promise
<
ProductsBulkResponse
>
Parameters
products:
Product
[]
Optional
query:
HandlerProductsQuery
Returns
Promise
<
ProductsBulkResponse
>
bulk
Delete
bulk
Delete
(
body
:
ProductsBulkDeleteBody
)
:
Promise
<
ProductsResponse
>
Parameters
body:
ProductsBulkDeleteBody
Returns
Promise
<
ProductsResponse
>
bulk
Edit
bulk
Edit
(
products
:
Product
[]
)
:
Promise
<
ProductsResponse
>
Parameters
products:
Product
[]
Returns
Promise
<
ProductsResponse
>
check
Barcode
check
Barcode
(
code
:
string
)
:
Promise
<
ProductResponse
>
Parameters
code:
string
Returns
Promise
<
ProductResponse
>
count
count
(
)
:
Promise
<
ProductsResponse
>
Returns
Promise
<
ProductsResponse
>
create
create
(
product
:
Product
, query
?:
HandlerProductsQuery
)
:
Promise
<
ProductResponse
>
Parameters
product:
Product
Optional
query:
HandlerProductsQuery
Returns
Promise
<
ProductResponse
>
delete
delete
(
productId
:
string
, deleteOptions
?:
ProductDeleteOptions
)
:
Promise
<
ProductsResponse
>
Parameters
productId:
string
Optional
deleteOptions:
ProductDeleteOptions
Returns
Promise
<
ProductsResponse
>
duplicate
duplicate
(
body
:
ProductsDuplicateBody
)
:
Promise
<
ProductsDuplicateResponse
>
Parameters
body:
ProductsDuplicateBody
Returns
Promise
<
ProductsDuplicateResponse
>
export
export
(
query
?:
ProductsQuery
)
:
Promise
<
ProductsExportResponse
>
Parameters
Optional
query:
ProductsQuery
Returns
Promise
<
ProductsExportResponse
>
get
get
(
productId
:
string
)
:
Promise
<
ProductResponse
>
Parameters
productId:
string
Returns
Promise
<
ProductResponse
>
get
All
get
All
(
options
?:
ProductsOptions
)
:
Promise
<
ProductsResponse
>
Parameters
Optional
options:
ProductsOptions
Returns
Promise
<
ProductsResponse
>
get
Children
Details
get
Children
Details
(
productId
:
string
, hideStock
?:
boolean
, options
?:
ProductsDetailsOptions
)
:
Promise
<
ProductResponse
>
Parameters
productId:
string
Optional
hideStock:
boolean
Optional
options:
ProductsDetailsOptions
Returns
Promise
<
ProductResponse
>
get
Details
get
Details
(
productId
:
string
, options
?:
ProductsOptions
)
:
Promise
<
ProductResponse
>
Parameters
productId:
string
Optional
options:
ProductsOptions
Returns
Promise
<
ProductResponse
>
import
import
(
options
?:
ProductsOptions
)
:
Promise
<
ProductsResponse
>
Parameters
Optional
options:
ProductsOptions
Returns
Promise
<
ProductsResponse
>
meta
meta
(
q
?:
ProductsQuery
)
:
Promise
<
ProductsResponse
>
Parameters
Optional
q:
ProductsQuery
Returns
Promise
<
ProductsResponse
>
pricebook
Entries
pricebook
Entries
(
)
:
PricebookEntries
Returns
PricebookEntries
pricebooks
pricebooks
(
)
:
Pricebooks
Returns
Pricebooks
put
put
(
productId
:
string
, product
:
Product
)
:
Promise
<
ProductResponse
>
Parameters
productId:
string
product:
Product
Returns
Promise
<
ProductResponse
>
search
search
(
query
:
string
|
SearchQuery
)
:
Promise
<
ProductsResponse
>
Parameters
query:
string
|
SearchQuery
Returns
Promise
<
ProductsResponse
>
select
select
(
options
:
SelectProductsQuery
)
:
Promise
<
ProductsResponse
>
Parameters
options:
SelectProductsQuery
Returns
Promise
<
ProductsResponse
>
Generated using
TypeDoc