-
- All Implemented Interfaces:
public class CheckoutData.Builder
-
-
Method Summary
Modifier and Type Method Description CheckoutData.BuildersetShipping(@Nullable() ShippingAddress shipping)Sets the {link ShippingAddress}. CheckoutData.BuildersetBilling(@Nullable() BillingAddress billing)Sets the BillingAddress. CheckoutData.BuildersetCart(@Nullable() Cart cart)Sets the Cart. CheckoutData.BuildersetAmount(@Nullable() String amount)Sets the amount. CheckoutData.BuildersetCurrency(@Nullable() String currency)Sets the currency. CheckoutData.BuildersetTaxAmount(@Nullable() String taxAmount)Sets the tax amount. CheckoutData.BuildersetMerchantTransactionId(@Nullable() String merchantTransactionId)Sets the merchant transaction id. CheckoutData.BuildersetMerchant(@Nullable() Merchant merchant)Sets the Merchant. CheckoutDatabuild()Creates a new CheckoutData. -
-
Method Detail
-
setShipping
@NonNull() CheckoutData.Builder setShipping(@Nullable() ShippingAddress shipping)
Sets the {link ShippingAddress}.
- Parameters:
shipping- the shipping address.
-
setBilling
@NonNull() CheckoutData.Builder setBilling(@Nullable() BillingAddress billing)
Sets the BillingAddress.
- Parameters:
billing- the billing address.
-
setCart
@NonNull() CheckoutData.Builder setCart(@Nullable() Cart cart)
Sets the Cart.
- Parameters:
cart- the cart.
-
setAmount
@NonNull() CheckoutData.Builder setAmount(@Nullable() String amount)
Sets the amount.
- Parameters:
amount- the amount.
-
setCurrency
@NonNull() CheckoutData.Builder setCurrency(@Nullable() String currency)
Sets the currency.
- Parameters:
currency- the currency
-
setTaxAmount
@NonNull() CheckoutData.Builder setTaxAmount(@Nullable() String taxAmount)
Sets the tax amount.
- Parameters:
taxAmount- the tax amount.
-
setMerchantTransactionId
@NonNull() CheckoutData.Builder setMerchantTransactionId(@Nullable() String merchantTransactionId)
Sets the merchant transaction id.
- Parameters:
merchantTransactionId- the merchant transaction id.
-
setMerchant
@NonNull() CheckoutData.Builder setMerchant(@Nullable() Merchant merchant)
Sets the Merchant.
- Parameters:
merchant- the merchant.
-
build
@NonNull() CheckoutData build()
Creates a new CheckoutData.
-
-
-
-