-
public final class RequestSubscriptionIosProps
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRequestSubscriptionIosProps.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringadvancedCommerceDataprivate final BooleanandDangerouslyFinishTransactionAutomaticallyprivate final StringappAccountTokenprivate final BooleanintroductoryOfferEligibilityprivate final PromotionalOfferJWSInputIOSpromotionalOfferJWSprivate final Integerquantityprivate final Stringskuprivate final WinBackOfferInputIOSwinBackOfferprivate final DiscountOfferInputIOSwithOffer
-
Constructor Summary
Constructors Constructor Description RequestSubscriptionIosProps(String advancedCommerceData, Boolean andDangerouslyFinishTransactionAutomatically, String appAccountToken, Boolean introductoryOfferEligibility, PromotionalOfferJWSInputIOS promotionalOfferJWS, Integer quantity, String sku, WinBackOfferInputIOS winBackOffer, DiscountOfferInputIOS withOffer)
-
Method Summary
Modifier and Type Method Description final StringgetAdvancedCommerceData()Advanced commerce data token (iOS 15+). final BooleangetAndDangerouslyFinishTransactionAutomatically()final StringgetAppAccountToken()final BooleangetIntroductoryOfferEligibility()Override introductory offer eligibility (iOS 15+, WWDC 2025). final PromotionalOfferJWSInputIOSgetPromotionalOfferJWS()JWS promotional offer (iOS 15+, WWDC 2025). final IntegergetQuantity()final StringgetSku()final WinBackOfferInputIOSgetWinBackOffer()Win-back offer to apply (iOS 18+) Used to re-engage churned subscribers with a discount or free trial. final DiscountOfferInputIOSgetWithOffer()Promotional offer to apply for subscription purchases. final Map<String, Object>toJson()-
-
Constructor Detail
-
RequestSubscriptionIosProps
RequestSubscriptionIosProps(String advancedCommerceData, Boolean andDangerouslyFinishTransactionAutomatically, String appAccountToken, Boolean introductoryOfferEligibility, PromotionalOfferJWSInputIOS promotionalOfferJWS, Integer quantity, String sku, WinBackOfferInputIOS winBackOffer, DiscountOfferInputIOS withOffer)
-
-
Method Detail
-
getAdvancedCommerceData
final String getAdvancedCommerceData()
Advanced commerce data token (iOS 15+). Used with StoreKit 2's Product.PurchaseOption.custom API for passing campaign tokens, affiliate IDs, or other attribution data. The data is formatted as JSON: {"signatureInfo": {"token": "<value>"}}
-
getAndDangerouslyFinishTransactionAutomatically
final Boolean getAndDangerouslyFinishTransactionAutomatically()
-
getAppAccountToken
final String getAppAccountToken()
-
getIntroductoryOfferEligibility
final Boolean getIntroductoryOfferEligibility()
Override introductory offer eligibility (iOS 15+, WWDC 2025). Set to true to indicate the user is eligible for introductory offer, or false to indicate they are not. When nil, the system determines eligibility. Back-deployed to iOS 15.
-
getPromotionalOfferJWS
final PromotionalOfferJWSInputIOS getPromotionalOfferJWS()
JWS promotional offer (iOS 15+, WWDC 2025). New signature format using compact JWS string for promotional offers. Back-deployed to iOS 15.
-
getQuantity
final Integer getQuantity()
-
getWinBackOffer
final WinBackOfferInputIOS getWinBackOffer()
Win-back offer to apply (iOS 18+) Used to re-engage churned subscribers with a discount or free trial. The offer is available when the customer is eligible and can be discovered via StoreKit Message (automatic) or subscription offer APIs.
-
getWithOffer
final DiscountOfferInputIOS getWithOffer()
Promotional offer to apply for subscription purchases. Requires server-signed offer with nonce, timestamp, keyId, and signature.
-
-
-
-