Method: OryClient::Subscription#valid?
- Defined in:
- lib/ory-client/models/subscription.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/ory-client/models/subscription.rb', line 225 def valid? return false if @created_at.nil? return false if @current_interval.nil? current_interval_validator = EnumAttributeValidator.new('String', ["monthly", "yearly"]) return false unless current_interval_validator.valid?(@current_interval) return false if @current_plan.nil? return false if @customer_id.nil? return false if @id.nil? return false if @payed_until.nil? return false if @status.nil? return false if @updated_at.nil? true end |