Class ApplicationFee

All Implemented Interfaces:
BalanceTransactionSource, HasId, StripeActiveObject, StripeObjectInterface

public class ApplicationFee extends ApiResource implements BalanceTransactionSource
  • Constructor Details

    • ApplicationFee

      public ApplicationFee()
  • Method Details

    • getAccount

      public String getAccount()
      Get ID of expandable account object.
    • setAccount

      public void setAccount(String id)
    • getAccountObject

      public Account getAccountObject()
      Get expanded account.
    • setAccountObject

      public void setAccountObject(Account expandableObject)
    • getApplication

      public String getApplication()
      Get ID of expandable application object.
    • setApplication

      public void setApplication(String id)
    • getApplicationObject

      public Application getApplicationObject()
      Get expanded application.
    • setApplicationObject

      public void setApplicationObject(Application expandableObject)
    • getBalanceTransaction

      public String getBalanceTransaction()
      Get ID of expandable balanceTransaction object.
    • setBalanceTransaction

      public void setBalanceTransaction(String id)
    • getBalanceTransactionObject

      public BalanceTransaction getBalanceTransactionObject()
      Get expanded balanceTransaction.
    • setBalanceTransactionObject

      public void setBalanceTransactionObject(BalanceTransaction expandableObject)
    • getCharge

      public String getCharge()
      Get ID of expandable charge object.
    • setCharge

      public void setCharge(String id)
    • getChargeObject

      public Charge getChargeObject()
      Get expanded charge.
    • setChargeObject

      public void setChargeObject(Charge expandableObject)
    • getOriginatingTransaction

      public String getOriginatingTransaction()
      Get ID of expandable originatingTransaction object.
    • setOriginatingTransaction

      public void setOriginatingTransaction(String id)
    • getOriginatingTransactionObject

      public Charge getOriginatingTransactionObject()
      Get expanded originatingTransaction.
    • setOriginatingTransactionObject

      public void setOriginatingTransactionObject(Charge expandableObject)
    • list

      public static ApplicationFeeCollection list(Map<String,Object> params) throws StripeException
      Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
      Throws:
      StripeException
    • list

      public static ApplicationFeeCollection list(Map<String,Object> params, RequestOptions options) throws StripeException
      Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
      Throws:
      StripeException
    • list

      Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
      Throws:
      StripeException
    • list

      Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
      Throws:
      StripeException
    • retrieve

      public static ApplicationFee retrieve(String id) throws StripeException
      Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
      Throws:
      StripeException
    • retrieve

      public static ApplicationFee retrieve(String id, RequestOptions options) throws StripeException
      Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
      Throws:
      StripeException
    • retrieve

      public static ApplicationFee retrieve(String id, Map<String,Object> params, RequestOptions options) throws StripeException
      Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
      Throws:
      StripeException
    • retrieve

      public static ApplicationFee retrieve(String id, ApplicationFeeRetrieveParams params, RequestOptions options) throws StripeException
      Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getAmount

      public Long getAmount()
      Amount earned, in cents (or local equivalent).
    • getAmountRefunded

      public Long getAmountRefunded()
      Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued).
    • getCreated

      public Long getCreated()
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • getCurrency

      public String getCurrency()
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • 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.

      Equal to application_fee.

    • getRefunded

      public Boolean getRefunded()
      Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
    • getRefunds

      public FeeRefundCollection getRefunds()
      A list of refunds that have been applied to the fee.
    • setAmount

      public void setAmount(Long amount)
      Amount earned, in cents (or local equivalent).
    • setAmountRefunded

      public void setAmountRefunded(Long amountRefunded)
      Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued).
    • setCreated

      public void setCreated(Long created)
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • setCurrency

      public void setCurrency(String currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • 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.

      Equal to application_fee.

    • setRefunded

      public void setRefunded(Boolean refunded)
      Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
    • setRefunds

      public void setRefunds(FeeRefundCollection refunds)
      A list of refunds that have been applied to the fee.
    • 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