$object->getCurrencyId(), 'selling' => $object->getSelling(), 'payment_method_type' => $object->getPaymentMethodType(), ]; return $data; } /** * @param null|string $type * @return array */ protected function rules(?string $type = 'POST'): array { return [ 'currency_id' => $type == 'POST' ? 'required' : '', 'selling' => 'required', 'payment_method_type' => 'required', ]; } /** * @return array */ protected function messages(): array { return []; } }