Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

ID of the credit card being saved for later use.
 
 	private String id;

Card number.
 
 	private String number;

Type of the Card.
 
 	private String type;

2 digit card expiry month.
 
 	private int expireMonth;

4 digit card expiry year
 
 	private int expireYear;

2 digit card start month.
 
 	private int startMonth;

4 digit card start year.
 
 	private int startYear;

Card validation code. Only supported when making a Payment but not when saving a payment card for future use.
 
 	private int cvv2;

Card holder's first name.
 
 	private String firstName;

Card holder's last name.
 
 	private String lastName;

Billing Address associated with this card.
 
 	private Address billingAddress;

A unique identifier of the customer to whom this card account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
 
State of the funding instrument.
 
 	private String status;

Date/Time until this resource can be used fund a payment.
 
 	private String validUntil;

 
 	private List<Linkslinks;

Default Constructor
 
 	public PaymentCard() {
 	}

Parameterized Constructor
 
 	public PaymentCard(String numberString typeint expireMonthint expireYear) {
 		this. = number;
 		this. = type;
 		this. = expireMonth;
 		this. = expireYear;
	}


Setter for id
	public PaymentCard setId(String id) {
		this. = id;
		return this;
	}

Getter for id
	public String getId() {
		return this.;
	}


Setter for number
	public PaymentCard setNumber(String number) {
		this. = number;
		return this;
	}

Getter for number
	public String getNumber() {
		return this.;
	}


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

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


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

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


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

Getter for expireYear
	public int getExpireYear() {
		return this.;
	}


Setter for startMonth
	public PaymentCard setStartMonth(int startMonth) {
		this. = startMonth;
		return this;
	}

Getter for startMonth
	public int getStartMonth() {
		return this.;
	}


Setter for startYear
	public PaymentCard setStartYear(int startYear) {
		this. = startYear;
		return this;
	}

Getter for startYear
	public int getStartYear() {
		return this.;
	}


Setter for cvv2
	public PaymentCard setCvv2(int cvv2) {
		this. = cvv2;
		return this;
	}

Getter for cvv2
	public int getCvv2() {
		return this.;
	}


Setter for firstName
	public PaymentCard setFirstName(String firstName) {
		this. = firstName;
		return this;
	}

Getter for firstName
	public String getFirstName() {
		return this.;
	}


Setter for lastName
	public PaymentCard setLastName(String lastName) {
		this. = lastName;
		return this;
	}

Getter for lastName
	public String getLastName() {
		return this.;
	}


Setter for billingAddress
	public PaymentCard setBillingAddress(Address billingAddress) {
		this. = billingAddress;
		return this;
	}

Getter for billingAddress
		return this.;
	}


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

Getter for externalCustomerId
		return this.;
	}


Setter for status
	public PaymentCard setStatus(String status) {
		this. = status;
		return this;
	}

Getter for status
	public String getStatus() {
		return this.;
	}


Setter for validUntil
	public PaymentCard setValidUntil(String validUntil) {
		this. = validUntil;
		return this;
	}

Getter for validUntil
	public String getValidUntil() {
		return this.;
	}


Setter for links
	public PaymentCard setLinks(List<Linkslinks) {
		this. = links;
		return this;
	}

Getter for links
	public List<LinksgetLinks() {
		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