From c986e17539f6a093434ff0a4d4692f2d0faedff8 Mon Sep 17 00:00:00 2001 From: matmiranda Date: Sun, 27 Aug 2023 13:13:49 -0300 Subject: [PATCH] #4 --- PagBank/Model/Address.cs | 2 ++ PagBank/PagBank.csproj | 2 +- PagBankTest/UnitTest.cs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PagBank/Model/Address.cs b/PagBank/Model/Address.cs index f9b3ed8..b68c927 100644 --- a/PagBank/Model/Address.cs +++ b/PagBank/Model/Address.cs @@ -14,6 +14,8 @@ public class Address public string? PostalCode { get; set; } [JsonPropertyName("country"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Country { get; set; } + [JsonPropertyName("region"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? Region { get; set; } [JsonPropertyName("region_code"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? RegionCode { get; set; } [JsonPropertyName("city"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] diff --git a/PagBank/PagBank.csproj b/PagBank/PagBank.csproj index f61e29c..6d32760 100644 --- a/PagBank/PagBank.csproj +++ b/PagBank/PagBank.csproj @@ -4,7 +4,7 @@ net7.0 enable enable - 1.1.1 + 1.1.2 Matheus Miranda, PagBank True pagbank;dotnet diff --git a/PagBankTest/UnitTest.cs b/PagBankTest/UnitTest.cs index 7966dad..6f2302c 100644 --- a/PagBankTest/UnitTest.cs +++ b/PagBankTest/UnitTest.cs @@ -126,7 +126,7 @@ public async Task MockExemploBasico() Type = "", Boleto = new Boleto { - DueDate = "", + DueDate = "2023-06-20", Holder = new Holder { }, InstructionLines = new InstructionLines {