com.ingenico.connect.gateway.sdk.java.merchant.products.NetworksParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect-sdk-java Show documentation
Show all versions of connect-sdk-java Show documentation
SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API
/*
* 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.products;
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 payment product networks
*/
public class NetworksParams implements ParamRequest {
private String countryCode;
private String currencyCode;
private Long amount;
private Boolean isRecurring;
/**
* ISO 3166-1 alpha-2 country code
*/
public String getCountryCode() {
return countryCode;
}
/**
* ISO 3166-1 alpha-2 country code
*/
public void setCountryCode(String value) {
this.countryCode = value;
}
/**
* Three-letter ISO currency code representing the currency for the amount
*/
public String getCurrencyCode() {
return currencyCode;
}
/**
* Three-letter ISO currency code representing the currency for the amount
*/
public void setCurrencyCode(String value) {
this.currencyCode = value;
}
/**
* Amount in cents and always having 2 decimals
*/
public Long getAmount() {
return amount;
}
/**
* Amount in cents and always having 2 decimals
*/
public void setAmount(Long value) {
this.amount = value;
}
/**
* This allows you to filter networks based on their support for recurring or not
* - true
*
- false
*
*/
public Boolean getIsRecurring() {
return isRecurring;
}
/**
* This allows you to filter networks based on their support for recurring or not
* - true
*
- false
*
*/
public void setIsRecurring(Boolean value) {
this.isRecurring = value;
}
@Override
public List toRequestParameters() {
List result = new LinkedList();
if (countryCode != null) {
result.add(new RequestParam("countryCode", countryCode));
}
if (currencyCode != null) {
result.add(new RequestParam("currencyCode", currencyCode));
}
if (amount != null) {
result.add(new RequestParam("amount", amount.toString()));
}
if (isRecurring != null) {
result.add(new RequestParam("isRecurring", isRecurring.toString()));
}
return result;
}
}