PATH:
home
/
lab2454c
/
tripvare.com
/
backup
/
vendor
/
academe
/
authorizenet-objects
/
src
/
Request
/
Model
<?php namespace Academe\AuthorizeNet\Request\Model; /** * */ use Academe\AuthorizeNet\TransactionRequestInterface; use Academe\AuthorizeNet\PaymentInterface; use Academe\AuthorizeNet\AmountInterface; use Academe\AuthorizeNet\AbstractModel; class Surcharge extends AbstractModel { protected $amount; protected $description; public function __construct(AmountInterface $amount = null, $description = null) { parent::__construct(); if ($amount!== null) { $this->setAmount($amount); } $this->setDescription($description); } public function hasAny() { return $this->hasAmount() || $this->hasDescription(); } public function jsonSerialize() { $data = []; if ($this->hasAmount()) { $data['amount'] = $this->getAmount(); } if ($this->hasDescription()) { $data['description'] = $this->getDescription(); } return $data; } protected function setAmount(AmountInterface $value) { $this->amount = $value; } protected function setDescription($value) { $this->description = $value; } }
[-] UserField.php
[edit]
[+]
..
[-] PaymentProfile.php
[edit]
[-] Order.php
[edit]
[-] NameAddress.php
[edit]
[-] ExtendedAmount.php
[edit]
[-] Customer.php
[edit]
[-] Setting.php
[edit]
[-] Surcharge.php
[edit]
[-] Profile.php
[edit]
[-] HostedPaymentSetting.php
[edit]
[-] LineItem.php
[edit]
[-] Retail.php
[edit]
[-] CardholderAuthentication.php
[edit]