PaymentMethodType::PAYMENT_METHODS_ID[$this->payment_method_type], 'selling' => [ 'type' => property_exists($this->selling, 'type') ? $this->selling->type : 'rate', 'value' => property_exists($this->selling, 'value') ? $this->selling->value : $this->selling ] ]; } }