Skip to main content

LoyaltyApiClientInterface

Methods

createPrize()

createPrize(data, config?): Promise<SCPrizeType>

Parameters

ParameterType
dataLoyaltyPrizeParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPrizeType>

Source

services/loyalty/index.ts:9


createPrizeRequest()

createPrizeRequest(prize, config?): Promise<SCPrizeUserType>

Parameters

ParameterType
prizenumber
config?AxiosRequestConfig<any>

Returns

Promise<SCPrizeUserType>

Source

services/loyalty/index.ts:14


getAllPrizeRequests()

getAllPrizeRequests(config?): Promise <SCPaginatedResponse<SCPrizeUserType>>

Parameters

ParameterType
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCPrizeUserType>>

Source

services/loyalty/index.ts:13


getPrizes()

getPrizes(params?, config?): Promise <SCPaginatedResponse<SCPrizeType>>

Parameters

ParameterType
params?LoyaltyGetPrizeParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCPrizeType>>

Source

services/loyalty/index.ts:8


getSpecificPrize()

getSpecificPrize(id, config?): Promise<SCPrizeType>

Parameters

ParameterType
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCPrizeType>

Source

services/loyalty/index.ts:10


getSpecificPrizeRequest()

getSpecificPrizeRequest(id, config?): Promise<SCPrizeUserType>

Parameters

ParameterType
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCPrizeUserType>

Source

services/loyalty/index.ts:15


patchPrize()

patchPrize(id, data?, config?): Promise<SCPrizeType>

Parameters

ParameterType
idstring | number
data?LoyaltyPrizeParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPrizeType>

Source

services/loyalty/index.ts:12


patchPrizeRequest()

patchPrizeRequest(id, status?, config?): Promise<SCPrizeUserType>

Parameters

ParameterType
idstring | number
status?SCPrizeUserStatusType
config?AxiosRequestConfig<any>

Returns

Promise<SCPrizeUserType>

Source

services/loyalty/index.ts:16


updatePrize()

updatePrize(id, data, config?): Promise<SCPrizeType>

Parameters

ParameterType
idstring | number
dataLoyaltyPrizeParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPrizeType>

Source

services/loyalty/index.ts:11