Ejemplo n.º 1
0
 /// <summary>
 /// Chamada Assincrona da API <see href="https://dev.moip.com.br/v2.0/reference#criar-um-cliente">Criar um cliente</see>
 /// </summary>
 /// <param name="req"></param>
 /// <returns></returns>
 public async Task <CreateCustomersResponse> CreateCustomerAsync(CreateCustomersRequest req)
 {
     return(await DoPostAsync <CreateCustomersRequest, CreateCustomersResponse>(new Uri(ApiUri, "v2/customers"), req));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Chamada Sincrona da API <see href="https://dev.moip.com.br/v2.0/reference#criar-um-cliente">Criar um cliente </see>
 /// </summary>
 /// <param name="req"></param>
 /// <returns></returns>
 public CreateCustomersResponse CreateCustomer(CreateCustomersRequest req)
 {
     return(DoPost <CreateCustomersRequest, CreateCustomersResponse>(new Uri(ApiUri, "v2/customers"), req));
 }