/** * @return array */ public function toParams() { $params = parent::toParams(); if (!is_null($this->type)) { $params["type"] = $this->type; } return $params; }
/** * @return array */ public function toParams() { $params = parent::toParams(); if (!is_null($this->customer)) { $params["customer"] = $this->customer; } return $params; }
/** * @return array */ public function toParams() { $params = parent::toParams(); if (!is_null($this->charge)) { $params["charge"] = $this->charge; } return $params; }
/** * @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; }
/** * @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; }
/** * @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; }