diff --git a/models/JWSRenewalInfoDecodedPayload.ts b/models/JWSRenewalInfoDecodedPayload.ts index 7039614..c3023bc 100644 --- a/models/JWSRenewalInfoDecodedPayload.ts +++ b/models/JWSRenewalInfoDecodedPayload.ts @@ -73,14 +73,14 @@ export interface JWSRenewalInfoDecodedPayload extends DecodedSignedData { gracePeriodExpiresDate?: number /** - * The type of the subscription offer. + * The type of subscription offer. * * {@link https://developer.apple.com/documentation/appstoreserverapi/offertype offerType} **/ offerType?: OfferType | number /** - * The identifier that contains the promo code or the promotional offer identifier. + * The offer code or the promotional offer identifier. * * {@link https://developer.apple.com/documentation/appstoreserverapi/offeridentifier offerIdentifier} **/ @@ -129,7 +129,7 @@ export interface JWSRenewalInfoDecodedPayload extends DecodedSignedData { renewalPrice?: number /** - * The payment mode of the discount offer. + * The payment mode you configure for the offer. * * {@link https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype offerDiscountType} **/ diff --git a/models/JWSTransactionDecodedPayload.ts b/models/JWSTransactionDecodedPayload.ts index 4803a0f..e847719 100644 --- a/models/JWSTransactionDecodedPayload.ts +++ b/models/JWSTransactionDecodedPayload.ts @@ -116,7 +116,7 @@ export interface JWSTransactionDecodedPayload extends DecodedSignedData { signedDate?: number /** - * 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. * * {@link https://developer.apple.com/documentation/appstoreserverapi/revocationreason revocationReason} **/ @@ -144,7 +144,7 @@ export interface JWSTransactionDecodedPayload extends DecodedSignedData { offerType?: OfferType | number /** - * The identifier that contains the promo code or the promotional offer identifier. + * The identifier that contains the offer code or the promotional offer identifier. * * {@link https://developer.apple.com/documentation/appstoreserverapi/offeridentifier offerIdentifier} **/ @@ -193,7 +193,7 @@ export interface JWSTransactionDecodedPayload extends DecodedSignedData { price?: number /** - * 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. * * {@link https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype offerDiscountType} **/ diff --git a/models/OfferDiscountType.ts b/models/OfferDiscountType.ts index a60ad8b..ace3eb1 100644 --- a/models/OfferDiscountType.ts +++ b/models/OfferDiscountType.ts @@ -3,14 +3,15 @@ import { StringValidator } from "./Validator"; /** - * 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. * * {@link https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype offerDiscountType} */ export enum 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" } export class OfferDiscountTypeValidator extends StringValidator {} \ No newline at end of file diff --git a/models/OfferType.ts b/models/OfferType.ts index 675b475..5d7060d 100644 --- a/models/OfferType.ts +++ b/models/OfferType.ts @@ -3,14 +3,14 @@ import { NumberValidator } from "./Validator"; /** - * The type of subscription offer. + * The type of offer. * * {@link https://developer.apple.com/documentation/appstoreserverapi/offertype offerType} */ export enum OfferType { INTRODUCTORY_OFFER = 1, PROMOTIONAL_OFFER = 2, - SUBSCRIPTION_OFFER_CODE = 3, + OFFER_CODE = 3, WIN_BACK_OFFER = 4, }