1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-07 02:52:50 -05:00

UsingInAppPurchase prop on sub models

This commit is contained in:
Kyle Spearrin
2019-09-19 16:31:11 -04:00
parent ad95dd6bb2
commit 8340b22c2a
2 changed files with 3 additions and 56 deletions

View File

@ -19,6 +19,7 @@ namespace Bit.Core.Models.Api
MaxStorageGb = user.MaxStorageGb;
License = license;
Expiration = License.Expires;
UsingInAppPurchase = subscription.UsingInAppPurchase;
}
public SubscriptionResponseModel(User user, UserLicense license = null)
@ -42,6 +43,7 @@ namespace Bit.Core.Models.Api
public BillingSubscription Subscription { get; set; }
public UserLicense License { get; set; }
public DateTime? Expiration { get; set; }
public bool UsingInAppPurchase { get; set; }
}
public class BillingSubscription