Package model

Class Fee

java.lang.Object
model.Fee

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class Fee extends Object
An out of flow `fee` that is added to a `settlement`.
  • Field Details

  • Constructor Details

    • Fee

      public Fee()
  • Method Details

    • tags

      public Fee tags(Map<String,String> tags)
    • putTagsItem

      public Fee putTagsItem(String key, String tagsItem)
    • getTags

      @Nullable public Map<String,String> getTags()
      Key value pair for annotating custom meta data (e.g. order numbers).
      Returns:
      tags
    • setTags

      public void setTags(Map<String,String> tags)
    • id

      public Fee id(String id)
    • getId

      @Nullable public String getId()
      The ID of the `fee` resource.
      Returns:
      id
    • setId

      public void setId(String id)
    • createdAt

      public Fee createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp of when the object was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public Fee updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp of when the object was last updated.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • amount

      public Fee amount(Long amount)
    • getAmount

      @Nullable public Long getAmount()
      The amount of the fee in cents.
      Returns:
      amount
    • setAmount

      public void setAmount(Long amount)
    • currency

      public Fee currency(Currency currency)
    • getCurrency

      @Nullable public Currency getCurrency()
      Get currency
      Returns:
      currency
    • setCurrency

      public void setCurrency(Currency currency)
    • displayName

      public Fee displayName(String displayName)
    • getDisplayName

      @Nullable public String getDisplayName()
      The name of the `fee` object that was include in `display_name` when creating the fee.
      Returns:
      displayName
    • setDisplayName

      public void setDisplayName(String displayName)
    • feeSubtype

      public Fee feeSubtype(Fee.FeeSubtypeEnum feeSubtype)
    • getFeeSubtype

      @Nullable public Fee.FeeSubtypeEnum getFeeSubtype()
      Subtype of the `fee`.
      Returns:
      feeSubtype
    • setFeeSubtype

      public void setFeeSubtype(Fee.FeeSubtypeEnum feeSubtype)
    • feeType

      public Fee feeType(Fee.FeeTypeEnum feeType)
    • getFeeType

      @Nullable public Fee.FeeTypeEnum getFeeType()
      The type of `fee`.
      Returns:
      feeType
    • setFeeType

      public void setFeeType(Fee.FeeTypeEnum feeType)
    • linkedId

      public Fee linkedId(String linkedId)
    • getLinkedId

      @Nullable public String getLinkedId()
      ID of the linked resource.
      Returns:
      linkedId
    • setLinkedId

      public void setLinkedId(String linkedId)
    • linkedType

      public Fee linkedType(Fee.LinkedTypeEnum linkedType)
    • getLinkedType

      @Nullable public Fee.LinkedTypeEnum getLinkedType()
      The type of entity the `fee` is linked (**null** by default).
      Returns:
      linkedType
    • setLinkedType

      public void setLinkedType(Fee.LinkedTypeEnum linkedType)
    • merchant

      public Fee merchant(String merchant)
    • getMerchant

      @Nullable public String getMerchant()
      The `Merchant` ID that the fee is being debited from.
      Returns:
      merchant
    • setMerchant

      public void setMerchant(String merchant)
    • links

      public Fee links(FeeLinks links)
    • getLinks

      @Nullable public FeeLinks getLinks()
      Get links
      Returns:
      links
    • setLinks

      public void setLinks(FeeLinks links)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to Fee
    • fromJson

      public static Fee fromJson(String jsonString) throws IOException
      Create an instance of Fee given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Fee
      Throws:
      IOException - if the JSON string is invalid with respect to Fee
    • toJson

      public String toJson()
      Convert an instance of Fee to an JSON string
      Returns:
      JSON string