From 46f73a81796d2d15e97199d516c9fe16d2a2befd Mon Sep 17 00:00:00 2001 From: Abdul-Kadir Coskun Date: Tue, 5 Dec 2023 21:41:33 +1100 Subject: [PATCH] Fix: Correct GetProductsResponse Take 2 It works this time.. --- Models/General/GetProductsResponse.cs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Models/General/GetProductsResponse.cs b/Models/General/GetProductsResponse.cs index fbd2a2e..94251f9 100644 --- a/Models/General/GetProductsResponse.cs +++ b/Models/General/GetProductsResponse.cs @@ -2,18 +2,13 @@ namespace FlipPayApiLibrary.Models.General; -public interface IProductInfo{ } - public record GetProductsResponse( - [property: JsonPropertyName("products")] List? Products + [property: JsonPropertyName("products")] List? Products ); -public record ProductDetails( - [property: JsonPropertyName("productId")] string ProductId, - [property: JsonPropertyName("minAmount")] decimal MinAmount, - [property: JsonPropertyName("maxAmount")] decimal MaxAmount -) : IProductInfo; - -public record MerchantFacilityInfo( - [property: JsonPropertyName("merchantFacility")] bool MerchantFacility -) : IProductInfo; \ No newline at end of file +public record ProductInfo( + [property: JsonPropertyName("productId")] string? ProductId, + [property: JsonPropertyName("minAmount")] decimal? MinAmount, + [property: JsonPropertyName("maxAmount")] decimal? MaxAmount, + [property: JsonPropertyName("merchantFacility")] bool? MerchantFacility +); \ No newline at end of file