<?php

namespace Omnipay\AuthorizeNet\Message;

/**
 * Authorize.Net CIM Create card Response
 */
class CIMCreateCardResponse extends CIMAbstractResponse {

    protected $responseType = 'createCustomerProfileResponse';

    public function getCustomerProfileId() {
        if ($this->isSuccessful()) {
            return $this->data['customerProfileId'];
        }
        return null;
    }

    public function getCustomerPaymentProfileId() {
        if ($this->isSuccessful()) {
            return $this->data['customerPaymentProfileIdList'][0]['numericString'];
        }
        return null;
    }

}
