/// <summary> /// Update card /// </summary> /// <param name="card">Card</param> /// <returns>Card</returns> public Card update(Card card) { card.setRequiredFields(new List <string> { CustomerVaultConstants.profileId, CustomerVaultConstants.id }); card.checkRequiredFields(); card.setRequiredFields(new List <string> { }); card.setOptionalFields(new List <string> { CustomerVaultConstants.cardExpiry, CustomerVaultConstants.nickName, CustomerVaultConstants.merchantRefNum, CustomerVaultConstants.holderName, CustomerVaultConstants.billingAddressId }); Request request = new Request( method: RequestType.PUT, uri: this.prepareURI("/profiles/" + card.profileId() + "/cards/" + card.id()), body: card ); dynamic response = this.client.processRequest(request); Card returnVal = new Card(response); returnVal.profileId(card.profileId()); return(returnVal); }