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

br.com.moip.api.MultiorderAPI 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.MultiorderRequest;
import br.com.moip.resource.Multiorder;

public class MultiorderAPI {

    private final Client client;

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

    public Multiorder create(MultiorderRequest multiorder) {
        return client.post("/v2/multiorders", multiorder, Multiorder.class);
    }

    public Multiorder get(String multiorderId) {
        return client.get("/v2/multiorders/" + multiorderId, Multiorder.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy