@@ -1714,6 +1714,31 @@ class RequestPurchaseResultPurchases extends RequestPurchaseResult {
17141714 final List <Purchase >? value;
17151715}
17161716
1717+ class StorefrontResultAndroid {
1718+ const StorefrontResultAndroid ({
1719+ required this .countryCode,
1720+ required this .identifier,
1721+ });
1722+
1723+ final String countryCode;
1724+ final String identifier;
1725+
1726+ factory StorefrontResultAndroid .fromJson (Map <String , dynamic > json) {
1727+ return StorefrontResultAndroid (
1728+ countryCode: json['countryCode' ] as String ,
1729+ identifier: json['identifier' ] as String ,
1730+ );
1731+ }
1732+
1733+ Map <String , dynamic > toJson () {
1734+ return {
1735+ '__typename' : 'StorefrontResultAndroid' ,
1736+ 'countryCode' : countryCode,
1737+ 'identifier' : identifier,
1738+ };
1739+ }
1740+ }
1741+
17171742class SubscriptionInfoIOS {
17181743 const SubscriptionInfoIOS ({
17191744 this .introductoryOffer,
@@ -2618,8 +2643,8 @@ abstract class QueryResolver {
26182643 Future <ProductIOS ?> getPromotedProductIOS ();
26192644 /// Get base64-encoded receipt data for validation
26202645 Future <String ?> getReceiptDataIOS ();
2621- /// Get the current Play Store storefront country code
2622- Future <String > getStorefrontAndroid ();
2646+ /// Returns: StorefrontResultAndroid!
2647+ Future <StorefrontResultAndroid > getStorefrontAndroid ();
26232648 /// Get the current App Store storefront country code
26242649 Future <String > getStorefrontIOS ();
26252650 /// Get the transaction JWS (StoreKit 2)
@@ -2717,7 +2742,7 @@ typedef QueryGetAvailablePurchasesHandler = Future<List<Purchase>> Function([Pur
27172742typedef QueryGetPendingTransactionsIOSHandler = Future <List <PurchaseIOS >> Function ();
27182743typedef QueryGetPromotedProductIOSHandler = Future <ProductIOS ?> Function ();
27192744typedef QueryGetReceiptDataIOSHandler = Future <String ?> Function ();
2720- typedef QueryGetStorefrontAndroidHandler = Future <String > Function ();
2745+ typedef QueryGetStorefrontAndroidHandler = Future <StorefrontResultAndroid > Function ();
27212746typedef QueryGetStorefrontIOSHandler = Future <String > Function ();
27222747typedef QueryGetTransactionJwsIOSHandler = Future <String ?> Function (String sku);
27232748typedef QueryHasActiveSubscriptionsHandler = Future <bool > Function ([List <String >? subscriptionIds]);
0 commit comments