Class CurrencyConversion

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.moneymanagement.CurrencyConversion
All Implemented Interfaces:
HasId, StripeObjectInterface

public class CurrencyConversion extends StripeObject implements HasId
The CurrencyConversion object. Contains details such as the amount debited and credited and the FinancialAccount the CurrencyConversion was performed on.
  • Constructor Details

    • CurrencyConversion

      public CurrencyConversion()
  • Method Details

    • getCreated

      public Instant getCreated()
      The time the CurrencyConversion was created at.
    • getExchangeRate

      public String getExchangeRate()
      The exchange rate used when processing the CurrencyConversion.
    • getFinancialAccount

      public String getFinancialAccount()
      The FinancialAccount the CurrencyConversion was performed on.
    • getFrom

      public CurrencyConversion.From getFrom()
      The from block containing what was debited.
    • getLivemode

      public Boolean getLivemode()
      If the CurrencyConversion was performed in livemode or not.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.money_management.currency_conversion.

    • getTo

      public CurrencyConversion.To getTo()
      The to block containing what was credited.
    • setCreated

      public void setCreated(Instant created)
      The time the CurrencyConversion was created at.
    • setExchangeRate

      public void setExchangeRate(String exchangeRate)
      The exchange rate used when processing the CurrencyConversion.
    • setFinancialAccount

      public void setFinancialAccount(String financialAccount)
      The FinancialAccount the CurrencyConversion was performed on.
    • setFrom

      public void setFrom(CurrencyConversion.From from)
      The from block containing what was debited.
    • setId

      public void setId(String id)
      The id of the CurrencyConversion.
    • setLivemode

      public void setLivemode(Boolean livemode)
      If the CurrencyConversion was performed in livemode or not.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.money_management.currency_conversion.

    • setTo

      public void setTo(CurrencyConversion.To to)
      The to block containing what was credited.
    • 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
    • getId

      public String getId()
      The id of the CurrencyConversion.
      Specified by:
      getId in interface HasId