public class Order extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Order.Line |
An order line in a sale order.
|
Constructor | Description |
---|---|
Order() |
Modifier and Type | Method | Description |
---|---|---|
Order.Line |
addProduct(String productKey) |
Adds an order line for the specified product and returns the new order line.
|
Order.Line |
addTicket(String ticket) |
Adds an order line for the variant or product specified by a ticket.
|
Order.Line |
addVariant(String variantKey) |
Adds an order line for the specified variant and return the new order line.
|
Order.Line |
addVariant(String productKey,
String variantKey) |
Adds an order line for the specified variant and return the new order line.
|
public Order.Line addProduct(String productKey)
productKey
- The key of the purchased product.public Order.Line addVariant(String variantKey)
variantKey
- The key of the purchased variant.public Order.Line addVariant(String productKey, String variantKey)
productKey
- The key of the product to which the variant belongs.variantKey
- The key of the purchased variant.public Order.Line addTicket(String ticket)
ticket
- The ticket as retrieved from an earlier panel request.Copyright © 2020 Apptus Technologies AB. All rights reserved.