LootLocker Unreal Server SDK 7.1.1
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerServerBalanceRequest.h
Go to the documentation of this file.
1// Copyright (c) 2021 LootLocker
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "LootLockerServerBalanceRequest.generated.h"
9
10//==================================================
11// Data Type Definitions
12//==================================================
13
14
18UENUM(BlueprintType, Category = "LootLockerServer")
20{
22 player = 1,
23};
24
28USTRUCT(BlueprintType, Category="LootLockerServer")
30{
31 GENERATED_BODY()
35 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
36 FString Amount;
40 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
45 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
46 FString Wallet_id;
50 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
51 FString Created_at;
55 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
60 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
61 FString Holder_id;
62};
63
67USTRUCT(BlueprintType, Category = "LootLockerServer")
69{
70 GENERATED_BODY()
74 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
75 FString Amount;
79 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
80 FString Currency_id;
84 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
85 FString Wallet_id;
89 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
90 FString Created_at;
94 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
99 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
100 FString Holder_id;
101};
102
106USTRUCT(BlueprintType, Category = "LootLockerServer")
108{
109 GENERATED_BODY()
113 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
114 FString Currency_id;
118 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
123 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
128 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
129 FString Factor;
133 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
134 FString Created_at;
138 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
139 FString Expires_at;
140};
141
142//==================================================
143// Request Definitions
144//==================================================
145
149USTRUCT(BlueprintType, Category="LootLockerServer")
151{
152 GENERATED_BODY()
156 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
157 FString Holder_id;
161 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
162 FString Holder_type;
166 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
167 FString Id;
168};
169
173USTRUCT(BlueprintType, Category="LootLockerServer")
175{
176 GENERATED_BODY()
180 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
181 FString Amount;
185 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
186 FString Currency_id;
189 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
190 FString Wallet_id;
191};
192
196USTRUCT(BlueprintType, Category="LootLockerServer")
198{
199 GENERATED_BODY()
203 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
204 FString Amount;
208 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
209 FString Currency_id;
212 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
213 FString Wallet_id;
214};
215
216
217//==================================================
218// Response Definitions
219//==================================================
220
224USTRUCT(BlueprintType, Category="LootLockerServer")
226{
227 GENERATED_BODY()
231 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
233};
234
238USTRUCT(BlueprintType, Category="LootLockerServer")
240{
241 GENERATED_BODY()
245 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
246 FString Holder_id;
250 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
251 FString Id;
255 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
260 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
262};
263
267USTRUCT(BlueprintType, Category = "LootLockerServer")
269{
270 GENERATED_BODY()
274 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
276};
277
281USTRUCT(BlueprintType, Category = "LootLockerServer")
283{
284 GENERATED_BODY()
288 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
290};
291
295USTRUCT(BlueprintType, Category="LootLockerServer")
297{
298 GENERATED_BODY()
302 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
303 FString Wallet_id;
304};
305
306//==================================================
307// C++ Delegate Definitions
308//==================================================
329
330
331//==================================================
332// API Class Definition
333//==================================================
334
335
336UCLASS()
337class LOOTLOCKERSERVERSDK_API ULootLockerServerBalanceRequest : public UObject
338{
339 GENERATED_BODY()
340public:
342 static FString ListBalancesInWallet(const FString& WalletID, const FLootLockerServerListBalancesForWalletResponseDelegate& OnComplete);
343 static FString GetWalletByWalletID(const FString& WalletID, const FLootLockerServerGetWalletResponseDelegate& OnComplete);
344 static FString GetWalletByHolderID(const FString& HolderULID, const ELootLockerServerWalletHolderTypes& HolderType, const FLootLockerServerGetWalletResponseDelegate& OnComplete);
345 static FString CreditBalanceToWallet(const FString& WalletID, const FString& CurrencyID, const FString& Amount, const FLootLockerServerCreditWalletResponseDelegate& OnComplete);
346 static FString DebitBalanceToWallet(const FString& WalletID, const FString& CurrencyID, const FString& Amount, const FLootLockerServerDebitWalletResponseDelegate& OnComplete);
347private:
348 static FString CreateWallet(const FString& HolderULID, const ELootLockerServerWalletHolderTypes& HolderType, const FLootLockerServerCreateWalletResponseDelegate& OnComplete);
349};
void(* FLootLockerServerDebitWalletResponseDelegate)(FLootLockerServerDebitWalletResponse)
C++ response delegate for debiting currency from a wallet.
Definition LootLockerServerBalanceRequest.h:324
ELootLockerServerWalletHolderTypes
Possible wallet holder types.
Definition LootLockerServerBalanceRequest.h:20
@ player
Definition LootLockerServerBalanceRequest.h:22
@ character
Definition LootLockerServerBalanceRequest.h:21
void(* FLootLockerServerGetWalletResponseDelegate)(FLootLockerServerGetWalletResponse)
C++ response delegate for getting a wallet.
Definition LootLockerServerBalanceRequest.h:316
void(* FLootLockerServerCreditWalletResponseDelegate)(FLootLockerServerCreditWalletResponse)
C++ response delegate for crediting currency to a wallet.
Definition LootLockerServerBalanceRequest.h:320
void(* FLootLockerServerCreateWalletResponseDelegate)(FLootLockerServerCreateWalletResponse)
C++ response delegate for creating a wallet.
Definition LootLockerServerBalanceRequest.h:328
void(* FLootLockerServerListBalancesForWalletResponseDelegate)(FLootLockerServerListBalancesForWalletResponse)
C++ response delegate for listing balances in a wallet.
Definition LootLockerServerBalanceRequest.h:312
static FString ListBalancesInWallet(const FString &WalletID, const FLootLockerServerListBalancesForWalletResponseDelegate &OnComplete)
static FString DebitBalanceToWallet(const FString &WalletID, const FString &CurrencyID, const FString &Amount, const FLootLockerServerDebitWalletResponseDelegate &OnComplete)
static FString GetWalletByHolderID(const FString &HolderULID, const ELootLockerServerWalletHolderTypes &HolderType, const FLootLockerServerGetWalletResponseDelegate &OnComplete)
static FString CreditBalanceToWallet(const FString &WalletID, const FString &CurrencyID, const FString &Amount, const FLootLockerServerCreditWalletResponseDelegate &OnComplete)
static FString GetWalletByWalletID(const FString &WalletID, const FLootLockerServerGetWalletResponseDelegate &OnComplete)
Definition LootLockerServerBalanceRequest.h:108
FString Created_at
When this currency modifier was created.
Definition LootLockerServerBalanceRequest.h:134
FString Currency_name
The name of the currency.
Definition LootLockerServerBalanceRequest.h:119
FString Factor
The factor of this currency.
Definition LootLockerServerBalanceRequest.h:129
FString Currency_code
The currency code.
Definition LootLockerServerBalanceRequest.h:124
FString Currency_id
The id of the currency.
Definition LootLockerServerBalanceRequest.h:114
FString Expires_at
When this currency modifier expires.
Definition LootLockerServerBalanceRequest.h:139
Definition LootLockerServerBalanceRequest.h:69
ELootLockerServerWalletHolderTypes Holder_type
The type of holder that this holder id refers to.
Definition LootLockerServerBalanceRequest.h:95
FString Wallet_id
The id of the wallet holding this balance.
Definition LootLockerServerBalanceRequest.h:85
FString Created_at
The time that this balance was created.
Definition LootLockerServerBalanceRequest.h:90
FString Currency_id
The id of the currency that this balance is in.
Definition LootLockerServerBalanceRequest.h:80
FString Amount
Current amount of the given currency in this wallet.
Definition LootLockerServerBalanceRequest.h:75
FString Holder_id
ULID of the holder you want to create a wallet for.
Definition LootLockerServerBalanceRequest.h:100
Definition LootLockerServerBalanceRequest.h:30
FString Amount
Current amount of the given currency in this wallet.
Definition LootLockerServerBalanceRequest.h:36
FString Wallet_id
The id of the wallet holding this balance.
Definition LootLockerServerBalanceRequest.h:46
ELootLockerServerWalletHolderTypes Holder_type
The type of holder that this holder id refers to.
Definition LootLockerServerBalanceRequest.h:56
FString Created_at
The time that this balance was created.
Definition LootLockerServerBalanceRequest.h:51
FLootLockerServerCurrency Currency
Information about the currency that this balance is in.
Definition LootLockerServerBalanceRequest.h:41
FString Holder_id
ULID of the holder you want to create a wallet for.
Definition LootLockerServerBalanceRequest.h:61
Definition LootLockerServerBalanceRequest.h:151
FString Holder_type
The type of holder that this holder id refers to.
Definition LootLockerServerBalanceRequest.h:162
FString Id
The id of the created wallet.
Definition LootLockerServerBalanceRequest.h:167
FString Holder_id
ULID of the holder you want to create a wallet for.
Definition LootLockerServerBalanceRequest.h:157
Definition LootLockerServerBalanceRequest.h:297
FString Wallet_id
The unique id of this wallet.
Definition LootLockerServerBalanceRequest.h:303
Definition LootLockerServerBalanceRequest.h:175
FString Amount
Amount of the given currency to debit/credit to/from the given wallet.
Definition LootLockerServerBalanceRequest.h:181
FString Wallet_id
The id of the wallet to credit/debit to/from.
Definition LootLockerServerBalanceRequest.h:190
FString Currency_id
The id of the currency that the amount is given in.
Definition LootLockerServerBalanceRequest.h:186
Definition LootLockerServerBalanceRequest.h:269
FLootLockerServerBalanceWithCurrencyId Balance
The balance credited (given) to this wallet.
Definition LootLockerServerBalanceRequest.h:275
Details about a particular currency.
Definition LootLockerServerCurrencyRequest.h:18
Definition LootLockerServerBalanceRequest.h:198
FString Currency_id
The id of the currency that the amount is given in.
Definition LootLockerServerBalanceRequest.h:209
FString Amount
Amount of the given currency to debit/credit to/from the given wallet.
Definition LootLockerServerBalanceRequest.h:204
FString Wallet_id
The id of the wallet to credit/debit to/from.
Definition LootLockerServerBalanceRequest.h:213
Definition LootLockerServerBalanceRequest.h:283
FLootLockerServerBalanceWithCurrencyId Balance
The balance debited (taken) from this wallet.
Definition LootLockerServerBalanceRequest.h:289
Definition LootLockerServerBalanceRequest.h:240
FString Holder_id
The unique id of the holder of this wallet.
Definition LootLockerServerBalanceRequest.h:246
FLootLockerServerBalanceModifiers modifiers
The modifiers for this wallet.
Definition LootLockerServerBalanceRequest.h:261
ELootLockerServerWalletHolderTypes type
The type of entity that holds this wallet.
Definition LootLockerServerBalanceRequest.h:256
FString Id
The unique id of this wallet.
Definition LootLockerServerBalanceRequest.h:251
Definition LootLockerServerBalanceRequest.h:226
TArray< FLootLockerServerBalance > Balances
List of balances in different currencies in the requested wallet.
Definition LootLockerServerBalanceRequest.h:232
The base response for all LootLocker Server responses.
Definition LootLockerServerResponse.h:67