CurrenciesApi
Import
Import
Constructors
Constructor
-
Parameters
-
Optional configuration: Configuration
-
basePath: string = ...
-
axios: AxiosInstance = ...
Returns CurrenciesApi
-
Methods
Decrement Player Currency Balance
-
Parameters
-
projectId: string
ID of the project
-
playerId: string
ID of the player
-
currencyId: string
-
Optional configAssignmentHash: string
-
Optional currencyModifyBalanceRequest: CurrencyModifyBalanceRequest
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<CurrencyBalanceResponse>>
-
Get Player Currencies
-
Get a list of currency balances for a player. Results ordered by Currency ID ascending.
Parameters
-
projectId: string
ID of the project
-
playerId: string
ID of the player
-
Optional configAssignmentHash: string
-
Optional after: string
-
Optional limit: number
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<PlayerCurrencyBalanceResponse>>
-
Increment Player Currency Balance
-
Increment a player's currency balance by a given value.
Parameters
-
projectId: string
ID of the project
-
playerId: string
ID of the player
-
currencyId: string
-
Optional configAssignmentHash: string
-
Optional currencyModifyBalanceRequest: CurrencyModifyBalanceRequest
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<CurrencyBalanceResponse>>
-
Set Player Currency Balance
-
Set a player's currency balance.
Parameters
-
projectId: string
ID of the project
-
playerId: string
ID of the player
-
currencyId: string
-
Optional configAssignmentHash: string
-
Optional currencyBalanceRequest: CurrencyBalanceRequest
-
Optional options: AxiosRequestConfig
Returns Promise<AxiosResponse<CurrencyBalanceResponse>>
-
Decrements a player's currency balance by a given value.
Decrement Currency Balance
{RequiredError}
CurrenciesApi