diff --git a/MangoPay.SDK/Core/Enumerations/CardInfoType.cs b/MangoPay.SDK/Core/Enumerations/CardInfoType.cs new file mode 100644 index 0000000..58553a9 --- /dev/null +++ b/MangoPay.SDK/Core/Enumerations/CardInfoType.cs @@ -0,0 +1,9 @@ +namespace MangoPay.SDK.Core.Enumerations +{ + public enum CardInfoType + { + DEBIT, + CREDIT, + CHARGE_CARD + } +} \ No newline at end of file diff --git a/MangoPay.SDK/Entities/CardInfo.cs b/MangoPay.SDK/Entities/CardInfo.cs index 5ab6e4a..7b3cc9a 100644 --- a/MangoPay.SDK/Entities/CardInfo.cs +++ b/MangoPay.SDK/Entities/CardInfo.cs @@ -1,3 +1,5 @@ +using MangoPay.SDK.Core.Enumerations; + namespace MangoPay.SDK.Entities { /// Class represents informations about the cards @@ -10,10 +12,10 @@ public class CardInfo public string IssuingBank; /// The country where the card was issued. - public string IssuerCountryCode; + public CountryIso IssuerCountryCode; /// The type of card product: DEBIT, CREDIT, CHARGE CARD. - public string Type; + public CardInfoType Type; /// The card brand. Examples include: AMERICAN EXPRESS, DISCOVER, JCB, MASTERCARD, VISA, etc. public string Brand;