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

net.authorize.data.cim.PaymentProfile Maven / Gradle / Ivy

Go to download

Authorize.Net SDK includes standard payments, recurring billing, and customer profiles.

There is a newer version: 3.0.0
Show newest version
package net.authorize.data.cim;

import java.io.Serializable;
import java.util.ArrayList;

import net.authorize.data.xml.Address;
import net.authorize.data.xml.CustomerType;
import net.authorize.data.xml.Payment;

import javax.xml.bind.annotation.XmlRootElement;

/**
*
* @deprecated since version 1.9.8
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API (package: net.authorize.api.*).
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-java/tree/master/src/main/java/net/authorize/sample/PaymentTransactions.
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
*
*/
@Deprecated
@XmlRootElement
public class PaymentProfile implements Serializable {
	private static final long serialVersionUID = 1L;

    protected CustomerType customerType;
    protected Address billTo;
    protected ArrayList paymentList = new ArrayList();
    protected String customerPaymentProfileId;

    private PaymentProfile() {}

    public static PaymentProfile createPaymentProfile() {
    	return new PaymentProfile();
    }

    /**
     * Gets the value of the customerType property.
     *
     * @return
     *     possible object is
     *     {@link CustomerType }
     *
     */
    public CustomerType getCustomerType() {
        return customerType;
    }

    /**
     * Sets the value of the customerType property.
     *
     * @param value
     *     allowed object is
     *     {@link CustomerType }
     *
     */
    public void setCustomerType(CustomerType value) {
        this.customerType = value;
    }

    /**
     * Gets the value of the billTo property.
     *
     * @return
     *     possible object is
     *     {@link Address }
     *
     */
    public Address getBillTo() {
        return billTo;
    }

    /**
     * Sets the value of the billTo property.
     *
     * @param value
     *     allowed object is
     *     {@link Address }
     *
     */
    public void setBillTo(Address value) {
        this.billTo = value;
    }

	/**
	 * @return the paymentList
	 */
	public ArrayList getPaymentList() {
		return paymentList;
	}

	/**
	 * Add a Payment container to the payment list.
	 * @param payment
	 */
	public void addPayment(Payment payment) {
		if(this.paymentList == null) {
			this.paymentList = new ArrayList();
		}

		this.paymentList.add(payment);
	}

	/**
	 * @param paymentList the payments to set
	 */
	public void setPaymentList(ArrayList paymentList) {
		this.paymentList = paymentList;
	}

	/**
	 * @return the customerPaymentProfileId
	 */
	public String getCustomerPaymentProfileId() {
		return customerPaymentProfileId;
	}

	/**
	 * @param customerPaymentProfileId the customerPaymentProfileId to set
	 */
	public void setCustomerPaymentProfileId(String customerPaymentProfileId) {
		this.customerPaymentProfileId = customerPaymentProfileId;
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy