Skip to content

Commit ca9f72a

Browse files
PlayFab SDK TeamPlayFab SDK Team
authored andcommitted
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#250926
2 parents e48eecc + 5fede1e commit ca9f72a

16 files changed

Lines changed: 174 additions & 6 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.221.250912"; } }
1+
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.222.250926"; } }

ExampleMacProject/Assets/PlayFabSDK/Economy/PlayFabEconomyAPI.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,19 @@ public static void RedeemAppleAppStoreInventoryItems(RedeemAppleAppStoreInventor
447447
PlayFabHttp.MakeApiCall("/Inventory/RedeemAppleAppStoreInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
448448
}
449449

450+
/// <summary>
451+
/// Redeem items.
452+
/// </summary>
453+
public static void RedeemAppleAppStoreWithJwsInventoryItems(RedeemAppleAppStoreWithJwsInventoryItemsRequest request, Action<RedeemAppleAppStoreWithJwsInventoryItemsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
454+
{
455+
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
456+
var callSettings = PlayFabSettings.staticSettings;
457+
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
458+
459+
460+
PlayFabHttp.MakeApiCall("/Inventory/RedeemAppleAppStoreWithJwsInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
461+
}
462+
450463
/// <summary>
451464
/// Redeem items.
452465
/// </summary>

ExampleMacProject/Assets/PlayFabSDK/Economy/PlayFabEconomyInstanceAPI.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,17 @@ public void RedeemAppleAppStoreInventoryItems(RedeemAppleAppStoreInventoryItemsR
408408
PlayFabHttp.MakeApiCall("/Inventory/RedeemAppleAppStoreInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
409409
}
410410

411+
/// <summary>
412+
/// Redeem items.
413+
/// </summary>
414+
public void RedeemAppleAppStoreWithJwsInventoryItems(RedeemAppleAppStoreWithJwsInventoryItemsRequest request, Action<RedeemAppleAppStoreWithJwsInventoryItemsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
415+
{
416+
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
417+
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
418+
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
419+
PlayFabHttp.MakeApiCall("/Inventory/RedeemAppleAppStoreWithJwsInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
420+
}
421+
411422
/// <summary>
412423
/// Redeem items.
413424
/// </summary>

ExampleMacProject/Assets/PlayFabSDK/Economy/PlayFabEconomyModels.cs

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,10 @@ public class GetInventoryOperationStatusRequest : PlayFabRequestCommon
13981398
/// The entity to perform this action on.
13991399
/// </summary>
14001400
public EntityKey Entity;
1401+
/// <summary>
1402+
/// The token to get the status of the inventory operation.
1403+
/// </summary>
1404+
public string OperationToken;
14011405
}
14021406

14031407
[Serializable]
@@ -2079,6 +2083,11 @@ public class PurchaseInventoryItemsResponse : PlayFabResultCommon
20792083
public List<string> TransactionIds;
20802084
}
20812085

2086+
[Serializable]
2087+
public class PurchaseOverride : PlayFabBaseModel
2088+
{
2089+
}
2090+
20822091
[Serializable]
20832092
public class PurchaseOverridesInfo : PlayFabBaseModel
20842093
{
@@ -2204,6 +2213,50 @@ public class RedeemAppleAppStoreInventoryItemsResponse : PlayFabResultCommon
22042213
public List<string> TransactionIds;
22052214
}
22062215

2216+
/// <summary>
2217+
/// The request for a redeem Apple AppStore With JWS
2218+
/// </summary>
2219+
[Serializable]
2220+
public class RedeemAppleAppStoreWithJwsInventoryItemsRequest : PlayFabRequestCommon
2221+
{
2222+
/// <summary>
2223+
/// The id of the entity's collection to perform this action on. (Default="default")
2224+
/// </summary>
2225+
public string CollectionId;
2226+
/// <summary>
2227+
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
2228+
/// </summary>
2229+
public Dictionary<string,string> CustomTags;
2230+
/// <summary>
2231+
/// The entity to perform this action on.
2232+
/// </summary>
2233+
public EntityKey Entity;
2234+
/// <summary>
2235+
/// The JWS representation of a transaction.
2236+
/// </summary>
2237+
public List<string> JWSTransactions;
2238+
}
2239+
2240+
/// <summary>
2241+
/// The response for a redeem Apple AppStore With JWS
2242+
/// </summary>
2243+
[Serializable]
2244+
public class RedeemAppleAppStoreWithJwsInventoryItemsResponse : PlayFabResultCommon
2245+
{
2246+
/// <summary>
2247+
/// The list of failed redemptions from the external marketplace.
2248+
/// </summary>
2249+
public List<RedemptionFailure> Failed;
2250+
/// <summary>
2251+
/// The list of successful redemptions from the external marketplace.
2252+
/// </summary>
2253+
public List<RedemptionSuccess> Succeeded;
2254+
/// <summary>
2255+
/// The Transaction IDs associated with the inventory modifications
2256+
/// </summary>
2257+
public List<string> TransactionIds;
2258+
}
2259+
22072260
/// <summary>
22082261
/// Redeem items from the Google Play Store.
22092262
/// </summary>

ExampleMacProject/Assets/PlayFabSDK/Economy/PlayFabEvents.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public partial class PlayFabEvents
6363
public event PlayFabResultEvent<PurchaseInventoryItemsResponse> OnEconomyPurchaseInventoryItemsResultEvent;
6464
public event PlayFabRequestEvent<RedeemAppleAppStoreInventoryItemsRequest> OnEconomyRedeemAppleAppStoreInventoryItemsRequestEvent;
6565
public event PlayFabResultEvent<RedeemAppleAppStoreInventoryItemsResponse> OnEconomyRedeemAppleAppStoreInventoryItemsResultEvent;
66+
public event PlayFabRequestEvent<RedeemAppleAppStoreWithJwsInventoryItemsRequest> OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsRequestEvent;
67+
public event PlayFabResultEvent<RedeemAppleAppStoreWithJwsInventoryItemsResponse> OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsResultEvent;
6668
public event PlayFabRequestEvent<RedeemGooglePlayInventoryItemsRequest> OnEconomyRedeemGooglePlayInventoryItemsRequestEvent;
6769
public event PlayFabResultEvent<RedeemGooglePlayInventoryItemsResponse> OnEconomyRedeemGooglePlayInventoryItemsResultEvent;
6870
public event PlayFabRequestEvent<RedeemMicrosoftStoreInventoryItemsRequest> OnEconomyRedeemMicrosoftStoreInventoryItemsRequestEvent;

ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabEvents.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,9 @@ public void UnregisterInstance(object instance)
15101510
if (OnEconomyRedeemAppleAppStoreInventoryItemsRequestEvent != null) { foreach (var each in OnEconomyRedeemAppleAppStoreInventoryItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyRedeemAppleAppStoreInventoryItemsRequestEvent -= (PlayFabRequestEvent<EconomyModels.RedeemAppleAppStoreInventoryItemsRequest>)each; } } }
15111511
if (OnEconomyRedeemAppleAppStoreInventoryItemsResultEvent != null) { foreach (var each in OnEconomyRedeemAppleAppStoreInventoryItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyRedeemAppleAppStoreInventoryItemsResultEvent -= (PlayFabResultEvent<EconomyModels.RedeemAppleAppStoreInventoryItemsResponse>)each; } } }
15121512

1513+
if (OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsRequestEvent != null) { foreach (var each in OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsRequestEvent -= (PlayFabRequestEvent<EconomyModels.RedeemAppleAppStoreWithJwsInventoryItemsRequest>)each; } } }
1514+
if (OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsResultEvent != null) { foreach (var each in OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsResultEvent -= (PlayFabResultEvent<EconomyModels.RedeemAppleAppStoreWithJwsInventoryItemsResponse>)each; } } }
1515+
15131516
if (OnEconomyRedeemGooglePlayInventoryItemsRequestEvent != null) { foreach (var each in OnEconomyRedeemGooglePlayInventoryItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyRedeemGooglePlayInventoryItemsRequestEvent -= (PlayFabRequestEvent<EconomyModels.RedeemGooglePlayInventoryItemsRequest>)each; } } }
15141517
if (OnEconomyRedeemGooglePlayInventoryItemsResultEvent != null) { foreach (var each in OnEconomyRedeemGooglePlayInventoryItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnEconomyRedeemGooglePlayInventoryItemsResultEvent -= (PlayFabResultEvent<EconomyModels.RedeemGooglePlayInventoryItemsResponse>)each; } } }
15151518

@@ -2729,6 +2732,7 @@ private void OnProcessingEvent(ApiProcessingEventArgs e)
27292732
if (type == typeof(EconomyModels.PublishDraftItemRequest)) { if (_instance.OnEconomyPublishDraftItemRequestEvent != null) { _instance.OnEconomyPublishDraftItemRequestEvent((EconomyModels.PublishDraftItemRequest)e.Request); return; } }
27302733
if (type == typeof(EconomyModels.PurchaseInventoryItemsRequest)) { if (_instance.OnEconomyPurchaseInventoryItemsRequestEvent != null) { _instance.OnEconomyPurchaseInventoryItemsRequestEvent((EconomyModels.PurchaseInventoryItemsRequest)e.Request); return; } }
27312734
if (type == typeof(EconomyModels.RedeemAppleAppStoreInventoryItemsRequest)) { if (_instance.OnEconomyRedeemAppleAppStoreInventoryItemsRequestEvent != null) { _instance.OnEconomyRedeemAppleAppStoreInventoryItemsRequestEvent((EconomyModels.RedeemAppleAppStoreInventoryItemsRequest)e.Request); return; } }
2735+
if (type == typeof(EconomyModels.RedeemAppleAppStoreWithJwsInventoryItemsRequest)) { if (_instance.OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsRequestEvent != null) { _instance.OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsRequestEvent((EconomyModels.RedeemAppleAppStoreWithJwsInventoryItemsRequest)e.Request); return; } }
27322736
if (type == typeof(EconomyModels.RedeemGooglePlayInventoryItemsRequest)) { if (_instance.OnEconomyRedeemGooglePlayInventoryItemsRequestEvent != null) { _instance.OnEconomyRedeemGooglePlayInventoryItemsRequestEvent((EconomyModels.RedeemGooglePlayInventoryItemsRequest)e.Request); return; } }
27332737
if (type == typeof(EconomyModels.RedeemMicrosoftStoreInventoryItemsRequest)) { if (_instance.OnEconomyRedeemMicrosoftStoreInventoryItemsRequestEvent != null) { _instance.OnEconomyRedeemMicrosoftStoreInventoryItemsRequestEvent((EconomyModels.RedeemMicrosoftStoreInventoryItemsRequest)e.Request); return; } }
27342738
if (type == typeof(EconomyModels.RedeemNintendoEShopInventoryItemsRequest)) { if (_instance.OnEconomyRedeemNintendoEShopInventoryItemsRequestEvent != null) { _instance.OnEconomyRedeemNintendoEShopInventoryItemsRequestEvent((EconomyModels.RedeemNintendoEShopInventoryItemsRequest)e.Request); return; } }
@@ -3475,6 +3479,7 @@ private void OnProcessingEvent(ApiProcessingEventArgs e)
34753479
if (type == typeof(EconomyModels.PublishDraftItemResponse)) { if (_instance.OnEconomyPublishDraftItemResultEvent != null) { _instance.OnEconomyPublishDraftItemResultEvent((EconomyModels.PublishDraftItemResponse)e.Result); return; } }
34763480
if (type == typeof(EconomyModels.PurchaseInventoryItemsResponse)) { if (_instance.OnEconomyPurchaseInventoryItemsResultEvent != null) { _instance.OnEconomyPurchaseInventoryItemsResultEvent((EconomyModels.PurchaseInventoryItemsResponse)e.Result); return; } }
34773481
if (type == typeof(EconomyModels.RedeemAppleAppStoreInventoryItemsResponse)) { if (_instance.OnEconomyRedeemAppleAppStoreInventoryItemsResultEvent != null) { _instance.OnEconomyRedeemAppleAppStoreInventoryItemsResultEvent((EconomyModels.RedeemAppleAppStoreInventoryItemsResponse)e.Result); return; } }
3482+
if (type == typeof(EconomyModels.RedeemAppleAppStoreWithJwsInventoryItemsResponse)) { if (_instance.OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsResultEvent != null) { _instance.OnEconomyRedeemAppleAppStoreWithJwsInventoryItemsResultEvent((EconomyModels.RedeemAppleAppStoreWithJwsInventoryItemsResponse)e.Result); return; } }
34783483
if (type == typeof(EconomyModels.RedeemGooglePlayInventoryItemsResponse)) { if (_instance.OnEconomyRedeemGooglePlayInventoryItemsResultEvent != null) { _instance.OnEconomyRedeemGooglePlayInventoryItemsResultEvent((EconomyModels.RedeemGooglePlayInventoryItemsResponse)e.Result); return; } }
34793484
if (type == typeof(EconomyModels.RedeemMicrosoftStoreInventoryItemsResponse)) { if (_instance.OnEconomyRedeemMicrosoftStoreInventoryItemsResultEvent != null) { _instance.OnEconomyRedeemMicrosoftStoreInventoryItemsResultEvent((EconomyModels.RedeemMicrosoftStoreInventoryItemsResponse)e.Result); return; } }
34803485
if (type == typeof(EconomyModels.RedeemNintendoEShopInventoryItemsResponse)) { if (_instance.OnEconomyRedeemNintendoEShopInventoryItemsResultEvent != null) { _instance.OnEconomyRedeemNintendoEShopInventoryItemsResultEvent((EconomyModels.RedeemNintendoEShopInventoryItemsResponse)e.Result); return; } }

ExampleMacProject/Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ static PlayFabSettings()
6565
/// </summary>
6666
public static readonly PlayFabAuthenticationContext staticPlayer = new PlayFabAuthenticationContext();
6767

68-
public const string SdkVersion = "2.221.250912";
68+
public const string SdkVersion = "2.222.250926";
6969
public const string BuildIdentifier = "adobuild_unitysdk_167";
70-
public const string VersionString = "UnitySDK-2.221.250912";
70+
public const string VersionString = "UnitySDK-2.222.250926";
7171
public static string EngineVersion = UnityEngine.Application.unityVersion;
7272
public static string PlatformString;
7373

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.221.250912"; } }
1+
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.222.250926"; } }

ExampleTestProject/Assets/PlayFabSDK/Economy/PlayFabEconomyAPI.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,19 @@ public static void RedeemAppleAppStoreInventoryItems(RedeemAppleAppStoreInventor
447447
PlayFabHttp.MakeApiCall("/Inventory/RedeemAppleAppStoreInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
448448
}
449449

450+
/// <summary>
451+
/// Redeem items.
452+
/// </summary>
453+
public static void RedeemAppleAppStoreWithJwsInventoryItems(RedeemAppleAppStoreWithJwsInventoryItemsRequest request, Action<RedeemAppleAppStoreWithJwsInventoryItemsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
454+
{
455+
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
456+
var callSettings = PlayFabSettings.staticSettings;
457+
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
458+
459+
460+
PlayFabHttp.MakeApiCall("/Inventory/RedeemAppleAppStoreWithJwsInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
461+
}
462+
450463
/// <summary>
451464
/// Redeem items.
452465
/// </summary>

ExampleTestProject/Assets/PlayFabSDK/Economy/PlayFabEconomyInstanceAPI.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,17 @@ public void RedeemAppleAppStoreInventoryItems(RedeemAppleAppStoreInventoryItemsR
408408
PlayFabHttp.MakeApiCall("/Inventory/RedeemAppleAppStoreInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
409409
}
410410

411+
/// <summary>
412+
/// Redeem items.
413+
/// </summary>
414+
public void RedeemAppleAppStoreWithJwsInventoryItems(RedeemAppleAppStoreWithJwsInventoryItemsRequest request, Action<RedeemAppleAppStoreWithJwsInventoryItemsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
415+
{
416+
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
417+
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
418+
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
419+
PlayFabHttp.MakeApiCall("/Inventory/RedeemAppleAppStoreWithJwsInventoryItems", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
420+
}
421+
411422
/// <summary>
412423
/// Redeem items.
413424
/// </summary>

0 commit comments

Comments
 (0)