public class BuyButton extends Button
| Modifier and Type | Field and Description |
|---|---|
protected String |
title
The button title.
|
| Constructor and Description |
|---|
BuyButton(ButtonType type,
String payload,
PaymentSummary paymentSummary)
Instantiates a new buy button.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPayload()
Gets the payload.
|
PaymentSummary |
getPaymentSummary()
Gets the payment summary.
|
String |
getTitle()
Gets the title.
|
void |
setPayload(String payload)
Sets the payload.
|
void |
setPaymentSummary(PaymentSummary paymentSummary)
Sets the payment summary.
|
void |
setTitle(String title)
Sets the title.
|
@Size(max=20) @NotBlank protected String title
public BuyButton(ButtonType type, String payload, PaymentSummary paymentSummary)
type - the typepayload - the payloadpaymentSummary - the payment summarypublic String getPayload()
public void setPayload(String payload)
payload - the new payloadpublic PaymentSummary getPaymentSummary()
public void setPaymentSummary(PaymentSummary paymentSummary)
paymentSummary - the new payment summarypublic String getTitle()
public void setTitle(String title)
title - the new titleCopyright © 2016 BotMill. All rights reserved.