appstoreserverlibrary.models.PromotionalOfferSignatureV1 module

class appstoreserverlibrary.models.PromotionalOfferSignatureV1.PromotionalOfferSignatureV1(encodedSignature: str, productId: str, nonce: UUID, timestamp: int, keyId: str, offerIdentifier: str, appAccountToken: UUID | None = None)[source]

Bases: object

The promotional offer signature you generate using an earlier signature version.

https://developer.apple.com/documentation/retentionmessaging/promotionaloffersignaturev1

appAccountToken: UUID | None

A UUID that you provide to associate with the transaction if the customer accepts the promotional offer.

encodedSignature: str

The Base64-encoded cryptographic signature you generate using the offer parameters.

keyId: str

A string that identifies the private key you use to generate the signature.

nonce: UUID

A one-time-use UUID antireplay value you generate.

offerIdentifier: str

The subscription offer identifier that you set up in App Store Connect.

productId: str

The subscription’s product identifier.

https://developer.apple.com/documentation/retentionmessaging/productid

timestamp: int

The UNIX time, in milliseconds, when you generate the signature.