Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions appstoreserverlibrary/models/JWSRenewalInfoDecodedPayload.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class JWSRenewalInfoDecodedPayload(AttrsRawValueAware):

offerType: Optional[OfferType] = OfferType.create_main_attr('rawOfferType')
"""
The type of the subscription offer.
The type of subscription offer.

https://developer.apple.com/documentation/appstoreserverapi/offertype
"""
Expand All @@ -105,7 +105,7 @@ class JWSRenewalInfoDecodedPayload(AttrsRawValueAware):

offerIdentifier: Optional[str] = attr.ib(default=None)
"""
The identifier that contains the promo code or the promotional offer identifier.
The offer code or the promotional offer identifier.

https://developer.apple.com/documentation/appstoreserverapi/offeridentifier
"""
Expand Down Expand Up @@ -159,7 +159,7 @@ class JWSRenewalInfoDecodedPayload(AttrsRawValueAware):

offerDiscountType: Optional[OfferDiscountType] = OfferDiscountType.create_main_attr('rawOfferDiscountType')
"""
The payment mode of the discount offer.
The payment mode you configure for the offer.

https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype
"""
Expand Down
6 changes: 3 additions & 3 deletions appstoreserverlibrary/models/JWSTransactionDecodedPayload.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class JWSTransactionDecodedPayload(AttrsRawValueAware):

revocationReason: Optional[RevocationReason] = RevocationReason.create_main_attr('rawRevocationReason')
"""
The reason that the App Store refunded the transaction or revoked it from family sharing.
The reason that the App Store refunded the transaction or revoked it from Family Sharing.

https://developer.apple.com/documentation/appstoreserverapi/revocationreason
"""
Expand Down Expand Up @@ -170,7 +170,7 @@ class JWSTransactionDecodedPayload(AttrsRawValueAware):

offerIdentifier: Optional[str] = attr.ib(default=None)
"""
The identifier that contains the promo code or the promotional offer identifier.
The identifier that contains the offer code or the promotional offer identifier.

https://developer.apple.com/documentation/appstoreserverapi/offeridentifier
"""
Expand Down Expand Up @@ -229,7 +229,7 @@ class JWSTransactionDecodedPayload(AttrsRawValueAware):

offerDiscountType: Optional[OfferDiscountType] = OfferDiscountType.create_main_attr('rawOfferDiscountType')
"""
The payment mode you configure for an introductory offer, promotional offer, or offer code on an auto-renewable subscription.
The payment mode you configure for the offer.

https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype
"""
Expand Down
5 changes: 3 additions & 2 deletions appstoreserverlibrary/models/OfferDiscountType.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

class OfferDiscountType(str, Enum, metaclass=AppStoreServerLibraryEnumMeta):
"""
The payment mode you configure for an introductory offer, promotional offer, or offer code on an auto-renewable subscription.
The payment mode for a discount offer on an In-App Purchase.

https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype
"""
FREE_TRIAL = "FREE_TRIAL"
PAY_AS_YOU_GO = "PAY_AS_YOU_GO"
PAY_UP_FRONT = "PAY_UP_FRONT"
PAY_UP_FRONT = "PAY_UP_FRONT"
ONE_TIME = "ONE_TIME"
4 changes: 2 additions & 2 deletions appstoreserverlibrary/models/OfferType.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

class OfferType(IntEnum, metaclass=AppStoreServerLibraryEnumMeta):
"""
The type of subscription offer.
The type of offer.

https://developer.apple.com/documentation/appstoreserverapi/offertype
"""
INTRODUCTORY_OFFER = 1
PROMOTIONAL_OFFER = 2
SUBSCRIPTION_OFFER_CODE = 3
OFFER_CODE = 3
WIN_BACK_OFFER = 4