-
- All Implemented Interfaces:
public class CheckoutData.Builder
-
-
Method Summary
Modifier and Type Method Description CheckoutData.Builder
setShipping(@Nullable() ShippingAddress shipping)
Sets the {link ShippingAddress}. CheckoutData.Builder
setBilling(@Nullable() BillingAddress billing)
Sets the BillingAddress. CheckoutData.Builder
setCart(@Nullable() Cart cart)
Sets the Cart. CheckoutData.Builder
setAmount(@Nullable() String amount)
Sets the amount. CheckoutData.Builder
setCurrency(@Nullable() String currency)
Sets the currency. CheckoutData.Builder
setTaxAmount(@Nullable() String taxAmount)
Sets the tax amount. CheckoutData.Builder
setMerchantTransactionId(@Nullable() String merchantTransactionId)
Sets the merchant transaction id. CheckoutData.Builder
setMerchant(@Nullable() Merchant merchant)
Sets the Merchant. CheckoutData
build()
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.
-
-
-
-