mirror of
https://github.com/bitwarden/server.git
synced 2025-04-14 09:38:16 -05:00
update receipt object
This commit is contained in:
parent
9e51eaea28
commit
c82947a5f8
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Bit.Billing.Models
|
||||
@ -7,16 +8,17 @@ namespace Bit.Billing.Models
|
||||
{
|
||||
[JsonProperty("status")]
|
||||
public int? Status { get; set; }
|
||||
[JsonProperty("environment")]
|
||||
public string Environment { 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; }
|
||||
public List<AppleTransaction> 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")]
|
||||
@ -27,31 +29,38 @@ namespace Bit.Billing.Models
|
||||
public string ExpirationIntent { get; set; }
|
||||
[JsonProperty("is_in_billing_retry_period")]
|
||||
public string IsInBillingRetryPeriod { get; set; }
|
||||
*/
|
||||
|
||||
public class AppleReceipt
|
||||
{
|
||||
[JsonProperty("receipt_type")]
|
||||
public string ReceiptType { get; set; }
|
||||
[JsonProperty("bundle_id")]
|
||||
public string BundleId { get; set; }
|
||||
[JsonProperty("receipt_creation_date")]
|
||||
public DateTime ReceiptCreationDate { get; set; }
|
||||
[JsonProperty("in_app")]
|
||||
public List<AppleTransaction> InApp { get; set; }
|
||||
}
|
||||
|
||||
public class AppleTransaction
|
||||
{
|
||||
[JsonProperty("quantity")]
|
||||
public string Quantity { get; set; }
|
||||
[JsonProperty("product_id")]
|
||||
public string ProductId { get; set; }
|
||||
[JsonProperty("transaction_id")]
|
||||
public string TransactionId { get; set; }
|
||||
[JsonProperty("original_transaction_id")]
|
||||
public string OriginalTransactionId { get; set; }
|
||||
[JsonProperty("purchase_date")]
|
||||
public DateTime PurchaseDate { get; set; }
|
||||
[JsonProperty("original_purchase_date")]
|
||||
public DateTime OriginalPurchaseDate { get; set; }
|
||||
[JsonProperty("expires_date_formatted")]
|
||||
[JsonProperty("expires_date")]
|
||||
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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user