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

namespace PayPalApi;

use 
PayPalCommonPayPalModel;

/**
 * Class CancelNotification
 *
 * Email/SMS notification.
 *
 * @package PayPalApi
 *
 * @property string subject
 * @property string note
 * @property bool send_to_merchant
 * @property bool send_to_payer
 * @property string[] cc_emails
 */
class CancelNotification extends PayPalModel
{
    
/**
     * Subject of the notification.
     *
     * @param string $subject
     * 
     * @return $this
     */
    
public function setSubject($subject)
    {
        
$this->subject $subject;
        return 
$this;
    }

    
/**
     * Subject of the notification.
     *
     * @return string
     */
    
public function getSubject()
    {
        return 
$this->subject;
    }

    
/**
     * Note to the payer.
     *
     * @param string $note
     * 
     * @return $this
     */
    
public function setNote($note)
    {
        
$this->note $note;
        return 
$this;
    }

    
/**
     * Note to the payer.
     *
     * @return string
     */
    
public function getNote()
    {
        return 
$this->note;
    }

    
/**
     * Indicates whether to send a copy of the notification to the merchant.
     *
     * @param bool $send_to_merchant
     * 
     * @return $this
     */
    
public function setSendToMerchant($send_to_merchant)
    {
        
$this->send_to_merchant $send_to_merchant;
        return 
$this;
    }

    
/**
     * Indicates whether to send a copy of the notification to the merchant.
     *
     * @return bool
     */
    
public function getSendToMerchant()
    {
        return 
$this->send_to_merchant;
    }

    
/**
     * Indicates whether to send a copy of the notification to the payer.
     *
     * @param bool $send_to_payer
     * 
     * @return $this
     */
    
public function setSendToPayer($send_to_payer)
    {
        
$this->send_to_payer $send_to_payer;
        return 
$this;
    }

    
/**
     * Indicates whether to send a copy of the notification to the payer.
     *
     * @return bool
     */
    
public function getSendToPayer()
    {
        return 
$this->send_to_payer;
    }

    
/**
     * Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
     *
     * @param string[] $cc_emails
     * 
     * @return $this
     */
    
public function setCcEmails($cc_emails)
    {
        
$this->cc_emails $cc_emails;
        return 
$this;
    }

    
/**
     * Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
     *
     * @return string[]
     */
    
public function getCcEmails()
    {
        return 
$this->cc_emails;
    }

    
/**
     * Append CcEmails to the list.
     *
     * @param string $string
     * @return $this
     */
    
public function addCcEmail($string)
    {
        if (!
$this->getCcEmails()) {
            return 
$this->setCcEmails(array($string));
        } else {
            return 
$this->setCcEmails(
                
array_merge($this->getCcEmails(), array($string))
            );
        }
    }

    
/**
     * Remove CcEmails from the list.
     *
     * @param string $string
     * @return $this
     */
    
public function removeCcEmail($string)
    {
        return 
$this->setCcEmails(
            
array_diff($this->getCcEmails(), array($string))
        );
    }

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