Overview

Classes

  • Syspay_Merchant_AstroPayBanksRequest
  • Syspay_Merchant_BillingAgreementCancellationRequest
  • Syspay_Merchant_BillingAgreementInfoRequest
  • Syspay_Merchant_BillingAgreementListRequest
  • Syspay_Merchant_BillingAgreementRequest
  • Syspay_Merchant_ChargebackInfoRequest
  • Syspay_Merchant_ChargebackListRequest
  • Syspay_Merchant_Client
  • Syspay_Merchant_ConfirmRequest
  • Syspay_Merchant_EMS
  • Syspay_Merchant_Entity
  • Syspay_Merchant_Entity_AstroPayBank
  • Syspay_Merchant_Entity_BillingAgreement
  • Syspay_Merchant_Entity_Chargeback
  • Syspay_Merchant_Entity_Creditcard
  • Syspay_Merchant_Entity_Customer
  • Syspay_Merchant_Entity_Eterminal
  • Syspay_Merchant_Entity_Payment
  • Syspay_Merchant_Entity_PaymentMethod
  • Syspay_Merchant_Entity_PaymentRecipient
  • Syspay_Merchant_Entity_Plan
  • Syspay_Merchant_Entity_Refund
  • Syspay_Merchant_Entity_Subscription
  • Syspay_Merchant_Entity_SubscriptionEvent
  • Syspay_Merchant_EterminalRequest
  • Syspay_Merchant_IpAddressesRequest
  • Syspay_Merchant_PaymentInfoRequest
  • Syspay_Merchant_PaymentListRequest
  • Syspay_Merchant_PaymentRequest
  • Syspay_Merchant_PlanInfoRequest
  • Syspay_Merchant_PlanRequest
  • Syspay_Merchant_PlanUpdateRequest
  • Syspay_Merchant_RebillRequest
  • Syspay_Merchant_Redirect
  • Syspay_Merchant_RefundInfoRequest
  • Syspay_Merchant_RefundListRequest
  • Syspay_Merchant_RefundRequest
  • Syspay_Merchant_Request
  • Syspay_Merchant_SubscriptionCancellationRequest
  • Syspay_Merchant_SubscriptionInfoRequest
  • Syspay_Merchant_SubscriptionRebillRequest
  • Syspay_Merchant_SubscriptionRequest
  • Syspay_Merchant_Utils
  • Syspay_Merchant_VoidRequest

Interfaces

  • Syspay_Merchant_Entity_ReturnedEntityInterface

Exceptions

  • Syspay_Merchant_EMSException
  • Syspay_Merchant_RedirectException
  • Syspay_Merchant_RequestException
  • Syspay_Merchant_UnexpectedResponseException
  • Overview
  • Class
  • Tree
  1: <?php
  2: 
  3: /**
  4:  * An AstroPay Bank
  5:  */
  6: class Syspay_Merchant_Entity_AstroPayBank extends Syspay_Merchant_Entity implements
  7:     Syspay_Merchant_Entity_ReturnedEntityInterface
  8: {
  9:     /**
 10:      * The bank code
 11:      * @var string
 12:      */
 13:     private $code;
 14: 
 15:     /**
 16:      * The bank name
 17:      * @var string
 18:      */
 19:     private $name;
 20: 
 21:     /**
 22:      * The full URL to the bank logo
 23:      * @var string
 24:      */
 25:     private $logoUrl;
 26: 
 27:     /**
 28:      * {@inheritDoc}
 29:      */
 30:     public static function buildFromResponse(stdClass $response)
 31:     {
 32:         $bank = new self();
 33:         $bank->setCode(isset($response->code)?$response->code:null);
 34:         $bank->setName(isset($response->name)?$response->name:null);
 35:         $bank->setLogoUrl(isset($response->logo)?$response->logo:null);
 36: 
 37:         $bank->raw = $response;
 38: 
 39:         return $bank;
 40:     }
 41: 
 42:     /**
 43:      * Gets the The bank code.
 44:      *
 45:      * @return string
 46:      */
 47:     public function getCode()
 48:     {
 49:         return $this->code;
 50:     }
 51: 
 52:     /**
 53:      * Sets the The bank code.
 54:      *
 55:      * @param string $code the code
 56:      *
 57:      * @return self
 58:      */
 59:     public function setCode($code)
 60:     {
 61:         $this->code = $code;
 62: 
 63:         return $this;
 64:     }
 65: 
 66:     /**
 67:      * Gets the The bank name.
 68:      *
 69:      * @return string
 70:      */
 71:     public function getName()
 72:     {
 73:         return $this->name;
 74:     }
 75: 
 76:     /**
 77:      * Sets the The bank name.
 78:      *
 79:      * @param string $name the name
 80:      *
 81:      * @return self
 82:      */
 83:     public function setName($name)
 84:     {
 85:         $this->name = $name;
 86: 
 87:         return $this;
 88:     }
 89: 
 90:     /**
 91:      * Gets the The full URL to the bank logo.
 92:      *
 93:      * @return string
 94:      */
 95:     public function getLogoUrl()
 96:     {
 97:         return $this->logoUrl;
 98:     }
 99: 
100:     /**
101:      * Sets the The full URL to the bank logo.
102:      *
103:      * @param string $logoUrl the logo url
104:      *
105:      * @return self
106:      */
107:     public function setLogoUrl($logoUrl)
108:     {
109:         $this->logoUrl = $logoUrl;
110: 
111:         return $this;
112:     }
113: }
114: 
Syspay Merchant SDK API documentation generated by ApiGen 2.8.0