Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/PayPal/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatch.php
Строк: 60
<?php

namespace PayPalApi;

use 
PayPalCommonPayPalModel;

/**
 * Class PayoutBatch
 *
 * The PayPal-generated batch status.
 *
 * @package PayPalApi
 *
 * @property PayPalApiPayoutBatchHeader batch_header
 * @property PayPalApiPayoutItemDetails[] items
 * @property PayPalApiLinks[] links
 */
class PayoutBatch extends PayPalModel
{
    
/**
     * A batch header. Includes the generated batch status.
     *
     * @param PayPalApiPayoutBatchHeader $batch_header
     * 
     * @return $this
     */
    
public function setBatchHeader($batch_header)
    {
        
$this->batch_header $batch_header;
        return 
$this;
    }

    
/**
     * A batch header. Includes the generated batch status.
     *
     * @return PayPalApiPayoutBatchHeader
     */
    
public function getBatchHeader()
    {
        return 
$this->batch_header;
    }

    
/**
     * An array of items in a batch payout.
     *
     * @param PayPalApiPayoutItemDetails[] $items
     * 
     * @return $this
     */
    
public function setItems($items)
    {
        
$this->items $items;
        return 
$this;
    }

    
/**
     * An array of items in a batch payout.
     *
     * @return PayPalApiPayoutItemDetails[]
     */
    
public function getItems()
    {
        return 
$this->items;
    }

    
/**
     * Append Items to the list.
     *
     * @param PayPalApiPayoutItemDetails $payoutItemDetails
     * @return $this
     */
    
public function addItem($payoutItemDetails)
    {
        if (!
$this->getItems()) {
            return 
$this->setItems(array($payoutItemDetails));
        } else {
            return 
$this->setItems(
                
array_merge($this->getItems(), array($payoutItemDetails))
            );
        }
    }

    
/**
     * Remove Items from the list.
     *
     * @param PayPalApiPayoutItemDetails $payoutItemDetails
     * @return $this
     */
    
public function removeItem($payoutItemDetails)
    {
        return 
$this->setItems(
            
array_diff($this->getItems(), array($payoutItemDetails))
        );
    }


    
/**
     * Sets Links
     *
     * @param PayPalApiLinks[] $links
     *
     * @return $this
     */
    
public function setLinks($links)
    {
        
$this->links $links;
        return 
$this;
    }

    
/**
     * Gets Links
     *
     * @return PayPalApiLinks[]
     */
    
public function getLinks()
    {
        return 
$this->links;
    }

}
Онлайн: 1
Реклама