public class Payout extends PayPalResource
| Constructor and Description |
|---|
Payout()
Default Constructor
|
Payout(PayoutSenderBatchHeader senderBatchHeader,
java.util.List<PayoutItem> items)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
PayoutBatch |
create(APIContext apiContext,
java.util.Map<java.lang.String,java.lang.String> parameters)
Create a payout batch resource by passing a sender_batch_header and an
items array to the request URI.
|
PayoutBatch |
create(java.lang.String accessToken,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Please use
create(APIContext, Map) instead. |
PayoutBatch |
createSynchronous(APIContext apiContext)
You can submit a payout with a synchronous API call, which immediately returns the results of a PayPal payment.
|
PayoutBatch |
createSynchronous(java.lang.String accessToken)
Deprecated.
Please use
createSynchronous(APIContext) instead. |
boolean |
equals(java.lang.Object o) |
static PayoutBatch |
get(APIContext apiContext,
java.lang.String payoutBatchId)
Obtain the status of a specific batch resource by passing the payout
batch ID to the request URI.
|
static PayoutBatch |
get(java.lang.String accessToken,
java.lang.String payoutBatchId)
Deprecated.
Please use
get(APIContext, String) instead. |
java.util.List<PayoutItem> |
getItems()
An array of payout items (that is, a set of individual payouts).
|
java.util.List<Links> |
getLinks() |
PayoutSenderBatchHeader |
getSenderBatchHeader()
The original batch header as provided by the payment sender.
|
int |
hashCode() |
Payout |
setItems(java.util.List<PayoutItem> items)
An array of payout items (that is, a set of individual payouts).
|
Payout |
setLinks(java.util.List<Links> links) |
Payout |
setSenderBatchHeader(PayoutSenderBatchHeader senderBatchHeader)
The original batch header as provided by the payment sender.
|
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic Payout()
public Payout(PayoutSenderBatchHeader senderBatchHeader, java.util.List<PayoutItem> items)
public PayoutBatch createSynchronous(java.lang.String accessToken) throws PayPalRESTException
createSynchronous(APIContext) instead.accessToken - Access Token used for the API call.PayPalRESTExceptionpublic PayoutBatch createSynchronous(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic PayoutBatch create(java.lang.String accessToken, java.util.Map<java.lang.String,java.lang.String> parameters) throws PayPalRESTException
create(APIContext, Map) instead.accessToken - Access Token used for the API call.parameters - MapPayPalRESTExceptionpublic PayoutBatch create(APIContext apiContext, java.util.Map<java.lang.String,java.lang.String> parameters) throws PayPalRESTException
apiContext - APIContext used for the API call.parameters - MapPayPalRESTExceptionpublic static PayoutBatch get(java.lang.String accessToken, java.lang.String payoutBatchId) throws PayPalRESTException
get(APIContext, String) instead.accessToken - Access Token used for the API call.payoutBatchId - StringPayPalRESTExceptionpublic static PayoutBatch get(APIContext apiContext, java.lang.String payoutBatchId) throws PayPalRESTException
apiContext - APIContext used for the API call.payoutBatchId - StringPayPalRESTExceptionpublic PayoutSenderBatchHeader getSenderBatchHeader()
public java.util.List<PayoutItem> getItems()
public java.util.List<Links> getLinks()
public Payout setSenderBatchHeader(PayoutSenderBatchHeader senderBatchHeader)
public Payout setItems(java.util.List<PayoutItem> items)
public boolean equals(java.lang.Object o)
equals in class PayPalModelprotected boolean canEqual(java.lang.Object other)
canEqual in class PayPalModelpublic int hashCode()
hashCode in class PayPalModel