mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Apple Iap service
This commit is contained in:
57
src/Core/Models/Business/AppleReceiptStatus.cs
Normal file
57
src/Core/Models/Business/AppleReceiptStatus.cs
Normal file
@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Bit.Billing.Models
|
||||
{
|
||||
public class AppleReceiptStatus
|
||||
{
|
||||
[JsonProperty("status")]
|
||||
public int? Status { get; set; }
|
||||
[JsonProperty("latest_receipt")]
|
||||
public string LatestReceipt { get; set; }
|
||||
[JsonProperty("receipt")]
|
||||
public AppleReceipt Receipt { get; set; }
|
||||
[JsonProperty("latest_receipt_info")]
|
||||
public AppleReceipt LatestReceiptInfo { get; set; }
|
||||
[JsonProperty("latest_expired_receipt_info")]
|
||||
public AppleReceipt LatestExpiredReceiptInfo { get; set; }
|
||||
[JsonProperty("environment")]
|
||||
public string Environment { get; set; }
|
||||
[JsonProperty("auto_renew_status")]
|
||||
public string AutoRenewStatus { get; set; }
|
||||
[JsonProperty("auto_renew_product_id")]
|
||||
public string AutoRenewProductId { get; set; }
|
||||
[JsonProperty("notification_type")]
|
||||
public string NotificationType { get; set; }
|
||||
[JsonProperty("expiration_intent")]
|
||||
public string ExpirationIntent { get; set; }
|
||||
[JsonProperty("is_in_billing_retry_period")]
|
||||
public string IsInBillingRetryPeriod { get; set; }
|
||||
|
||||
public class AppleReceipt
|
||||
{
|
||||
[JsonProperty("purchase_date")]
|
||||
public DateTime PurchaseDate { get; set; }
|
||||
[JsonProperty("original_purchase_date")]
|
||||
public DateTime OriginalPurchaseDate { get; set; }
|
||||
[JsonProperty("expires_date_formatted")]
|
||||
public DateTime ExpiresDate { get; set; }
|
||||
[JsonProperty("bid")]
|
||||
public string Bid { get; set; }
|
||||
[JsonProperty("bvrs")]
|
||||
public string Bvrs { get; set; }
|
||||
[JsonProperty("product_id")]
|
||||
public string ProductId { get; set; }
|
||||
[JsonProperty("item_id")]
|
||||
public string ItemId { get; set; }
|
||||
[JsonProperty("web_order_line_item_id")]
|
||||
public string WebOrderLineItemId { get; set; }
|
||||
[JsonProperty("quantity")]
|
||||
public string Quantity { get; set; }
|
||||
[JsonProperty("transaction_id")]
|
||||
public string TransactionId { get; set; }
|
||||
[JsonProperty("unique_identifier")]
|
||||
public string UniqueIdentifier { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user