japanese-pokemon-cards-sdk-.../JpnCardsPokemon.Sdk/Api/CardPrice.cs

56 lines
1.7 KiB
C#
Raw Permalink Normal View History

2023-03-03 13:53:16 +01:00
using System;
using System.Text.Json.Serialization;
using JpnCardsPokemon.Sdk.Utils.JsonConverter;
2023-03-03 13:53:16 +01:00
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>
[JsonPropertyName("variant")]
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>
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")]
[JsonConverter(typeof(CustomDateTimeConverter))]
2023-03-03 17:49:56 +01:00
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>
[JsonPropertyName("vendor")]
public string? Seller { get; set; }
2023-03-03 13:53:16 +01:00
}