All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mercadopago.resources.datastructures.payment.AdditionalInfo Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.mercadopago.resources.datastructures.payment;

import java.util.ArrayList;

/**
 * Mercado Pago SDK
 * Additional Info class
 *
 * Created by Eduardo Paoletta on 12/2/16.
 */
public class AdditionalInfo {

    private ArrayList items = null;
    private AdditionalInfoPayer payer = null;
    private Shipments shipments = null;
    private String ipAddress = null;


    public AdditionalInfo setItems(ArrayList items) {
        this.items = items;
        return this;
    }

    public AdditionalInfo appendItem(Item item) {
        if (items == null) {
            items = new ArrayList();
        }
        items.add(item);
        return this;
    }

    public AdditionalInfo setPayer(AdditionalInfoPayer payer) {
        this.payer = payer;
        return this;
    }

    public AdditionalInfo setShipments(Shipments shipments) {
        this.shipments = shipments;
        return this;
    }

    public String getIpAddres() {
        return ipAddress;
    }

    public AdditionalInfo setIpAddres(String ipAddres) {
        this.ipAddress = ipAddres;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy