Class PaymentMethodsMerchantLevel

    • Constructor Detail

      • PaymentMethodsMerchantLevel

        public PaymentMethodsMerchantLevel​(Client client)
    • Method Detail

      • getAllPaymentMethods

        public PaymentMethodResponse getAllPaymentMethods​(String merchantId,
                                                          Map<String,​String> queryParams)
                                                   throws ApiException,
                                                          IOException
        Get all payment methods
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        queryParams - (optional) storeId: The unique identifier of the store for which to return the payment methods. (optional) businessLineId: The unique identifier of the Business Line for which to return the payment methods. (optional) pageSize: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) pageNumber: The number of the page to fetch. (optional)
        Returns:
        PaymentMethodResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • getPaymentMethodDetails

        public PaymentMethod getPaymentMethodDetails​(String merchantId,
                                                     String paymentMethodId)
                                              throws ApiException,
                                                     IOException
        Get payment method details
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        paymentMethodId - The unique identifier of the payment method. (required)
        Returns:
        PaymentMethod
        Throws:
        ApiException - if fails to make API call
        IOException
      • getApplePayDomains

        public ApplePayInfo getApplePayDomains​(String merchantId,
                                               String paymentMethodId)
                                        throws ApiException,
                                               IOException
        Get Apple Pay domains
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        paymentMethodId - The unique identifier of the payment method. (required)
        Returns:
        ApplePayInfo
        Throws:
        ApiException - if fails to make API call
        IOException
      • updatePaymentMethod

        public PaymentMethod updatePaymentMethod​(String merchantId,
                                                 String paymentMethodId,
                                                 UpdatePaymentMethodInfo updatePaymentMethodInfo)
                                          throws ApiException,
                                                 IOException
        Update a payment method
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        paymentMethodId - The unique identifier of the payment method. (required)
        updatePaymentMethodInfo - (optional)
        Returns:
        PaymentMethod
        Throws:
        ApiException - if fails to make API call
        IOException
      • addApplePayDomain

        public void addApplePayDomain​(String merchantId,
                                      String paymentMethodId,
                                      ApplePayInfo applePayInfo)
                               throws ApiException,
                                      IOException
        Add an Apple Pay domain
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        paymentMethodId - The unique identifier of the payment method. (required)
        applePayInfo - (optional)
        Throws:
        ApiException - if fails to make API call
        IOException