private static async Task <GetCreditCardResponse> GetCreditCardAsync(ICartaoProtegidoClient client, string token) { var request = new GetCreditCardRequest { JustClickKey = token, RequestId = Guid.NewGuid() }; return(await client.GetCreditCardAsync(request)); }
private static async Task <SaveCreditCardResponse> SaveCreditCardAsync(ICartaoProtegidoClient client) { var request = new SaveCreditCardRequest { CustomerName = "Bjorn Ironside", CustomerIdentification = "762.502.520-96", CardHolder = "BJORN IRONSIDE", CardExpiration = "10/2025", CardNumber = "1000100010001000", JustClickAlias = DateTime.Now.Ticks.ToString() }; return(await client.SaveCreditCardAsync(request)); }