LoyaltyApiClientInterface
Methods
createPrize()
createPrize(
data
,config
?):Promise
<SCPrizeType
>
Parameters
Parameter | Type |
---|---|
data | LoyaltyPrizeParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPrizeType
>
Source
createPrizeRequest()
createPrizeRequest(
prize
,config
?):Promise
<SCPrizeUserType
>
Parameters
Parameter | Type |
---|---|
prize | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPrizeUserType
>
Source
getAllPrizeRequests()
getAllPrizeRequests(
config
?):Promise
<SCPaginatedResponse
<SCPrizeUserType
>>
Parameters
Parameter | Type |
---|---|
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCPrizeUserType
>>
Source
getPrizes()
getPrizes(
params
?,config
?):Promise
<SCPaginatedResponse
<SCPrizeType
>>
Parameters
Parameter | Type |
---|---|
params ? | LoyaltyGetPrizeParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCPrizeType
>>
Source
getSpecificPrize()
getSpecificPrize(
id
,config
?):Promise
<SCPrizeType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPrizeType
>
Source
getSpecificPrizeRequest()
getSpecificPrizeRequest(
id
,config
?):Promise
<SCPrizeUserType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPrizeUserType
>
Source
patchPrize()
patchPrize(
id
,data
?,config
?):Promise
<SCPrizeType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data ? | LoyaltyPrizeParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPrizeType
>
Source
patchPrizeRequest()
patchPrizeRequest(
id
,status
?,config
?):Promise
<SCPrizeUserType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
status ? | SCPrizeUserStatusType |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPrizeUserType
>
Source
updatePrize()
updatePrize(
id
,data
,config
?):Promise
<SCPrizeType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | LoyaltyPrizeParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPrizeType
>