Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 
 import java.util.List;
 
 public class Payer  {

Payment method being used - PayPal Wallet payment or Direct Credit card.
	private String paymentMethod;

List of funding instruments from where the funds of the current payment come from. Typically a credit card.
Information related to the Payer. In case of PayPal Wallet payment, this information will be filled in by PayPal after the user approves the payment using their PayPal Wallet.
	private PayerInfo payerInfo;

Default Constructor
	public Payer() {
	}

Parameterized Constructor
	public Payer(String paymentMethod) {
		this. = paymentMethod;
	}


Setter for paymentMethod
	public Payer setPaymentMethod(String paymentMethod) {
		this. = paymentMethod;
		return this;
	}

Getter for paymentMethod
	public String getPaymentMethod() {
		return this.;
	}


Setter for fundingInstruments
	public Payer setFundingInstruments(List<FundingInstrumentfundingInstruments) {
		this. = fundingInstruments;
		return this;
	}

Getter for fundingInstruments
		return this.;
	}


Setter for payerInfo
	public Payer setPayerInfo(PayerInfo payerInfo) {
		this. = payerInfo;
		return this;
	}

Getter for payerInfo
	public PayerInfo getPayerInfo() {
		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