Skip to content

Commit

Permalink
1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pkotets committed Jul 14, 2024
1 parent 2b82224 commit 2eca9b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### [1.6.1] 2024-07-14

**IMPROVEMENTS:**

- [ISSUE-4](https://github.com/readdle/app-store-receipt-verification/issues/4): `preorder_date` field added to the App Receipt (kudos to @noemi-salaun)

### [1.6.0] 2024-04-16

**IMPROVEMENTS:**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"php"
],
"homepage": "https://github.com/readdle/app-store-receipt-verification",
"version": "1.6.0",
"version": "1.6.1",
"autoload": {
"psr-4": {
"Readdle\\AppStoreReceiptVerification\\": "src/"
Expand Down
3 changes: 3 additions & 0 deletions src/PKCS7/AppStore/AppReceiptField.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ final class AppReceiptField extends AbstractField
const TYPE__ORIGINAL_APPLICATION_VERSION = 19;
const TYPE__EXPIRATION_DATE = 21;
const TYPE__ORGANIZATION_DISPLAY_NAME = 23;
const TYPE__PREORDER_DATE = 32;

protected const BINARY_TYPES = [
self::TYPE__OPAQUE_VALUE,
Expand All @@ -40,6 +41,7 @@ final class AppReceiptField extends AbstractField
self::TYPE__RECEIPT_CREATION_DATE,
self::TYPE__ORIGINAL_PURCHASE_DATE,
self::TYPE__EXPIRATION_DATE,
self::TYPE__PREORDER_DATE,
];

protected const TYPE_TO_NAME = [
Expand All @@ -59,5 +61,6 @@ final class AppReceiptField extends AbstractField
self::TYPE__ORIGINAL_APPLICATION_VERSION => 'original_application_version',
self::TYPE__EXPIRATION_DATE => 'expiration_date',
self::TYPE__ORGANIZATION_DISPLAY_NAME => 'organization_display_name',
self::TYPE__PREORDER_DATE => 'preorder_date',
];
}

0 comments on commit 2eca9b2

Please sign in to comment.