Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 5bd7dab

Browse files
committed
feat: add user-choice-billing-android event
1 parent e83cea5 commit 5bd7dab

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

src/generated/Types.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ public enum class ExternalPurchaseNoticeAction(val rawValue: String) {
220220
public enum class IapEvent(val rawValue: String) {
221221
PurchaseUpdated("purchase-updated"),
222222
PurchaseError("purchase-error"),
223-
PromotedProductIos("promoted-product-ios")
223+
PromotedProductIos("promoted-product-ios"),
224+
UserChoiceBillingAndroid("user-choice-billing-android")
224225

225226
companion object {
226227
fun fromJson(value: String): IapEvent = when (value) {
@@ -233,6 +234,9 @@ public enum class IapEvent(val rawValue: String) {
233234
"promoted-product-ios" -> IapEvent.PromotedProductIos
234235
"PROMOTED_PRODUCT_IOS" -> IapEvent.PromotedProductIos
235236
"PromotedProductIOS" -> IapEvent.PromotedProductIos
237+
"user-choice-billing-android" -> IapEvent.UserChoiceBillingAndroid
238+
"USER_CHOICE_BILLING_ANDROID" -> IapEvent.UserChoiceBillingAndroid
239+
"UserChoiceBillingAndroid" -> IapEvent.UserChoiceBillingAndroid
236240
else -> throw IllegalArgumentException("Unknown IapEvent value: $value")
237241
}
238242
}

src/generated/Types.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public enum IapEvent: String, Codable, CaseIterable {
6969
case purchaseUpdated = "purchase-updated"
7070
case purchaseError = "purchase-error"
7171
case promotedProductIos = "promoted-product-ios"
72+
case userChoiceBillingAndroid = "user-choice-billing-android"
7273
}
7374

7475
public enum IapPlatform: String, Codable, CaseIterable {

src/generated/types.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ enum ExternalPurchaseNoticeAction {
256256
enum IapEvent {
257257
PurchaseUpdated('purchase-updated'),
258258
PurchaseError('purchase-error'),
259-
PromotedProductIOS('promoted-product-ios');
259+
PromotedProductIOS('promoted-product-ios'),
260+
UserChoiceBillingAndroid('user-choice-billing-android');
260261

261262
const IapEvent(this.value);
262263
final String value;
@@ -275,6 +276,10 @@ enum IapEvent {
275276
case 'PROMOTED_PRODUCT_IOS':
276277
case 'PromotedProductIOS':
277278
return IapEvent.PromotedProductIOS;
279+
case 'user-choice-billing-android':
280+
case 'USER_CHOICE_BILLING_ANDROID':
281+
case 'UserChoiceBillingAndroid':
282+
return IapEvent.UserChoiceBillingAndroid;
278283
}
279284
throw ArgumentError('Unknown IapEvent value: $value');
280285
}

src/generated/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export interface ExternalPurchaseNoticeResultIOS {
163163

164164
export type FetchProductsResult = Product[] | ProductSubscription[] | null;
165165

166-
export type IapEvent = 'purchase-updated' | 'purchase-error' | 'promoted-product-ios';
166+
export type IapEvent = 'purchase-updated' | 'purchase-error' | 'promoted-product-ios' | 'user-choice-billing-android';
167167

168168
export type IapPlatform = 'ios' | 'android';
169169

src/type.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ enum IapEvent {
2727
PurchaseUpdated
2828
PurchaseError
2929
PromotedProductIOS
30+
UserChoiceBillingAndroid
3031
}
3132

3233
# Common product fields

0 commit comments

Comments
 (0)