Class CheckoutPaymentMethodOption
- All Implemented Interfaces:
Serializable
- Author:
- Marie Standeven (mariestandeven)
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fees are represented as separate CartItems but not placed in any fulfillment group to avoid repricing the fulfillment costs. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The maximum total a cart can have for this payment method, per currency.The minimum total a cart can have for this payment method, per currency.getFees()
The list of applicable fees for this payment option.List of exclusion criteria to compare against aFulfillmentGroup
to determine if this payment option is allowed.List of inclusion criteria to compare against aFulfillmentGroup
to determine if this payment option is allowed.The gateway configured for this payment method.The type of this payment like Credit Card or Gift Card.int
hashCode()
void
setCartMaxTotalRestriction
(Map<String, BigDecimal> cartMaxTotalRestriction) The maximum total a cart can have for this payment method, per currency.void
setCartMinTotalRestriction
(Map<String, BigDecimal> cartMinTotalRestriction) The minimum total a cart can have for this payment method, per currency.void
The list of applicable fees for this payment option.void
setFulfillmentExclusions
(Map<String, List<String>> fulfillmentExclusions) List of exclusion criteria to compare against aFulfillmentGroup
to determine if this payment option is allowed.void
setFulfillmentInclusions
(Map<String, List<String>> fulfillmentInclusions) List of inclusion criteria to compare against aFulfillmentGroup
to determine if this payment option is allowed.void
setPaymentMethodGatewayType
(String paymentMethodGatewayType) The gateway configured for this payment method.void
setPaymentMethodType
(String paymentMethodType) The type of this payment like Credit Card or Gift Card.toString()
-
Constructor Details
-
CheckoutPaymentMethodOption
public CheckoutPaymentMethodOption()
-
-
Method Details
-
getPaymentMethodType
The type of this payment like Credit Card or Gift Card. -
getPaymentMethodGatewayType
The gateway configured for this payment method. -
getFees
The list of applicable fees for this payment option. Can be discountable and/or taxable.Will only be applied in the case of Collect on Delivery (COD) type payments by default. We will eventually extend out of box support to any payment options.
-
getCartMinTotalRestriction
The minimum total a cart can have for this payment method, per currency.Will only be applied in the case of Collect on Delivery (COD) type payments by default. We will eventually extend out of box support to any payment options.
-
getCartMaxTotalRestriction
The maximum total a cart can have for this payment method, per currency.Will only be applied in the case of Collect on Delivery (COD) type payments by default. We will eventually extend out of box support to any payment options.
-
getFulfillmentInclusions
List of inclusion criteria to compare against aFulfillmentGroup
to determine if this payment option is allowed. The key is the path of the field to compare with on the group. The value is the list of valid values.Example values:
address.country -> ['US', 'UK', 'CA']
fulfillmentOption.name -> ['STANDARD', 'PRIORITY', 'EXPRESS']
-
getFulfillmentExclusions
List of exclusion criteria to compare against aFulfillmentGroup
to determine if this payment option is allowed. The key is the path of the field to compare with on the group. The value is the list of valid values.Example values:
address.country -> ['US', 'UK', 'CA']
fulfillmentOption.name -> ['STANDARD', 'PRIORITY', 'EXPRESS']
-
setPaymentMethodType
The type of this payment like Credit Card or Gift Card. -
setPaymentMethodGatewayType
The gateway configured for this payment method. -
setFees
The list of applicable fees for this payment option. Can be discountable and/or taxable.Will only be applied in the case of Collect on Delivery (COD) type payments by default. We will eventually extend out of box support to any payment options.
-
setCartMinTotalRestriction
The minimum total a cart can have for this payment method, per currency.Will only be applied in the case of Collect on Delivery (COD) type payments by default. We will eventually extend out of box support to any payment options.
-
setCartMaxTotalRestriction
The maximum total a cart can have for this payment method, per currency.Will only be applied in the case of Collect on Delivery (COD) type payments by default. We will eventually extend out of box support to any payment options.
-
setFulfillmentInclusions
List of inclusion criteria to compare against aFulfillmentGroup
to determine if this payment option is allowed. The key is the path of the field to compare with on the group. The value is the list of valid values.Example values:
address.country -> ['US', 'UK', 'CA']
fulfillmentOption.name -> ['STANDARD', 'PRIORITY', 'EXPRESS']
-
setFulfillmentExclusions
List of exclusion criteria to compare against aFulfillmentGroup
to determine if this payment option is allowed. The key is the path of the field to compare with on the group. The value is the list of valid values.Example values:
address.country -> ['US', 'UK', 'CA']
fulfillmentOption.name -> ['STANDARD', 'PRIORITY', 'EXPRESS']
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-