
com.mercadopago.resources.Preference Maven / Gradle / Ivy
package com.mercadopago.resources;
import java.util.ArrayList;
import java.util.Date;
import com.google.gson.JsonObject;
import com.mercadopago.core.MPBase;
import com.mercadopago.core.MPRequestOptions;
import com.mercadopago.core.annotations.rest.GET;
import com.mercadopago.core.annotations.rest.POST;
import com.mercadopago.core.annotations.rest.PUT;
import com.mercadopago.core.annotations.validation.NotNull;
import com.mercadopago.core.annotations.validation.Size;
import com.mercadopago.exceptions.MPException;
import com.mercadopago.resources.datastructures.preference.BackUrls;
import com.mercadopago.resources.datastructures.preference.DifferentialPricing;
import com.mercadopago.resources.datastructures.preference.Item;
import com.mercadopago.resources.datastructures.preference.Payer;
import com.mercadopago.resources.datastructures.preference.PaymentMethods;
import com.mercadopago.resources.datastructures.preference.Shipments;
import com.mercadopago.resources.datastructures.preference.Tax;
import com.mercadopago.resources.datastructures.preference.Track;
/**
* This class will allow you to charge your customers through our web form from any device in a simple, fast and secure way.
*/
public class Preference extends MPBase {
@NotNull
private ArrayList- items = null;
private Payer payer = null;
private PaymentMethods paymentMethods = null;
private Shipments shipments = null;
private BackUrls backUrls = null;
@Size(max=500) private String notificationUrl = null;
private String id = null;
private String initPoint = null;
private String sandboxInitPoint = null;
private String purpose = null;
private Date dateCreated = null;
private OperationType operationType = null;
private JsonObject metadata = null;
public enum OperationType {
regular_payment,
money_transfer,
pos_payment
}
@Size(max=600) private String additionalInfo = null;
private AutoReturn autoReturn = null;
public enum AutoReturn {
approved,
all
}
@Size(max=256) private String externalReference = null;
private Boolean expires = null;
private Date expirationDateFrom = null;
private Date expirationDateTo = null;
private Date dateOfExpiration = null;
private Float collectorId = null;
private Float clientId = null;
@Size(max=256) private String marketplace = null;
private Float marketplaceFee = null;
private DifferentialPricing differentialPricing = null;
private Integer sponsorId = null;
public enum ProcessingMode {
aggregator,
gateway
}
private ArrayList
processingModes = null;
private Boolean binaryMode = null;
private ArrayList taxes = null;
private ArrayList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy