com.ingenico.connect.gateway.sdk.java.merchant.services.ConvertAmountParams 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.services;
import java.util.LinkedList;
import java.util.List;
import com.ingenico.connect.gateway.sdk.java.AbstractParamRequest;
import com.ingenico.connect.gateway.sdk.java.RequestParam;
/**
* Query parameters for
* Convert amount
*/
public class ConvertAmountParams extends AbstractParamRequest {
private String source;
private String target;
private Long amount;
/**
* Three-letter ISO currency code representing the source currency
*/
public String getSource() {
return source;
}
/**
* Three-letter ISO currency code representing the source currency
*/
public void setSource(String value) {
this.source = value;
}
/**
* Three-letter ISO currency code representing the target currency
*/
public String getTarget() {
return target;
}
/**
* Three-letter ISO currency code representing the target currency
*/
public void setTarget(String value) {
this.target = value;
}
/**
* Amount to be converted in cents and always having 2 decimals
*/
public Long getAmount() {
return amount;
}
/**
* Amount to be converted in cents and always having 2 decimals
*/
public void setAmount(Long value) {
this.amount = value;
}
@Override
public List toRequestParameters() {
List result = new LinkedList();
addParameter(result, "source", source);
addParameter(result, "target", target);
addParameter(result, "amount", amount);
return result;
}
}