Index
Functions
add Reward Event Listener
Parameters
rewardEvent: REWARD_ITEM_TRANSFER_RECEIVED
listenerFn: ListenerFn<REWARD_ITEM_TRANSFER_RECEIVED, IRewardItemTransferPayload>
Returns void
Const get Application Reward Items
Gets Application Reward Items.
Parameters
args: IRewardItemArgs
Returns Promise<IPaginatedResponse<IRewardItem>>
Const get Reward Item Balances
Gets userProfile Reward Item Balance.
Parameters
args: { rewardItemIds: string[] }
reward
Item Ids: string[]
Returns Promise<IPaginatedResponse<IRewardItemBalancePayload>>
Const get Reward Item Transfers
Gets user's Reward Item Transfers.
Parameters
args: IRewardItemTransferArgs
arguments to filter user's Reward Item Transfers
Returns Promise<IPaginatedResponse<IRewardItemTransferPayload>>
Const get Reward Transactions
Parameters
args: IRewardTransactionArgs
Returns Promise<IPaginatedResponse<IRewardTransaction>>
remove Reward Event Listener
Parameters
rewardEvent: REWARD_ITEM_TRANSFER_RECEIVED
Optional listenerFn: ListenerFn<REWARD_ITEM_TRANSFER_RECEIVED, IRewardItemTransferPayload>
Returns void
Const transfer Reward Item Amount
Transfer Reward Item Balance to another profile.
Parameters
args: { amount: number; recipientProfileId: string; rewardItemId: string }
amount: number
recipient
Profile Id: string reward
Item Id: string
Returns Promise<IRewardItemTransferPayload>
Generated using TypeDoc
Add listener for the RewardEvent
2.12.0
addRewardEventListener(RewardEvent.REWARD_ITEM_TRANSFER_RECEIVED, function onReceiveNewRewardItemTransfer(rewardItemTransfer){ console.log(rewardItemTransfer); })