예제 #1
0
 /// <summary>
 /// Chamada Assincrona da API <see href="https://dev.moip.com.br/v2.0/reference#adicionar-cartao-de-credito">Adicionar um cartão de crédito</see>
 /// </summary>
 /// <param name="idCustomer">Id do Cliente no Moip</param>
 /// <param name="req"></param>
 /// <returns></returns>
 public async Task <CreditCardAddCreditCardResponse> AddCreditCardAsync(string idCustomer, AddCreditCardRequest req)
 {
     return(await DoPostAsync <AddCreditCardRequest, CreditCardAddCreditCardResponse>(new Uri(ApiUri, $"v2/customers/{idCustomer}/fundinginstruments"), req));
 }
예제 #2
0
 /// <summary>
 /// Chamada Sincrona da API <see href="https://dev.moip.com.br/v2.0/reference#adicionar-cartao-de-credito">Adicionar um cartão de crédito</see>
 /// </summary>
 /// <param name="idCustomer">Id do Cliente no Moip</param>
 /// <param name="req"></param>
 /// <returns></returns>
 public CreditCardAddCreditCardResponse AddCreditCard(string idCustomer, AddCreditCardRequest req)
 {
     return(DoPost <AddCreditCardRequest, CreditCardAddCreditCardResponse>(new Uri(ApiUri, $"v2/customers/{idCustomer}/fundinginstruments"), req));
 }