<?php
/**
 * amadeus-ws-client
 *
 * Copyright 2015 Amadeus Benelux NV
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @package Amadeus
 * @license https://opensource.org/licenses/Apache-2.0 Apache 2.0
 */

namespace Amadeus\Client\Struct\DocRefund;

/**
 * DocumentNumberDetails
 *
 * @package Amadeus\Client\Struct\DocRefund
 * @author Dieter Devlieghere <dermikagh@gmail.com>
 */
class DocumentNumberDetails
{
    /**
     * @var DocumentDetails
     */
    public $documentDetails;

    /**
     * 700  no active itinerary
     * 701  Coupon notification
     * 702  Active*
     * 703  Queue placement is inhibited
     * 704  Queue level notification
     * 705  Queue being printed
     * 706  Sub-queue present
     * 707  On hold
     * A    Add
     * AC   Accrual
     * AL   Aiport control
     * ALL  Allocated
     * AVA  Available
     * B    Flown/used
     * BD   Boarded
     * C    Change
     * CK   Checked in
     * CLO  Closed
     * D    Reprint
     * DB   Deboarded
     * DN   Denied boarding
     * E    Exchanged/reissued
     * F    Critical free text
     * G    Non air segment
     * I    Original Issue (Open for Use)
     * IF   Information only
     * INU  In use
     * IO   Irregular operations
     * K    Confirmed, effective, working, firm, etc
     * LIM  Limitations on use
     * NAV  Not available
     * NC   Not checked in
     * NS   Infant, no seat
     * OF   Offloaded
     * OK   Confirmed
     * OLD  Replaced item
     * OPE  Open
     * P    Provisional, draft proposed subject to change, etc
     * PAV  Partial Availability - Specified sub-elements only
     * PE   Print Exchange
     * PR   Printed
     * PRF  Preferred
     * PRP  Proposed/Intended Allocation
     * R    Request
     * RD   Redemption
     * REP  Replacement
     * REV  Revised
     * RF   Refunded
     * RQ   Requested
     * S    Suspended
     * SA   Space Available
     * SB   Standby
     * SRV  Serviceable
     * T    Ticketed
     * UNS  Unserviceable
     * V    Void
     * WL   Waitlisted
     * X    Cancel
     *
     * @var string|int
     */
    public $status;

    /**
     * DocumentNumberDetails constructor.
     *
     * @param string $ticketNumber
     */
    public function __construct($ticketNumber)
    {
        $this->documentDetails = new DocumentDetails($ticketNumber);
    }
}
