Skip to content

Commit

Permalink
Release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tikhop authored Jan 24, 2024
2 parents 2679298 + 335da68 commit 3334c48
Show file tree
Hide file tree
Showing 35 changed files with 1,083 additions and 177 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "app-store-server-library"
description = "The Rust server library for the App Store Server API and App Store Server Notifications"
version = "0.7.0"
version = "0.8.0"
repository = "https://github.com/namecare/app-store-server-library-rust"
homepage = "https://github.com/namecare/app-store-server-library-rust"
authors = ["tkhp", "namecare"]
Expand All @@ -23,12 +23,12 @@ pem = "3.0.3"
serde = { version = "1.0.195", features = ["derive"] }
serde_json = { version = "1.0.111" }
serde_with = { version = "3.5.0", features = ["chrono"] }
serde_repr = "0.1.18"
uuid = { version = "1.7.0", features = ["serde", "v4"] }
chrono = { version = "0.4.32", features = ["serde"] }
base64 = "0.21.7"

# Utils
thiserror = "1.0.56"

[dev-dependencies]
dotenv = "0.15.0"

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Specify `app-store-server-library` in your project's `Cargo.toml` file, under th

```rust
[dependencies]
app-store-server-library = "0.7.0"
app-store-server-library = "0.8.0"
```
Check
[crates.io](https://crates.io/crates/app-store-server-library) for the latest version number.
Expand Down
13 changes: 13 additions & 0 deletions assets/appTransaction.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"receiptType": "LocalTesting",
"appAppleId": 531412,
"bundleId": "com.example",
"applicationVersion": "1.2.3",
"versionExternalIdentifier": 512,
"receiptCreationDate": 1698148900000,
"originalPurchaseDate": 1698148800000,
"originalApplicationVersion": "1.1.2",
"deviceVerification": "device_verification_value",
"deviceVerificationNonce": "48ccfa42-7431-4f22-9908-7e88983e105a",
"preorderDate": 1698148700000
}
16 changes: 16 additions & 0 deletions assets/signedNotification.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"notificationType": "SUBSCRIBED",
"subtype": "INITIAL_BUY",
"notificationUUID": "002e14d5-51f5-4503-b5a8-c3a1af68eb20",
"data": {
"environment": "LocalTesting",
"appAppleId": 41234,
"bundleId": "com.example",
"bundleVersion": "1.2.3",
"signedTransactionInfo": "signed_transaction_info_value",
"signedRenewalInfo": "signed_renewal_info_value",
"status": 1
},
"version": "2.0",
"signedDate": 1698148900000
}
16 changes: 16 additions & 0 deletions assets/signedRenewalInfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"expirationIntent": 1,
"originalTransactionId": "12345",
"autoRenewProductId": "com.example.product.2",
"productId": "com.example.product",
"autoRenewStatus": 1,
"isInBillingRetryPeriod": true,
"priceIncreaseStatus": 0,
"gracePeriodExpiresDate": 1698148900000,
"offerType": 2,
"offerIdentifier": "abc.123",
"signedDate": 1698148800000,
"environment": "LocalTesting",
"recentSubscriptionStartDate": 1698148800000,
"renewalDate": 1698148850000
}
21 changes: 21 additions & 0 deletions assets/signedSummaryNotification.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"notificationType": "RENEWAL_EXTENSION",
"subtype": "SUMMARY",
"notificationUUID": "002e14d5-51f5-4503-b5a8-c3a1af68eb20",
"version": "2.0",
"signedDate": 1698148900000,
"summary": {
"environment": "LocalTesting",
"appAppleId": 41234,
"bundleId": "com.example",
"productId": "com.example.product",
"requestIdentifier": "efb27071-45a4-4aca-9854-2a1e9146f265",
"storefrontCountryCodes": [
"CAN",
"USA",
"MEX"
],
"succeededCount": 5,
"failedCount": 2
}
}
28 changes: 28 additions & 0 deletions assets/signedTransaction.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"transactionId":"23456",
"originalTransactionId":"12345",
"webOrderLineItemId":"34343",
"bundleId":"com.example",
"productId":"com.example.product",
"subscriptionGroupIdentifier":"55555",
"purchaseDate":1698148900000,
"originalPurchaseDate":1698148800000,
"expiresDate":1698149000000,
"quantity":1,
"type":"Auto-Renewable Subscription",
"appAccountToken": "7e3fb20b-4cdb-47cc-936d-99d65f608138",
"inAppOwnershipType":"PURCHASED",
"signedDate":1698148900000,
"revocationReason": 1,
"revocationDate": 1698148950000,
"isUpgraded": true,
"offerType":1,
"offerIdentifier": "abc.123",
"environment":"LocalTesting",
"transactionReason":"PURCHASE",
"storefront":"USA",
"storefrontId":"143441",
"price": 10990,
"currency": "USD",
"offerDiscountType": "PAY_AS_YOU_GO"
}
Loading

0 comments on commit 3334c48

Please sign in to comment.