public class Payout extends PayPalResource
| Constructor and Description |
|---|
Payout()
Default Constructor
|
Payout(PayoutSenderBatchHeader senderBatchHeader,
List<PayoutItem> items)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
PayoutBatch |
create(APIContext apiContext,
Map<String,String> parameters)
Create a payout batch resource by passing a sender_batch_header and an
items array to the request URI.
|
PayoutBatch |
create(String accessToken,
Map<String,String> parameters)
Create a payout batch resource by passing a sender_batch_header and an
items array to the request URI.
|
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(String accessToken)
You can submit a payout with a synchronous API call, which immediately returns the results of a PayPal payment.
|
static PayoutBatch |
get(APIContext apiContext,
String payoutBatchId)
Obtain the status of a specific batch resource by passing the payout
batch ID to the request URI.
|
static PayoutBatch |
get(String accessToken,
String payoutBatchId)
Obtain the status of a specific batch resource by passing the payout
batch ID to the request URI.
|
List<PayoutItem> |
getItems()
Getter for items
|
List<Links> |
getLinks()
Getter for links
|
PayoutSenderBatchHeader |
getSenderBatchHeader()
Getter for senderBatchHeader
|
Payout |
setItems(List<PayoutItem> items)
Setter for items
|
Payout |
setLinks(List<Links> links)
Setter for links
|
Payout |
setSenderBatchHeader(PayoutSenderBatchHeader senderBatchHeader)
Setter for senderBatchHeader
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientID, getClientSecret, getConfigurations, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic Payout()
public Payout(PayoutSenderBatchHeader senderBatchHeader, List<PayoutItem> items)
public Payout setSenderBatchHeader(PayoutSenderBatchHeader senderBatchHeader)
public PayoutSenderBatchHeader getSenderBatchHeader()
public Payout setItems(List<PayoutItem> items)
public List<PayoutItem> getItems()
public PayoutBatch createSynchronous(String accessToken) throws PayPalRESTException
accessToken - Access Token used for the API call.PayPalRESTExceptionpublic PayoutBatch createSynchronous(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.parameters - MapPayPalRESTExceptionpublic PayoutBatch create(String accessToken, Map<String,String> parameters) throws PayPalRESTException
accessToken - Access Token used for the API call.parameters - MapPayPalRESTExceptionpublic PayoutBatch create(APIContext apiContext, Map<String,String> parameters) throws PayPalRESTException
apiContext - APIContext used for the API call.parameters - MapPayPalRESTExceptionpublic static PayoutBatch get(String accessToken, String payoutBatchId) throws PayPalRESTException
accessToken - Access Token used for the API call.payoutBatchId - StringPayPalRESTExceptionpublic static PayoutBatch get(APIContext apiContext, String payoutBatchId) throws PayPalRESTException
apiContext - APIContext used for the API call.payoutBatchId - StringPayPalRESTExceptionCopyright © 2015. All Rights Reserved.