Skip to content

Commit ea20d51

Browse files
committed
expose AppAccountToken in JWSRenewalInfoDecodedPayload
1 parent f96144c commit ea20d51

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

AppStoreServerNotificationsV2.Tests/JWSRenewalInfoDecodedPayload_Tests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public void JWSRenewalInfoDecodedPayload_Deserializes_Successfully()
2626
"com.example.product",
2727
DateTimeOffset.FromUnixTimeMilliseconds(1624446641000),
2828
DateTimeOffset.FromUnixTimeMilliseconds(1624446641000),
29-
DateTimeOffset.FromUnixTimeMilliseconds(1624446641000)
29+
DateTimeOffset.FromUnixTimeMilliseconds(1624446641000),
30+
"fd12746f-2d3a-46c8-bff8-55b75ed06aca"
3031
);
3132

3233
// Act
@@ -47,5 +48,6 @@ public void JWSRenewalInfoDecodedPayload_Deserializes_Successfully()
4748
Assert.Equal(expectedPayload.RecentSubscriptionStartDate, actualPayload.RecentSubscriptionStartDate);
4849
Assert.Equal(expectedPayload.RenewalDate, actualPayload.RenewalDate);
4950
Assert.Equal(expectedPayload.SignedDate, actualPayload.SignedDate);
51+
Assert.Equal(expectedPayload.AppAccountToken, actualPayload.AppAccountToken);
5052
}
5153
}

AppStoreServerNotificationsV2.Tests/Payloads/JWSRenewalInfoDecodedPayload.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
"productId": "com.example.product",
1313
"recentSubscriptionStartDate": 1624446641000,
1414
"renewalDate": 1624446641000,
15-
"signedDate": 1624446641000
15+
"signedDate": 1624446641000,
16+
"appAccountToken": "fd12746f-2d3a-46c8-bff8-55b75ed06aca"
1617
}

AppStoreServerNotificationsV2/AppStoreServerNotificationsV2.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Version>0.8.0</Version>
4+
<Version>0.9.0</Version>
55
<IncludeSymbols>true</IncludeSymbols>
66
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
77
</PropertyGroup>
@@ -17,7 +17,7 @@
1717
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
1818
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
1919
<PackageReleaseNotes>
20-
* add REFUND_REVERSED notification type
20+
* add AppAccountToken to JWSRenewalInfoDecodedPayload
2121
</PackageReleaseNotes>
2222
</PropertyGroup>
2323

AppStoreServerNotificationsV2/Models/JWSRenewalInfoDecodedPayload.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ public record JWSRenewalInfoDecodedPayload(string AutoRenewProductId, int AutoRe
44
string Environment, int ExpirationIntent, DateTimeOffset GracePeriodExpiresDate,
55
bool IsInBillingRetryPeriod, string OfferIdentifier, int OfferType, string OriginalTransactionId,
66
int PriceIncreaseStatus, string ProductId, DateTimeOffset RecentSubscriptionStartDate,
7-
DateTimeOffset RenewalDate, DateTimeOffset SignedDate);
7+
DateTimeOffset RenewalDate, DateTimeOffset SignedDate, string? AppAccountToken = null);

0 commit comments

Comments
 (0)