Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.api.payments;
  
  
  
  public class PaymentDetail  extends PayPalModel {

PayPal payment detail indicating whether payment was made in an invoicing flow via PayPal or externally. In the case of the mark-as-paid API, payment type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
 
 	private String type;

PayPal payment transaction id. Mandatory field in case the type value is PAYPAL.
 
 	private String transactionId;

Type of the transaction.
 
 	private String transactionType;

Date when the invoice was paid. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST.
 
 	private String date;

Payment mode or method. This field is mandatory if the value of the type field is OTHER.
 
 	private String method;

Optional note associated with the payment.
 
 	private String note;

Default Constructor
 
 	public PaymentDetail() {
 	}

Parameterized Constructor
 
 	public PaymentDetail(String method) {
 		this. = method;
 	}


Setter for type
 
 	public PaymentDetail setType(String type) {
 		this. = type;
 		return this;
 	}

Getter for type
 
 	public String getType() {
 		return this.;
 	}


Setter for transactionId
 
 	public PaymentDetail setTransactionId(String transactionId) {
 		this. = transactionId;
 		return this;
 	}

Getter for transactionId
 
 	public String getTransactionId() {
 		return this.;
 	}


Setter for transactionType
 
 	public PaymentDetail setTransactionType(String transactionType) {
 		this. = transactionType;
 		return this;
 	}

Getter for transactionType
 
 	public String getTransactionType() {
 		return this.;
 	}


Setter for date
	public PaymentDetail setDate(String date) {
		this. = date;
		return this;
	}

Getter for date
	public String getDate() {
		return this.;
	}


Setter for method
	public PaymentDetail setMethod(String method) {
		this. = method;
		return this;
	}

Getter for method
	public String getMethod() {
		return this.;
	}


Setter for note
	public PaymentDetail setNote(String note) {
		this. = note;
		return this;
	}

Getter for note
	public String getNote() {
		return this.;
	}
New to GrepCode? Check out our FAQ X