diff --git a/AndroidStudioExample/app/packageMe.ps1 b/AndroidStudioExample/app/packageMe.ps1 index e33222c3..c21606ef 100644 --- a/AndroidStudioExample/app/packageMe.ps1 +++ b/AndroidStudioExample/app/packageMe.ps1 @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds popd cd target -Copy-Item client-sdk-0.182.230220.jar -Destination ../../builds/client-sdk-0.182.230220.jar \ No newline at end of file +Copy-Item client-sdk-0.183.230306.jar -Destination ../../builds/client-sdk-0.183.230306.jar \ No newline at end of file diff --git a/AndroidStudioExample/app/packageMe.sh b/AndroidStudioExample/app/packageMe.sh index 72c7778c..72330d7c 100644 --- a/AndroidStudioExample/app/packageMe.sh +++ b/AndroidStudioExample/app/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp client-sdk-0.182.230220.jar ../../builds/client-sdk-0.182.230220.jar +cp client-sdk-0.183.230306.jar ../../builds/client-sdk-0.183.230306.jar diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java index d167ff69..a273ccce 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabClientModels.java @@ -3120,6 +3120,8 @@ public static class LoginWithGoogleAccountRequest { * (https://developers.google.com/identity/sign-in/android/offline-access) Google client API. */ public String ServerAuthCode; + /** Optional boolean to opt out of setting the MPA email when creating a Google account, defaults to true. */ + public Boolean SetEmail; /** * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a * title has been selected. diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabEconomyModels.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabEconomyModels.java index a56d0ca6..4fe4da7d 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabEconomyModels.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabEconomyModels.java @@ -23,6 +23,8 @@ public static class AddInventoryItemsRequest { public String CollectionId; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ public Map CustomTags; + /** The duration to add to the current item expiration date. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -99,6 +101,12 @@ public static class CatalogItem { public EntityKey CreatorEntity; /** The set of platform specific deep links for this item. */ public ArrayList DeepLinks; + /** + * The Stack Id that will be used as default for this item in Inventory when an explicit one is not provided. This + * DefaultStackId can be a static stack id or '{guid}', which will generate a unique stack id for the item. If null, + * Inventory's default stack id will be used. + */ + public String DefaultStackId; /** * A dictionary of localized descriptions. Key is language code and localized string is the value. The neutral locale is * required. @@ -161,6 +169,8 @@ public static class CatalogItemReference { public static class CatalogPrice { /** The amounts of the catalog item price. */ public ArrayList Amounts; + /** The per-unit duration this price can be used to purchase. */ + public Double UnitDurationInSeconds; } @@ -1074,6 +1084,11 @@ public static class InventoryItem { public Integer Amount; /** Game specific properties for display purposes. This is an arbitrary JSON blob. */ public Object DisplayProperties; + /** + * Only used for subscriptions. The date of when the item will expire in UTC. If not provided then the product will be + * available indefinitely. + */ + public Date ExpirationDate; /** The id of the item. This should correspond to the item id in the catalog. */ public String Id; /** The stack id of the item. */ @@ -1178,6 +1193,8 @@ public static class PurchaseInventoryItemsOperation { * false) */ public Boolean DeleteEmptyStacks; + /** The duration to purchase. */ + public Double DurationInSeconds; /** The inventory item the operation applies to. */ public InventoryItemReference Item; /** The values to apply to a stack newly created by this operation. */ @@ -1205,6 +1222,8 @@ public static class PurchaseInventoryItemsRequest { * (Default=false) */ public Boolean DeleteEmptyStacks; + /** The duration to purchase. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -1637,6 +1656,8 @@ public static class SubtractInventoryItemsOperation { * false). */ public Boolean DeleteEmptyStacks; + /** The duration to subtract from the current item expiration date. */ + public Double DurationInSeconds; /** The inventory item the operation applies to. */ public InventoryItemReference Item; @@ -1655,6 +1676,8 @@ public static class SubtractInventoryItemsRequest { * (Default=false) */ public Boolean DeleteEmptyStacks; + /** The duration to subtract from the current item expiration date. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -1717,6 +1740,8 @@ public static class Transaction { public static class TransactionOperation { /** The amount of items in this transaction. */ public Integer Amount; + /** The duration modified in this transaction. */ + public Double DurationInSeconds; /** The item id of the items in this transaction. */ public String ItemId; /** The type of item that the operation occurred on. */ diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java index b39ccb90..1432f4c9 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java @@ -554,6 +554,12 @@ public static enum PlayFabErrorCode { AnalysisSubscriptionManagementInvalidInput(1553), InvalidGameCenterId(1554), InvalidNintendoSwitchAccountId(1555), + EntityAPIKeysNotSupported(1556), + IpAddressBanned(1557), + EntityLineageBanned(1558), + NamespaceMismatch(1559), + InvalidServiceConfiguration(1560), + InvalidNamespaceMismatch(1561), MatchmakingEntityInvalid(2001), MatchmakingPlayerAttributesInvalid(2002), MatchmakingQueueNotFound(2016), @@ -700,6 +706,11 @@ public static enum PlayFabErrorCode { EventSamplingInvalidEventNamespace(14001), EventSamplingInvalidEventName(14002), EventSamplingRatioNotFound(14003), + TelemetryKeyNotFound(14200), + TelemetryKeyInvalidName(14201), + TelemetryKeyAlreadyExists(14202), + TelemetryKeyInvalid(14203), + TelemetryKeyCountOverLimit(14204), EventSinkConnectionInvalid(15000), EventSinkConnectionUnauthorized(15001), EventSinkRegionInvalid(15002), diff --git a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java index 5662d198..b2f8bb2a 100644 --- a/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java +++ b/AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java @@ -9,9 +9,9 @@ import com.playfab.PlayFabErrors.ErrorCallback; public class PlayFabSettings { - public static String SdkVersion = "0.182.230220"; + public static String SdkVersion = "0.183.230306"; public static String BuildIdentifier = "adobuild_javasdk_114"; - public static String SdkVersionString = "JavaSDK-0.182.230220"; + public static String SdkVersionString = "JavaSDK-0.183.230306"; public static Map RequestGetParams; static { diff --git a/PlayFabClientSDK/packageMe.ps1 b/PlayFabClientSDK/packageMe.ps1 index e33222c3..c21606ef 100644 --- a/PlayFabClientSDK/packageMe.ps1 +++ b/PlayFabClientSDK/packageMe.ps1 @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds popd cd target -Copy-Item client-sdk-0.182.230220.jar -Destination ../../builds/client-sdk-0.182.230220.jar \ No newline at end of file +Copy-Item client-sdk-0.183.230306.jar -Destination ../../builds/client-sdk-0.183.230306.jar \ No newline at end of file diff --git a/PlayFabClientSDK/packageMe.sh b/PlayFabClientSDK/packageMe.sh index 72c7778c..72330d7c 100644 --- a/PlayFabClientSDK/packageMe.sh +++ b/PlayFabClientSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp client-sdk-0.182.230220.jar ../../builds/client-sdk-0.182.230220.jar +cp client-sdk-0.183.230306.jar ../../builds/client-sdk-0.183.230306.jar diff --git a/PlayFabClientSDK/pom.xml b/PlayFabClientSDK/pom.xml index ea6b8f42..fd97c38f 100644 --- a/PlayFabClientSDK/pom.xml +++ b/PlayFabClientSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab client-sdk - 0.182.230220 + 0.183.230306 PlayFab Client API PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. https://docs.microsoft.com/gaming/playfab/ diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientModels.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientModels.java index d167ff69..a273ccce 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientModels.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabClientModels.java @@ -3120,6 +3120,8 @@ public static class LoginWithGoogleAccountRequest { * (https://developers.google.com/identity/sign-in/android/offline-access) Google client API. */ public String ServerAuthCode; + /** Optional boolean to opt out of setting the MPA email when creating a Google account, defaults to true. */ + public Boolean SetEmail; /** * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a * title has been selected. diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabEconomyModels.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabEconomyModels.java index a56d0ca6..4fe4da7d 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabEconomyModels.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabEconomyModels.java @@ -23,6 +23,8 @@ public static class AddInventoryItemsRequest { public String CollectionId; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ public Map CustomTags; + /** The duration to add to the current item expiration date. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -99,6 +101,12 @@ public static class CatalogItem { public EntityKey CreatorEntity; /** The set of platform specific deep links for this item. */ public ArrayList DeepLinks; + /** + * The Stack Id that will be used as default for this item in Inventory when an explicit one is not provided. This + * DefaultStackId can be a static stack id or '{guid}', which will generate a unique stack id for the item. If null, + * Inventory's default stack id will be used. + */ + public String DefaultStackId; /** * A dictionary of localized descriptions. Key is language code and localized string is the value. The neutral locale is * required. @@ -161,6 +169,8 @@ public static class CatalogItemReference { public static class CatalogPrice { /** The amounts of the catalog item price. */ public ArrayList Amounts; + /** The per-unit duration this price can be used to purchase. */ + public Double UnitDurationInSeconds; } @@ -1074,6 +1084,11 @@ public static class InventoryItem { public Integer Amount; /** Game specific properties for display purposes. This is an arbitrary JSON blob. */ public Object DisplayProperties; + /** + * Only used for subscriptions. The date of when the item will expire in UTC. If not provided then the product will be + * available indefinitely. + */ + public Date ExpirationDate; /** The id of the item. This should correspond to the item id in the catalog. */ public String Id; /** The stack id of the item. */ @@ -1178,6 +1193,8 @@ public static class PurchaseInventoryItemsOperation { * false) */ public Boolean DeleteEmptyStacks; + /** The duration to purchase. */ + public Double DurationInSeconds; /** The inventory item the operation applies to. */ public InventoryItemReference Item; /** The values to apply to a stack newly created by this operation. */ @@ -1205,6 +1222,8 @@ public static class PurchaseInventoryItemsRequest { * (Default=false) */ public Boolean DeleteEmptyStacks; + /** The duration to purchase. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -1637,6 +1656,8 @@ public static class SubtractInventoryItemsOperation { * false). */ public Boolean DeleteEmptyStacks; + /** The duration to subtract from the current item expiration date. */ + public Double DurationInSeconds; /** The inventory item the operation applies to. */ public InventoryItemReference Item; @@ -1655,6 +1676,8 @@ public static class SubtractInventoryItemsRequest { * (Default=false) */ public Boolean DeleteEmptyStacks; + /** The duration to subtract from the current item expiration date. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -1717,6 +1740,8 @@ public static class Transaction { public static class TransactionOperation { /** The amount of items in this transaction. */ public Integer Amount; + /** The duration modified in this transaction. */ + public Double DurationInSeconds; /** The item id of the items in this transaction. */ public String ItemId; /** The type of item that the operation occurred on. */ diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java index b39ccb90..1432f4c9 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java @@ -554,6 +554,12 @@ public static enum PlayFabErrorCode { AnalysisSubscriptionManagementInvalidInput(1553), InvalidGameCenterId(1554), InvalidNintendoSwitchAccountId(1555), + EntityAPIKeysNotSupported(1556), + IpAddressBanned(1557), + EntityLineageBanned(1558), + NamespaceMismatch(1559), + InvalidServiceConfiguration(1560), + InvalidNamespaceMismatch(1561), MatchmakingEntityInvalid(2001), MatchmakingPlayerAttributesInvalid(2002), MatchmakingQueueNotFound(2016), @@ -700,6 +706,11 @@ public static enum PlayFabErrorCode { EventSamplingInvalidEventNamespace(14001), EventSamplingInvalidEventName(14002), EventSamplingRatioNotFound(14003), + TelemetryKeyNotFound(14200), + TelemetryKeyInvalidName(14201), + TelemetryKeyAlreadyExists(14202), + TelemetryKeyInvalid(14203), + TelemetryKeyCountOverLimit(14204), EventSinkConnectionInvalid(15000), EventSinkConnectionUnauthorized(15001), EventSinkRegionInvalid(15002), diff --git a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java index 1b8e1de6..e50ac5bb 100644 --- a/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java +++ b/PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java @@ -8,9 +8,9 @@ import com.playfab.PlayFabErrors.ErrorCallback; public class PlayFabSettings { - public static String SdkVersion = "0.182.230220"; + public static String SdkVersion = "0.183.230306"; public static String BuildIdentifier = "adobuild_javasdk_114"; - public static String SdkVersionString = "JavaSDK-0.182.230220"; + public static String SdkVersionString = "JavaSDK-0.183.230306"; public static Map RequestGetParams; static { diff --git a/PlayFabSDK/packageMe.ps1 b/PlayFabSDK/packageMe.ps1 index cc750428..f17bbe4e 100644 --- a/PlayFabSDK/packageMe.ps1 +++ b/PlayFabSDK/packageMe.ps1 @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds popd cd target -Copy-Item combo-sdk-0.182.230220.jar -Destination ../../builds/combo-sdk-0.182.230220.jar \ No newline at end of file +Copy-Item combo-sdk-0.183.230306.jar -Destination ../../builds/combo-sdk-0.183.230306.jar \ No newline at end of file diff --git a/PlayFabSDK/packageMe.sh b/PlayFabSDK/packageMe.sh index 06423be1..36758b06 100644 --- a/PlayFabSDK/packageMe.sh +++ b/PlayFabSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp combo-sdk-0.182.230220.jar ../../builds/combo-sdk-0.182.230220.jar +cp combo-sdk-0.183.230306.jar ../../builds/combo-sdk-0.183.230306.jar diff --git a/PlayFabSDK/pom.xml b/PlayFabSDK/pom.xml index a0c7f2ae..5248a290 100644 --- a/PlayFabSDK/pom.xml +++ b/PlayFabSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab combo-sdk - 0.182.230220 + 0.183.230306 PlayFab Combo API PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. https://docs.microsoft.com/gaming/playfab/ diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java index df399623..f1c478d0 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java @@ -1936,6 +1936,12 @@ public static enum GenericErrorCodes { AnalysisSubscriptionManagementInvalidInput, InvalidGameCenterId, InvalidNintendoSwitchAccountId, + EntityAPIKeysNotSupported, + IpAddressBanned, + EntityLineageBanned, + NamespaceMismatch, + InvalidServiceConfiguration, + InvalidNamespaceMismatch, MatchmakingEntityInvalid, MatchmakingPlayerAttributesInvalid, MatchmakingQueueNotFound, @@ -2082,6 +2088,11 @@ public static enum GenericErrorCodes { EventSamplingInvalidEventNamespace, EventSamplingInvalidEventName, EventSamplingRatioNotFound, + TelemetryKeyNotFound, + TelemetryKeyInvalidName, + TelemetryKeyAlreadyExists, + TelemetryKeyInvalid, + TelemetryKeyCountOverLimit, EventSinkConnectionInvalid, EventSinkConnectionUnauthorized, EventSinkRegionInvalid, @@ -2409,7 +2420,7 @@ public static class GetPlayersInSegmentRequest { public Long MaxBatchSize; /** * Number of seconds to keep the continuation token active. After token expiration it is not possible to continue paging - * results. Default is 300 (5 minutes). Maximum is 1,800 (30 minutes). + * results. Default is 300 (5 minutes). Maximum is 5,400 (90 minutes). */ public Long SecondsToLive; /** Unique identifier for this segment. */ diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java index d167ff69..a273ccce 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java @@ -3120,6 +3120,8 @@ public static class LoginWithGoogleAccountRequest { * (https://developers.google.com/identity/sign-in/android/offline-access) Google client API. */ public String ServerAuthCode; + /** Optional boolean to opt out of setting the MPA email when creating a Google account, defaults to true. */ + public Boolean SetEmail; /** * Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a * title has been selected. diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabEconomyModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabEconomyModels.java index a56d0ca6..4fe4da7d 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabEconomyModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabEconomyModels.java @@ -23,6 +23,8 @@ public static class AddInventoryItemsRequest { public String CollectionId; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ public Map CustomTags; + /** The duration to add to the current item expiration date. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -99,6 +101,12 @@ public static class CatalogItem { public EntityKey CreatorEntity; /** The set of platform specific deep links for this item. */ public ArrayList DeepLinks; + /** + * The Stack Id that will be used as default for this item in Inventory when an explicit one is not provided. This + * DefaultStackId can be a static stack id or '{guid}', which will generate a unique stack id for the item. If null, + * Inventory's default stack id will be used. + */ + public String DefaultStackId; /** * A dictionary of localized descriptions. Key is language code and localized string is the value. The neutral locale is * required. @@ -161,6 +169,8 @@ public static class CatalogItemReference { public static class CatalogPrice { /** The amounts of the catalog item price. */ public ArrayList Amounts; + /** The per-unit duration this price can be used to purchase. */ + public Double UnitDurationInSeconds; } @@ -1074,6 +1084,11 @@ public static class InventoryItem { public Integer Amount; /** Game specific properties for display purposes. This is an arbitrary JSON blob. */ public Object DisplayProperties; + /** + * Only used for subscriptions. The date of when the item will expire in UTC. If not provided then the product will be + * available indefinitely. + */ + public Date ExpirationDate; /** The id of the item. This should correspond to the item id in the catalog. */ public String Id; /** The stack id of the item. */ @@ -1178,6 +1193,8 @@ public static class PurchaseInventoryItemsOperation { * false) */ public Boolean DeleteEmptyStacks; + /** The duration to purchase. */ + public Double DurationInSeconds; /** The inventory item the operation applies to. */ public InventoryItemReference Item; /** The values to apply to a stack newly created by this operation. */ @@ -1205,6 +1222,8 @@ public static class PurchaseInventoryItemsRequest { * (Default=false) */ public Boolean DeleteEmptyStacks; + /** The duration to purchase. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -1637,6 +1656,8 @@ public static class SubtractInventoryItemsOperation { * false). */ public Boolean DeleteEmptyStacks; + /** The duration to subtract from the current item expiration date. */ + public Double DurationInSeconds; /** The inventory item the operation applies to. */ public InventoryItemReference Item; @@ -1655,6 +1676,8 @@ public static class SubtractInventoryItemsRequest { * (Default=false) */ public Boolean DeleteEmptyStacks; + /** The duration to subtract from the current item expiration date. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -1717,6 +1740,8 @@ public static class Transaction { public static class TransactionOperation { /** The amount of items in this transaction. */ public Integer Amount; + /** The duration modified in this transaction. */ + public Double DurationInSeconds; /** The item id of the items in this transaction. */ public String ItemId; /** The type of item that the operation occurred on. */ diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java index b39ccb90..1432f4c9 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java @@ -554,6 +554,12 @@ public static enum PlayFabErrorCode { AnalysisSubscriptionManagementInvalidInput(1553), InvalidGameCenterId(1554), InvalidNintendoSwitchAccountId(1555), + EntityAPIKeysNotSupported(1556), + IpAddressBanned(1557), + EntityLineageBanned(1558), + NamespaceMismatch(1559), + InvalidServiceConfiguration(1560), + InvalidNamespaceMismatch(1561), MatchmakingEntityInvalid(2001), MatchmakingPlayerAttributesInvalid(2002), MatchmakingQueueNotFound(2016), @@ -700,6 +706,11 @@ public static enum PlayFabErrorCode { EventSamplingInvalidEventNamespace(14001), EventSamplingInvalidEventName(14002), EventSamplingRatioNotFound(14003), + TelemetryKeyNotFound(14200), + TelemetryKeyInvalidName(14201), + TelemetryKeyAlreadyExists(14202), + TelemetryKeyInvalid(14203), + TelemetryKeyCountOverLimit(14204), EventSinkConnectionInvalid(15000), EventSinkConnectionUnauthorized(15001), EventSinkRegionInvalid(15002), diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java index 3ba4d9b7..af029a71 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java @@ -1663,6 +1663,12 @@ public static enum GenericErrorCodes { AnalysisSubscriptionManagementInvalidInput, InvalidGameCenterId, InvalidNintendoSwitchAccountId, + EntityAPIKeysNotSupported, + IpAddressBanned, + EntityLineageBanned, + NamespaceMismatch, + InvalidServiceConfiguration, + InvalidNamespaceMismatch, MatchmakingEntityInvalid, MatchmakingPlayerAttributesInvalid, MatchmakingQueueNotFound, @@ -1809,6 +1815,11 @@ public static enum GenericErrorCodes { EventSamplingInvalidEventNamespace, EventSamplingInvalidEventName, EventSamplingRatioNotFound, + TelemetryKeyNotFound, + TelemetryKeyInvalidName, + TelemetryKeyAlreadyExists, + TelemetryKeyInvalid, + TelemetryKeyCountOverLimit, EventSinkConnectionInvalid, EventSinkConnectionUnauthorized, EventSinkRegionInvalid, @@ -2334,7 +2345,7 @@ public static class GetPlayersInSegmentRequest { public Long MaxBatchSize; /** * Number of seconds to keep the continuation token active. After token expiration it is not possible to continue paging - * results. Default is 300 (5 minutes). Maximum is 1,800 (30 minutes). + * results. Default is 300 (5 minutes). Maximum is 5,400 (90 minutes). */ public Long SecondsToLive; /** Unique identifier for this segment. */ diff --git a/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java index 1b8e1de6..e50ac5bb 100644 --- a/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java +++ b/PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java @@ -8,9 +8,9 @@ import com.playfab.PlayFabErrors.ErrorCallback; public class PlayFabSettings { - public static String SdkVersion = "0.182.230220"; + public static String SdkVersion = "0.183.230306"; public static String BuildIdentifier = "adobuild_javasdk_114"; - public static String SdkVersionString = "JavaSDK-0.182.230220"; + public static String SdkVersionString = "JavaSDK-0.183.230306"; public static Map RequestGetParams; static { diff --git a/PlayFabServerSDK/packageMe.ps1 b/PlayFabServerSDK/packageMe.ps1 index 807d433d..785fb2e3 100644 --- a/PlayFabServerSDK/packageMe.ps1 +++ b/PlayFabServerSDK/packageMe.ps1 @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds popd cd target -Copy-Item server-sdk-0.182.230220.jar -Destination ../../builds/server-sdk-0.182.230220.jar \ No newline at end of file +Copy-Item server-sdk-0.183.230306.jar -Destination ../../builds/server-sdk-0.183.230306.jar \ No newline at end of file diff --git a/PlayFabServerSDK/packageMe.sh b/PlayFabServerSDK/packageMe.sh index 49345a30..0ec937f1 100644 --- a/PlayFabServerSDK/packageMe.sh +++ b/PlayFabServerSDK/packageMe.sh @@ -7,4 +7,4 @@ mkdir -p ./builds popd cd target -cp server-sdk-0.182.230220.jar ../../builds/server-sdk-0.182.230220.jar +cp server-sdk-0.183.230306.jar ../../builds/server-sdk-0.183.230306.jar diff --git a/PlayFabServerSDK/pom.xml b/PlayFabServerSDK/pom.xml index 6e8d8488..d690fd2c 100644 --- a/PlayFabServerSDK/pom.xml +++ b/PlayFabServerSDK/pom.xml @@ -14,7 +14,7 @@ com.playfab server-sdk - 0.182.230220 + 0.183.230306 PlayFab Server API PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. https://docs.microsoft.com/gaming/playfab/ diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java index df399623..f1c478d0 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabAdminModels.java @@ -1936,6 +1936,12 @@ public static enum GenericErrorCodes { AnalysisSubscriptionManagementInvalidInput, InvalidGameCenterId, InvalidNintendoSwitchAccountId, + EntityAPIKeysNotSupported, + IpAddressBanned, + EntityLineageBanned, + NamespaceMismatch, + InvalidServiceConfiguration, + InvalidNamespaceMismatch, MatchmakingEntityInvalid, MatchmakingPlayerAttributesInvalid, MatchmakingQueueNotFound, @@ -2082,6 +2088,11 @@ public static enum GenericErrorCodes { EventSamplingInvalidEventNamespace, EventSamplingInvalidEventName, EventSamplingRatioNotFound, + TelemetryKeyNotFound, + TelemetryKeyInvalidName, + TelemetryKeyAlreadyExists, + TelemetryKeyInvalid, + TelemetryKeyCountOverLimit, EventSinkConnectionInvalid, EventSinkConnectionUnauthorized, EventSinkRegionInvalid, @@ -2409,7 +2420,7 @@ public static class GetPlayersInSegmentRequest { public Long MaxBatchSize; /** * Number of seconds to keep the continuation token active. After token expiration it is not possible to continue paging - * results. Default is 300 (5 minutes). Maximum is 1,800 (30 minutes). + * results. Default is 300 (5 minutes). Maximum is 5,400 (90 minutes). */ public Long SecondsToLive; /** Unique identifier for this segment. */ diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabEconomyModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabEconomyModels.java index a56d0ca6..4fe4da7d 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabEconomyModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabEconomyModels.java @@ -23,6 +23,8 @@ public static class AddInventoryItemsRequest { public String CollectionId; /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */ public Map CustomTags; + /** The duration to add to the current item expiration date. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -99,6 +101,12 @@ public static class CatalogItem { public EntityKey CreatorEntity; /** The set of platform specific deep links for this item. */ public ArrayList DeepLinks; + /** + * The Stack Id that will be used as default for this item in Inventory when an explicit one is not provided. This + * DefaultStackId can be a static stack id or '{guid}', which will generate a unique stack id for the item. If null, + * Inventory's default stack id will be used. + */ + public String DefaultStackId; /** * A dictionary of localized descriptions. Key is language code and localized string is the value. The neutral locale is * required. @@ -161,6 +169,8 @@ public static class CatalogItemReference { public static class CatalogPrice { /** The amounts of the catalog item price. */ public ArrayList Amounts; + /** The per-unit duration this price can be used to purchase. */ + public Double UnitDurationInSeconds; } @@ -1074,6 +1084,11 @@ public static class InventoryItem { public Integer Amount; /** Game specific properties for display purposes. This is an arbitrary JSON blob. */ public Object DisplayProperties; + /** + * Only used for subscriptions. The date of when the item will expire in UTC. If not provided then the product will be + * available indefinitely. + */ + public Date ExpirationDate; /** The id of the item. This should correspond to the item id in the catalog. */ public String Id; /** The stack id of the item. */ @@ -1178,6 +1193,8 @@ public static class PurchaseInventoryItemsOperation { * false) */ public Boolean DeleteEmptyStacks; + /** The duration to purchase. */ + public Double DurationInSeconds; /** The inventory item the operation applies to. */ public InventoryItemReference Item; /** The values to apply to a stack newly created by this operation. */ @@ -1205,6 +1222,8 @@ public static class PurchaseInventoryItemsRequest { * (Default=false) */ public Boolean DeleteEmptyStacks; + /** The duration to purchase. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -1637,6 +1656,8 @@ public static class SubtractInventoryItemsOperation { * false). */ public Boolean DeleteEmptyStacks; + /** The duration to subtract from the current item expiration date. */ + public Double DurationInSeconds; /** The inventory item the operation applies to. */ public InventoryItemReference Item; @@ -1655,6 +1676,8 @@ public static class SubtractInventoryItemsRequest { * (Default=false) */ public Boolean DeleteEmptyStacks; + /** The duration to subtract from the current item expiration date. */ + public Double DurationInSeconds; /** The entity to perform this action on. */ public EntityKey Entity; /** ETags are used for concurrency checking when updating resources. */ @@ -1717,6 +1740,8 @@ public static class Transaction { public static class TransactionOperation { /** The amount of items in this transaction. */ public Integer Amount; + /** The duration modified in this transaction. */ + public Double DurationInSeconds; /** The item id of the items in this transaction. */ public String ItemId; /** The type of item that the operation occurred on. */ diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabErrors.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabErrors.java index b39ccb90..1432f4c9 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabErrors.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabErrors.java @@ -554,6 +554,12 @@ public static enum PlayFabErrorCode { AnalysisSubscriptionManagementInvalidInput(1553), InvalidGameCenterId(1554), InvalidNintendoSwitchAccountId(1555), + EntityAPIKeysNotSupported(1556), + IpAddressBanned(1557), + EntityLineageBanned(1558), + NamespaceMismatch(1559), + InvalidServiceConfiguration(1560), + InvalidNamespaceMismatch(1561), MatchmakingEntityInvalid(2001), MatchmakingPlayerAttributesInvalid(2002), MatchmakingQueueNotFound(2016), @@ -700,6 +706,11 @@ public static enum PlayFabErrorCode { EventSamplingInvalidEventNamespace(14001), EventSamplingInvalidEventName(14002), EventSamplingRatioNotFound(14003), + TelemetryKeyNotFound(14200), + TelemetryKeyInvalidName(14201), + TelemetryKeyAlreadyExists(14202), + TelemetryKeyInvalid(14203), + TelemetryKeyCountOverLimit(14204), EventSinkConnectionInvalid(15000), EventSinkConnectionUnauthorized(15001), EventSinkRegionInvalid(15002), diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java index 3ba4d9b7..af029a71 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabServerModels.java @@ -1663,6 +1663,12 @@ public static enum GenericErrorCodes { AnalysisSubscriptionManagementInvalidInput, InvalidGameCenterId, InvalidNintendoSwitchAccountId, + EntityAPIKeysNotSupported, + IpAddressBanned, + EntityLineageBanned, + NamespaceMismatch, + InvalidServiceConfiguration, + InvalidNamespaceMismatch, MatchmakingEntityInvalid, MatchmakingPlayerAttributesInvalid, MatchmakingQueueNotFound, @@ -1809,6 +1815,11 @@ public static enum GenericErrorCodes { EventSamplingInvalidEventNamespace, EventSamplingInvalidEventName, EventSamplingRatioNotFound, + TelemetryKeyNotFound, + TelemetryKeyInvalidName, + TelemetryKeyAlreadyExists, + TelemetryKeyInvalid, + TelemetryKeyCountOverLimit, EventSinkConnectionInvalid, EventSinkConnectionUnauthorized, EventSinkRegionInvalid, @@ -2334,7 +2345,7 @@ public static class GetPlayersInSegmentRequest { public Long MaxBatchSize; /** * Number of seconds to keep the continuation token active. After token expiration it is not possible to continue paging - * results. Default is 300 (5 minutes). Maximum is 1,800 (30 minutes). + * results. Default is 300 (5 minutes). Maximum is 5,400 (90 minutes). */ public Long SecondsToLive; /** Unique identifier for this segment. */ diff --git a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java index 112bbbfe..1b50cfdf 100644 --- a/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java +++ b/PlayFabServerSDK/src/main/java/com/playfab/PlayFabSettings.java @@ -8,9 +8,9 @@ import com.playfab.PlayFabErrors.ErrorCallback; public class PlayFabSettings { - public static String SdkVersion = "0.182.230220"; + public static String SdkVersion = "0.183.230306"; public static String BuildIdentifier = "adobuild_javasdk_114"; - public static String SdkVersionString = "JavaSDK-0.182.230220"; + public static String SdkVersionString = "JavaSDK-0.183.230306"; public static Map RequestGetParams; static { diff --git a/builds/client-sdk-0.183.230306.jar b/builds/client-sdk-0.183.230306.jar new file mode 100644 index 00000000..43088466 Binary files /dev/null and b/builds/client-sdk-0.183.230306.jar differ diff --git a/builds/combo-sdk-0.183.230306.jar b/builds/combo-sdk-0.183.230306.jar new file mode 100644 index 00000000..a4f4f126 Binary files /dev/null and b/builds/combo-sdk-0.183.230306.jar differ