Class Payout


  • public class Payout
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Payout()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Payout createPayout​(java.lang.String externalId, java.lang.Number amount)
      Create payout with given parameters
      static Payout createPayout​(java.util.Map<java.lang.String,​java.lang.Object> params)
      Create payout with all parameters as HashMap
      static Payout createPayout​(java.util.Map<java.lang.String,​java.lang.String> headers, java.util.Map<java.lang.String,​java.lang.Object> params)
      Create payout with all parameters as HashMap
      static Payout getPayout​(java.lang.String id)
      Get payout detail by ID
      static Payout voidPayout​(java.lang.String id)
      Void a payout by ID
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Payout

        public Payout()
    • Method Detail

      • createPayout

        public static Payout createPayout​(java.lang.String externalId,
                                          java.lang.Number amount)
                                   throws XenditException
        Create payout with given parameters
        Parameters:
        externalId - ID of your choice (typically the unique identifier of a payout in your system).
        amount - Amount to be paid out. The maximum amount depends on your balance.
        Returns:
        Payout
        Throws:
        XenditException - XenditException
      • createPayout

        public static Payout createPayout​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                   throws XenditException
        Create payout with all parameters as HashMap
        Parameters:
        params - listed here https://xendit.github.io/apireference/#create-payout
        Returns:
        Payout
        Throws:
        XenditException - XenditException
      • createPayout

        public static Payout createPayout​(java.util.Map<java.lang.String,​java.lang.String> headers,
                                          java.util.Map<java.lang.String,​java.lang.Object> params)
                                   throws XenditException
        Create payout with all parameters as HashMap
        Parameters:
        headers -
        params - listed here https://xendit.github.io/apireference/#create-payout
        Returns:
        Payout
        Throws:
        XenditException - XenditException
      • getPayout

        public static Payout getPayout​(java.lang.String id)
                                throws XenditException
        Get payout detail by ID
        Parameters:
        id - ID of the payout to retrieve
        Returns:
        Payout
        Throws:
        XenditException - XenditException
      • voidPayout

        public static Payout voidPayout​(java.lang.String id)
                                 throws XenditException
        Void a payout by ID
        Parameters:
        id - ID of the payout to void
        Returns:
        Payout
        Throws:
        XenditException - XenditException