Class CheckoutPaymentMethodOption
- All Implemented Interfaces:
Serializable
- Author:
- Marie Standeven (mariestandeven)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFees are represented as separate CartItems but not placed in any fulfillment group to avoid repricing the fulfillment costs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe 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 aFulfillmentGroupto determine if this payment option is allowed.List of inclusion criteria to compare against aFulfillmentGroupto 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.inthashCode()voidsetCartMaxTotalRestriction(Map<String, BigDecimal> cartMaxTotalRestriction) The maximum total a cart can have for this payment method, per currency.voidsetCartMinTotalRestriction(Map<String, BigDecimal> cartMinTotalRestriction) The minimum total a cart can have for this payment method, per currency.voidThe list of applicable fees for this payment option.voidsetFulfillmentExclusions(Map<String, List<String>> fulfillmentExclusions) List of exclusion criteria to compare against aFulfillmentGroupto determine if this payment option is allowed.voidsetFulfillmentInclusions(Map<String, List<String>> fulfillmentInclusions) List of inclusion criteria to compare against aFulfillmentGroupto determine if this payment option is allowed.voidsetPaymentMethodGatewayType(String paymentMethodGatewayType) The gateway configured for this payment method.voidsetPaymentMethodType(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 aFulfillmentGroupto 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 aFulfillmentGroupto 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 aFulfillmentGroupto 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 aFulfillmentGroupto 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
-