Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.api.payments;
  
  
  public class PaymentCardToken  {

ID of a previously saved Payment Card resource.
  
 	private String paymentCardId;

The unique identifier of the payer used when saving this payment card.
 
Last 4 digits of the card number from the saved card.
 
 	private String last4;

Type of the Card.
 
 	private String type;

card expiry month from the saved card with value 1 - 12
 
 	private int expireMonth;

4 digit card expiry year from the saved card
 
 	private int expireYear;

Default Constructor
 
 	public PaymentCardToken() {
 	}

Parameterized Constructor
 
 	public PaymentCardToken(String paymentCardIdString externalCustomerIdString type) {
 		this. = paymentCardId;
 		this. = externalCustomerId;
 		this. = type;
 	}


Setter for paymentCardId
 
 	public PaymentCardToken setPaymentCardId(String paymentCardId) {
 		this. = paymentCardId;
 		return this;
 	}

Getter for paymentCardId
 
 	public String getPaymentCardId() {
 		return this.;
 	}


Setter for externalCustomerId
 
 	public PaymentCardToken setExternalCustomerId(String externalCustomerId) {
 		this. = externalCustomerId;
 		return this;
 	}

Getter for externalCustomerId
 
 		return this.;
 	}


Setter for last4
 
 	public PaymentCardToken setLast4(String last4) {
 		this. = last4;
 		return this;
 	}

Getter for last4
 
 	public String getLast4() {
 		return this.;
 	}


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

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


Setter for expireMonth
	public PaymentCardToken setExpireMonth(int expireMonth) {
		this. = expireMonth;
		return this;
	}

Getter for expireMonth
	public int getExpireMonth() {
		return this.;
	}


Setter for expireYear
	public PaymentCardToken setExpireYear(int expireYear) {
		this. = expireYear;
		return this;
	}

Getter for expireYear
	public int getExpireYear() {
		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