Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240315
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Mar 18, 2024
2 parents c535d88 + 253841e commit 4488eef
Show file tree
Hide file tree
Showing 19 changed files with 131 additions and 25 deletions.
17 changes: 17 additions & 0 deletions PlayFabSDK/source/PlayFabAdminModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@ public class BanInfo
/// </summary>
public DateTime? Expires ;

/// <summary>
/// Whether or not the Microsoft family members are included in the ban.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// The IP address on which the ban was applied. May affect multiple players.
/// </summary>
Expand Down Expand Up @@ -512,6 +517,11 @@ public class BanRequest : PlayFabRequestCommon
/// </summary>
public uint? DurationInHours ;

/// <summary>
/// Whether the Microsoft family members should be included in the ban. May affect multiple players.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// IP address to be banned. May affect multiple players.
/// </summary>
Expand Down Expand Up @@ -2780,6 +2790,8 @@ public enum GenericErrorCodes
LeaderboardNameConflict,
LinkedStatisticColumnMismatch,
NoLinkedStatisticToLeaderboard,
StatDefinitionAlreadyLinkedToLeaderboard,
LinkingStatsNotAllowedForEntityType,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down Expand Up @@ -7176,6 +7188,11 @@ public class UpdateBanRequest : PlayFabRequestCommon
/// </summary>
public DateTime? Expires ;

/// <summary>
/// The updated decision to ban the Microsoft family members to be updated. Null for no change.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// The updated IP address for the ban. Null for no change.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/source/PlayFabAuthenticationInstanceAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public async Task<PlayFabResult<ValidateEntityTokenResponse>> ValidateEntityToke
var requestContext = request?.AuthenticationContext ?? authenticationContext;
var requestSettings = apiSettings ?? PlayFabSettings.staticSettings;

var entityToken = request?.AuthenticationContext?.EntityToken ?? PlayFabSettings.staticPlayer.EntityToken;
var entityToken = requestContext?.EntityToken ?? PlayFabSettings.staticPlayer.EntityToken;
if ((entityToken) == null) throw new PlayFabException(PlayFabExceptionCode.EntityTokenNotSet, "Must call Client Login or GetEntityToken before calling this method");

var httpResult = await PlayFabHttp.DoPost("/Authentication/ValidateEntityToken", request, "X-EntityToken", entityToken, extraHeaders, requestSettings);
Expand Down
4 changes: 1 addition & 3 deletions PlayFabSDK/source/PlayFabEconomyAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1155,9 +1155,7 @@ public static async Task<PlayFabResult<TakedownItemReviewsResponse>> TakedownIte
/// <summary>
/// Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not
/// complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus =
/// 'InProgress'. You can check on the operation status at anytime within 30 days of the request by passing the
/// TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found
/// here:
/// 'InProgress'. More information about item transfer scenarios can be found here:
/// https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items
/// </summary>
public static async Task<PlayFabResult<TransferInventoryItemsResponse>> TransferInventoryItemsAsync(TransferInventoryItemsRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
Expand Down
4 changes: 1 addition & 3 deletions PlayFabSDK/source/PlayFabEconomyInstanceAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1133,9 +1133,7 @@ public async Task<PlayFabResult<TakedownItemReviewsResponse>> TakedownItemReview
/// <summary>
/// Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not
/// complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus =
/// 'InProgress'. You can check on the operation status at anytime within 30 days of the request by passing the
/// TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found
/// here:
/// 'InProgress'. More information about item transfer scenarios can be found here:
/// https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items
/// </summary>
public async Task<PlayFabResult<TransferInventoryItemsResponse>> TransferInventoryItemsAsync(TransferInventoryItemsRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
Expand Down
21 changes: 21 additions & 0 deletions PlayFabSDK/source/PlayFabEconomyModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1738,6 +1738,12 @@ public class GetTransactionHistoryRequest : PlayFabRequestCommon
/// </summary>
public string Filter ;

/// <summary>
/// An OData orderby to order TransactionHistory results. The only supported values are 'timestamp asc' or 'timestamp desc'.
/// Default orderby is 'timestamp asc'
/// </summary>
public string OrderBy ;

}

public class GetTransactionHistoryResponse : PlayFabResultCommon
Expand Down Expand Up @@ -1947,6 +1953,16 @@ public class PayoutDetails
{
}

public class Permissions
{
/// <summary>
/// The list of ids of Segments that the a player can be in to purchase from the store. When a value is provided, the player
/// must be in at least one of the segments listed for the purchase to be allowed.
/// </summary>
public List<string> SegmentIds ;

}

/// <summary>
/// The call kicks off a workflow to publish the item to the public catalog. The Publish Status API should be used to
/// monitor the publish job.
Expand Down Expand Up @@ -2852,6 +2868,11 @@ public class StoreDetails
/// </summary>
public FilterOptions FilterOptions ;

/// <summary>
/// The permissions that control which players can purchase from the store.
/// </summary>
public Permissions Permissions ;

/// <summary>
/// The global prices utilized in the store. These options are mutually exclusive with price options in item references.
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions PlayFabSDK/source/PlayFabErrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ public enum PlayFabErrorCode
LeaderboardNameConflict = 1569,
LinkedStatisticColumnMismatch = 1570,
NoLinkedStatisticToLeaderboard = 1571,
StatDefinitionAlreadyLinkedToLeaderboard = 1572,
LinkingStatsNotAllowedForEntityType = 1573,
MatchmakingEntityInvalid = 2001,
MatchmakingPlayerAttributesInvalid = 2002,
MatchmakingQueueNotFound = 2016,
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSDK/source/PlayFabSDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<FileAlignment>512</FileAlignment>

<PackageId>PlayFabAllSDK</PackageId>
<Version>1.176.240301</Version>
<Version>1.177.240315</Version>
<Title>PlayFab CSharp Sdk</Title>
<Authors>Microsoft</Authors>
<Owners>Microsoft</Owners>
Expand All @@ -21,7 +21,7 @@
<Company>PlayFab</Company>
<Product>PlayFabSDK</Product>
<PackageTags>PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native</PackageTags>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240301</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240315</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand Down
17 changes: 17 additions & 0 deletions PlayFabSDK/source/PlayFabServerModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ public class BanInfo
/// </summary>
public DateTime? Expires ;

/// <summary>
/// Whether or not the Microsoft family members are included in the ban.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// The IP address on which the ban was applied. May affect multiple players.
/// </summary>
Expand Down Expand Up @@ -323,6 +328,11 @@ public class BanRequest : PlayFabRequestCommon
/// </summary>
public uint? DurationInHours ;

/// <summary>
/// Whether the Microsoft family members should be included in the ban. May affect multiple players.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// IP address to be banned. May affect multiple players.
/// </summary>
Expand Down Expand Up @@ -2100,6 +2110,8 @@ public enum GenericErrorCodes
LeaderboardNameConflict,
LinkedStatisticColumnMismatch,
NoLinkedStatisticToLeaderboard,
StatDefinitionAlreadyLinkedToLeaderboard,
LinkingStatsNotAllowedForEntityType,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down Expand Up @@ -6872,6 +6884,11 @@ public class UpdateBanRequest : PlayFabRequestCommon
/// </summary>
public DateTime? Expires ;

/// <summary>
/// The updated decision to ban the Microsoft family members to be updated. Null for no change.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// The updated IP address for the ban. Null for no change.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSDK/source/PlayFabSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace PlayFab
{
public class PlayFabSettings
{
public const string SdkVersion = "1.176.240301";
public const string SdkVersion = "1.177.240315";
public const string BuildIdentifier = "adobuild_csharpsdk_118";
public const string SdkVersionString = "CSharpSDK-1.176.240301";
public const string SdkVersionString = "CSharpSDK-1.177.240315";
/// <summary> This is only for customers running a private cluster. Generally you shouldn't touch this </summary>
public static string DefaultProductionEnvironmentUrl = "playfabapi.com";

Expand Down
6 changes: 3 additions & 3 deletions Plugins/CloudScript/source/PlayFabCloudScriptPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<FileAlignment>512</FileAlignment>

<PackageId>PlayFabCloudScriptPlugin</PackageId>
<Version>1.176.240301-alpha</Version>
<Version>1.177.240315-alpha</Version>
<Title>PlayFab CSharp CloudScript Plugin</Title>
<Authors>Microsoft</Authors>
<Owners>Microsoft</Owners>
Expand All @@ -21,7 +21,7 @@
<Product>PlayFabCloudScriptPlugin</Product>
<Copyright>Copyright 2024</Copyright>
<PackageTags>PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native</PackageTags>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240301</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240315</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand All @@ -45,7 +45,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PlayFabAllSDK" Version="1.176.240301" />
<PackageReference Include="PlayFabAllSDK" Version="1.177.240315" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@ public class BanInfo
/// </summary>
public DateTime? Expires ;

/// <summary>
/// Whether or not the Microsoft family members are included in the ban.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// The IP address on which the ban was applied. May affect multiple players.
/// </summary>
Expand Down Expand Up @@ -512,6 +517,11 @@ public class BanRequest : PlayFabRequestCommon
/// </summary>
public uint? DurationInHours ;

/// <summary>
/// Whether the Microsoft family members should be included in the ban. May affect multiple players.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// IP address to be banned. May affect multiple players.
/// </summary>
Expand Down Expand Up @@ -2780,6 +2790,8 @@ public enum GenericErrorCodes
LeaderboardNameConflict,
LinkedStatisticColumnMismatch,
NoLinkedStatisticToLeaderboard,
StatDefinitionAlreadyLinkedToLeaderboard,
LinkingStatsNotAllowedForEntityType,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down Expand Up @@ -7176,6 +7188,11 @@ public class UpdateBanRequest : PlayFabRequestCommon
/// </summary>
public DateTime? Expires ;

/// <summary>
/// The updated decision to ban the Microsoft family members to be updated. Null for no change.
/// </summary>
public bool? IncludeMicrosoftFamily ;

/// <summary>
/// The updated IP address for the ban. Null for no change.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public async Task<PlayFabResult<ValidateEntityTokenResponse>> ValidateEntityToke
var requestContext = request?.AuthenticationContext ?? authenticationContext;
var requestSettings = apiSettings ?? PlayFabSettings.staticSettings;

var entityToken = request?.AuthenticationContext?.EntityToken ?? PlayFabSettings.staticPlayer.EntityToken;
var entityToken = requestContext?.EntityToken ?? PlayFabSettings.staticPlayer.EntityToken;
if ((entityToken) == null) throw new PlayFabException(PlayFabExceptionCode.EntityTokenNotSet, "Must call Client Login or GetEntityToken before calling this method");

var httpResult = await PlayFabHttp.DoPost("/Authentication/ValidateEntityToken", request, "X-EntityToken", entityToken, extraHeaders, requestSettings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1155,9 +1155,7 @@ public static async Task<PlayFabResult<TakedownItemReviewsResponse>> TakedownIte
/// <summary>
/// Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not
/// complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus =
/// 'InProgress'. You can check on the operation status at anytime within 30 days of the request by passing the
/// TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found
/// here:
/// 'InProgress'. More information about item transfer scenarios can be found here:
/// https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items
/// </summary>
public static async Task<PlayFabResult<TransferInventoryItemsResponse>> TransferInventoryItemsAsync(TransferInventoryItemsRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1133,9 +1133,7 @@ public async Task<PlayFabResult<TakedownItemReviewsResponse>> TakedownItemReview
/// <summary>
/// Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not
/// complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus =
/// 'InProgress'. You can check on the operation status at anytime within 30 days of the request by passing the
/// TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found
/// here:
/// 'InProgress'. More information about item transfer scenarios can be found here:
/// https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items
/// </summary>
public async Task<PlayFabResult<TransferInventoryItemsResponse>> TransferInventoryItemsAsync(TransferInventoryItemsRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1738,6 +1738,12 @@ public class GetTransactionHistoryRequest : PlayFabRequestCommon
/// </summary>
public string Filter ;

/// <summary>
/// An OData orderby to order TransactionHistory results. The only supported values are 'timestamp asc' or 'timestamp desc'.
/// Default orderby is 'timestamp asc'
/// </summary>
public string OrderBy ;

}

public class GetTransactionHistoryResponse : PlayFabResultCommon
Expand Down Expand Up @@ -1947,6 +1953,16 @@ public class PayoutDetails
{
}

public class Permissions
{
/// <summary>
/// The list of ids of Segments that the a player can be in to purchase from the store. When a value is provided, the player
/// must be in at least one of the segments listed for the purchase to be allowed.
/// </summary>
public List<string> SegmentIds ;

}

/// <summary>
/// The call kicks off a workflow to publish the item to the public catalog. The Publish Status API should be used to
/// monitor the publish job.
Expand Down Expand Up @@ -2852,6 +2868,11 @@ public class StoreDetails
/// </summary>
public FilterOptions FilterOptions ;

/// <summary>
/// The permissions that control which players can purchase from the store.
/// </summary>
public Permissions Permissions ;

/// <summary>
/// The global prices utilized in the store. These options are mutually exclusive with price options in item references.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ public enum PlayFabErrorCode
LeaderboardNameConflict = 1569,
LinkedStatisticColumnMismatch = 1570,
NoLinkedStatisticToLeaderboard = 1571,
StatDefinitionAlreadyLinkedToLeaderboard = 1572,
LinkingStatsNotAllowedForEntityType = 1573,
MatchmakingEntityInvalid = 2001,
MatchmakingPlayerAttributesInvalid = 2002,
MatchmakingQueueNotFound = 2016,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<FileAlignment>512</FileAlignment>

<PackageId>PlayFabAllSDK</PackageId>
<Version>1.176.240301</Version>
<Version>1.177.240315</Version>
<Title>PlayFab CSharp Sdk</Title>
<Authors>Microsoft</Authors>
<Owners>Microsoft</Owners>
Expand All @@ -21,7 +21,7 @@
<Company>PlayFab</Company>
<Product>PlayFabSDK</Product>
<PackageTags>PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native</PackageTags>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240301</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240315</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand Down
Loading

0 comments on commit 4488eef

Please sign in to comment.