PATH:
home
/
lab2454c
/
keebchat.com
/
core
/
libs
/
paypal
/
vendor
/
paypal
/
rest-api-sdk-php
/
lib
/
PayPal
/
Api
<?php namespace PayPal\Api; use PayPal\Common\PayPalResourceModel; use PayPal\Rest\ApiContext; use PayPal\Transport\PayPalRestCall; use PayPal\Validation\ArgumentValidator; /** * Class Payout * * This object represents a set of payouts that includes status data for the payouts. This object enables you to create a payout using a POST request. * * @package PayPal\Api * * @property \PayPal\Api\PayoutSenderBatchHeader sender_batch_header * @property \PayPal\Api\PayoutItem[] items * @property \PayPal\Api\Links[] links */ class Payout extends PayPalResourceModel { /** * The original batch header as provided by the payment sender. * * @param \PayPal\Api\PayoutSenderBatchHeader $sender_batch_header * * @return $this */ public function setSenderBatchHeader($sender_batch_header) { $this->sender_batch_header = $sender_batch_header; return $this; } /** * The original batch header as provided by the payment sender. * * @return \PayPal\Api\PayoutSenderBatchHeader */ public function getSenderBatchHeader() { return $this->sender_batch_header; } /** * An array of payout items (that is, a set of individual payouts). * * @param \PayPal\Api\PayoutItem[] $items * * @return $this */ public function setItems($items) { $this->items = $items; return $this; } /** * An array of payout items (that is, a set of individual payouts). * * @return \PayPal\Api\PayoutItem[] */ public function getItems() { return $this->items; } /** * Append Items to the list. * * @param \PayPal\Api\PayoutItem $payoutItem * @return $this */ public function addItem($payoutItem) { if (!$this->getItems()) { return $this->setItems(array($payoutItem)); } else { return $this->setItems( array_merge($this->getItems(), array($payoutItem)) ); } } /** * Remove Items from the list. * * @param \PayPal\Api\PayoutItem $payoutItem * @return $this */ public function removeItem($payoutItem) { return $this->setItems( array_diff($this->getItems(), array($payoutItem)) ); } /** * Create a payout batch resource by passing a sender_batch_header and an items array to the request URI. The sender_batch_header contains payout parameters that describe the handling of a batch resource while the items array conatins payout items. * * @param array $params * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return PayoutBatch */ public function create($params = array(), $apiContext = null, $restCall = null) { $params = $params ? $params : array(); ArgumentValidator::validate($params, 'params'); $payLoad = $this->toJSON(); $allowedParams = array( 'sync_mode' => 1, ); $json = self::executeCall( "/v1/payments/payouts" . "?" . http_build_query(array_intersect_key($params, $allowedParams)), "POST", $payLoad, null, $apiContext, $restCall ); $ret = new PayoutBatch(); $ret->fromJson($json); return $ret; } /** * You can submit a payout with a synchronous API call, which immediately returns the results of a PayPal payment. * * @param ApiContext $apiContext * @param PayPalRestCall $restCall * @return PayoutBatch */ public function createSynchronous($apiContext = null, $restCall = null) { $params = array('sync_mode' => 'true'); return $this->create($params, $apiContext, $restCall); } /** * Obtain the status of a specific batch resource by passing the payout batch ID to the request URI. You can issue this call multiple times to get the current status. * * @param string $payoutBatchId * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return PayoutBatch */ public static function get($payoutBatchId, $apiContext = null, $restCall = null) { ArgumentValidator::validate($payoutBatchId, 'payoutBatchId'); $payLoad = ""; $json = self::executeCall( "/v1/payments/payouts/$payoutBatchId", "GET", $payLoad, null, $apiContext, $restCall ); $ret = new PayoutBatch(); $ret->fromJson($json); return $ret; } }
[-] PaymentTerm.php
[edit]
[-] Patch.php
[edit]
[-] AgreementTransaction.php
[edit]
[-] OverrideChargeModel.php
[edit]
[-] RefundDetail.php
[edit]
[-] PaymentExecution.php
[edit]
[-] CurrencyConversion.php
[edit]
[-] InvoiceItem.php
[edit]
[-] Terms.php
[edit]
[-] PaymentDetail.php
[edit]
[-] BillingInfo.php
[edit]
[-] CreditCardList.php
[edit]
[-] MerchantInfo.php
[edit]
[-] Links.php
[edit]
[-] Transactions.php
[edit]
[-] PaymentDefinition.php
[edit]
[+]
..
[-] PaymentSummary.php
[edit]
[-] OpenIdError.php
[edit]
[-] BillingAgreementToken.php
[edit]
[-] Sale.php
[edit]
[-] Item.php
[edit]
[-] Address.php
[edit]
[-] InvoiceNumber.php
[edit]
[-] Payee.php
[edit]
[-] TransactionBase.php
[edit]
[-] ExtendedBankAccount.php
[edit]
[-] AgreementStateDescriptor.php
[edit]
[-] RecipientBankingInstruction.php
[edit]
[-] WebProfile.php
[edit]
[-] Payout.php
[edit]
[-] FundingDetail.php
[edit]
[-] CreditFinancingOffered.php
[edit]
[-] PaymentCardToken.php
[edit]
[-] ProcessorResponse.php
[edit]
[-] OpenIdTokeninfo.php
[edit]
[-] PotentialPayerInfo.php
[edit]
[-] MerchantPreferences.php
[edit]
[-] InstallmentInfo.php
[edit]
[-] InvoiceSearchResponse.php
[edit]
[-] FmfDetails.php
[edit]
[-] Agreement.php
[edit]
[-] Incentive.php
[edit]
[-] OpenIdSession.php
[edit]
[-] Plan.php
[edit]
[-] Refund.php
[edit]
[-] BaseAddress.php
[edit]
[-] CreditCardToken.php
[edit]
[-] Amount.php
[edit]
[-] CreateProfileResponse.php
[edit]
[-] AgreementDetails.php
[edit]
[-] Order.php
[edit]
[-] CarrierAccount.php
[edit]
[-] FuturePayment.php
[edit]
[-] FileAttachment.php
[edit]
[-] Image.php
[edit]
[-] Details.php
[edit]
[-] RedirectUrls.php
[edit]
[-] RelatedResources.php
[edit]
[-] AlternatePayment.php
[edit]
[-] PrivateLabelCard.php
[edit]
[-] Tax.php
[edit]
[-] Phone.php
[edit]
[-] Measurement.php
[edit]
[-] RefundRequest.php
[edit]
[-] Payer.php
[edit]
[-] FundingSource.php
[edit]
[-] PayoutBatch.php
[edit]
[-] VerifyWebhookSignatureResponse.php
[edit]
[-] CarrierAccountToken.php
[edit]
[-] PayoutItem.php
[edit]
[-] Authorization.php
[edit]
[-] CreditCardHistory.php
[edit]
[-] WebhookEventTypeList.php
[edit]
[-] TemplateSettingsMetadata.php
[edit]
[-] Cost.php
[edit]
[-] PayoutItemDetails.php
[edit]
[-] NameValuePair.php
[edit]
[-] CancelNotification.php
[edit]
[-] WebhookEvent.php
[edit]
[-] ShippingInfo.php
[edit]
[-] FundingOption.php
[edit]
[-] ShippingAddress.php
[edit]
[-] HyperSchema.php
[edit]
[-] CartBase.php
[edit]
[-] PayerInfo.php
[edit]
[-] Notification.php
[edit]
[-] PaymentHistory.php
[edit]
[-] CustomAmount.php
[edit]
[-] WebhookList.php
[edit]
[-] Credit.php
[edit]
[-] PlanList.php
[edit]
[-] Metadata.php
[edit]
[-] ShippingCost.php
[edit]
[-] TemplateData.php
[edit]
[-] ChargeModel.php
[edit]
[-] Capture.php
[edit]
[-] Transaction.php
[edit]
[-] InputFields.php
[edit]
[-] OpenIdUserinfo.php
[edit]
[-] PatchRequest.php
[edit]
[-] DetailedRefund.php
[edit]
[-] PaymentCard.php
[edit]
[-] AgreementTransactions.php
[edit]
[-] Currency.php
[edit]
[-] Participant.php
[edit]
[-] PaymentOptions.php
[edit]
[-] VerifyWebhookSignature.php
[edit]
[-] BankAccountsList.php
[edit]
[-] Template.php
[edit]
[-] CountryCode.php
[edit]
[-] ErrorDetails.php
[edit]
[-] PaymentInstruction.php
[edit]
[-] TemplateSettings.php
[edit]
[-] Payment.php
[edit]
[-] Search.php
[edit]
[-] InstallmentOption.php
[edit]
[-] Invoice.php
[edit]
[-] BankAccount.php
[edit]
[-] FundingInstrument.php
[edit]
[-] FlowConfig.php
[edit]
[-] ItemList.php
[edit]
[-] Templates.php
[edit]
[-] BankToken.php
[edit]
[-] PayoutSenderBatchHeader.php
[edit]
[-] PayoutBatchHeader.php
[edit]
[-] Presentation.php
[edit]
[-] Billing.php
[edit]
[-] WebhookEventType.php
[edit]
[-] OpenIdAddress.php
[edit]
[-] InvoiceAddress.php
[edit]
[-] CreditCard.php
[edit]
[-] Webhook.php
[edit]
[-] ExternalFunding.php
[edit]
[-] WebhookEventList.php
[edit]
[-] Error.php
[edit]