From 397c3c95d901dcac190587dd64b63ba72c480e81 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Fri, 3 Mar 2023 13:53:16 +0100 Subject: [PATCH] Adds a CardPrice class --- JpnCardsPokemon.Sdk/Api/CardPrice.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 JpnCardsPokemon.Sdk/Api/CardPrice.cs diff --git a/JpnCardsPokemon.Sdk/Api/CardPrice.cs b/JpnCardsPokemon.Sdk/Api/CardPrice.cs new file mode 100644 index 0000000..8c29509 --- /dev/null +++ b/JpnCardsPokemon.Sdk/Api/CardPrice.cs @@ -0,0 +1,17 @@ +using System; +using System.Text.Json.Serialization; + +namespace JpnCardsPokemon.Sdk.Api; + +public class CardPrice +{ + public string Condition { get; set; } + + [JsonPropertyName("priceAmount")] public decimal Price { get; set; } + + [JsonPropertyName("priceCurrency")] public string Currency { get; set; } + + [JsonPropertyName("dateUpdated")] public DateTime? UpdatedDate { get; set; } + + public string? ListingUrl { get; set; } +} \ No newline at end of file