Class Reader.Action.RefundPayment

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.terminal.Reader.Action.RefundPayment
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Reader.Action

public static class Reader.Action.RefundPayment extends StripeObject
Represents a reader action to refund a payment.
  • Constructor Details

    • RefundPayment

      public RefundPayment()
  • Method Details

    • 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)
    • getPaymentIntent

      public String getPaymentIntent()
      Get ID of expandable paymentIntent object.
    • setPaymentIntent

      public void setPaymentIntent(String id)
    • getPaymentIntentObject

      public PaymentIntent getPaymentIntentObject()
      Get expanded paymentIntent.
    • setPaymentIntentObject

      public void setPaymentIntentObject(PaymentIntent expandableObject)
    • getRefund

      public String getRefund()
      Get ID of expandable refund object.
    • setRefund

      public void setRefund(String id)
    • getRefundObject

      public Refund getRefundObject()
      Get expanded refund.
    • setRefundObject

      public void setRefundObject(Refund expandableObject)
    • getAmount

      public Long getAmount()
      The amount being refunded.
    • getMetadata

      public Map<String,String> getMetadata()
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • getReason

      public String getReason()
      The reason for the refund.

      One of duplicate, fraudulent, or requested_by_customer.

    • getRefundApplicationFee

      public Boolean getRefundApplicationFee()
      Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge.
    • getRefundPaymentConfig

      public Reader.Action.RefundPayment.RefundPaymentConfig getRefundPaymentConfig()
      Represents a per-transaction override of a reader configuration.
    • getReverseTransfer

      public Boolean getReverseTransfer()
      Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge.
    • setAmount

      public void setAmount(Long amount)
      The amount being refunded.
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • setReason

      public void setReason(String reason)
      The reason for the refund.

      One of duplicate, fraudulent, or requested_by_customer.

    • setRefundApplicationFee

      public void setRefundApplicationFee(Boolean refundApplicationFee)
      Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge.
    • setRefundPaymentConfig

      public void setRefundPaymentConfig(Reader.Action.RefundPayment.RefundPaymentConfig refundPaymentConfig)
      Represents a per-transaction override of a reader configuration.
    • setReverseTransfer

      public void setReverseTransfer(Boolean reverseTransfer)
      Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge.
    • 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