@tillhub/javascript-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Promotion
Creation
Failed
Promotion
Delete
Failed
Promotion
Fetch
Failed
Promotion
Put
Failed
Promotions
constructor
endpoint
http
options
uri
Helper
base
Endpoint
create
delete
get
get
All
put
Promotions
Fetch
Failed
Promotion
Promotion
Response
Promotions
Options
Promotions
Query
Promotions
Response
Hierarchy
ThBaseHandler
Promotions
Index
Constructors
constructor
Properties
endpoint
http
options
uri
Helper
base
Endpoint
Methods
create
delete
get
get
All
put
Constructors
constructor
new
Promotions
(
options
:
PromotionsOptions
, http
:
Client
)
:
Promotions
Parameters
options:
PromotionsOptions
http:
Client
Returns
Promotions
Properties
endpoint
endpoint
:
string
http
http
:
Client
options
options
:
PromotionsOptions
uri
Helper
uri
Helper
:
UriHelper
Static
base
Endpoint
base
Endpoint
:
string
= '/api/v0/promotions'
Methods
create
create
(
promotion
:
Promotion
)
:
Promise
<
PromotionResponse
>
Parameters
promotion:
Promotion
Returns
Promise
<
PromotionResponse
>
delete
delete
(
promotionId
:
string
)
:
Promise
<
PromotionResponse
>
Parameters
promotionId:
string
Returns
Promise
<
PromotionResponse
>
get
get
(
promotionId
:
string
)
:
Promise
<
PromotionResponse
>
Parameters
promotionId:
string
Returns
Promise
<
PromotionResponse
>
get
All
get
All
(
queryOrOptions
?:
PromotionsQuery
)
:
Promise
<
PromotionsResponse
>
Parameters
Optional
queryOrOptions:
PromotionsQuery
Returns
Promise
<
PromotionsResponse
>
put
put
(
promotionId
:
string
, promotion
:
Promotion
)
:
Promise
<
PromotionResponse
>
Parameters
promotionId:
string
promotion:
Promotion
Returns
Promise
<
PromotionResponse
>
Generated using
TypeDoc