Class Adjustment

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

public class Adjustment extends StripeObject implements HasId
An Adjustment records a credit or debit that Stripe makes to your Financial Account balance, for example to correct technical or operational errors.
  • Constructor Details

    • Adjustment

      public Adjustment()
  • Method Details

    • getAdjustedFlow

      public Adjustment.AdjustedFlow getAdjustedFlow()
      Details about the original flow object linked to this Adjustment, if applicable. adjusted_flow.type identifies the kind of object. The corresponding field contains its ID: for an InboundTransfer, adjusted_flow.inbound_transfer contains the InboundTransfer's ID. Pass that ID to the adjusted_flow parameter on List Adjustments.
    • getAmount

      public Amount getAmount()
      The amount of the Adjustment.
    • getCreated

      public Instant getCreated()
      Time at which the object was created. Represented as an RFC 3339 timestamp in UTC with millisecond precision, for example 2022-09-18T13:22:18.123Z.
    • getDescription

      public String getDescription()
      A description of the Adjustment and its purpose.
    • getFinancialAccount

      public String getFinancialAccount()
      The ID of the FinancialAccount whose balance this Adjustment affects.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • 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.adjustment.

    • setAdjustedFlow

      public void setAdjustedFlow(Adjustment.AdjustedFlow adjustedFlow)
      Details about the original flow object linked to this Adjustment, if applicable. adjusted_flow.type identifies the kind of object. The corresponding field contains its ID: for an InboundTransfer, adjusted_flow.inbound_transfer contains the InboundTransfer's ID. Pass that ID to the adjusted_flow parameter on List Adjustments.
    • setAmount

      public void setAmount(Amount amount)
      The amount of the Adjustment.
    • setCreated

      public void setCreated(Instant created)
      Time at which the object was created. Represented as an RFC 3339 timestamp in UTC with millisecond precision, for example 2022-09-18T13:22:18.123Z.
    • setDescription

      public void setDescription(String description)
      A description of the Adjustment and its purpose.
    • setFinancialAccount

      public void setFinancialAccount(String financialAccount)
      The ID of the FinancialAccount whose balance this Adjustment affects.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • 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.adjustment.

    • 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()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId