Class GetProductGroupParams

java.lang.Object
com.onlinepayments.merchant.productgroups.GetProductGroupParams
All Implemented Interfaces:
ParamRequest

public class GetProductGroupParams extends Object implements ParamRequest
Query parameters for Get product group (/v2/{merchantId}/productgroups/{paymentProductGroupId})
  • Constructor Details

    • GetProductGroupParams

      public GetProductGroupParams()
  • Method Details

    • getCountryCode

      public String getCountryCode()
      ISO 3166-1 alpha-2 country code of the transaction
    • setCountryCode

      public void setCountryCode(String value)
      ISO 3166-1 alpha-2 country code of the transaction
    • withCountryCode

      public GetProductGroupParams withCountryCode(String value)
      ISO 3166-1 alpha-2 country code of the transaction
    • getCurrencyCode

      public String getCurrencyCode()
      Three-letter ISO currency code representing the currency for the amount
    • setCurrencyCode

      public void setCurrencyCode(String value)
      Three-letter ISO currency code representing the currency for the amount
    • withCurrencyCode

      public GetProductGroupParams withCurrencyCode(String value)
      Three-letter ISO currency code representing the currency for the amount
    • getLocale

      public String getLocale()
      Deprecated: This field has no effect.
    • setLocale

      public void setLocale(String value)
      Deprecated: This field has no effect.
    • withLocale

      public GetProductGroupParams withLocale(String value)
      Deprecated: This field has no effect.
    • getAmount

      public Long getAmount()
      Whole amount in cents (not containing any decimals)
    • setAmount

      public void setAmount(Long value)
      Whole amount in cents (not containing any decimals)
    • withAmount

      public GetProductGroupParams withAmount(Long value)
      Whole amount in cents (not containing any decimals)
    • getIsRecurring

      public Boolean getIsRecurring()
      This allows you to filter payment products based on their support for recurring payments.
      • true - return only payment products that support recurring payments,
      • false - return all payment products that support one-time transactions. Payment products that support recurring products are usually also part of this list.
    • setIsRecurring

      public void setIsRecurring(Boolean value)
      This allows you to filter payment products based on their support for recurring payments.
      • true - return only payment products that support recurring payments,
      • false - return all payment products that support one-time transactions. Payment products that support recurring products are usually also part of this list.
    • withIsRecurring

      public GetProductGroupParams withIsRecurring(Boolean value)
      This allows you to filter payment products based on their support for recurring payments.
      • true - return only payment products that support recurring payments,
      • false - return all payment products that support one-time transactions. Payment products that support recurring products are usually also part of this list.
    • getHide

      public List<String> getHide()
      Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are:
      • fields - Do not return any data on fields of the payment product
      • accountsOnFile - Do not return any accounts on file data
      • translations - Do not return any label texts associated with the payment products
      • productsWithoutFields - Do not return products that require any additional data to be captured
      • productsWithoutInstructions - Do not return products that show instructions
      • productsWithRedirects - Do not return products that require a redirect to a 3rd party. Note that products that involve potential redirects related to 3D Secure authentication are not hidden
    • setHide

      public void setHide(List<String> value)
      Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are:
      • fields - Do not return any data on fields of the payment product
      • accountsOnFile - Do not return any accounts on file data
      • translations - Do not return any label texts associated with the payment products
      • productsWithoutFields - Do not return products that require any additional data to be captured
      • productsWithoutInstructions - Do not return products that show instructions
      • productsWithRedirects - Do not return products that require a redirect to a 3rd party. Note that products that involve potential redirects related to 3D Secure authentication are not hidden
    • withHide

      public GetProductGroupParams withHide(List<String> value)
      Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are:
      • fields - Do not return any data on fields of the payment product
      • accountsOnFile - Do not return any accounts on file data
      • translations - Do not return any label texts associated with the payment products
      • productsWithoutFields - Do not return products that require any additional data to be captured
      • productsWithoutInstructions - Do not return products that show instructions
      • productsWithRedirects - Do not return products that require a redirect to a 3rd party. Note that products that involve potential redirects related to 3D Secure authentication are not hidden
    • addHide

      public void addHide(String value)
      Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are:
      • fields - Do not return any data on fields of the payment product
      • accountsOnFile - Do not return any accounts on file data
      • translations - Do not return any label texts associated with the payment products
      • productsWithoutFields - Do not return products that require any additional data to be captured
      • productsWithoutInstructions - Do not return products that show instructions
      • productsWithRedirects - Do not return products that require a redirect to a 3rd party. Note that products that involve potential redirects related to 3D Secure authentication are not hidden
    • toRequestParameters

      public List<RequestParam> toRequestParameters()
      Specified by:
      toRequestParameters in interface ParamRequest