@tillhub/javascript-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Customer
Creation
Failed
Customer
Delete
Failed
Customer
Fetch
Failed
Customer
Note
Creation
Failed
Customer
Put
Failed
Customers
constructor
endpoint
http
options
uri
Helper
base
Endpoint
bulk
Create
count
create
create
Note
delete
get
get
All
meta
put
search
Customers
Bulk
Create
Failed
Customers
Count
Failed
Customers
Fetch
Failed
Customers
Meta
Failed
Customers
Search
Failed
Customer
Customer
Address
Customer
Company
Customer
Contacts
Customer
Discount
Customer
Image
Customer
Internal
Discount
Customer
Note
Item
Customer
Phonenumbers
Customer
Query
Customer
Response
Customers
Bulk
Response
Customers
Meta
Query
Customers
Options
Customers
Query
Customers
Response
Error
Object
Handler
Customer
Query
Customer
Address
Type
Hierarchy
ThBaseHandler
Customers
Index
Constructors
constructor
Properties
endpoint
http
options
uri
Helper
base
Endpoint
Methods
bulk
Create
count
create
create
Note
delete
get
get
All
meta
put
search
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/v0/customers'
Methods
bulk
Create
bulk
Create
(
customers
:
Customer
[]
, query
?:
HandlerCustomerQuery
)
:
Promise
<
CustomersBulkResponse
>
Parameters
customers:
Customer
[]
Optional
query:
HandlerCustomerQuery
Returns
Promise
<
CustomersBulkResponse
>
count
count
(
)
:
Promise
<
CustomersResponse
>
Returns
Promise
<
CustomersResponse
>
create
create
(
customer
:
Customer
, query
?:
HandlerCustomerQuery
)
:
Promise
<
CustomerResponse
>
Parameters
customer:
Customer
Optional
query:
HandlerCustomerQuery
Returns
Promise
<
CustomerResponse
>
create
Note
create
Note
(
customerId
:
string
, note
:
CustomerNoteItem
)
:
Promise
<
CustomerResponse
>
Parameters
customerId:
string
note:
CustomerNoteItem
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
>
search
search
(
searchTerm
:
string
)
:
Promise
<
CustomersResponse
>
Parameters
searchTerm:
string
Returns
Promise
<
CustomersResponse
>
Generated using
TypeDoc