forked from LiveCarta/PayPal-PHP-SDK
- Updated OpenId classes to be in API namespace - Updated PP Naming Convention to PayPal Naming Convention - FormatConverter Class got its own namespace - Handlers are grouped in Handler namespace - Samples and Tests Updated Accordingly
118 lines
2.7 KiB
PHP
118 lines
2.7 KiB
PHP
<?php
|
|
|
|
namespace PayPal\Api;
|
|
|
|
use PayPal\Common\PayPalModel;
|
|
use PayPal\Rest\ApiContext;
|
|
|
|
|
|
/**
|
|
* Class CarrierAccountToken
|
|
*
|
|
* A resource representing a carrier account that can be used to fund a payment.
|
|
*
|
|
* @package PayPal\Api
|
|
*
|
|
* @property string carrier_account_id
|
|
* @property string external_customer_id
|
|
*/
|
|
class CarrierAccountToken extends PayPalModel
|
|
{
|
|
/**
|
|
* ID of a previously saved carrier account resource.
|
|
*
|
|
*
|
|
* @param string $carrier_account_id
|
|
* @return $this
|
|
*/
|
|
public function setCarrierAccountId($carrier_account_id)
|
|
{
|
|
$this->carrier_account_id = $carrier_account_id;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* ID of a previously saved carrier account resource.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCarrierAccountId()
|
|
{
|
|
return $this->carrier_account_id;
|
|
}
|
|
|
|
/**
|
|
* ID of a previously saved carrier account resource.
|
|
*
|
|
* @deprecated Instead use setCarrierAccountId
|
|
*
|
|
* @param string $carrier_account_id
|
|
* @return $this
|
|
*/
|
|
public function setCarrier_account_id($carrier_account_id)
|
|
{
|
|
$this->carrier_account_id = $carrier_account_id;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* ID of a previously saved carrier account resource.
|
|
* @deprecated Instead use getCarrierAccountId
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCarrier_account_id()
|
|
{
|
|
return $this->carrier_account_id;
|
|
}
|
|
|
|
/**
|
|
* The unique identifier of the payer used when saving this carrier account instrument.
|
|
*
|
|
*
|
|
* @param string $external_customer_id
|
|
* @return $this
|
|
*/
|
|
public function setExternalCustomerId($external_customer_id)
|
|
{
|
|
$this->external_customer_id = $external_customer_id;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* The unique identifier of the payer used when saving this carrier account instrument.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getExternalCustomerId()
|
|
{
|
|
return $this->external_customer_id;
|
|
}
|
|
|
|
/**
|
|
* The unique identifier of the payer used when saving this carrier account instrument.
|
|
*
|
|
* @deprecated Instead use setExternalCustomerId
|
|
*
|
|
* @param string $external_customer_id
|
|
* @return $this
|
|
*/
|
|
public function setExternal_customer_id($external_customer_id)
|
|
{
|
|
$this->external_customer_id = $external_customer_id;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* The unique identifier of the payer used when saving this carrier account instrument.
|
|
* @deprecated Instead use getExternalCustomerId
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getExternal_customer_id()
|
|
{
|
|
return $this->external_customer_id;
|
|
}
|
|
|
|
}
|