actions/affiliates

Affiliates Actions Channel

Parameters:
Name Type Description
config Object
services Object
emit function
Returns:
Type
function

Methods

(inner) claimAffiliateEarnings(params) → {Object}

Clain the users's affiliate earnings

Parameters:
Name Type Description
params Object
Returns:

receipt

Type
Object

(inner) createAffiliateCampaign(params) → {Object}

Create a new affiliate campaign

Parameters:
Name Type Description
params Object
Properties
Name Type Description
code String
duration String
type String
Returns:
Type
Object

(inner) endAffiliateCampaign(params) → {Object}

End a campaign

Parameters:
Name Type Description
params Object
Properties
Name Type Description
code String
Returns:
Type
Object

(inner) getAffiliateConfig(params) → {Object}

Get affiliate configuration

Parameters:
Name Type Description
params Object
Properties
Name Type Description
gamename String
Returns:
Type
Object

(inner) joinAffiliateCampaign(params) → {Object}

Join a players affiliate campign

Parameters:
Name Type Description
params Object
Properties
Name Type Description
code String
Returns:
Type
Object

(inner) listAffiliateCampaigns(params) → {Array}

Get affiliate configuration

Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Default Description
version String <optional>
"v2"
sortKey String <optional>
"commissionUsd"
start Integer <optional>
0
end Integer <optional>
Date.now()
skip Integer <optional>
0

number of documents to skip

limit Integer <optional>
100

maximum documents to return

Returns:

list of affiliate campaigns

Type
Array

(inner) listMyAffiliates(params) → {Array}

List the user's referrals

Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Default Description
campaign String
version String <optional>
"v2"
sortKey String <optional>
"commissionUsd"
start Integer <optional>
0
end Integer <optional>
Date.now()
skip Integer <optional>
0

number of documents to skip

limit Integer <optional>
100

maximum documents to return

Returns:

list of catalog entries

Type
Array

(inner) myAffiliateFunds(params) → {Object}

Get information about the users affiliate funds

Parameters:
Name Type Description
params Object
Returns:

memo

Type
Object