Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Order.Builder |
affiliateId(String id) |
Order.Builder |
amount(BigDecimal amount) |
Order.Builder |
amount(Double amount) |
Order |
build() |
Order.Builder |
currency(String code) |
Order.Builder |
discountCode(String code) |
Order.Builder |
hasGiftMessage(boolean hasGiftMessage) |
Order.Builder |
isGift(boolean isGift) |
Order.Builder |
referrerUri(URI uri) |
Order.Builder |
subaffiliateId(String id) |
public Order.Builder amount(BigDecimal amount)
amount
- The total order amount for the transaction.public Order.Builder amount(Double amount)
amount
- The total order amount for the transaction.public Order.Builder currency(String code)
code
- The ISO 4217 currency code for the currency used in the
transaction.IllegalArgumentException
- when currency is not a valid
three-letter currency code.public Order.Builder discountCode(String code)
code
- The discount code applied to the transaction. If
multiple discount codes were used, please
separate them with a comma.public Order.Builder affiliateId(String id)
id
- The ID of the affiliate where the order is coming from.public Order.Builder isGift(boolean isGift)
isGift
- Whether order was marked as a gift by the purchaser.public Order.Builder hasGiftMessage(boolean hasGiftMessage)
hasGiftMessage
- Whether the purchaser included a gift message.public Order.Builder subaffiliateId(String id)
id
- The ID of the sub-affiliate where the order is coming
from.public Order.Builder referrerUri(URI uri)
uri
- The URI of the referring site for this order.public Order build()
Order
created from the
fields set on this builder.Copyright © 2016 MaxMind, Inc.. All rights reserved.