Skip to content

Instantly share code, notes, and snippets.

@AlexJuca
Last active October 13, 2019 11:38
Show Gist options
  • Save AlexJuca/7d4d8665c072425e2027f6e34351d179 to your computer and use it in GitHub Desktop.
Save AlexJuca/7d4d8665c072425e2027f6e34351d179 to your computer and use it in GitHub Desktop.
val proxyPay = ProxyPayPayment()
proxyPay.config = ProxyPayConfig.getInstance()
proxyPay.referenceRequest = request
...
private void makeNormal(Customer customer) {
        Order o1 = new Order();
        customer.addOrder(o1);
        OrderLine line1 = new OrderLine(6, Product.find("TAL"));
        o1.addLine(line1);
        OrderLine line2 = new OrderLine(5, Product.find("HPK"));
        o1.addLine(line2);
        OrderLine line3 = new OrderLine(3, Product.find("LGV"));
        o1.addLine(line3);
        line2.setSkippable(true);
        o1.setRush(true);
    }
private void makeFluent(Customer customer) {
        customer.newOrder()
                .with(6, "TAL")
                .with(5, "HPK").skippable()
                .with(3, "LGV")
                .priorityRush();
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment