Class PaymentIntentRequest

java.lang.Object
com.broadleafcommerce.vendor.stripe.service.paymentintent.PaymentIntentRequest
All Implemented Interfaces:
Serializable

public class PaymentIntentRequest extends Object implements Serializable
The request to create PaymentIntent.
Author:
Divyank Chavan.
See Also:
  • Constructor Details

    • PaymentIntentRequest

      public PaymentIntentRequest()
  • Method Details

    • getPaymentTotal

      public javax.money.MonetaryAmount getPaymentTotal()
      The total amount to be used for the PaymentIntent
      Returns:
      cartTotal
    • getCustomerId

      public String getCustomerId()
      The BLC customer id.
      Returns:
      the BLC customer id
    • getCustomerFullName

      public String getCustomerFullName()
      The BLC customer full name.
      Returns:
      the BLC customer full name
    • getCustomerEmail

      public String getCustomerEmail()
      The BLC customer email.
      Returns:
      the BLC customer email
    • isSaveForFutureUse

      public boolean isSaveForFutureUse()
      Flag for controling wheather to attach stripe customer to payment intent object..
      Returns:
      the saveForFutureUse
    • getSavedPaymentUsage

      public String getSavedPaymentUsage()
      When a PaymentIntent's payment method is stored for future use, this value declares if we intend to use the payment method on-session (i.e. as part of a customer interaction) or off-session (i.e. as part of a business-driven interaction).
      Returns:
      If we intend to use the payment method on-session or off-session.
      See Also:
      • SetupIntentCreateParams.Usage
    • getDynamicStatementDescriptor

      public String getDynamicStatementDescriptor()
      Transaction descriptor that appears on the customer's statement (non-card payments only). Must contain at least one letter, maximum 22 characters.
    • getTenantId

      public String getTenantId()
      The tenant id associated with the current request.
      Returns:
      the tenant id
    • getApplicationId

      public String getApplicationId()
      The application id associated with the current request.
      Returns:
      the application id
    • getCustomerContextId

      public String getCustomerContextId()
      The customer context id associated with the current request.
      Returns:
      the customer context id
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
      Any extra properties needed to define the PaymentIntent.
      Returns:
      any extra properties needed to define the PaymentIntent
    • setPaymentTotal

      public void setPaymentTotal(javax.money.MonetaryAmount paymentTotal)
      The total amount to be used for the PaymentIntent
      Parameters:
      paymentTotal - The total amount to be used for the PaymentIntent
    • setCustomerId

      public void setCustomerId(String customerId)
      The BLC customer id.
      Parameters:
      customerId - the BLC customer id
    • setCustomerFullName

      public void setCustomerFullName(String customerFullName)
      The BLC customer full name.
      Parameters:
      customerFullName - the BLC customer full name
    • setCustomerEmail

      public void setCustomerEmail(String customerEmail)
      The BLC customer email.
      Parameters:
      customerEmail - the BLC customer email
    • setSaveForFutureUse

      public void setSaveForFutureUse(boolean saveForFutureUse)
      Flag for controling wheather to attach stripe customer to payment intent object..
      Parameters:
      saveForFutureUse -
    • setSavedPaymentUsage

      public void setSavedPaymentUsage(String savedPaymentUsage)
      When a PaymentIntent's payment method is stored for future use, this value declares if we intend to use the payment method on-session (i.e. as part of a customer interaction) or off-session (i.e. as part of a business-driven interaction).
      Parameters:
      usage - Declares if we intend to use the payment method on-session or off-session.
      See Also:
      • SetupIntentCreateParams.Usage
    • setDynamicStatementDescriptor

      public void setDynamicStatementDescriptor(String dynamicStatementDescriptor)
      Transaction descriptor that appears on the customer's statement (non-card payments only). Must contain at least one letter, maximum 22 characters.
    • setTenantId

      public void setTenantId(String tenantId)
      The tenant id associated with the current request.
      Parameters:
      tenantId - the tenant id
    • setApplicationId

      public void setApplicationId(String applicationId)
      The application id associated with the current request.
      Parameters:
      applicationId - the application id
    • setCustomerContextId

      public void setCustomerContextId(String customerContextId)
      The customer context id associated with the current request.
      Parameters:
      customerContextId - the customer context id
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      Any extra properties needed to define the PaymentIntent.
      Parameters:
      additionalAttributes - any extra properties needed to define the PaymentIntent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object