<?php

namespace Sabre\AirTicket\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PaymentCard Structs
 * @subpackage Structs
 */
class PaymentCard extends AbstractStructBase
{
    /**
     * The Code
     * Meta informations extracted from the WSDL
     * - documentation: "Code" is used to specify a credit card vendor code. | "Code" is used to specify the credit card vendor code. | "Code" is used to specify the credit card vendor code. | "Code" is used to specify the credit card vendor code. | "Code"
     * is used to specify the credit card vendor code. | "Code" is used to specify the credit card vendor code. | "Code" is used to specify the credit card vendor code. | "Code" is used to specify a credit card vendor code. | "Code" is used to specify the
     * credit card vendor code. | "Code" is used to specify the credit card vendor code. | "Code" is used to specify the credit card vendor code. | "Code" is used to specify the credit card vendor code.
     * - use: required
     * @var string
     */
    public $Code;
    /**
     * The ExpireDate
     * Meta informations extracted from the WSDL
     * - documentation: "ExpireDate" is used to specify a credit card expiration date, follows this format: YYYY-MM. | "ExpireDate" is used to specify the credit card expiration date, follows this format: YYYY-MM. | "ExpireDate" is used to specify the
     * credit card expiration date, follows this format: YYYY-MM. | "ExpireDate" is used to specify the credit card expiration date, follows this format: YYYY-MM. | "ExpireDate" is used to specify the credit card expiration date, follows this format:
     * YYYY-MM | "ExpireDate" is used to specify the credit card expiration date, follows this format: YYYY-MM | "ExpireDate" is used to specify the credit card expiration date, follows this format: YYYY-MM | "ExpireDate" is used to specify a credit card
     * expiration date, follows this format: YYYY-MM. | "ExpireDate" is used to specify the credit card expiration date, follows this format: YYYY-MM. | "ExpireDate" is used to specify the credit card expiration date, follows this format: YYYY-MM. | A type
     * representing credit card expiration date. Accepted format: "yyyy-mm"
     * - use: required
     * - pattern: \d{4}-\d{2}
     * @var int
     */
    public $ExpireDate;
    /**
     * The Number
     * Meta informations extracted from the WSDL
     * - documentation: "Number" is used to specify a credit card number. | "Number" is used to specify the credit card number. | "Number" is used to specify the credit card number. | "Number" is used to specify the credit card number. | "Number" is used to
     * specify the credit card number. | "Number" is used to specify the credit card number. | "Number" is used to specify the credit card number. | "Number" is used to specify a credit card number. | "Number" is used to specify the credit card number. |
     * "Number" is used to specify the credit card number. | "Number" is used to specify the credit card number. | "Number" is used to specify the credit card number.
     * - use: required
     * @var int
     */
    public $Number;
    /**
     * The CardSecurityCode
     * Meta informations extracted from the WSDL
     * - documentation: "CardSecurityCode" is used to specify a credit card Card Security Code number. | "CardSecurityCode" is used to specify a credit card Card Security Code number. | "CardSecurityCode" is used to specify a credit card Card Security Code
     * number. | "CardSecurityCode" is used to specify a credit card Card Security Code number. | "CardSecurityCode" is used to specify a credit card Card Security Code number. | "CardSecurityCode" is used to specify a credit card security code. |
     * "CardSecurityCode" is used to specify a credit card security code. | "CardSecurityCode" is used to specify a credit card security code.
     * - use: optional
     * @var string
     */
    public $CardSecurityCode;
    /**
     * The ExtendedPayment
     * Meta informations extracted from the WSDL
     * - documentation: "ExtendedPayment" is used to specify extended payment if applicable. | "ExtendedPayment" is used to specify extended payment if applicable. | "ExtendedPayment" is used to specify extended payment if applicable. | "ExtendedPayment" is
     * used to specify extended payment if applicable. | "ExtendedPayment" is used to specify extended payment if applicable. | "ExtendedPayment" is used to specify extended payment if applicable. | "ExtendedPayment" is used to specify extended payment if
     * applicable. | "ExtendedPayment" is used to specify extended payment if applicable. | "ExtendedPayment" is used to specify extended payment if applicable.
     * - use: optional
     * @var int
     */
    public $ExtendedPayment;
    /**
     * The ManualApprovalCode
     * Meta informations extracted from the WSDL
     * - documentation: "ManualApprovalCode" is used to specify a manual credit card approval code if applicable. | "ManualApprovalCode" is used to specify a manual credit card approval code if applicable. | "ManualApprovalCode" is used to specify a manual
     * credit card approval code if applicable. | "ManualApprovalCode" is used to specify a manual credit card approval code if applicable. | "ManualApprovalCode" is used to specify a manual credit card approval code if applicable. | "ManualApprovalCode" is
     * used to specify a manual credit card if applicable. | "ManualApprovalCode" is used to specify a manual credit card if applicable. | "ManualApprovalCode" is used to specify a manual credit card approval code if applicable. | "ManualApprovalCode" is
     * used to specify a manual credit card approval code if applicable. | "ManualApprovalCode" is used to specify a manual credit card approval code if applicable. | "ManualApprovalCode" is used to specify a manual credit card approval code if applicable.
     * | "ManualApprovalCode" is used to specify a manual credit card approval code if applicable.
     * - use: optional
     * @var string
     */
    public $ManualApprovalCode;
    /**
     * The ManualOBFee
     * Meta informations extracted from the WSDL
     * - documentation: "ManualOBFee" is used to indicate that the manual OB fee should be associated to the card. A manual OB fee can ONLY be added to a ticketing entry that references a PQ that has the PRICE-MANUAL tag at the bottom of the *PQ |
     * b"ManualOBFee" is used to indicate that the manual OB fee should be associated to the card. A manual OB fee can ONLY be added to a ticketing entry that references a PQ that has the PRICE-MANUAL tag at the bottom of the *PQ | "ManualOBFee" is used to
     * indicate that the manual OB fee should be associated to the card. A manual OB fee can ONLY be added to a ticketing entry that references a PQ that has the PRICE-MANUAL tag at the bottom of the *PQ | "ManualOBFee" is used to indicate that the manual
     * OB fee should be associated to the card. A manual OB fee can ONLY be added to a ticketing entry that references a PQ that has the 'PRICE-MANUAL' tag at the bottom of the *PQ
     * - use: optional
     * @var string
     */
    public $ManualOBFee;
    /**
     * Constructor method for PaymentCard
     * @uses PaymentCard::setCode()
     * @uses PaymentCard::setExpireDate()
     * @uses PaymentCard::setNumber()
     * @uses PaymentCard::setCardSecurityCode()
     * @uses PaymentCard::setExtendedPayment()
     * @uses PaymentCard::setManualApprovalCode()
     * @uses PaymentCard::setManualOBFee()
     * @param string $code
     * @param int $expireDate
     * @param int $number
     * @param string $cardSecurityCode
     * @param int $extendedPayment
     * @param string $manualApprovalCode
     * @param string $manualOBFee
     */
    public function __construct($code = null, $expireDate = null, $number = null, $cardSecurityCode = null, $extendedPayment = null, $manualApprovalCode = null, $manualOBFee = null)
    {
        $this
            ->setCode($code)
            ->setExpireDate($expireDate)
            ->setNumber($number)
            ->setCardSecurityCode($cardSecurityCode)
            ->setExtendedPayment($extendedPayment)
            ->setManualApprovalCode($manualApprovalCode)
            ->setManualOBFee($manualOBFee);
    }
    /**
     * Get Code value
     * @return string
     */
    public function getCode()
    {
        return $this->Code;
    }
    /**
     * Set Code value
     * @param string $code
     * @return \Sabre\AirTicket\Structs\PaymentCard
     */
    public function setCode($code = null)
    {
        $this->Code = $code;
        return $this;
    }
    /**
     * Get ExpireDate value
     * @return int
     */
    public function getExpireDate()
    {
        return $this->ExpireDate;
    }
    /**
     * Set ExpireDate value
     * @param int $expireDate
     * @return \Sabre\AirTicket\Structs\PaymentCard
     */
    public function setExpireDate($expireDate = null)
    {
        $this->ExpireDate = $expireDate;
        return $this;
    }
    /**
     * Get Number value
     * @return int
     */
    public function getNumber()
    {
        return $this->Number;
    }
    /**
     * Set Number value
     * @param int $number
     * @return \Sabre\AirTicket\Structs\PaymentCard
     */
    public function setNumber($number = null)
    {
        $this->Number = $number;
        return $this;
    }
    /**
     * Get CardSecurityCode value
     * @return string|null
     */
    public function getCardSecurityCode()
    {
        return $this->CardSecurityCode;
    }
    /**
     * Set CardSecurityCode value
     * @param string $cardSecurityCode
     * @return \Sabre\AirTicket\Structs\PaymentCard
     */
    public function setCardSecurityCode($cardSecurityCode = null)
    {
        $this->CardSecurityCode = $cardSecurityCode;
        return $this;
    }
    /**
     * Get ExtendedPayment value
     * @return int|null
     */
    public function getExtendedPayment()
    {
        return $this->ExtendedPayment;
    }
    /**
     * Set ExtendedPayment value
     * @param int $extendedPayment
     * @return \Sabre\AirTicket\Structs\PaymentCard
     */
    public function setExtendedPayment($extendedPayment = null)
    {
        $this->ExtendedPayment = $extendedPayment;
        return $this;
    }
    /**
     * Get ManualApprovalCode value
     * @return string|null
     */
    public function getManualApprovalCode()
    {
        return $this->ManualApprovalCode;
    }
    /**
     * Set ManualApprovalCode value
     * @param string $manualApprovalCode
     * @return \Sabre\AirTicket\Structs\PaymentCard
     */
    public function setManualApprovalCode($manualApprovalCode = null)
    {
        $this->ManualApprovalCode = $manualApprovalCode;
        return $this;
    }
    /**
     * Get ManualOBFee value
     * @return string|null
     */
    public function getManualOBFee()
    {
        return $this->ManualOBFee;
    }
    /**
     * Set ManualOBFee value
     * @param string $manualOBFee
     * @return \Sabre\AirTicket\Structs\PaymentCard
     */
    public function setManualOBFee($manualOBFee = null)
    {
        $this->ManualOBFee = $manualOBFee;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \Sabre\AirTicket\Structs\PaymentCard
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
