Exemple #1
0
 /// <summary>
 /// Chamada Assincrona da API <see href="https://dev.moip.com.br/v2.0/reference#criar-pedido">Criar um Pedido</see>
 /// </summary>
 /// <param name="req"></param>
 /// <returns></returns>
 public async Task <CreateOrdersResponse> CreateOrderAsync(CreateOrdersRequest req)
 {
     return(await DoPostAsync <CreateOrdersRequest, CreateOrdersResponse>(new Uri(ApiUri, "v2/orders"), req));
 }
Exemple #2
0
 /// <summary>
 /// Chamada Sincrona da API <see href="https://dev.moip.com.br/v2.0/reference#criar-pedido">Criar um Pedido</see>
 /// </summary>
 /// <param name="req"></param>
 /// <returns></returns>
 public CreateOrdersResponse CreateOrder(CreateOrdersRequest req)
 {
     return(DoPost <CreateOrdersRequest, CreateOrdersResponse>(new Uri(ApiUri, "v2/orders"), req));
 }