<?php

namespace MangoPay;

class PayInPaymentDetailsApplePay extends Libraries\Dto implements PayInPaymentDetails
{
    /**
     * Payment information returned by Apple Pay payment
     * @var \MangoPay\PaymentData
     */
    public $PaymentData;

    /**
     * Custom description to show on the user's bank statement.
     * It can be up to 10 char alpha-numeric and space.
     * @var string
     */
    public $StatementDescriptor;

    public function GetSubObjects()
    {
        $subObjects = parent::GetSubObjects();

        $subObjects['PaymentData'] = '\MangoPay\PaymentData';

        return $subObjects;
    }
}
