Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

ID of a previously saved Credit Card resource using /vault/credit-card API.
 
 	private String creditCardId;

The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
 
 	private String payerId;

Last 4 digits of the card number from the saved card.
 
 	private String last4;

Type of the Card (eg. visa, mastercard, etc.) from the saved card. Please note that the values are always in lowercase and not meant to be used directly for display.
 
 	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 CreditCardToken() {
 	}

Parameterized Constructor
 
 	public CreditCardToken(String creditCardId) {
 		this. = creditCardId;
 	}


Setter for creditCardId
 
 	public CreditCardToken setCreditCardId(String creditCardId) {
 		this. = creditCardId;
 		return this;
 	}

Getter for creditCardId
 
 	public String getCreditCardId() {
 		return this.;
 	}


Setter for payerId
 
 	public CreditCardToken setPayerId(String payerId) {
 		this. = payerId;
 		return this;
 	}

Getter for payerId
 
 	public String getPayerId() {
 		return this.;
 	}


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

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


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

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


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

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


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

Getter for expireYear
	public int getExpireYear() {
		return this.;
	}
New to GrepCode? Check out our FAQ X