licenseKey = $licenseKey; $this->domain = $domain; $this->productSlug = $productSlug; $this->creditType = $creditType; $this->poolId = $poolId; $this->creditsRefunded = $creditsRefunded; $this->idempotencyKey = $idempotencyKey; } /** * @return RefundPayload */ public function toArray(): array { return [ 'license_key' => $this->licenseKey, 'domain' => $this->domain, 'product_slug' => $this->productSlug, 'credit_type' => $this->creditType, 'pool_id' => $this->poolId, 'credits_refunded' => $this->creditsRefunded, ]; } }