com.mercadopago.resources.Preference Maven / Gradle / Ivy
package com.mercadopago.resources;
import com.google.gson.JsonObject;
import com.mercadopago.MercadoPago;
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.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;
/**
* Mercado Pago MercadoPago
* This resource allows you to set up, during the Payment process, all the item information,
* any accepted means of Payment and many other options.
*
* Created by Eduardo Paoletta on 11/9/16.
*/
public class Preference extends MPBase {
@NotNull
private ArrayList- items = null;
@NotNull
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 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 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