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

br.com.moip.resource.links.OrderLinks Maven / Gradle / Ivy

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

public class OrderLinks {

    private Href self;
    private Checkout checkout;

    public String getSelf() {
        return self.getHref();
    }

    public Checkout getCheckout() {
        return checkout;
    }

    public String payCheckout() { return checkout.getPayCheckout().getRedirectHref(); }

    public String payCreditCard() {
        return checkout.getPayCreditCard().getRedirectHref();
    }

    public String payBoleto() {
        return checkout.getPayBoleto().getRedirectHref();
    }

    public String payOnlineBankDebitItau() {
        return checkout.getPayOnlineBankDebitItau().getRedirectHref();
    }

    @Override
    public String toString() {
        return new StringBuilder("OrderLinks{")
            .append("self=").append(self)
            .append(", checkout=").append(checkout)
            .append('}').toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy