com.ingenico.connect.gateway.sdk.java.merchant.payouts.FindPayoutsParams 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.payouts;
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
* Find payouts
*/
public class FindPayoutsParams implements ParamRequest {
private String merchantReference;
private Long merchantOrderId;
private Integer offset;
private Integer limit;
/**
* Your unique transaction reference to filter on.
*/
public String getMerchantReference() {
return merchantReference;
}
/**
* Your unique transaction reference to filter on.
*/
public void setMerchantReference(String value) {
this.merchantReference = value;
}
/**
* Your order identifier to filter on.
*/
public Long getMerchantOrderId() {
return merchantOrderId;
}
/**
* Your order identifier to filter on.
*/
public void setMerchantOrderId(Long value) {
this.merchantOrderId = value;
}
/**
* The zero-based index of the first payout in the result. If omitted, the offset will be 0.
*/
public Integer getOffset() {
return offset;
}
/**
* The zero-based index of the first payout in the result. If omitted, the offset will be 0.
*/
public void setOffset(Integer value) {
this.offset = value;
}
/**
* The maximum number of payouts to return, with a maximum of 100. If omitted, the limit will be 10.
*/
public Integer getLimit() {
return limit;
}
/**
* The maximum number of payouts to return, with a maximum of 100. If omitted, the limit will be 10.
*/
public void setLimit(Integer value) {
this.limit = value;
}
@Override
public List toRequestParameters() {
List result = new LinkedList();
if (merchantReference != null) {
result.add(new RequestParam("merchantReference", merchantReference));
}
if (merchantOrderId != null) {
result.add(new RequestParam("merchantOrderId", merchantOrderId.toString()));
}
if (offset != null) {
result.add(new RequestParam("offset", offset.toString()));
}
if (limit != null) {
result.add(new RequestParam("limit", limit.toString()));
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy