Namespace: pointApi

Playbasis. pointApi

Playbasis Point API

Methods


<static> approveTransactionCustomPoint(txnList, options)

Approve or reject custom point for bulk of transactions ids. If not specify approve in options parameter, then it will try to approve them.

Parameters:
Name Type Description
txnList String

list of transaction id of custom point delimited by comma i.e. xxxx,xxxx,xxxx

options Object

(optional) options as object.
It can include
{
approve: String = approve status. It can be "true" | "false". Default is "true".
}

Returns:

Promise object

Type
Object

<static> listCustomStatus(options)

Return list of custom points' status. So user can review, approve or reject them later one by one.

Parameters:
Name Type Description
options Object

(optional) options as object.
It can include
{
player_list: String = list of player delimitted by comma i.e. john,max,robert
status: String = status of custom point to include in the returned list. It can be "all" | "approve" | "pending" | "reject".
from: String = starting date of custom point in format YYYY-MM-DD (i.e. 1982-09-29)
to: String = ending date of custom point in format YYYY-MM-DD (i.e. 1982-09-29)
offset: String = paging offset, The start of item to returned in index-based. Default is 0.
limit: Number = paging limit. Default is 20.
}

Returns:

Promise object

Type
Object

<static> retrieveRemainingPoints(options)

Retrieve remaining for point-based name.

Parameters:
Name Type Description
options Object

(optional) options as object.
It can include
{
name: String = name of point-based to get remaining from
}

Returns:

Promise object

Type
Object

<static> retrieveTransactionCustomPoint(txnId)

Retrieve transaction information of custom point.

Parameters:
Name Type Description
txnId String

transaction id

Returns:

Promise object

Type
Object