SDK for / Overview

XsollaInventoryDataModel.h

1// Copyright 2024 Xsolla Inc. All Rights Reserved.
2
3#pragma once
4
5#include "XsollaUtilsDataModel.h"
6
7#include "XsollaInventoryDataModel.generated.h"
8
9USTRUCT(BlueprintType)
10struct XSOLLAINVENTORY_API FInventoryItem
11{
12public:
13GENERATED_BODY()
14
15UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
16FString sku;
17
18UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
19FString name;
20
21UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
22FString type;
23
24UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
25FString virtual_item_type;
26
27UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
28FString description;
29
30UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
31FString image_url;
32
33UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
34TArray<FXsollaItemAttribute> attributes;
35
36UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
37TArray<FXsollaItemGroup> groups;
38
39UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
40FString instance_id;
41
42UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
43int32 quantity = 0;
44
45UPROPERTY(BlueprintReadOnly, Category = "Inventory Item")
46int32 remaining_uses = 0;
47};
48
49USTRUCT(BlueprintType)
50struct XSOLLAINVENTORY_API FInventoryItemsData
51{
52public:
53GENERATED_BODY()
54
55UPROPERTY(BlueprintReadOnly, Category = "Inventory Data")
56TArray<FInventoryItem> Items;
57
58public:
60};
61
62USTRUCT(BlueprintType)
63struct XSOLLAINVENTORY_API FInventoryCouponRewardData
64{
65public:
66GENERATED_BODY()
67
68UPROPERTY(BlueprintReadOnly, Category = "Coupon Data")
69TArray<FXsollaBonusItem> bonus;
70
71UPROPERTY(BlueprintReadOnly, Category = "Coupon Data")
72bool is_selectable;
73
74public:
76: is_selectable(false){};
77};
78
79USTRUCT(BlueprintType)
80struct XSOLLAINVENTORY_API FInventoryRedeemedCouponItem
81{
82public:
83GENERATED_BODY()
84
85UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
86FString sku;
87
88UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
89FString name;
90
91UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
92FString description;
93
94UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
95FString type;
96
97UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
98FString virtual_item_type;
99
100UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
101TArray<FXsollaItemGroup> groups;
102
103UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
104TArray<FXsollaItemAttribute> attributes;
105
106UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
107bool is_free;
108
109UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
110FXsollaPrice price;
111
112UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
113TArray<FXsollaVirtualCurrencyPrice> virtual_prices;
114
115UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
116FString image_url;
117
118UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
119FXsollaItemOptions inventory_options;
120
121UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Item")
122int32 quantity;
123
124public:
126: is_free(false)
127, quantity(0){};
128};
129
130USTRUCT(BlueprintType)
131struct XSOLLAINVENTORY_API FInventoryRedeemedCouponData
132{
133public:
134GENERATED_BODY()
135
136UPROPERTY(BlueprintReadOnly, Category = "Redeemed Coupon Data")
137TArray<FInventoryRedeemedCouponItem> items;
138};
139
140USTRUCT(BlueprintType)
141struct XSOLLAINVENTORY_API FVirtualCurrencyBalance
142{
143public:
144GENERATED_BODY()
145
146UPROPERTY(BlueprintReadWrite, Category = "Virtual Currency Balance")
147FString sku;
148
149UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Balance")
150FString type;
151
152UPROPERTY(BlueprintReadWrite, Category = "Virtual Currency Balance")
153FString name;
154
155UPROPERTY(BlueprintReadWrite, Category = "Virtual Currency Balance")
156FString description;
157
158UPROPERTY(BlueprintReadWrite, Category = "Virtual Currency Balance")
159FString image_url;
160
161UPROPERTY(BlueprintReadWrite, Category = "Virtual Currency Balance")
162int64 amount;
163
164public:
166: amount(0){};
167};
168
169USTRUCT(BlueprintType)
170struct XSOLLAINVENTORY_API FVirtualCurrencyBalanceData
171{
172public:
173GENERATED_BODY()
174
175UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Balance Data")
176TArray<FVirtualCurrencyBalance> Items;
177
178public:
180};
181
182USTRUCT(BlueprintType)
183struct XSOLLAINVENTORY_API FTimeLimitedItem
184{
185public:
186GENERATED_BODY()
187
188UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item")
189FString sku;
190
191UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item")
192FString name;
193
194UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item")
195FString type;
196
197UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item")
198FString virtual_item_type;
199
200UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item")
201FString description;
202
203UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item")
204FString image_url;
205
206UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item")
207int64 expired_at;
208
209UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item")
210FString status;
211
212public:
214: expired_at(0)
215{
216}
217};
218
219USTRUCT(BlueprintType)
220struct XSOLLAINVENTORY_API FTimeLimitedItemsData
221{
222public:
223GENERATED_BODY()
224
225UPROPERTY(BlueprintReadOnly, Category = "Time Limited Item Data")
226TArray<FTimeLimitedItem> Items;
227
228public:
230};
Definition: XsollaInventoryDataModel.h:64
Definition: XsollaInventoryDataModel.h:11
Definition: XsollaInventoryDataModel.h:51
Definition: XsollaInventoryDataModel.h:132
Definition: XsollaInventoryDataModel.h:81
Definition: XsollaInventoryDataModel.h:184
Definition: XsollaInventoryDataModel.h:221
Definition: XsollaInventoryDataModel.h:171
Definition: XsollaInventoryDataModel.h:142