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

Commit aa251b0

Browse files
committed
fix(models): restore generator defaults
1 parent a5fb810 commit aa251b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Models/Types.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -935,11 +935,11 @@ public protocol MutationResolver {
935935
/// Consume a purchase token so it can be repurchased
936936
func consumePurchaseAndroid(_ purchaseToken: String) async throws -> Bool
937937
/// Open the native subscription management surface
938-
func deepLinkToSubscriptions(_ options: DeepLinkOptions?) async throws -> Void
938+
func deepLinkToSubscriptions(_ options: DeepLinkOptions? = nil) async throws -> Void
939939
/// Close the platform billing connection
940940
func endConnection() async throws -> Bool
941941
/// Finish a transaction after validating receipts
942-
func finishTransaction(purchase: PurchaseInput, isConsumable: Bool?) async throws -> Void
942+
func finishTransaction(purchase: PurchaseInput, isConsumable: Bool? = nil) async throws -> Void
943943
/// Establish the platform billing connection
944944
func initConnection() async throws -> Bool
945945
/// Present the App Store code redemption sheet
@@ -965,11 +965,11 @@ public protocol QueryResolver {
965965
/// Retrieve products or subscriptions from the store
966966
func fetchProducts(_ params: ProductRequest) async throws -> FetchProductsResult
967967
/// Get active subscriptions (filters by subscriptionIds when provided)
968-
func getActiveSubscriptions(_ subscriptionIds: [String]?) async throws -> [ActiveSubscription]
968+
func getActiveSubscriptions(_ subscriptionIds: [String]? = nil) async throws -> [ActiveSubscription]
969969
/// Fetch the current app transaction (iOS 16+)
970970
func getAppTransactionIOS() async throws -> AppTransaction?
971971
/// Get all available purchases for the current user
972-
func getAvailablePurchases(_ options: PurchaseOptions?) async throws -> [Purchase]
972+
func getAvailablePurchases(_ options: PurchaseOptions? = nil) async throws -> [Purchase]
973973
/// Retrieve all pending transactions in the StoreKit queue
974974
func getPendingTransactionsIOS() async throws -> [PurchaseIOS]
975975
/// Get the currently promoted product (iOS 11+)
@@ -981,7 +981,7 @@ public protocol QueryResolver {
981981
/// Get the transaction JWS (StoreKit 2)
982982
func getTransactionJwsIOS(_ sku: String) async throws -> String?
983983
/// Check whether the user has active subscriptions
984-
func hasActiveSubscriptions(_ subscriptionIds: [String]?) async throws -> Bool
984+
func hasActiveSubscriptions(_ subscriptionIds: [String]? = nil) async throws -> Bool
985985
/// Check introductory offer eligibility for a subscription group
986986
func isEligibleForIntroOfferIOS(_ groupID: String) async throws -> Bool
987987
/// Verify a StoreKit 2 transaction signature

0 commit comments

Comments
 (0)