Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.api.payments;
  
  import  com.paypal.core.rest.JSONFormatter;
  
  public class CartBase  {

Amount being collected.
 
 	private Amount amount;

Recipient of the funds in this transaction.
 
 	private Payee payee;

Description of what is being paid for.
 
 	private String description;

Note to the recipient of the funds in this transaction.
 
 	private String noteToPayee;

free-form field for the use of clients
 
 	private String custom;

invoice number to track this payment
 
 	private String invoiceNumber;

Soft descriptor used when charging this funding source.
 
 	private String softDescriptor;

Payment options requested for this purchase unit
 
List of items being paid for.
 
 	private ItemList itemList;

Default Constructor
 
 	public CartBase() {
 	}


Setter for amount
 
 	public CartBase setAmount(Amount amount) {
 		this. = amount;
 		return this;
 	}

Getter for amount
 
 	public Amount getAmount() {
 		return this.;
 	}


Setter for payee
 
 	public CartBase setPayee(Payee payee) {
 		this. = payee;
 		return this;
 	}

Getter for payee
 
 	public Payee getPayee() {
 		return this.;
 	}


Setter for description
 
 	public CartBase setDescription(String description) {
 		this. = description;
		return this;
	}

Getter for description
	public String getDescription() {
		return this.;
	}


Setter for noteToPayee
	public CartBase setNoteToPayee(String noteToPayee) {
		this. = noteToPayee;
		return this;
	}

Getter for noteToPayee
	public String getNoteToPayee() {
		return this.;
	}


Setter for custom
	public CartBase setCustom(String custom) {
		this. = custom;
		return this;
	}

Getter for custom
	public String getCustom() {
		return this.;
	}


Setter for invoiceNumber
	public CartBase setInvoiceNumber(String invoiceNumber) {
		this. = invoiceNumber;
		return this;
	}

Getter for invoiceNumber
		return this.;
	}


Setter for softDescriptor
	public CartBase setSoftDescriptor(String softDescriptor) {
		this. = softDescriptor;
		return this;
	}

Getter for softDescriptor
		return this.;
	}


Setter for paymentOptions
	public CartBase setPaymentOptions(PaymentOptions paymentOptions) {
		this. = paymentOptions;
		return this;
	}

Getter for paymentOptions
		return this.;
	}


Setter for itemList
	public CartBase setItemList(ItemList itemList) {
		this. = itemList;
		return this;
	}

Getter for itemList
	public ItemList getItemList() {
		return this.;
	}

Returns a JSON string corresponding to object state

Returns:
JSON representation
	public String toJSON() {
		return JSONFormatter.toJSON(this);
	}
	public String toString() {
		return toJSON();
	}
New to GrepCode? Check out our FAQ X