br.com.moip.api.InvoiceAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Moip v2 APIs
package br.com.moip.api;
import br.com.moip.Client;
import br.com.moip.request.InvoiceRequest;
import br.com.moip.resource.Invoice;
public class InvoiceAPI {
private final Client client;
public InvoiceAPI(final Client client) {
this.client = client;
}
public Invoice create(final InvoiceRequest invoice) {
Invoice createdInvoice = client.post("/v2/invoices", invoice, Invoice.class);
return createdInvoice;
}
}