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

namespace PayPalApi;

use 
PayPalCommonPayPalModel;

/**
 * Class PayoutBatchHeader
 *
 * Batch header resource.
 *
 * @package PayPalApi
 *
 * @property string payout_batch_id
 * @property string batch_status
 * @property string time_created
 * @property string time_completed
 * @property PayPalApiPayoutSenderBatchHeader sender_batch_header
 * @property PayPalApiCurrency amount
 * @property PayPalApiCurrency fees
 * @property PayPalApiError errors
 * @property PayPalApiLinks[] links
 */
class PayoutBatchHeader extends PayPalModel
{
    
/**
     * The PayPal-generated ID for a batch payout.
     *
     * @param string $payout_batch_id
     * 
     * @return $this
     */
    
public function setPayoutBatchId($payout_batch_id)
    {
        
$this->payout_batch_id $payout_batch_id;
        return 
$this;
    }

    
/**
     * The PayPal-generated ID for a batch payout.
     *
     * @return string
     */
    
public function getPayoutBatchId()
    {
        return 
$this->payout_batch_id;
    }

    
/**
     * The PayPal-generated batch payout status. If the batch payout passes the preliminary checks, the status is `PENDING`.
     *
     * @param string $batch_status
     * 
     * @return $this
     */
    
public function setBatchStatus($batch_status)
    {
        
$this->batch_status $batch_status;
        return 
$this;
    }

    
/**
     * The PayPal-generated batch payout status. If the batch payout passes the preliminary checks, the status is `PENDING`.
     *
     * @return string
     */
    
public function getBatchStatus()
    {
        return 
$this->batch_status;
    }

    
/**
     * The time the batch entered processing.
     *
     * @param string $time_created
     *
     * @return $this
     */
    
public function setTimeCreated($time_created)
    {
        
$this->time_created $time_created;
        return 
$this;
    }

    
/**
     * The time the batch entered processing.
     *
     * @return string
     */
    
public function getTimeCreated()
    {
        return 
$this->time_created;
    }

    
/**
     * The time that processing for the batch was completed.
     *
     * @param string $time_completed
     *
     * @return $this
     */
    
public function setTimeCompleted($time_completed)
    {
        
$this->time_completed $time_completed;
        return 
$this;
    }

    
/**
     * The time that processing for the batch was completed.
     *
     * @return string
     */
    
public function getTimeCompleted()
    {
        return 
$this->time_completed;
    }

    
/**
     * The original batch header as provided by the payment sender.
     *
     * @param PayPalApiPayoutSenderBatchHeader $sender_batch_header
     * 
     * @return $this
     */
    
public function setSenderBatchHeader($sender_batch_header)
    {
        
$this->sender_batch_header $sender_batch_header;
        return 
$this;
    }

    
/**
     * The sender-provided batch payout header.
     *
     * @return PayPalApiPayoutSenderBatchHeader
     */
    
public function getSenderBatchHeader()
    {
        return 
$this->sender_batch_header;
    }

    
/**
     * Total amount, in U.S. dollars, requested for the applicable payouts.
     *
     * @param PayPalApiCurrency $amount
     *
     * @return $this
     */
    
public function setAmount($amount)
    {
        
$this->amount $amount;
        return 
$this;
    }

    
/**
     * Total amount, in U.S. dollars, requested for the applicable payouts.
     *
     * @return PayPalApiCurrency
     */
    
public function getAmount()
    {
        return 
$this->amount;
    }

    
/**
     * Total estimate in U.S. dollars for the applicable payouts fees.
     *
     * @param PayPalApiCurrency $fees
     *
     * @return $this
     */
    
public function setFees($fees)
    {
        
$this->fees $fees;
        return 
$this;
    }

    
/**
     * Total estimate in U.S. dollars for the applicable payouts fees.
     *
     * @return PayPalApiCurrency
     */
    
public function getFees()
    {
        return 
$this->fees;
    }

    
/**
     * Sets Errors
     *
     * @param PayPalApiError $errors
     *
     * @return $this
     */
    
public function setErrors($errors)
    {
        
$this->errors $errors;
        return 
$this;
    }

    
/**
     * Gets Errors
     *
     * @return PayPalApiError
     */
    
public function getErrors()
    {
        return 
$this->errors;
    }

    
/**
     * 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;
    }

    
/**
     * Append Links to the list.
     *
     * @param PayPalApiLinks $links
     * @return $this
     */
    
public function addLink($links)
    {
        if (!
$this->getLinks()) {
            return 
$this->setLinks(array($links));
        } else {
            return 
$this->setLinks(
                
array_merge($this->getLinks(), array($links))
            );
        }
    }

    
/**
     * Remove Links from the list.
     *
     * @param PayPalApiLinks $links
     * @return $this
     */
    
public function removeLink($links)
    {
        return 
$this->setLinks(
            
array_diff($this->getLinks(), array($links))
        );
    }

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