All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ingenico.connect.gateway.sdk.java.merchant.services.PrivacypolicyParams Maven / Gradle / Ivy

Go to download

SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API

There is a newer version: 6.47.0
Show newest version
/*
 * This class was auto-generated from the API references found at
 * https://epayments-api.developer-ingenico.com/s2sapi/v1/
 */
package com.ingenico.connect.gateway.sdk.java.merchant.services;

import java.util.LinkedList;
import java.util.List;

import com.ingenico.connect.gateway.sdk.java.ParamRequest;
import com.ingenico.connect.gateway.sdk.java.RequestParam;

/**
 * Query parameters for
 * Get privacy policy
 */
public class PrivacypolicyParams implements ParamRequest {

	private String locale;

	private Integer paymentProductId;

	/**
	 * Locale in which the privacy policy should be returned. Uses your default locale when none is provided.
	 */
	public String getLocale() {
		return locale;
	}

	/**
	 * Locale in which the privacy policy should be returned. Uses your default locale when none is provided.
	 */
	public void setLocale(String value) {
		this.locale = value;
	}

	/**
	 * ID of the payment product for which you wish to retrieve the privacy policy. When no ID is provided you will receive all privacy policies for your payment products.
	 */
	public Integer getPaymentProductId() {
		return paymentProductId;
	}

	/**
	 * ID of the payment product for which you wish to retrieve the privacy policy. When no ID is provided you will receive all privacy policies for your payment products.
	 */
	public void setPaymentProductId(Integer value) {
		this.paymentProductId = value;
	}

	@Override
	public List toRequestParameters() {
		List result = new LinkedList();
		if (locale != null) {
			result.add(new RequestParam("locale", locale));
		}
		if (paymentProductId != null) {
			result.add(new RequestParam("paymentProductId", paymentProductId.toString()));
		}
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy