public class PaymentPreference
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PaymentPreference() |
Modifier and Type | Method and Description |
---|---|
boolean |
excludedPaymentTypesValid() |
java.lang.String |
getDefaultCardId() |
java.lang.Integer |
getDefaultInstallments() |
PayerCost |
getDefaultInstallments(java.util.List<PayerCost> payerCosts) |
PaymentMethod |
getDefaultPaymentMethod(java.util.List<PaymentMethod> paymentMethods) |
java.lang.String |
getDefaultPaymentMethodId() |
java.lang.String |
getDefaultPaymentTypeId() |
java.util.List<java.lang.String> |
getExcludedPaymentMethodIds() |
java.util.List<java.lang.String> |
getExcludedPaymentTypes() |
java.util.List<PayerCost> |
getInstallmentsBelowMax(java.util.List<PayerCost> payerCosts) |
java.lang.Integer |
getMaxInstallments() |
java.util.List<PaymentMethod> |
getSupportedPaymentMethods(java.util.List<PaymentMethod> paymentMethods) |
java.util.List<Card> |
getValidCards(java.util.List<Card> cards) |
boolean |
installmentPreferencesValid() |
boolean |
isPaymentMethodSupported(PaymentMethod paymentMethod) |
void |
setDefaultCardId(java.lang.String defaultCardId) |
void |
setDefaultInstallments(java.lang.Integer defaultInstallments) |
void |
setDefaultPaymentMethodId(java.lang.String defaultPaymentMethodId) |
void |
setDefaultPaymentTypeId(java.lang.String defaultPaymentTypeId) |
void |
setExcludedPaymentMethodIds(java.util.List<java.lang.String> excludedPaymentMethodIds) |
void |
setExcludedPaymentTypeIds(java.util.List<java.lang.String> excludedPaymentTypeIds) |
void |
setMaxAcceptedInstallments(java.lang.Integer installments) |
boolean |
validDefaultInstallments() |
boolean |
validMaxInstallments() |
public void setMaxAcceptedInstallments(java.lang.Integer installments)
public void setDefaultInstallments(java.lang.Integer defaultInstallments)
public void setExcludedPaymentTypeIds(java.util.List<java.lang.String> excludedPaymentTypeIds)
public void setDefaultPaymentMethodId(java.lang.String defaultPaymentMethodId)
public void setDefaultPaymentTypeId(java.lang.String defaultPaymentTypeId)
public java.lang.Integer getMaxInstallments()
@NonNull public java.util.List<java.lang.String> getExcludedPaymentMethodIds()
public java.lang.Integer getDefaultInstallments()
public void setExcludedPaymentMethodIds(java.util.List<java.lang.String> excludedPaymentMethodIds)
@NonNull public java.util.List<java.lang.String> getExcludedPaymentTypes()
@Nullable public java.lang.String getDefaultPaymentMethodId()
public java.lang.String getDefaultPaymentTypeId()
public java.util.List<PayerCost> getInstallmentsBelowMax(java.util.List<PayerCost> payerCosts)
public PayerCost getDefaultInstallments(java.util.List<PayerCost> payerCosts)
public java.util.List<PaymentMethod> getSupportedPaymentMethods(java.util.List<PaymentMethod> paymentMethods)
public boolean isPaymentMethodSupported(PaymentMethod paymentMethod)
public PaymentMethod getDefaultPaymentMethod(java.util.List<PaymentMethod> paymentMethods)
public boolean installmentPreferencesValid()
public boolean excludedPaymentTypesValid()
public boolean validDefaultInstallments()
public boolean validMaxInstallments()
public void setDefaultCardId(java.lang.String defaultCardId)
@Nullable public java.lang.String getDefaultCardId()