@@ -4286,7 +4286,8 @@ public static void LootLockerPurchaseCatalogItems(string walletId, LootLockerCat
4286
4286
/// </summary>
4287
4287
/// <param name="transactionId">The id of the transaction successfully made towards the Apple App Store</param>
4288
4288
/// <param name="onComplete">onComplete Action for handling the response</param>
4289
- public static void RedeemAppleAppStorePurchaseForPlayer ( string transactionId , Action < LootLockerResponse > onComplete )
4289
+ /// <param name="sandboxed">Optional: Should this redemption be made towards sandbox App Store</param>
4290
+ public static void RedeemAppleAppStorePurchaseForPlayer ( string transactionId , Action < LootLockerResponse > onComplete , bool sandboxed = false )
4290
4291
{
4291
4292
if ( ! CheckInitialized ( ) )
4292
4293
{
@@ -4295,7 +4296,8 @@ public static void RedeemAppleAppStorePurchaseForPlayer(string transactionId, Ac
4295
4296
}
4296
4297
var body = LootLockerJson . SerializeObject ( new LootLockerRedeemAppleAppStorePurchaseForPlayerRequest ( )
4297
4298
{
4298
- transaction_id = transactionId
4299
+ transaction_id = transactionId ,
4300
+ sandboxed = sandboxed
4299
4301
} ) ;
4300
4302
4301
4303
LootLockerServerRequest . CallAPI ( LootLockerEndPoints . redeemAppleAppStorePurchase . endPoint , LootLockerEndPoints . redeemAppleAppStorePurchase . httpMethod , body , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
@@ -4307,7 +4309,8 @@ public static void RedeemAppleAppStorePurchaseForPlayer(string transactionId, Ac
4307
4309
/// <param name="transactionId">The id of the transaction successfully made towards the Apple App Store</param>
4308
4310
/// <param name="classId">The id of the class to redeem this transaction for</param>
4309
4311
/// <param name="onComplete">onComplete Action for handling the response</param>
4310
- public static void RedeemAppleAppStorePurchaseForClass ( string transactionId , int classId , Action < LootLockerResponse > onComplete )
4312
+ /// <param name="sandboxed">Optional: Should this redemption be made towards sandbox App Store</param>
4313
+ public static void RedeemAppleAppStorePurchaseForClass ( string transactionId , int classId , Action < LootLockerResponse > onComplete , bool sandboxed = false )
4311
4314
{
4312
4315
if ( ! CheckInitialized ( ) )
4313
4316
{
@@ -4317,7 +4320,8 @@ public static void RedeemAppleAppStorePurchaseForClass(string transactionId, int
4317
4320
var body = LootLockerJson . SerializeObject ( new LootLockerRedeemAppleAppStorePurchaseForClassRequest ( )
4318
4321
{
4319
4322
transaction_id = transactionId ,
4320
- class_id = classId
4323
+ class_id = classId ,
4324
+ sandboxed = sandboxed
4321
4325
} ) ;
4322
4326
4323
4327
LootLockerServerRequest . CallAPI ( LootLockerEndPoints . redeemAppleAppStorePurchase . endPoint , LootLockerEndPoints . redeemAppleAppStorePurchase . httpMethod , body , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
0 commit comments