/// <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)); }
/// <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)); }