All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.moip.api.OrderAPI Maven / Gradle / Ivy

There is a newer version: 4.7.6
Show newest version
package br.com.moip.api;

import br.com.moip.Client;
import br.com.moip.request.OrderRequest;
import br.com.moip.resource.Order;

public class OrderAPI {

    private final Client client;

    public OrderAPI(final Client client) {
        this.client = client;
    }

    public Order create(final OrderRequest order) {
        Order createdOrder = client.post("/v2/orders", order, Order.class);

        return createdOrder;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy