Package com.xendit.model
Class FixedVirtualAccount
- java.lang.Object
-
- com.xendit.model.FixedVirtualAccount
-
public class FixedVirtualAccount extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FixedVirtualAccount()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FixedVirtualAccountcreateClosed(java.lang.String externalId, java.lang.String bankCode, java.lang.String name, java.lang.Long expectedAmount)Create closed VA with only required parametersstatic FixedVirtualAccountcreateClosed(java.lang.String externalId, java.lang.String bankCode, java.lang.String name, java.lang.Long expectedAmount, java.util.Map<java.lang.String,java.lang.Object> additionalParam)Create closed VA with required parameters and can accept additional paramsstatic FixedVirtualAccountcreateClosed(java.util.Map<java.lang.String,java.lang.Object> params)Create closed VA with complete objectstatic FixedVirtualAccountcreateClosed(java.util.Map<java.lang.String,java.lang.String> headers, java.util.Map<java.lang.String,java.lang.Object> params)Create closed VA with complete objectstatic FixedVirtualAccountcreateOpen(java.lang.String externalId, java.lang.String bankCode, java.lang.String name)Create open VA with only required parameters.static FixedVirtualAccountcreateOpen(java.lang.String externalId, java.lang.String bankCode, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> additionalParam)Create open VA with required params and optional params.static FixedVirtualAccountcreateOpen(java.util.Map<java.lang.String,java.lang.Object> params)Create closed VA with complete objectstatic FixedVirtualAccountcreateOpen(java.util.Map<java.lang.String,java.lang.String> headers, java.util.Map<java.lang.String,java.lang.Object> params)Create closed VA with complete objectstatic AvailableBank[]getAvailableBanks()static FixedVirtualAccountgetFixedVA(java.lang.String id)Get fixed VA based on its IDstatic FixedVirtualAccountgetFixedVA(java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String id)Get fixed VA based on its IDstatic FixedVirtualAccountPaymentgetPayment(java.lang.String paymentId)Get VA payment based on its payment IDstatic FixedVirtualAccountupdate(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params)Update fixed VA based on its ID
-
-
-
Method Detail
-
createClosed
public static FixedVirtualAccount createClosed(java.util.Map<java.lang.String,java.lang.Object> params) throws XenditException
Create closed VA with complete object- Parameters:
params- listed here https://xendit.github.io/apireference/#create-fixed-virtual-accounts.- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
createClosed
public static FixedVirtualAccount createClosed(java.util.Map<java.lang.String,java.lang.String> headers, java.util.Map<java.lang.String,java.lang.Object> params) throws XenditException
Create closed VA with complete object- Parameters:
headers-params- listed here https://xendit.github.io/apireference/#create-fixed-virtual-accounts.- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
createClosed
public static FixedVirtualAccount createClosed(java.lang.String externalId, java.lang.String bankCode, java.lang.String name, java.lang.Long expectedAmount) throws XenditException
Create closed VA with only required parameters- Parameters:
externalId- An ID of your choice, usually something that link Xendit VA with your internal system.bankCode- Bank code of the VA you want to create. See BankCode enum.name- Name of the VA, usually your end user's name or your company's.expectedAmount- Expected payment amount for this VA.- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
createClosed
public static FixedVirtualAccount createClosed(java.lang.String externalId, java.lang.String bankCode, java.lang.String name, java.lang.Long expectedAmount, java.util.Map<java.lang.String,java.lang.Object> additionalParam) throws XenditException
Create closed VA with required parameters and can accept additional params- Parameters:
externalId- An ID of your choice, usually something that link Xendit VA with your internal system.bankCode- Bank code of the VA you want to create. See BankCode enum.name- Name of the VA, usually your end user's name or your company's.expectedAmount- Expected payment amount for this VA.additionalParam- Optional params. Check https://xendit.github.io/apireference/#create-fixed-virtual-accounts.- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
createOpen
public static FixedVirtualAccount createOpen(java.util.Map<java.lang.String,java.lang.Object> params) throws XenditException
Create closed VA with complete object- Parameters:
params- listed here https://xendit.github.io/apireference/#create-fixed-virtual-accounts.- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
createOpen
public static FixedVirtualAccount createOpen(java.util.Map<java.lang.String,java.lang.String> headers, java.util.Map<java.lang.String,java.lang.Object> params) throws XenditException
Create closed VA with complete object- Parameters:
headers-params- listed here https://xendit.github.io/apireference/#create-fixed-virtual-accounts.- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
createOpen
public static FixedVirtualAccount createOpen(java.lang.String externalId, java.lang.String bankCode, java.lang.String name) throws XenditException
Create open VA with only required parameters.- Parameters:
externalId- An ID of your choice, usually something that link Xendit VA with your internal system.bankCode- Bank code of the VA you want to create. See BankCode enum.name- Name of the VA, usually your end user's name or your company's.- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
createOpen
public static FixedVirtualAccount createOpen(java.lang.String externalId, java.lang.String bankCode, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> additionalParam) throws XenditException
Create open VA with required params and optional params.- Parameters:
externalId- An ID of your choice, usually something that link Xendit VA with your internal system.bankCode- Bank code of the VA you want to create. See BankCode enum.name- Name of the VA, usually your end user's name or your company's.additionalParam- Optional params. Check https://xendit.github.io/apireference/#create-fixed-virtual-accounts.- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
getAvailableBanks
public static AvailableBank[] getAvailableBanks() throws XenditException
- Returns:
- array of AvailableBank model.
- Throws:
XenditException
-
getFixedVA
public static FixedVirtualAccount getFixedVA(java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String id) throws XenditException
Get fixed VA based on its ID- Parameters:
headers- Optional request headersid- ID of the fixed virtual account to retrieve- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
getFixedVA
public static FixedVirtualAccount getFixedVA(java.lang.String id) throws XenditException
Get fixed VA based on its ID- Parameters:
id- ID of the fixed virtual account to retrieve- Returns:
- FixedVirtualAccount model.
- Throws:
XenditException
-
update
public static FixedVirtualAccount update(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params) throws XenditException
Update fixed VA based on its ID- Parameters:
id- ID of the fixed virtual account to updateparams- listed here https://xendit.github.io/apireference/#update-fixed-virtual-account- Returns:
- FixedVirtualAccount
- Throws:
XenditException- XenditException
-
getPayment
public static FixedVirtualAccountPayment getPayment(java.lang.String paymentId) throws XenditException
Get VA payment based on its payment ID- Parameters:
paymentId- ID of the payment to retrieve- Returns:
- VirtualAccountPayment model.
- Throws:
XenditException
-
-