Class Session.CurrencyConversion

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.checkout.Session.CurrencyConversion
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Session

public static class Session.CurrencyConversion extends StripeObject
Determines the position and visibility of the payment method reuse agreement in the UI. When set to auto, Stripe's defaults will be used.

When set to hidden, the payment method reuse agreement text will always be hidden in the UI.

One of auto, or hidden.

  • Constructor Details

    • CurrencyConversion

      public CurrencyConversion()
  • Method Details

    • getAmountSubtotal

      public Long getAmountSubtotal()
      Total of all items in source currency before discounts or taxes are applied.
    • getAmountTotal

      public Long getAmountTotal()
      Total of all items in source currency after discounts and taxes are applied.
    • getFxRate

      public BigDecimal getFxRate()
      Exchange rate used to convert source currency amounts to customer currency amounts.
    • getSourceCurrency

      public String getSourceCurrency()
      Creation currency of the CheckoutSession before localization.
    • setAmountSubtotal

      public void setAmountSubtotal(Long amountSubtotal)
      Total of all items in source currency before discounts or taxes are applied.
    • setAmountTotal

      public void setAmountTotal(Long amountTotal)
      Total of all items in source currency after discounts and taxes are applied.
    • setFxRate

      public void setFxRate(BigDecimal fxRate)
      Exchange rate used to convert source currency amounts to customer currency amounts.
    • setSourceCurrency

      public void setSourceCurrency(String sourceCurrency)
      Creation currency of the CheckoutSession before localization.
    • 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