@@ -4281,6 +4281,94 @@ public static void LootLockerPurchaseCatalogItems(string walletId, LootLockerCat
4281
4281
LootLockerServerRequest . CallAPI ( LootLockerEndPoints . purchaseCatalogItem . endPoint , LootLockerEndPoints . purchaseCatalogItem . httpMethod , body , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
4282
4282
}
4283
4283
4284
+ /// <summary>
4285
+ /// Redeem a purchase that was made successfully towards the Apple App Store for the current player
4286
+ /// </summary>
4287
+ /// <param name="transactionId">The id of the transaction successfully made towards the Apple App Store</param>
4288
+ /// <param name="onComplete">onComplete Action for handling the response</param>
4289
+ public static void RedeemAppleAppStorePurchaseForPlayer ( string transactionId , Action < LootLockerResponse > onComplete )
4290
+ {
4291
+ if ( ! CheckInitialized ( ) )
4292
+ {
4293
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerResponse > ( ) ) ;
4294
+ return ;
4295
+ }
4296
+ var body = LootLockerJson . SerializeObject ( new LootLockerRedeemAppleAppStorePurchaseForPlayerRequest ( )
4297
+ {
4298
+ transaction_id = transactionId
4299
+ } ) ;
4300
+
4301
+ LootLockerServerRequest . CallAPI ( LootLockerEndPoints . redeemAppleAppStorePurchase . endPoint , LootLockerEndPoints . redeemAppleAppStorePurchase . httpMethod , body , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
4302
+ }
4303
+
4304
+ /// <summary>
4305
+ /// Redeem a purchase that was made successfully towards the Apple App Store for a character that the current player owns
4306
+ /// </summary>
4307
+ /// <param name="transactionId">The id of the transaction successfully made towards the Apple App Store</param>
4308
+ /// <param name="characterId">The id of the character to redeem this transaction for</param>
4309
+ /// <param name="onComplete">onComplete Action for handling the response</param>
4310
+ public static void RedeemAppleAppStorePurchaseForCharacter ( string transactionId , int characterId , Action < LootLockerResponse > onComplete )
4311
+ {
4312
+ if ( ! CheckInitialized ( ) )
4313
+ {
4314
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerResponse > ( ) ) ;
4315
+ return ;
4316
+ }
4317
+ var body = LootLockerJson . SerializeObject ( new LootLockerRedeemAppleAppStorePurchaseForCharacterRequest ( )
4318
+ {
4319
+ transaction_id = transactionId ,
4320
+ character_id = characterId
4321
+ } ) ;
4322
+
4323
+ LootLockerServerRequest . CallAPI ( LootLockerEndPoints . redeemAppleAppStorePurchase . endPoint , LootLockerEndPoints . redeemAppleAppStorePurchase . httpMethod , body , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
4324
+ }
4325
+
4326
+ /// <summary>
4327
+ /// Redeem a purchase that was made successfully towards the Google Play Store for the current player
4328
+ /// </summary>
4329
+ /// <param name="productId">The id of the product that this redemption refers to</param>
4330
+ /// <param name="purchaseToken">The token from the purchase successfully made towards the Google Play Store</param>
4331
+ /// <param name="onComplete">onComplete Action for handling the response</param>
4332
+ public static void RedeemGooglePlayStorePurchaseForPlayer ( string productId , string purchaseToken , Action < LootLockerResponse > onComplete )
4333
+ {
4334
+ if ( ! CheckInitialized ( ) )
4335
+ {
4336
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerResponse > ( ) ) ;
4337
+ return ;
4338
+ }
4339
+ var body = LootLockerJson . SerializeObject ( new LootLockerRedeemGooglePlayStorePurchaseForPlayerRequest ( )
4340
+ {
4341
+ product_id = productId ,
4342
+ purchase_token = purchaseToken
4343
+ } ) ;
4344
+
4345
+ LootLockerServerRequest . CallAPI ( LootLockerEndPoints . redeemGooglePlayStorePurchase . endPoint , LootLockerEndPoints . redeemGooglePlayStorePurchase . httpMethod , body , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
4346
+ }
4347
+
4348
+ /// <summary>
4349
+ /// Redeem a purchase that was made successfully towards the Google Play Store for a character that the current player owns
4350
+ /// </summary>
4351
+ /// <param name="productId">The id of the product that this redemption refers to</param>
4352
+ /// <param name="purchaseToken">The token from the purchase successfully made towards the Google Play Store</param>
4353
+ /// <param name="characterId">The id of the character to redeem this purchase for</param>
4354
+ /// <param name="onComplete">onComplete Action for handling the response</param>
4355
+ public static void RedeemGooglePlayStorePurchaseForCharacter ( string productId , string purchaseToken , int characterId , Action < LootLockerResponse > onComplete )
4356
+ {
4357
+ if ( ! CheckInitialized ( ) )
4358
+ {
4359
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerResponse > ( ) ) ;
4360
+ return ;
4361
+ }
4362
+ var body = LootLockerJson . SerializeObject ( new LootLockerRedeemGooglePlayStorePurchaseForCharacterRequest ( )
4363
+ {
4364
+ product_id = productId ,
4365
+ purchase_token = purchaseToken ,
4366
+ character_id = characterId
4367
+ } ) ;
4368
+
4369
+ LootLockerServerRequest . CallAPI ( LootLockerEndPoints . redeemGooglePlayStorePurchase . endPoint , LootLockerEndPoints . redeemGooglePlayStorePurchase . httpMethod , body , onComplete : ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ;
4370
+ }
4371
+
4284
4372
#endregion
4285
4373
4286
4374
#region Collectables
0 commit comments