Class CreateRefund


  • public class CreateRefund
    extends java.lang.Object
    CreateRefund

    Specifies a partial amount to refund.

    This request body is optional, an empty body will issue a refund for the full amount of the original transfer.

    • Constructor Detail

      • CreateRefund

        public CreateRefund​(java.util.Optional<java.lang.Long> amount)
      • CreateRefund

        public CreateRefund()
    • Method Detail

      • amount

        public java.util.Optional<java.lang.Long> amount()
        Amount to refund in cents. If null, the original transfer's full amount will be refunded.
      • withAmount

        public CreateRefund withAmount​(long amount)
        Amount to refund in cents. If null, the original transfer's full amount will be refunded.
      • withAmount

        public CreateRefund withAmount​(java.util.Optional<java.lang.Long> amount)
        Amount to refund in cents. If null, the original transfer's full amount will be refunded.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object