2023-03-03 13:53:16 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace JpnCardsPokemon.Sdk.Api;
|
|
|
|
|
|
2023-03-03 17:49:56 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Contains information about card price.
|
|
|
|
|
/// </summary>
|
2023-03-03 13:53:16 +01:00
|
|
|
|
public class CardPrice
|
|
|
|
|
{
|
2023-03-03 17:49:56 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Specifies the card version. Almost always will be 'Regular' but may contain other versions like 'Reverse Holo',
|
|
|
|
|
/// etc.
|
|
|
|
|
/// </summary>
|
2023-03-24 17:39:15 +01:00
|
|
|
|
[JsonPropertyName("variant")]
|
2023-03-03 15:23:12 +01:00
|
|
|
|
public string? Version { get; set; }
|
|
|
|
|
|
2023-03-03 17:49:56 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Specifies the card condition. Often will be a rating in format of 'A+', 'A', etc. but also can be 'NM' or other
|
|
|
|
|
/// similar descriptive strings.
|
|
|
|
|
/// </summary>
|
2023-03-03 15:23:12 +01:00
|
|
|
|
public string? Condition { get; set; }
|
2023-03-03 13:53:16 +01:00
|
|
|
|
|
2023-03-03 17:49:56 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The actual price for the specified version and condition.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("priceAmount")]
|
|
|
|
|
public decimal Price { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The currency used for the <see cref="Price" />.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Almost always will be 'JYP' for Japanese Yen.</remarks>
|
|
|
|
|
[JsonPropertyName("priceCurrency")]
|
|
|
|
|
public string? Currency { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Date when the price information was updated last.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("dateUpdated")]
|
|
|
|
|
public DateTime? UpdatedDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An URL to the listing.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("listingUrl")]
|
|
|
|
|
public string? ListingUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of the seller who is listing the card.
|
|
|
|
|
/// </summary>
|
2023-03-24 17:39:15 +01:00
|
|
|
|
[JsonPropertyName("vendor")]
|
2023-03-03 15:23:12 +01:00
|
|
|
|
public string? Seller { get; set; }
|
2023-03-03 13:53:16 +01:00
|
|
|
|
}
|