|
||||||||||
| 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(APIContext apiContext)
Creates a new Credit Card Resource (aka Tokenize). |
CreditCard |
create(String accessToken)
Creates a new Credit Card Resource (aka Tokenize). |
void |
delete(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(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 |
int |
getCvv2()
Getter for cvv2 |
int |
getExpireMonth()
Getter for expireMonth |
int |
getExpireYear()
Getter for expireYear |
String |
getExternalCustomerId()
Getter for externalCustomerId |
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 |
getState()
Getter for state |
String |
getType()
Getter for type |
String |
getValidUntil()
Getter for validUntil |
static OAuthTokenCredential |
initConfig(File file)
Initialize using a File(Properties file) |
static OAuthTokenCredential |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static OAuthTokenCredential |
initConfig(Properties properties)
Initialize using Properties |
static CreditCardHistory |
list(APIContext apiContext,
Map<String,String> containerMap)
Retrieves a list of Credit Card resources. |
static CreditCardHistory |
list(String accessToken,
Map<String,String> containerMap)
Retrieves a list of Credit Card resources. |
CreditCard |
setBillingAddress(Address billingAddress)
Setter for billingAddress |
CreditCard |
setCvv2(int cvv2)
Setter for cvv2 |
CreditCard |
setExpireMonth(int expireMonth)
Setter for expireMonth |
CreditCard |
setExpireYear(int expireYear)
Setter for expireYear |
CreditCard |
setExternalCustomerId(String externalCustomerId)
Setter for externalCustomerId |
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 |
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()
|
CreditCard |
update(APIContext apiContext)
Update information in a previously saved card. |
CreditCard |
update(String accessToken)
Update information in a previously saved card. |
| 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 OAuthTokenCredential initConfig(InputStream is)
throws PayPalRESTException
is - InputStream
PayPalRESTException
public static OAuthTokenCredential initConfig(File file)
throws PayPalRESTException
file - File object of a properties entity
PayPalRESTExceptionpublic static OAuthTokenCredential initConfig(Properties properties)
properties - Properties object
public 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(int cvv2)
public int 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 setExternalCustomerId(String externalCustomerId)
public String getExternalCustomerId()
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 PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public CreditCard create(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public static CreditCard get(String accessToken,
String creditCardId)
throws PayPalRESTException
accessToken - Access Token used for the API call.creditCardId - String
PayPalRESTException
public static CreditCard get(APIContext apiContext,
String creditCardId)
throws PayPalRESTException
apiContext - APIContext used for the API call.creditCardId - String
PayPalRESTException
public void delete(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public void delete(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public CreditCard update(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public CreditCard update(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public static CreditCardHistory list(String accessToken,
Map<String,String> containerMap)
throws PayPalRESTException
accessToken - Access Token used for the API call.containerMap - MapPayPalRESTException
public static CreditCardHistory list(APIContext apiContext,
Map<String,String> containerMap)
throws PayPalRESTException
apiContext - APIContext used for the API call.containerMap - MapPayPalRESTExceptionpublic 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 | |||||||||