Class EWalletCharge


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

      Constructors 
      Constructor Description
      EWalletCharge()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static EWalletCharge createChargeRequest​(java.util.Map<java.lang.String,​java.lang.String> headers, java.util.Map<java.lang.String,​java.lang.Object> params)  
      static EWalletCharge createEWalletCharge​(java.lang.String referenceId, java.lang.String currency, java.lang.Number amount, java.lang.String checkoutMethod, java.lang.String channelCode, java.util.Map<java.lang.String,​java.lang.String> channelProperties, java.lang.String customerId, EWalletBasketItem[] basket, java.util.Map<java.lang.String,​java.lang.Object> metadata)
      Create new e-wallet charge
      static EWalletCharge createEWalletCharge​(java.util.Map<java.lang.String,​java.lang.Object> params)
      Create new e-wallet charge with all parameter as HashMap
      static EWalletCharge createEWalletCharge​(java.util.Map<java.lang.String,​java.lang.String> headers, java.util.Map<java.lang.String,​java.lang.Object> params)
      Create new e-wallet charge with headers and all parameter as HashMap
      static EWalletCharge getEWalletChargeStatus​(java.lang.String chargeId)
      Get e-Wallet charge by id
      • Methods inherited from class java.lang.Object

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

      • EWalletCharge

        public EWalletCharge()
    • Method Detail

      • createEWalletCharge

        public static EWalletCharge createEWalletCharge​(java.lang.String referenceId,
                                                        java.lang.String currency,
                                                        java.lang.Number amount,
                                                        java.lang.String checkoutMethod,
                                                        java.lang.String channelCode,
                                                        java.util.Map<java.lang.String,​java.lang.String> channelProperties,
                                                        java.lang.String customerId,
                                                        EWalletBasketItem[] basket,
                                                        java.util.Map<java.lang.String,​java.lang.Object> metadata)
                                                 throws XenditException
        Create new e-wallet charge
        Parameters:
        referenceId - An ID of your choice. Often it is unique identifier like a phone number, email or transaction ID.
        currency - Currency that is used by end-customer.
        amount - Amount end-customer will pay.
        checkoutMethod - Checkout method end-customer will apply.
        channelCode - Specifies which e-Wallet will be used by end-customer.
        channelProperties - Channel specific information.
        customerId - ID of customer object to which the account token will be linked to.
        basket - Array of objects describing the item(s) purchased.
        metadata - Object of additional information the user may use.
        Returns:
        EWalletCharge model.
        Throws:
        XenditException - XenditException
      • createEWalletCharge

        public static EWalletCharge createEWalletCharge​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                                 throws XenditException
        Create new e-wallet charge with all parameter as HashMap
        Parameters:
        params - listed here https://developers.xendit.co/api-reference/#create-ewallet-charge.
        Returns:
        EWalletCharge
        Throws:
        XenditException
      • createEWalletCharge

        public static EWalletCharge createEWalletCharge​(java.util.Map<java.lang.String,​java.lang.String> headers,
                                                        java.util.Map<java.lang.String,​java.lang.Object> params)
                                                 throws XenditException
        Create new e-wallet charge with headers and all parameter as HashMap
        Parameters:
        headers -
        params - listed here https://developers.xendit.co/api-reference/#create-ewallet-charge.
        Returns:
        EWalletCharge
        Throws:
        XenditException
      • getEWalletChargeStatus

        public static EWalletCharge getEWalletChargeStatus​(java.lang.String chargeId)
                                                    throws XenditException
        Get e-Wallet charge by id
        Parameters:
        chargeId - e-Wallet charge ID
        Returns:
        EWalletCharge
        Throws:
        XenditException - XenditException
      • createChargeRequest

        public static EWalletCharge createChargeRequest​(java.util.Map<java.lang.String,​java.lang.String> headers,
                                                        java.util.Map<java.lang.String,​java.lang.Object> params)
                                                 throws XenditException
        Throws:
        XenditException