Skip to content

Commit

Permalink
Updated CardInfo entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Silviana Ghita committed Dec 21, 2023
1 parent 6a5d28b commit 884e512
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions MangoPay.SDK/Core/Enumerations/CardInfoType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace MangoPay.SDK.Core.Enumerations
{
public enum CardInfoType
{
DEBIT,
CREDIT,
CHARGE_CARD
}
}
6 changes: 4 additions & 2 deletions MangoPay.SDK/Entities/CardInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using MangoPay.SDK.Core.Enumerations;

namespace MangoPay.SDK.Entities
{
/// <summary>Class represents informations about the cards</summary>
Expand All @@ -10,10 +12,10 @@ public class CardInfo
public string IssuingBank;

/// <summary>The country where the card was issued.</summary>
public string IssuerCountryCode;
public CountryIso IssuerCountryCode;

/// <summary>The type of card product: DEBIT, CREDIT, CHARGE CARD.</summary>
public string Type;
public CardInfoType Type;

/// <summary>The card brand. Examples include: AMERICAN EXPRESS, DISCOVER, JCB, MASTERCARD, VISA, etc.</summary>
public string Brand;
Expand Down

0 comments on commit 884e512

Please sign in to comment.