@@ -93,67 +93,67 @@ class _PurchasesFlutterApiTest {
93
93
GoogleProductChangeInfo ? googleProductChangeInfo;
94
94
PurchaseType purchaseType = PurchaseType .subs;
95
95
ProductCategory productType = ProductCategory .subscription;
96
- CustomerInfo customerInfo = await Purchases .purchaseProduct (
96
+ PurchaseResult purchaseResult = await Purchases .purchaseProduct (
97
97
productIdentifier,
98
98
type: purchaseType,
99
99
upgradeInfo: upgradeInfo);
100
- customerInfo = await Purchases .purchaseProduct (productIdentifier,
100
+ purchaseResult = await Purchases .purchaseProduct (productIdentifier,
101
101
upgradeInfo: upgradeInfo);
102
- customerInfo = await Purchases .purchaseProduct (productIdentifier);
102
+ purchaseResult = await Purchases .purchaseProduct (productIdentifier);
103
103
}
104
104
105
105
void _checkPurchaseStoreProduct (StoreProduct storeProduct) async {
106
106
GoogleProductChangeInfo ? googleProductChangeInfo;
107
- CustomerInfo customerInfo = await Purchases .purchaseStoreProduct (
107
+ PurchaseResult purchaseResult = await Purchases .purchaseStoreProduct (
108
108
storeProduct,
109
109
googleProductChangeInfo: googleProductChangeInfo,
110
110
googleIsPersonalizedPrice: true );
111
- customerInfo = await Purchases .purchaseStoreProduct (storeProduct,
111
+ purchaseResult = await Purchases .purchaseStoreProduct (storeProduct,
112
112
googleIsPersonalizedPrice: true );
113
- customerInfo = await Purchases .purchaseStoreProduct (storeProduct,
113
+ purchaseResult = await Purchases .purchaseStoreProduct (storeProduct,
114
114
googleProductChangeInfo: googleProductChangeInfo);
115
- customerInfo = await Purchases .purchaseStoreProduct (storeProduct);
115
+ purchaseResult = await Purchases .purchaseStoreProduct (storeProduct);
116
116
}
117
117
118
118
void _checkPurchasePackage (Package package) async {
119
119
UpgradeInfo ? upgradeInfo;
120
120
GoogleProductChangeInfo ? googleProductChangeInfo;
121
- CustomerInfo customerInfo =
121
+ PurchaseResult purchaseResult =
122
122
await Purchases .purchasePackage (package, upgradeInfo: upgradeInfo);
123
- customerInfo = await Purchases .purchasePackage (package,
123
+ purchaseResult = await Purchases .purchasePackage (package,
124
124
googleProductChangeInfo: googleProductChangeInfo,
125
125
googleIsPersonalizedPrice: true );
126
- customerInfo = await Purchases .purchasePackage (package,
126
+ purchaseResult = await Purchases .purchasePackage (package,
127
127
upgradeInfo: upgradeInfo, googleIsPersonalizedPrice: true );
128
- customerInfo = await Purchases .purchasePackage (package,
128
+ purchaseResult = await Purchases .purchasePackage (package,
129
129
googleIsPersonalizedPrice: true );
130
130
}
131
131
132
132
void _checkPurchaseSubscriptionOption (SubscriptionOption subscriptionOption,
133
133
GoogleProductChangeInfo ? googleProductChangeInfo) async {
134
- CustomerInfo customerInfo = await Purchases .purchaseSubscriptionOption (
134
+ PurchaseResult purchaseResult = await Purchases .purchaseSubscriptionOption (
135
135
subscriptionOption,
136
136
googleProductChangeInfo: googleProductChangeInfo);
137
- customerInfo = await Purchases .purchaseSubscriptionOption (
137
+ purchaseResult = await Purchases .purchaseSubscriptionOption (
138
138
subscriptionOption,
139
139
googleProductChangeInfo: googleProductChangeInfo,
140
140
googleIsPersonalizedPrice: true );
141
- customerInfo = await Purchases .purchaseSubscriptionOption (
141
+ purchaseResult = await Purchases .purchaseSubscriptionOption (
142
142
subscriptionOption,
143
143
googleIsPersonalizedPrice: true );
144
- customerInfo =
144
+ purchaseResult =
145
145
await Purchases .purchaseSubscriptionOption (subscriptionOption);
146
146
}
147
147
148
148
void _checkPurchaseDiscountedProduct (
149
149
StoreProduct product, PromotionalOffer offer) async {
150
- CustomerInfo customerInfo =
150
+ PurchaseResult purchaseResult =
151
151
await Purchases .purchaseDiscountedProduct (product, offer);
152
152
}
153
153
154
154
void _checkPurchaseDiscountedPackage (
155
155
Package package, PromotionalOffer offer) async {
156
- CustomerInfo customerInfo =
156
+ PurchaseResult purchaseResult =
157
157
await Purchases .purchaseDiscountedPackage (package, offer);
158
158
}
159
159
@@ -568,15 +568,15 @@ class _PurchasesFlutterApiTest {
568
568
}
569
569
}
570
570
571
- Future <CustomerInfo > _checkFetchAndPurchaseWinBackOffersForProduct (
571
+ Future <PurchaseResult > _checkFetchAndPurchaseWinBackOffersForProduct (
572
572
StoreProduct product) async {
573
573
List <WinBackOffer >? offers =
574
574
await Purchases .getEligibleWinBackOffersForProduct (product);
575
575
576
576
return await Purchases .purchaseProductWithWinBackOffer (product, offers[0 ]);
577
577
}
578
578
579
- Future <CustomerInfo > _checkFetchAndPurchaseWinBackOffersForPackage (
579
+ Future <PurchaseResult > _checkFetchAndPurchaseWinBackOffersForPackage (
580
580
Package package) async {
581
581
List <WinBackOffer >? offers =
582
582
await Purchases .getEligibleWinBackOffersForPackage (package);
0 commit comments