Skip to content

Commit

Permalink
#4
Browse files Browse the repository at this point in the history
  • Loading branch information
matmiranda committed Aug 18, 2023
1 parent ffa7ed8 commit 1e95dac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PagBank/Model/AuthenticationMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class AuthenticationMethod
[JsonPropertyName("type"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Type { get; set; }
[JsonPropertyName("id"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Td { get; set; }
public string? Id { get; set; }
[JsonPropertyName("cavv"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Cavv { get; set; }
[JsonPropertyName("eci"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
Expand Down
2 changes: 1 addition & 1 deletion PagBank/Model/QrCodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ public class QrCodes
[JsonPropertyName("amount"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Amount? Amount { get; set; }
[JsonPropertyName("expiration_date"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ExpirationDate { get; set; }
public DateTimeOffset? ExpirationDate { get; set; }
}
}
4 changes: 2 additions & 2 deletions PagBankTest/UnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public async Task MockExemploBasico()
Cavv = "",
DstransId = "",
Eci = "",
Td = "",
Id = "",
Type = "",
Version = "",
Xid = ""
Expand Down Expand Up @@ -267,7 +267,7 @@ public async Task MockExemploBasico()
new QrCodes
{
Amount = new Amount { },
ExpirationDate = "" }
ExpirationDate = new DateTimeOffset(DateTime.Now) }
}
};

Expand Down

0 comments on commit 1e95dac

Please sign in to comment.