コード例 #1
0
 /**
  * @return array
  */
 public function toParams()
 {
     $params = parent::toParams();
     if (!is_null($this->type)) {
         $params["type"] = $this->type;
     }
     return $params;
 }
コード例 #2
0
 /**
  * @return array
  */
 public function toParams()
 {
     $params = parent::toParams();
     if (!is_null($this->customer)) {
         $params["customer"] = $this->customer;
     }
     return $params;
 }
コード例 #3
0
 /**
  * @return array
  */
 public function toParams()
 {
     $params = parent::toParams();
     if (!is_null($this->charge)) {
         $params["charge"] = $this->charge;
     }
     return $params;
 }
コード例 #4
0
 /**
  * @return array
  */
 public function toParams()
 {
     $params = parent::toParams();
     if (!is_nan($this->type)) {
         $params["type"] = $this->type;
     }
     if (!is_null($this->verified)) {
         $params["verified"] = $this->verified;
     }
     return $params;
 }
コード例 #5
0
 /**
  * @return array
  */
 public function toParams()
 {
     $params = parent::toParams();
     if (!is_null($this->date)) {
         $params = array_merge($params, $this->date->toParams());
     }
     if (!is_null($this->recipient)) {
         $params["recipient"] = $this->recipient;
     }
     if (!is_null($this->status)) {
         $params["status"] = $this->status;
     }
     return $params;
 }
コード例 #6
0
 /**
  * @return array
  */
 public function toParams()
 {
     $params = parent::toParams();
     if (!is_null($this->availableOn)) {
         if ($this->availableOn instanceof AvailableOn) {
             $params = array_merge($params, $this->availableOn->toParams());
         } else {
             $params["available_on"] = $this->availableOn;
         }
     }
     if (!is_null($this->currency)) {
         $params["currency"] = $this->currency;
     }
     if (!is_null($this->source)) {
         $params["source"] = $this->source;
     }
     if (!is_null($this->transfer)) {
         $params["transfer"] = $this->transfer;
     }
     if (!is_null($this->type)) {
         $params["type"] = $this->type;
     }
     return $params;
 }