Class RetailOutlet


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

      Constructors 
      Constructor Description
      RetailOutlet()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FixedPaymentCode createFixedPaymentCode​(java.lang.String externalId, FixedPaymentCode.RetailOutletName retailOutletName, java.lang.String name, java.lang.Number expectedAmount)
      Create fixed payment code with required parameters
      static FixedPaymentCode createFixedPaymentCode​(java.util.Map<java.lang.String,​java.lang.Object> params)
      Create fixed payment code with all parameters as HashMap
      static FixedPaymentCode createFixedPaymentCode​(java.util.Map<java.lang.String,​java.lang.String> headers, java.util.Map<java.lang.String,​java.lang.Object> params)
      Create fixed payment code with all parameters as HashMap
      static FixedPaymentCode getFixedPaymentCode​(java.lang.String id)
      Get fixed payment code by ID
      static FixedPaymentCode getFixedPaymentCode​(java.lang.String id, java.util.Map<java.lang.String,​java.lang.String> headers)
      Get fixed payment code by ID
      static FixedPaymentCode updateFixedPaymentCode​(java.lang.String id, java.lang.String name, java.lang.Number expectedAmount, java.lang.String expirationDate)
      Update fixed payment code by ID and with parameters
      static FixedPaymentCode updateFixedPaymentCode​(java.lang.String id, java.util.Map<java.lang.String,​java.lang.Object> params)
      Update fixed payment code by ID and with all parameters as HashMap
      static FixedPaymentCode updateFixedPaymentCode​(java.lang.String id, java.util.Map<java.lang.String,​java.lang.String> headers, java.util.Map<java.lang.String,​java.lang.Object> params)
      Update fixed payment code by ID and with all parameters as HashMap
      • Methods inherited from class java.lang.Object

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

      • RetailOutlet

        public RetailOutlet()
    • Method Detail

      • createFixedPaymentCode

        public static FixedPaymentCode createFixedPaymentCode​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                                       throws XenditException
        Create fixed payment code with all parameters as HashMap
        Parameters:
        params - listed here https://xendit.github.io/apireference/#update-fixed-payment-code
        Returns:
        FixedPaymentCodeRetailOutlet
        Throws:
        XenditException - XenditException
      • createFixedPaymentCode

        public static FixedPaymentCode createFixedPaymentCode​(java.util.Map<java.lang.String,​java.lang.String> headers,
                                                              java.util.Map<java.lang.String,​java.lang.Object> params)
                                                       throws XenditException
        Create fixed payment code with all parameters as HashMap
        Parameters:
        headers -
        params - listed here https://xendit.github.io/apireference/#update-fixed-payment-code
        Returns:
        FixedPaymentCodeRetailOutlet
        Throws:
        XenditException - XenditException
      • createFixedPaymentCode

        public static FixedPaymentCode createFixedPaymentCode​(java.lang.String externalId,
                                                              FixedPaymentCode.RetailOutletName retailOutletName,
                                                              java.lang.String name,
                                                              java.lang.Number expectedAmount)
                                                       throws XenditException
        Create fixed payment code with required parameters
        Parameters:
        externalId - An ID of your choice. Often it is unique identifier like a phone number, email or transaction ID. Maximum length allowed is 1000 characters.
        retailOutletName - Name of the fixed payment code you want to create.
        name - Name of user - this might be used by the Retail Outlets cashier to validate the end user.
        expectedAmount - The amount that is expected to be paid by end customer.
        Returns:
        FixedPaymentCodeRetailOutlet
        Throws:
        XenditException - XenditException
      • getFixedPaymentCode

        public static FixedPaymentCode getFixedPaymentCode​(java.lang.String id)
                                                    throws XenditException
        Get fixed payment code by ID
        Parameters:
        id - ID of the fixed payment code to retrieve
        Returns:
        FixedPaymentCode
        Throws:
        XenditException - XenditException
      • getFixedPaymentCode

        public static FixedPaymentCode getFixedPaymentCode​(java.lang.String id,
                                                           java.util.Map<java.lang.String,​java.lang.String> headers)
                                                    throws XenditException
        Get fixed payment code by ID
        Parameters:
        id - ID of the fixed payment code to retrieve
        headers -
        Returns:
        FixedPaymentCode
        Throws:
        XenditException - XenditException
      • updateFixedPaymentCode

        public static FixedPaymentCode updateFixedPaymentCode​(java.lang.String id,
                                                              java.util.Map<java.lang.String,​java.lang.Object> params)
                                                       throws XenditException
        Update fixed payment code by ID and with all parameters as HashMap
        Parameters:
        id - ID of the fixed payment code to be updated
        params - listed here https://xendit.github.io/apireference/#update-fixed-payment-code
        Returns:
        FixedPaymentCode
        Throws:
        XenditException - XenditException
      • updateFixedPaymentCode

        public static FixedPaymentCode updateFixedPaymentCode​(java.lang.String id,
                                                              java.util.Map<java.lang.String,​java.lang.String> headers,
                                                              java.util.Map<java.lang.String,​java.lang.Object> params)
                                                       throws XenditException
        Update fixed payment code by ID and with all parameters as HashMap
        Parameters:
        id - ID of the fixed payment code to be updated
        headers -
        params - listed here https://xendit.github.io/apireference/#update-fixed-payment-code
        Returns:
        FixedPaymentCode
        Throws:
        XenditException - XenditException
      • updateFixedPaymentCode

        public static FixedPaymentCode updateFixedPaymentCode​(java.lang.String id,
                                                              java.lang.String name,
                                                              java.lang.Number expectedAmount,
                                                              java.lang.String expirationDate)
                                                       throws XenditException
        Update fixed payment code by ID and with parameters
        Parameters:
        id - ID of the fixed payment code to be updated
        name - Name for the fixed payment code
        expectedAmount - The amount that is expected to be paid by end customer
        expirationDate - The time when the fixed payment code will be expired. You can set it to be days in the past to expire fixed payment code immediately
        Returns:
        FixedPaymentCode
        Throws:
        XenditException - XenditException