@tillhub/javascript-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Discounts
constructor
endpoint
http
options
uri
Helper
base
Endpoint
count
create
delete
get
get
All
put
Discount
Discount
Response
Discounts
Options
Discounts
Query
Discounts
Response
Discount
Group
Type
Discount
Type
Hierarchy
ThBaseHandler
Discounts
Index
Constructors
constructor
Properties
endpoint
http
options
uri
Helper
base
Endpoint
Methods
count
create
delete
get
get
All
put
Constructors
constructor
new
Discounts
(
options
:
DiscountsOptions
, http
:
Client
)
:
Discounts
Parameters
options:
DiscountsOptions
http:
Client
Returns
Discounts
Properties
endpoint
endpoint
:
string
http
http
:
Client
options
options
:
DiscountsOptions
uri
Helper
uri
Helper
:
UriHelper
Static
base
Endpoint
base
Endpoint
:
string
= '/api/v0/discounts'
Methods
count
count
(
)
:
Promise
<
DiscountsResponse
>
Returns
Promise
<
DiscountsResponse
>
create
create
(
discount
:
Discount
)
:
Promise
<
DiscountResponse
>
Parameters
discount:
Discount
Returns
Promise
<
DiscountResponse
>
delete
delete
(
discountId
:
string
)
:
Promise
<
DiscountResponse
>
Parameters
discountId:
string
Returns
Promise
<
DiscountResponse
>
get
get
(
discountId
:
string
)
:
Promise
<
DiscountResponse
>
Parameters
discountId:
string
Returns
Promise
<
DiscountResponse
>
get
All
get
All
(
queryOrOptions
?:
DiscountsQuery
)
:
Promise
<
DiscountsResponse
>
Parameters
Optional
queryOrOptions:
DiscountsQuery
Returns
Promise
<
DiscountsResponse
>
put
put
(
discountId
:
string
, discount
:
Discount
)
:
Promise
<
DiscountResponse
>
Parameters
discountId:
string
discount:
Discount
Returns
Promise
<
DiscountResponse
>
Generated using
TypeDoc