<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for DeliveredServiceType StructType
 * Meta information extracted from the WSDL
 * - documentation: Delivered Service is the instance of a specific flight or Service Definition as it has been offered (and eventually ordered and consumed) in the context of a specific Offer and/or Order. At the time of shopping, a service can be sold
 * to multiple passengers on a given journey. At time of order, the services should be applied to a single passenger on a single segment.
 * @subpackage Structs
 */
class DeliveredServiceType extends AbstractStructBase
{
    /**
     * The DeliveryProvider
     * Meta information extracted from the WSDL
     * - documentation: The entity responsible for delivery of a good or Service.
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var \StructType\DeliveryProviderType
     */
    public $DeliveryProvider;
    /**
     * The OrderServiceAssociation
     * Meta information extracted from the WSDL
     * - documentation: Order Service Association
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var \StructType\OrderServiceAssociationType
     */
    public $OrderServiceAssociation;
    /**
     * The PaxRefID
     * Meta information extracted from the WSDL
     * - documentation: Reference to a Passenger ID within this message | An identifier is a character string used to uniquely identify one instance of an object within an identification scheme that is managed by an agency.
     * - base: xs:token
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $PaxRefID;
    /**
     * The ServiceID
     * Meta information extracted from the WSDL
     * - documentation: Uniquely Identifies a Service within the context of one message. | An identifier is a character string used to uniquely identify one instance of an object within an identification scheme that is managed by an agency.
     * - base: xs:token
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $ServiceID;
    /**
     * The Bag
     * Meta information extracted from the WSDL
     * - documentation: A piece of luggage associated with a passenger, packed for traveling, and necessary or appropriate in connection with a journey.
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\BagType
     */
    public $Bag;
    /**
     * The BookingRef
     * Meta information extracted from the WSDL
     * - documentation: Information related to a booking or reservation.
     * - maxOccurs: 3
     * - minOccurs: 0
     * @var \StructType\BookingRefType[]
     */
    public $BookingRef;
    /**
     * The DeliveryCode
     * Meta information extracted from the WSDL
     * - documentation: Grouping of services on delivery aspects | A code is a character string of letters, numbers, special characters (except escape sequences), and symbols.
     * - base: xs:token
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $DeliveryCode;
    /**
     * The DeliveryMilestoneCode
     * Meta information extracted from the WSDL
     * - documentation: Records an event in the lifecycle of a service delivery that may or may not occur independently of a change of service status, e.g. passenger boarded, passenger accepted airside, bag loaded or offloaded. Exploratory functionality | A
     * code is a character string of letters, numbers, special characters (except escape sequences), and symbols.
     * - base: xs:token
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $DeliveryMilestoneCode;
    /**
     * The DeliveryStatusCode
     * Meta information extracted from the WSDL
     * - documentation: Status of the Service Delivery Service Status instance. See ATSB Codeset DeliveryService for possible values. | Shows the possible statuses of a service delivery item. {codeListAgencyName}IATA Code List{/codeListAgencyName}
     * {codeListName}Delivery Service Status, Coded.{/codeListName} {codeListIdentifier}DELIVERYSERVICE{/codeListIdentifier} | Represents the current status of a service delivery item
     * - base: ServiceDeliveryStatusCodeContentType
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $DeliveryStatusCode;
    /**
     * The DeliveryStatusDescText
     * Meta information extracted from the WSDL
     * - documentation: To allow passing information in addition to Service Delivery Status | Text is a character string such as a finite set of characters generally in the form of words of a language.
     * - base: xs:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $DeliveryStatusDescText;
    /**
     * The DescText
     * Meta information extracted from the WSDL
     * - documentation: Free text for textual description. | Text is a character string such as a finite set of characters generally in the form of words of a language.
     * - base: xs:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $DescText;
    /**
     * The ExpirationDateTime
     * Meta information extracted from the WSDL
     * - documentation: Used to recognize the expiration of a service delivery e.g. lounge pass expiry date. | A date time identifies a date and time of day to various common resolutions: year, month, week, day, hour, minute, second, and fraction of second.
     * - base: xs:dateTime
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $ExpirationDateTime;
    /**
     * The FutureDeliveryStatusCode
     * Meta information extracted from the WSDL
     * - documentation: Preview of the Delivery Status of the Service. as it would appear in the resulting Order, once the change is accepted and committed. See ATSB CodeSet DeliveryService for possible values. | Shows the possible statuses of a service
     * delivery item. {codeListAgencyName}IATA Code List{/codeListAgencyName} {codeListName}Delivery Service Status, Coded.{/codeListName} {codeListIdentifier}DELIVERYSERVICE{/codeListIdentifier} | Represents the current status of a service delivery item
     * - base: ServiceDeliveryStatusCodeContentType
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $FutureDeliveryStatusCode;
    /**
     * The ResponsibleAirline
     * Meta information extracted from the WSDL
     * - documentation: The organization which carries the passenger, baggage, or goods, and/or commits to delivering the carriage as well as any related services such as issuance of ticket, creation of Order, etc. Business Identifier Fields: - Airline
     * Designator Code - Duplicate Designator Indicator - Name
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\CarrierType
     */
    public $ResponsibleAirline;
    /**
     * The ServiceRefID
     * Meta information extracted from the WSDL
     * - documentation: Reference to another service instance. | An identifier is a character string used to uniquely identify one instance of an object within an identification scheme that is managed by an agency.
     * - base: xs:token
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $ServiceRefID;
    /**
     * The SettlementInfo
     * Meta information extracted from the WSDL
     * - documentation: Information related to the value of a product or service as it pertains to interline transactions.
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\SettlementInfoType
     */
    public $SettlementInfo;
    /**
     * The StatusCode
     * Meta information extracted from the WSDL
     * - documentation: Status of the Order Service Status instance. See ATSB Codeset OrderService for possible values. | The possible statuses of an Order Service {codeListAgencyName}IATA Code List{/codeListAgencyName} {codeListName}Ordered Service
     * Status,coded{/codeListName} {codeListIdentifier}ORDERSERVICE{/codeListIdentifier} | represents the statuses of an Order Service
     * - base: OrderServiceStatusCodeContentType
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $StatusCode;
    /**
     * The UnchangedInd
     * Meta information extracted from the WSDL
     * - documentation: Indicated that this service is unchanged after reshopping. | An indicator is a list of two mutually exclusive Boolean values that express the only possible states of a property.
     * - base: xs:boolean
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var bool
     */
    public $UnchangedInd;
    /**
     * The ValidatingCarrier
     * Meta information extracted from the WSDL
     * - documentation: The organization which carries the passenger, baggage, or goods, and/or commits to delivering the carriage as well as any related services such as issuance of ticket, creation of Order, etc. Business Identifier Fields: - Airline
     * Designator Code - Duplicate Designator Indicator - Name
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\CarrierType
     */
    public $ValidatingCarrier;
    /**
     * Constructor method for DeliveredServiceType
     * @uses DeliveredServiceType::setDeliveryProvider()
     * @uses DeliveredServiceType::setOrderServiceAssociation()
     * @uses DeliveredServiceType::setPaxRefID()
     * @uses DeliveredServiceType::setServiceID()
     * @uses DeliveredServiceType::setBag()
     * @uses DeliveredServiceType::setBookingRef()
     * @uses DeliveredServiceType::setDeliveryCode()
     * @uses DeliveredServiceType::setDeliveryMilestoneCode()
     * @uses DeliveredServiceType::setDeliveryStatusCode()
     * @uses DeliveredServiceType::setDeliveryStatusDescText()
     * @uses DeliveredServiceType::setDescText()
     * @uses DeliveredServiceType::setExpirationDateTime()
     * @uses DeliveredServiceType::setFutureDeliveryStatusCode()
     * @uses DeliveredServiceType::setResponsibleAirline()
     * @uses DeliveredServiceType::setServiceRefID()
     * @uses DeliveredServiceType::setSettlementInfo()
     * @uses DeliveredServiceType::setStatusCode()
     * @uses DeliveredServiceType::setUnchangedInd()
     * @uses DeliveredServiceType::setValidatingCarrier()
     * @param \StructType\DeliveryProviderType $deliveryProvider
     * @param \StructType\OrderServiceAssociationType $orderServiceAssociation
     * @param string $paxRefID
     * @param string $serviceID
     * @param \StructType\BagType $bag
     * @param \StructType\BookingRefType[] $bookingRef
     * @param string $deliveryCode
     * @param string $deliveryMilestoneCode
     * @param string $deliveryStatusCode
     * @param string $deliveryStatusDescText
     * @param string $descText
     * @param string $expirationDateTime
     * @param string $futureDeliveryStatusCode
     * @param \StructType\CarrierType $responsibleAirline
     * @param string $serviceRefID
     * @param \StructType\SettlementInfoType $settlementInfo
     * @param string $statusCode
     * @param bool $unchangedInd
     * @param \StructType\CarrierType $validatingCarrier
     */
    public function __construct(\StructType\DeliveryProviderType $deliveryProvider = null, \StructType\OrderServiceAssociationType $orderServiceAssociation = null, $paxRefID = null, $serviceID = null, \StructType\BagType $bag = null, array $bookingRef = array(), $deliveryCode = null, $deliveryMilestoneCode = null, $deliveryStatusCode = null, $deliveryStatusDescText = null, $descText = null, $expirationDateTime = null, $futureDeliveryStatusCode = null, \StructType\CarrierType $responsibleAirline = null, $serviceRefID = null, \StructType\SettlementInfoType $settlementInfo = null, $statusCode = null, $unchangedInd = null, \StructType\CarrierType $validatingCarrier = null)
    {
        $this
            ->setDeliveryProvider($deliveryProvider)
            ->setOrderServiceAssociation($orderServiceAssociation)
            ->setPaxRefID($paxRefID)
            ->setServiceID($serviceID)
            ->setBag($bag)
            ->setBookingRef($bookingRef)
            ->setDeliveryCode($deliveryCode)
            ->setDeliveryMilestoneCode($deliveryMilestoneCode)
            ->setDeliveryStatusCode($deliveryStatusCode)
            ->setDeliveryStatusDescText($deliveryStatusDescText)
            ->setDescText($descText)
            ->setExpirationDateTime($expirationDateTime)
            ->setFutureDeliveryStatusCode($futureDeliveryStatusCode)
            ->setResponsibleAirline($responsibleAirline)
            ->setServiceRefID($serviceRefID)
            ->setSettlementInfo($settlementInfo)
            ->setStatusCode($statusCode)
            ->setUnchangedInd($unchangedInd)
            ->setValidatingCarrier($validatingCarrier);
    }
    /**
     * Get DeliveryProvider value
     * @return \StructType\DeliveryProviderType
     */
    public function getDeliveryProvider()
    {
        return $this->DeliveryProvider;
    }
    /**
     * Set DeliveryProvider value
     * @param \StructType\DeliveryProviderType $deliveryProvider
     * @return \StructType\DeliveredServiceType
     */
    public function setDeliveryProvider(\StructType\DeliveryProviderType $deliveryProvider = null)
    {
        $this->DeliveryProvider = $deliveryProvider;
        return $this;
    }
    /**
     * Get OrderServiceAssociation value
     * @return \StructType\OrderServiceAssociationType
     */
    public function getOrderServiceAssociation()
    {
        return $this->OrderServiceAssociation;
    }
    /**
     * Set OrderServiceAssociation value
     * @param \StructType\OrderServiceAssociationType $orderServiceAssociation
     * @return \StructType\DeliveredServiceType
     */
    public function setOrderServiceAssociation(\StructType\OrderServiceAssociationType $orderServiceAssociation = null)
    {
        $this->OrderServiceAssociation = $orderServiceAssociation;
        return $this;
    }
    /**
     * Get PaxRefID value
     * @return string
     */
    public function getPaxRefID()
    {
        return $this->PaxRefID;
    }
    /**
     * Set PaxRefID value
     * @param string $paxRefID
     * @return \StructType\DeliveredServiceType
     */
    public function setPaxRefID($paxRefID = null)
    {
        // validation for constraint: string
        if (!is_null($paxRefID) && !is_string($paxRefID)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($paxRefID, true), gettype($paxRefID)), __LINE__);
        }
        $this->PaxRefID = $paxRefID;
        return $this;
    }
    /**
     * Get ServiceID value
     * @return string
     */
    public function getServiceID()
    {
        return $this->ServiceID;
    }
    /**
     * Set ServiceID value
     * @param string $serviceID
     * @return \StructType\DeliveredServiceType
     */
    public function setServiceID($serviceID = null)
    {
        // validation for constraint: string
        if (!is_null($serviceID) && !is_string($serviceID)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serviceID, true), gettype($serviceID)), __LINE__);
        }
        $this->ServiceID = $serviceID;
        return $this;
    }
    /**
     * Get Bag value
     * @return \StructType\BagType|null
     */
    public function getBag()
    {
        return $this->Bag;
    }
    /**
     * Set Bag value
     * @param \StructType\BagType $bag
     * @return \StructType\DeliveredServiceType
     */
    public function setBag(\StructType\BagType $bag = null)
    {
        $this->Bag = $bag;
        return $this;
    }
    /**
     * Get BookingRef value
     * @return \StructType\BookingRefType[]|null
     */
    public function getBookingRef()
    {
        return $this->BookingRef;
    }
    /**
     * This method is responsible for validating the values passed to the setBookingRef method
     * This method is willingly generated in order to preserve the one-line inline validation within the setBookingRef method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateBookingRefForArrayConstraintsFromSetBookingRef(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $deliveredServiceTypeBookingRefItem) {
            // validation for constraint: itemType
            if (!$deliveredServiceTypeBookingRefItem instanceof \StructType\BookingRefType) {
                $invalidValues[] = is_object($deliveredServiceTypeBookingRefItem) ? get_class($deliveredServiceTypeBookingRefItem) : sprintf('%s(%s)', gettype($deliveredServiceTypeBookingRefItem), var_export($deliveredServiceTypeBookingRefItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The BookingRef property can only contain items of type \StructType\BookingRefType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set BookingRef value
     * @throws \InvalidArgumentException
     * @param \StructType\BookingRefType[] $bookingRef
     * @return \StructType\DeliveredServiceType
     */
    public function setBookingRef(array $bookingRef = array())
    {
        // validation for constraint: array
        if ('' !== ($bookingRefArrayErrorMessage = self::validateBookingRefForArrayConstraintsFromSetBookingRef($bookingRef))) {
            throw new \InvalidArgumentException($bookingRefArrayErrorMessage, __LINE__);
        }
        // validation for constraint: maxOccurs(3)
        if (is_array($bookingRef) && count($bookingRef) > 3) {
            throw new \InvalidArgumentException(sprintf('Invalid count of %s, the number of elements contained by the property must be less than or equal to 3', count($bookingRef)), __LINE__);
        }
        $this->BookingRef = $bookingRef;
        return $this;
    }
    /**
     * Add item to BookingRef value
     * @throws \InvalidArgumentException
     * @param \StructType\BookingRefType $item
     * @return \StructType\DeliveredServiceType
     */
    public function addToBookingRef(\StructType\BookingRefType $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\BookingRefType) {
            throw new \InvalidArgumentException(sprintf('The BookingRef property can only contain items of type \StructType\BookingRefType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        // validation for constraint: maxOccurs(3)
        if (is_array($this->BookingRef) && count($this->BookingRef) >= 3) {
            throw new \InvalidArgumentException(sprintf('You can\'t add anymore element to this property that already contains %s elements, the number of elements contained by the property must be less than or equal to 3', count($this->BookingRef)), __LINE__);
        }
        $this->BookingRef[] = $item;
        return $this;
    }
    /**
     * Get DeliveryCode value
     * @return string|null
     */
    public function getDeliveryCode()
    {
        return $this->DeliveryCode;
    }
    /**
     * Set DeliveryCode value
     * @param string $deliveryCode
     * @return \StructType\DeliveredServiceType
     */
    public function setDeliveryCode($deliveryCode = null)
    {
        // validation for constraint: string
        if (!is_null($deliveryCode) && !is_string($deliveryCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($deliveryCode, true), gettype($deliveryCode)), __LINE__);
        }
        $this->DeliveryCode = $deliveryCode;
        return $this;
    }
    /**
     * Get DeliveryMilestoneCode value
     * @return string|null
     */
    public function getDeliveryMilestoneCode()
    {
        return $this->DeliveryMilestoneCode;
    }
    /**
     * Set DeliveryMilestoneCode value
     * @param string $deliveryMilestoneCode
     * @return \StructType\DeliveredServiceType
     */
    public function setDeliveryMilestoneCode($deliveryMilestoneCode = null)
    {
        // validation for constraint: string
        if (!is_null($deliveryMilestoneCode) && !is_string($deliveryMilestoneCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($deliveryMilestoneCode, true), gettype($deliveryMilestoneCode)), __LINE__);
        }
        $this->DeliveryMilestoneCode = $deliveryMilestoneCode;
        return $this;
    }
    /**
     * Get DeliveryStatusCode value
     * @return string|null
     */
    public function getDeliveryStatusCode()
    {
        return $this->DeliveryStatusCode;
    }
    /**
     * Set DeliveryStatusCode value
     * @param string $deliveryStatusCode
     * @return \StructType\DeliveredServiceType
     */
    public function setDeliveryStatusCode($deliveryStatusCode = null)
    {
        // validation for constraint: string
        if (!is_null($deliveryStatusCode) && !is_string($deliveryStatusCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($deliveryStatusCode, true), gettype($deliveryStatusCode)), __LINE__);
        }
        $this->DeliveryStatusCode = $deliveryStatusCode;
        return $this;
    }
    /**
     * Get DeliveryStatusDescText value
     * @return string|null
     */
    public function getDeliveryStatusDescText()
    {
        return $this->DeliveryStatusDescText;
    }
    /**
     * Set DeliveryStatusDescText value
     * @param string $deliveryStatusDescText
     * @return \StructType\DeliveredServiceType
     */
    public function setDeliveryStatusDescText($deliveryStatusDescText = null)
    {
        // validation for constraint: string
        if (!is_null($deliveryStatusDescText) && !is_string($deliveryStatusDescText)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($deliveryStatusDescText, true), gettype($deliveryStatusDescText)), __LINE__);
        }
        $this->DeliveryStatusDescText = $deliveryStatusDescText;
        return $this;
    }
    /**
     * Get DescText value
     * @return string|null
     */
    public function getDescText()
    {
        return $this->DescText;
    }
    /**
     * Set DescText value
     * @param string $descText
     * @return \StructType\DeliveredServiceType
     */
    public function setDescText($descText = null)
    {
        // validation for constraint: string
        if (!is_null($descText) && !is_string($descText)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($descText, true), gettype($descText)), __LINE__);
        }
        $this->DescText = $descText;
        return $this;
    }
    /**
     * Get ExpirationDateTime value
     * @return string|null
     */
    public function getExpirationDateTime()
    {
        return $this->ExpirationDateTime;
    }
    /**
     * Set ExpirationDateTime value
     * @param string $expirationDateTime
     * @return \StructType\DeliveredServiceType
     */
    public function setExpirationDateTime($expirationDateTime = null)
    {
        // validation for constraint: string
        if (!is_null($expirationDateTime) && !is_string($expirationDateTime)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($expirationDateTime, true), gettype($expirationDateTime)), __LINE__);
        }
        $this->ExpirationDateTime = $expirationDateTime;
        return $this;
    }
    /**
     * Get FutureDeliveryStatusCode value
     * @return string|null
     */
    public function getFutureDeliveryStatusCode()
    {
        return $this->FutureDeliveryStatusCode;
    }
    /**
     * Set FutureDeliveryStatusCode value
     * @param string $futureDeliveryStatusCode
     * @return \StructType\DeliveredServiceType
     */
    public function setFutureDeliveryStatusCode($futureDeliveryStatusCode = null)
    {
        // validation for constraint: string
        if (!is_null($futureDeliveryStatusCode) && !is_string($futureDeliveryStatusCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($futureDeliveryStatusCode, true), gettype($futureDeliveryStatusCode)), __LINE__);
        }
        $this->FutureDeliveryStatusCode = $futureDeliveryStatusCode;
        return $this;
    }
    /**
     * Get ResponsibleAirline value
     * @return \StructType\CarrierType|null
     */
    public function getResponsibleAirline()
    {
        return $this->ResponsibleAirline;
    }
    /**
     * Set ResponsibleAirline value
     * @param \StructType\CarrierType $responsibleAirline
     * @return \StructType\DeliveredServiceType
     */
    public function setResponsibleAirline(\StructType\CarrierType $responsibleAirline = null)
    {
        $this->ResponsibleAirline = $responsibleAirline;
        return $this;
    }
    /**
     * Get ServiceRefID value
     * @return string|null
     */
    public function getServiceRefID()
    {
        return $this->ServiceRefID;
    }
    /**
     * Set ServiceRefID value
     * @param string $serviceRefID
     * @return \StructType\DeliveredServiceType
     */
    public function setServiceRefID($serviceRefID = null)
    {
        // validation for constraint: string
        if (!is_null($serviceRefID) && !is_string($serviceRefID)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serviceRefID, true), gettype($serviceRefID)), __LINE__);
        }
        $this->ServiceRefID = $serviceRefID;
        return $this;
    }
    /**
     * Get SettlementInfo value
     * @return \StructType\SettlementInfoType|null
     */
    public function getSettlementInfo()
    {
        return $this->SettlementInfo;
    }
    /**
     * Set SettlementInfo value
     * @param \StructType\SettlementInfoType $settlementInfo
     * @return \StructType\DeliveredServiceType
     */
    public function setSettlementInfo(\StructType\SettlementInfoType $settlementInfo = null)
    {
        $this->SettlementInfo = $settlementInfo;
        return $this;
    }
    /**
     * Get StatusCode value
     * @return string|null
     */
    public function getStatusCode()
    {
        return $this->StatusCode;
    }
    /**
     * Set StatusCode value
     * @param string $statusCode
     * @return \StructType\DeliveredServiceType
     */
    public function setStatusCode($statusCode = null)
    {
        // validation for constraint: string
        if (!is_null($statusCode) && !is_string($statusCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($statusCode, true), gettype($statusCode)), __LINE__);
        }
        $this->StatusCode = $statusCode;
        return $this;
    }
    /**
     * Get UnchangedInd value
     * @return bool|null
     */
    public function getUnchangedInd()
    {
        return $this->UnchangedInd;
    }
    /**
     * Set UnchangedInd value
     * @param bool $unchangedInd
     * @return \StructType\DeliveredServiceType
     */
    public function setUnchangedInd($unchangedInd = null)
    {
        // validation for constraint: boolean
        if (!is_null($unchangedInd) && !is_bool($unchangedInd)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($unchangedInd, true), gettype($unchangedInd)), __LINE__);
        }
        $this->UnchangedInd = $unchangedInd;
        return $this;
    }
    /**
     * Get ValidatingCarrier value
     * @return \StructType\CarrierType|null
     */
    public function getValidatingCarrier()
    {
        return $this->ValidatingCarrier;
    }
    /**
     * Set ValidatingCarrier value
     * @param \StructType\CarrierType $validatingCarrier
     * @return \StructType\DeliveredServiceType
     */
    public function setValidatingCarrier(\StructType\CarrierType $validatingCarrier = null)
    {
        $this->ValidatingCarrier = $validatingCarrier;
        return $this;
    }
}
