public class PaymentSummaryBuilder extends Object
BuyButton's PaymentSummary.| Constructor and Description |
|---|
PaymentSummaryBuilder(String currency,
PaymentType paymentType,
String merchantName,
BuyButtonBuilder parentBuilder)
Instantiates a new PaymentSummaryBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
PaymentSummaryBuilder |
addPriceLabel(PriceLabel priceLabel)
Adds a
PriceLabel to the PaymentSummary. |
PaymentSummaryBuilder |
addPriceLabel(String label,
String amount)
Adds a
PriceLabel to the PaymentSummary. |
PaymentSummaryBuilder |
addRequestedUserInfo(RequestedUserInfo requestedUserInfo)
Adds a
RequestedUserInfo to the PaymentSummary. |
BuyButton |
build()
Builds the
BuyButton. |
PaymentSummaryBuilder |
setTestPayment(boolean isTestPayment)
Sets the
PaymentSummary.isTestPayment. |
String |
toString() |
public PaymentSummaryBuilder(String currency, PaymentType paymentType, String merchantName, BuyButtonBuilder parentBuilder)
currency - the PaymentSummary.currency.paymentType - the PaymentSummary.paymentType.merchantName - the PaymentSummary.merchantName.parentBuilder - the parentBuilder.public PaymentSummaryBuilder setTestPayment(boolean isTestPayment)
PaymentSummary.isTestPayment.isTestPayment - the PaymentSummary.isTestPayment to set.public PaymentSummaryBuilder addPriceLabel(String label, String amount)
PriceLabel to the PaymentSummary.label - the PriceLabel.label.amount - the PriceLabel.amount.public PaymentSummaryBuilder addPriceLabel(PriceLabel priceLabel)
PriceLabel to the PaymentSummary.priceLabel - the PriceLabel to add to the
PaymentSummary.priceList.public PaymentSummaryBuilder addRequestedUserInfo(RequestedUserInfo requestedUserInfo)
RequestedUserInfo to the PaymentSummary.requestedUserInfo - the RequestedUserInfo to add to the
PaymentSummary.requestedUserInfo.public BuyButton build()
BuyButton.BuyButtonBuilder.buyButton.Copyright © 2017 BotMill. All rights reserved.