|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.paypal.api.payments.CreditCard
public class CreditCard
| Constructor Summary | |
|---|---|
CreditCard()
Default Constructor |
|
CreditCard(String number,
String type,
int expireMonth,
int expireYear)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
CreditCard |
create(com.paypal.core.rest.APIContext apiContext)
Creates a new Credit Card Resource (aka Tokenize). |
CreditCard |
create(String accessToken)
Creates a new Credit Card Resource (aka Tokenize). |
void |
delete(com.paypal.core.rest.APIContext apiContext)
Delete the Credit Card resource for the given identifier. |
void |
delete(String accessToken)
Delete the Credit Card resource for the given identifier. |
static CreditCard |
get(com.paypal.core.rest.APIContext apiContext,
String creditCardId)
Obtain the Credit Card resource for the given identifier. |
static CreditCard |
get(String accessToken,
String creditCardId)
Obtain the Credit Card resource for the given identifier. |
Address |
getBillingAddress()
Getter for billingAddress |
String |
getCvv2()
Getter for cvv2 |
int |
getExpireMonth()
Getter for expireMonth |
int |
getExpireYear()
Getter for expireYear |
String |
getFirstName()
Getter for firstName |
String |
getId()
Getter for id |
String |
getLastName()
Getter for lastName |
static String |
getLastRequest()
Returns the last request sent to the Service |
static String |
getLastResponse()
Returns the last response returned by the Service |
List<Links> |
getLinks()
Getter for links |
String |
getNumber()
Getter for number |
String |
getPayerId()
Getter for payerId |
String |
getState()
Getter for state |
String |
getType()
Getter for type |
String |
getValidUntil()
Getter for validUntil |
static void |
initConfig(File file)
Initialize using a File(Properties file) |
static void |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static void |
initConfig(Properties properties)
Initialize using Properties |
CreditCard |
setBillingAddress(Address billingAddress)
Setter for billingAddress |
CreditCard |
setCvv2(String cvv2)
Setter for cvv2 |
CreditCard |
setExpireMonth(int expireMonth)
Setter for expireMonth |
CreditCard |
setExpireYear(int expireYear)
Setter for expireYear |
CreditCard |
setFirstName(String firstName)
Setter for firstName |
CreditCard |
setId(String id)
Setter for id |
CreditCard |
setLastName(String lastName)
Setter for lastName |
CreditCard |
setLinks(List<Links> links)
Setter for links |
CreditCard |
setNumber(String number)
Setter for number |
CreditCard |
setPayerId(String payerId)
Setter for payerId |
CreditCard |
setState(String state)
Setter for state |
CreditCard |
setType(String type)
Setter for type |
CreditCard |
setValidUntil(String validUntil)
Setter for validUntil |
String |
toJSON()
Returns a JSON string corresponding to object state |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CreditCard()
public CreditCard(String number,
String type,
int expireMonth,
int expireYear)
| Method Detail |
|---|
public static String getLastRequest()
public static String getLastResponse()
public static void initConfig(InputStream is)
throws com.paypal.core.rest.PayPalRESTException
is - InputStream
com.paypal.core.rest.PayPalRESTException
public static void initConfig(File file)
throws com.paypal.core.rest.PayPalRESTException
file - File object of a properties entity
com.paypal.core.rest.PayPalRESTExceptionpublic static void initConfig(Properties properties)
properties - Properties objectpublic CreditCard setId(String id)
public String getId()
public CreditCard setNumber(String number)
public String getNumber()
public CreditCard setType(String type)
public String getType()
public CreditCard setExpireMonth(int expireMonth)
public int getExpireMonth()
public CreditCard setExpireYear(int expireYear)
public int getExpireYear()
public CreditCard setCvv2(String cvv2)
public String getCvv2()
public CreditCard setFirstName(String firstName)
public String getFirstName()
public CreditCard setLastName(String lastName)
public String getLastName()
public CreditCard setBillingAddress(Address billingAddress)
public Address getBillingAddress()
public CreditCard setPayerId(String payerId)
public String getPayerId()
public CreditCard setState(String state)
public String getState()
public CreditCard setValidUntil(String validUntil)
public String getValidUntil()
public CreditCard setLinks(List<Links> links)
public List<Links> getLinks()
public CreditCard create(String accessToken)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.
com.paypal.core.rest.PayPalRESTException
public CreditCard create(com.paypal.core.rest.APIContext apiContext)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.
com.paypal.core.rest.PayPalRESTException
public static CreditCard get(String accessToken,
String creditCardId)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.creditCardId - String
com.paypal.core.rest.PayPalRESTException
public static CreditCard get(com.paypal.core.rest.APIContext apiContext,
String creditCardId)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.creditCardId - String
com.paypal.core.rest.PayPalRESTException
public void delete(String accessToken)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.
com.paypal.core.rest.PayPalRESTException
public void delete(com.paypal.core.rest.APIContext apiContext)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.
com.paypal.core.rest.PayPalRESTExceptionpublic String toJSON()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||