['required', 'integer', Rule::exists('ec_channels', 'id')->where('company_id', company_id())], 'name' => ['required', 'string', 'max:255'], 'external_id' => [ 'required', 'string', 'max:128', Rule::unique('ec_stores', 'external_id') ->where('company_id', company_id()) ->where('channel_id', $this->input('channel_id')) ->ignore($this->route('store')), ], 'settlement_account_id' => ['nullable', 'integer', Rule::exists('accounts', 'id')->where('company_id', company_id())], 'timezone' => ['sometimes', 'timezone'], 'currency_code' => ['sometimes', 'string', 'size:3'], 'enabled' => ['sometimes', 'boolean'], ]; } }