Skip to content

Commit a219007

Browse files
Merge pull request #209 from izanger/main
Add IAP Offer Codes support
2 parents e1445ee + 8e28a3a commit a219007

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

src/main/java/com/apple/itunes/storekit/model/JWSRenewalInfoDecodedPayload.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public JWSRenewalInfoDecodedPayload offerType(OfferType offerType) {
283283
}
284284

285285
/**
286-
* The type of the subscription offer.
286+
* The type of subscription offer.
287287
*
288288
* @return offerType
289289
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/offertype">offerType</a>
@@ -313,7 +313,7 @@ public JWSRenewalInfoDecodedPayload offerIdentifier(String offerIdentifier) {
313313
}
314314

315315
/**
316-
* The identifier that contains the promo code or the promotional offer identifier.
316+
* The offer code or the promotional offer identifier.
317317
*
318318
* @return offerIdentifier
319319
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/offeridentifier">offerIdentifier</a>
@@ -457,7 +457,7 @@ public JWSRenewalInfoDecodedPayload offerDiscountType(OfferDiscountType offerDis
457457
}
458458

459459
/**
460-
* The payment mode of the discount offer.
460+
* The payment mode you configure for the offer.
461461
*
462462
* @return offerDiscountType
463463
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype">offerDiscountType</a>

src/main/java/com/apple/itunes/storekit/model/JWSTransactionDecodedPayload.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ public JWSTransactionDecodedPayload revocationReason(RevocationReason revocation
406406
}
407407

408408
/**
409-
* The reason that the App Store refunded the transaction or revoked it from family sharing.
409+
* The reason that the App Store refunded the transaction or revoked it from Family Sharing.
410410
*
411411
* @return revocationReason
412412
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/revocationreason">revocationReason</a>
@@ -504,7 +504,7 @@ public JWSTransactionDecodedPayload offerIdentifier(String offerIdentifier) {
504504
}
505505

506506
/**
507-
* The identifier that contains the promo code or the promotional offer identifier.
507+
* The identifier that contains the offer code or the promotional offer identifier.
508508
*
509509
* @return offerIdentifier
510510
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/offeridentifier">offerIdentifier</a>
@@ -659,7 +659,7 @@ public JWSTransactionDecodedPayload offerDiscountType(OfferDiscountType offerDis
659659
}
660660

661661
/**
662-
* The payment mode you configure for an introductory offer, promotional offer, or offer code on an auto-renewable subscription.
662+
* The payment mode you configure for the offer.
663663
*
664664
* @return offerDiscountType
665665
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype">offerDiscountType</a>

src/main/java/com/apple/itunes/storekit/model/OfferDiscountType.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
import com.fasterxml.jackson.annotation.JsonValue;
66

77
/**
8-
* The payment mode you configure for an introductory offer, promotional offer, or offer code on an auto-renewable subscription.
8+
* The payment mode for a discount offer on an In-App Purchase.
99
*
1010
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/offerdiscounttype">offerDiscountType</a>
1111
*/
1212
public enum OfferDiscountType {
1313

1414
FREE_TRIAL("FREE_TRIAL"),
1515
PAY_AS_YOU_GO("PAY_AS_YOU_GO"),
16-
PAY_UP_FRONT("PAY_UP_FRONT");
16+
PAY_UP_FRONT("PAY_UP_FRONT"),
17+
ONE_TIME("ONE_TIME");
1718

1819
private final String value;
1920

src/main/java/com/apple/itunes/storekit/model/OfferType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
import com.fasterxml.jackson.annotation.JsonValue;
66

77
/**
8-
* The type of subscription offer.
8+
* The type of offer.
99
*
1010
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/offertype">offerType</a>
1111
*/
1212
public enum OfferType {
1313

1414
INTRODUCTORY_OFFER(1),
1515
PROMOTIONAL_OFFER(2),
16-
SUBSCRIPTION_OFFER_CODE(3),
16+
OFFER_CODE(3),
1717
WIN_BACK_OFFER(4);
1818

1919
private final Integer value;

0 commit comments

Comments
 (0)