@tillhub/javascript-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Customers
constructor
endpoint
http
options
uri
Helper
base
Endpoint
count
create
delete
get
get
All
meta
put
Hierarchy
ThBaseHandler
Customers
Index
Constructors
constructor
Properties
endpoint
http
options
uri
Helper
base
Endpoint
Methods
count
create
delete
get
get
All
meta
put
Constructors
constructor
new
Customers
(
options
:
CustomersOptions
, http
:
Client
)
:
Customers
Parameters
options:
CustomersOptions
http:
Client
Returns
Customers
Properties
endpoint
endpoint
:
string
http
http
:
Client
options
options
:
CustomersOptions
uri
Helper
uri
Helper
:
UriHelper
Static
base
Endpoint
base
Endpoint
:
string
= '/api/v1/customers'
Methods
count
count
(
)
:
Promise
<
CustomersResponse
>
Returns
Promise
<
CustomersResponse
>
create
create
(
customer
:
Customer
, query
?:
HandlerCustomerQuery
)
:
Promise
<
CustomerResponse
>
Parameters
customer:
Customer
Optional
query:
HandlerCustomerQuery
Returns
Promise
<
CustomerResponse
>
delete
delete
(
customerId
:
string
)
:
Promise
<
CustomerResponse
>
Parameters
customerId:
string
Returns
Promise
<
CustomerResponse
>
get
get
(
customerId
:
string
, query
:
CustomersQuery
)
:
Promise
<
CustomerResponse
>
Parameters
customerId:
string
query:
CustomersQuery
Returns
Promise
<
CustomerResponse
>
get
All
get
All
(
query
?:
CustomersQuery
)
:
Promise
<
CustomersResponse
>
Parameters
Optional
query:
CustomersQuery
Returns
Promise
<
CustomersResponse
>
meta
meta
(
q
?:
CustomersMetaQuery
)
:
Promise
<
CustomersResponse
>
Parameters
Optional
q:
CustomersMetaQuery
Returns
Promise
<
CustomersResponse
>
put
put
(
customerId
:
string
, customer
:
Customer
)
:
Promise
<
CustomerResponse
>
Parameters
customerId:
string
customer:
Customer
Returns
Promise
<
CustomerResponse
>
Generated using
TypeDoc