Package com.xendit.model
Class Payout
- java.lang.Object
-
- com.xendit.model.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 PayoutcreatePayout(java.lang.String externalId, java.lang.Number amount)Create payout with given parametersstatic PayoutcreatePayout(java.util.Map<java.lang.String,java.lang.Object> params)Create payout with all parameters as HashMapstatic PayoutcreatePayout(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 HashMapstatic PayoutgetPayout(java.lang.String id)Get payout detail by IDstatic PayoutvoidPayout(java.lang.String id)Void a payout by ID
-
-
-
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
-
-