public static final class BusinessPayment.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(BusinessPayment.Decorator decorator,
java.lang.String paymentStatus,
java.lang.String paymentStatusDetail,
int iconId,
java.lang.String title) |
Builder(BusinessPayment.Decorator decorator,
java.lang.String paymentStatus,
java.lang.String paymentStatusDetail,
java.lang.String imageUrl,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
BusinessPayment |
build() |
BusinessPayment.Builder |
setBottomFragment(java.lang.Class<? extends android.support.v4.app.Fragment> zClass,
android.os.Bundle args)
Custom fragment that will appear after payment method description
inside Business result screen.
|
BusinessPayment.Builder |
setHelp(java.lang.String help)
if help is set, then a small box with help instructions will appear
|
BusinessPayment.Builder |
setPaymentMethodVisibility(boolean visible)
If value true is set, then payment method box
will appear with the amount value and payment method
options that were selected by the user.
|
BusinessPayment.Builder |
setPrimaryButton(ExitAction exitAction)
if Exit action is set, then a big primary button
will appear and the click action will trigger a resCode
that will be the same of the Exit action added.
|
BusinessPayment.Builder |
setReceiptId(java.lang.String receiptId)
If value is set, then receipt view will appear.
|
BusinessPayment.Builder |
setSecondaryButton(ExitAction exitAction)
if Exit action is set, then a small secondary button
will appear and the click action will trigger a resCode
that will be the same of the Exit action added.
|
BusinessPayment.Builder |
setStatementDescription(java.lang.String statementDescription)
If value true is set on
setPaymentMethodVisibility(boolean)
and the payment method is credit card
then the statementDescription will be shown on payment method view. |
BusinessPayment.Builder |
setSubtitle(java.lang.String subtitle)
When subtitle is set, then default
BusinessPayment.Decorator subtitle will be replaced
on the screen with it. |
BusinessPayment.Builder |
setTopFragment(java.lang.Class<? extends android.support.v4.app.Fragment> zClass,
android.os.Bundle args)
Custom fragment that will appear before payment method description
inside Business result screen.
|
public Builder(@NonNull BusinessPayment.Decorator decorator, @NonNull java.lang.String paymentStatus, @NonNull java.lang.String paymentStatusDetail, @DrawableRes int iconId, @NonNull java.lang.String title)
public Builder(@NonNull BusinessPayment.Decorator decorator, @NonNull java.lang.String paymentStatus, @NonNull java.lang.String paymentStatusDetail, @NonNull java.lang.String imageUrl, @NonNull java.lang.String title)
public BusinessPayment build()
public BusinessPayment.Builder setPrimaryButton(@Nullable ExitAction exitAction)
exitAction
- a ExitAction
public BusinessPayment.Builder setSecondaryButton(@Nullable ExitAction exitAction)
exitAction
- a ExitAction
public BusinessPayment.Builder setHelp(@Nullable java.lang.String help)
help
- a help messagepublic BusinessPayment.Builder setPaymentMethodVisibility(boolean visible)
visible
- visibility modepublic BusinessPayment.Builder setStatementDescription(java.lang.String statementDescription)
setPaymentMethodVisibility(boolean)
and the payment method is credit card
then the statementDescription will be shown on payment method view.statementDescription
- disclaimer textpublic BusinessPayment.Builder setReceiptId(java.lang.String receiptId)
receiptId
- the receipt id to be shown.public BusinessPayment.Builder setTopFragment(@NonNull java.lang.Class<? extends android.support.v4.app.Fragment> zClass, @Nullable android.os.Bundle args)
zClass
- fragment classpublic BusinessPayment.Builder setBottomFragment(@NonNull java.lang.Class<? extends android.support.v4.app.Fragment> zClass, @Nullable android.os.Bundle args)
zClass
- fragment classpublic BusinessPayment.Builder setSubtitle(@Nullable java.lang.String subtitle)
BusinessPayment.Decorator
subtitle will be replaced
on the screen with it.subtitle
- subtitle text