-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
139 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
using GoPay.Model.Payments; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Xml.Linq; | ||
|
||
namespace gopay_dotnet_standard_api.src.Model.Payment | ||
{ | ||
public class Card | ||
{ | ||
public enum CardStatus | ||
{ | ||
ACTIVE, | ||
DELETED | ||
} | ||
|
||
public Card() | ||
{ | ||
|
||
} | ||
|
||
[JsonProperty("card_id")] | ||
public long CardId { get; set; } | ||
|
||
[JsonProperty("card_number")] | ||
public string CardNumber { get; set; } | ||
|
||
[JsonProperty("card_expiration")] | ||
public string CardExpiration { get; set; } | ||
|
||
[JsonProperty("card_brand")] | ||
public string CardBrand { get; set; } | ||
|
||
[JsonProperty("card_issuer_country")] | ||
public string CardIssuerCountry { get; set; } | ||
|
||
[JsonProperty("card_issuer_bank")] | ||
public string CardIssuerBank { get; set; } | ||
|
||
[JsonProperty("card_fingerprint")] | ||
public string CardFingerprint { get; set; } | ||
|
||
[JsonProperty("card_token")] | ||
public string CardToken { get; set; } | ||
|
||
[JsonProperty("status")] | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public Nullable<CardStatus> Status; | ||
|
||
[JsonProperty("real_masked_pan")] | ||
public string RealMaskedPan { get; set; } | ||
|
||
[JsonProperty("card_art_url")] | ||
public string CardArtUrl { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return base.ToString(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters