Class GetPaymentProductParams
java.lang.Object
com.onlinepayments.merchant.products.GetPaymentProductParams
- All Implemented Interfaces:
ParamRequest
Query parameters for
Get payment product (/v2/{merchantId}/products/{paymentProductId})
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAllows you to hide elements from the response, reducing the amount of data that needs to be returned to your client.Whole amount in cents (not containing any decimals)ISO 3166-1 alpha-2 country code of the transactionThree-letter ISO currency code representing the currency for the amountgetHide()Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client.This allows you to filter payment products based on their support for recurring payments.Locale used in the GUI towards the consumer.voidWhole amount in cents (not containing any decimals)voidsetCountryCode(String value) ISO 3166-1 alpha-2 country code of the transactionvoidsetCurrencyCode(String value) Three-letter ISO currency code representing the currency for the amountvoidAllows you to hide elements from the response, reducing the amount of data that needs to be returned to your client.voidsetIsRecurring(Boolean value) This allows you to filter payment products based on their support for recurring payments.voidLocale used in the GUI towards the consumer.withAmount(Long value) Whole amount in cents (not containing any decimals)withCountryCode(String value) ISO 3166-1 alpha-2 country code of the transactionwithCurrencyCode(String value) Three-letter ISO currency code representing the currency for the amountAllows you to hide elements from the response, reducing the amount of data that needs to be returned to your client.withIsRecurring(Boolean value) This allows you to filter payment products based on their support for recurring payments.withLocale(String value) Locale used in the GUI towards the consumer.
-
Constructor Details
-
GetPaymentProductParams
public GetPaymentProductParams()
-
-
Method Details
-
getCountryCode
ISO 3166-1 alpha-2 country code of the transaction -
setCountryCode
ISO 3166-1 alpha-2 country code of the transaction -
withCountryCode
ISO 3166-1 alpha-2 country code of the transaction -
getCurrencyCode
Three-letter ISO currency code representing the currency for the amount -
setCurrencyCode
Three-letter ISO currency code representing the currency for the amount -
withCurrencyCode
Three-letter ISO currency code representing the currency for the amount -
getLocale
Locale used in the GUI towards the consumer. -
setLocale
Locale used in the GUI towards the consumer. -
withLocale
Locale used in the GUI towards the consumer. -
getAmount
Whole amount in cents (not containing any decimals) -
setAmount
Whole amount in cents (not containing any decimals) -
withAmount
Whole amount in cents (not containing any decimals) -
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
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
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
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
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
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
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
- Specified by:
toRequestParametersin interfaceParamRequest
-