public class AgreementToken
extends com.paypal.base.rest.PayPalResource
| Constructor and Description |
|---|
AgreementToken() |
AgreementToken(String tokenId) |
AgreementToken(String description,
com.paypal.api.payments.Payer payer,
com.paypal.api.payments.Plan plan) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
AgreementToken |
create(com.paypal.base.rest.APIContext apiContext)
Create a new billing agreement token by passing the details for the agreement, including the description, payer, and billing plan in the request JSON.
|
boolean |
equals(Object o) |
static AgreementToken |
execute(AgreementToken agreementToken,
com.paypal.base.rest.APIContext apiContext)
Execute a billing agreement after buyer approval by passing the payment token to the request URI.
|
String |
getDescription() |
String |
getId() |
List<com.paypal.api.payments.Links> |
getLinks() |
com.paypal.api.payments.Payer |
getPayer() |
com.paypal.api.payments.Plan |
getPlan() |
com.paypal.api.payments.Address |
getShippingAddress() |
String |
getTokenId() |
int |
hashCode() |
AgreementToken |
setDescription(String description) |
AgreementToken |
setId(String id) |
AgreementToken |
setLinks(List<com.paypal.api.payments.Links> links) |
AgreementToken |
setPayer(com.paypal.api.payments.Payer payer) |
AgreementToken |
setPlan(com.paypal.api.payments.Plan plan) |
AgreementToken |
setShippingAddress(com.paypal.api.payments.Address shippingAddress) |
AgreementToken |
setTokenId(String tokenId) |
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultpublic AgreementToken()
public AgreementToken(String tokenId)
public AgreementToken(String description, com.paypal.api.payments.Payer payer, com.paypal.api.payments.Plan plan)
public AgreementToken create(com.paypal.base.rest.APIContext apiContext) throws com.paypal.base.rest.PayPalRESTException
apiContext - APIContext used for the API call.com.paypal.base.rest.PayPalRESTExceptionpublic static AgreementToken execute(AgreementToken agreementToken, com.paypal.base.rest.APIContext apiContext) throws com.paypal.base.rest.PayPalRESTException
apiContext - APIContext used for the API call.tokenId - payment tokenId (e.g., BA-8A802366G0648845Y)com.paypal.base.rest.PayPalRESTExceptionpublic String getId()
public AgreementToken setId(String id)
public String getDescription()
public AgreementToken setDescription(String description)
public com.paypal.api.payments.Payer getPayer()
public AgreementToken setPayer(com.paypal.api.payments.Payer payer)
public com.paypal.api.payments.Plan getPlan()
public AgreementToken setPlan(com.paypal.api.payments.Plan plan)
public com.paypal.api.payments.Address getShippingAddress()
public AgreementToken setShippingAddress(com.paypal.api.payments.Address shippingAddress)
public String getTokenId()
public AgreementToken setTokenId(String tokenId)
public List<com.paypal.api.payments.Links> getLinks()
public AgreementToken setLinks(List<com.paypal.api.payments.Links> links)
public boolean equals(Object o)
equals in class com.paypal.base.rest.PayPalModelprotected boolean canEqual(Object other)
canEqual in class com.paypal.base.rest.PayPalModelpublic int hashCode()
hashCode in class com.paypal.base.rest.PayPalModelCopyright © 2025. All rights reserved.