Summary
The introductoryOfferEligibility property in RequestSubscriptionIosProps is currently defined as Boolean, but the actual StoreKit API Product.PurchaseOption.introductoryOfferEligibility(compactJWS:) requires a JWS string.
Current Implementation
# packages/gql/src/type-ios.graphql
input RequestSubscriptionIosProps {
# ...
introductoryOfferEligibility: Boolean # INCORRECT
}
Expected Implementation
The API should accept a server-generated compact JWS string, similar to promotionalOfferJWS:
input IntroductoryOfferJWSInputIOS {
jws: String!
}
input RequestSubscriptionIosProps {
# ...
introductoryOfferEligibility: IntroductoryOfferJWSInputIOS # CORRECT
}
References
Tasks
Related
Discovered during PR #67 review by @coderabbitai
Summary
The
introductoryOfferEligibilityproperty inRequestSubscriptionIosPropsis currently defined asBoolean, but the actual StoreKit APIProduct.PurchaseOption.introductoryOfferEligibility(compactJWS:)requires a JWS string.Current Implementation
Expected Implementation
The API should accept a server-generated compact JWS string, similar to
promotionalOfferJWS:References
Tasks
Related
Discovered during PR #67 review by @coderabbitai