*/ public function store(): BelongsTo { return $this->belongsTo(Store::class); } /** * Malaysian payment methods asked for on the account, by our name, with the column that remembers it. * Cards are always on. */ public const array METHODS = ['fpx' => 'fpx_requested', 'grabpay' => 'grabpay_requested']; /** * The methods not asked for yet. * * @return list */ public function methodsToRequest(): array { return array_keys(array_filter(self::METHODS, fn (string $column) => ! $this->{$column})); } /** * @return array */ protected function casts(): array { return [ 'charges_enabled' => 'boolean', 'payouts_enabled' => 'boolean', 'details_submitted' => 'boolean', 'fpx_requested' => 'boolean', 'grabpay_requested' => 'boolean', 'checked_at' => 'datetime', ]; } }