appstoreserverlibrary.models.AdvancedCommerceOffer module

class appstoreserverlibrary.models.AdvancedCommerceOffer.AdvancedCommerceOffer(periodCount: int, price: int, period: AdvancedCommerceOfferPeriod = None, reason: AdvancedCommerceOfferReason = None, *, rawPeriod: str = NOTHING, rawReason: str = NOTHING)[source]

Bases: AttrsRawValueAware

A discount offer for an auto-renewable subscription.

https://developer.apple.com/documentation/advancedcommerceapi/offer

period: AdvancedCommerceOfferPeriod

The period of the offer.

periodCount: int

The number of periods the offer is active.

price: int

The offer price, in milliunits.

https://developer.apple.com/documentation/advancedcommerceapi/price

rawPeriod: str

See period

rawReason: str

See reason

reason: AdvancedCommerceOfferReason

The reason for the offer.