Skip to content

检索一个支付票据

java

import com.basicex.sdk.BasicExClient;
import com.basicex.sdk.exception.BasicexException;
import com.basicex.sdk.model.InvoiceObject;

import java.io.IOException;
import java.security.cert.CertificateException;

public class BasicExTest{
    private static String configPath = "~/4d1ebd88-8154-4ca1-b1c6-051b7d28c204/config.json";
    public static void main(String[] args) throws CertificateException, IOException, BasicexException {
        BasicExClient client = new BasicExClient(configPath);
        InvoiceObject invoiceObject = client.invoices().get("5f9b1b4b-3b7c-4b7a-8b1a-3b5b4b7a8b1a");
        System.out.println(invoiceObject.getInvoiceId());
    }
}