/// <summary> /// Update a single card on this payment profile /// </summary> /// <returns>Update response.</returns> public ProfileResponse UpdateCard(ProfilesAPI api, Card card) { return(api.UpdateCard(Id, card)); }
/// <summary> /// Delete a card on this payment profile /// </summary> /// <returns>Delete response.</returns> public ProfileResponse RemoveCard(ProfilesAPI api, int cardId) { return(api.RemoveCard(Id, cardId)); }
/// <summary> /// Add a card to this payment profile /// </summary> /// <returns>The card.</returns> public ProfileResponse AddCard(ProfilesAPI api, Card card) { return(api.AddCard(Id, card)); }
/// <summary> /// Add a tokenized card to this payment profile /// </summary> /// <returns>The card.</returns> public ProfileResponse AddCard(ProfilesAPI api, Token token) { return(api.AddCard(Id, token)); }
/// <summary> /// Get all cards on this profile /// </summary> /// <returns>The cards.</returns> /// <param name="gateway">Gateway.</param> public IList <Card> getCards(ProfilesAPI api) { return(api.GetCards(Id)); }
/// <summary> /// Get a card from a profile. Card intex starts at 1. /// For example if you have 3 cards on the profile to get the 2nd card you would pass /// in card id = 2 /// </summary> /// <returns>The card for the specified card id</returns> /// <param name="api">API.</param> /// <param name="cardId">Card identifier.</param> public Card getCard(ProfilesAPI api, int cardId) { return(api.GetCard(Id, cardId)); }
public ProfileResponse UpdateCard(ProfilesAPI api, Card card) { return api.UpdateCard (Id, card); }
public ProfileResponse RemoveCard(ProfilesAPI api, int cardId) { return api.RemoveCard (Id, cardId); }
/// <summary> /// Get all cards on this profile /// </summary> /// <returns>The cards.</returns> /// <param name="gateway">Gateway.</param> public IList<Card> getCards(ProfilesAPI api) { return api.GetCards (Id); }
/// <summary> /// Get a card from a profile. Card intex starts at 1. /// For example if you have 3 cards on the profile to get the 2nd card you would pass /// in card id = 2 /// </summary> /// <returns>The card for the specified card id</returns> /// <param name="api">API.</param> /// <param name="cardId">Card identifier.</param> public Card getCard(ProfilesAPI api, int cardId) { return api.GetCard (Id, cardId); }
/// <summary> /// Add a card to this payment profile /// </summary> /// <returns>The card.</returns> /// <param name="card">Card.</param> /// <param name="gateway">Gateway.</param> public ProfileResponse AddCard(ProfilesAPI api, Card card) { return api.AddCard (Id, card); }