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 models/JWSRenewalInfoDecodedPayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
**/
Expand Down Expand Up @@ -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}
**/
Expand Down
6 changes: 3 additions & 3 deletions models/JWSTransactionDecodedPayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
**/
Expand Down Expand Up @@ -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}
**/
Expand Down Expand Up @@ -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}
**/
Expand Down
5 changes: 3 additions & 2 deletions models/OfferDiscountType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
4 changes: 2 additions & 2 deletions models/OfferType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down