lib/openactive/models/schema/invoice.rb in openactive-0.2.2 vs lib/openactive/models/schema/invoice.rb in openactive-0.3.0

- old
+ new

@@ -6,104 +6,105 @@ # @return [String] def type "schema:Invoice" end - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] - define_property :customer, as: "customer", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,URI] + define_property :total_payment_due, as: "totalPaymentDue", types: [ + "OpenActive::Models::Schema::MonetaryAmount", + "OpenActive::Models::Schema::PriceSpecification", "URI", ] # @return [ActiveSupport::Duration,URI,nil] define_property :billing_period, as: "billingPeriod", types: [ "DateInterval", "URI", "null", ] - # @return [OpenActive::Models::Schema::PriceSpecification,OpenActive::Models::Schema::MonetaryAmount,URI] - define_property :total_payment_due, as: "totalPaymentDue", types: [ - "OpenActive::Models::Schema::PriceSpecification", - "OpenActive::Models::Schema::MonetaryAmount", + # @return [OpenActive::Models::Schema::Order,URI] + define_property :references_order, as: "referencesOrder", types: [ + "OpenActive::Models::Schema::Order", "URI", ] - # @return [DateTime,nil] - define_property :payment_due, as: "paymentDue", types: [ - "DateTime", - "null", - ] - - # @return [OpenActive::Models::Schema::PriceSpecification,OpenActive::Models::Schema::MonetaryAmount,URI] - define_property :minimum_payment_due, as: "minimumPaymentDue", types: [ - "OpenActive::Models::Schema::PriceSpecification", - "OpenActive::Models::Schema::MonetaryAmount", - "URI", - ] - # @return [String] - define_property :confirmation_number, as: "confirmationNumber", types: [ + define_property :account_id, as: "accountId", types: [ "string", ] - # @return [String,OpenActive::Models::Schema::PaymentStatusType,URI] - define_property :payment_status, as: "paymentStatus", types: [ - "string", - "OpenActive::Models::Schema::PaymentStatusType", + # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil] + define_property :category, as: "category", types: [ "URI", + "string", + "OpenActive::Enums::Schema::PhysicalActivityCategory", + "OpenActive::Models::Schema::Thing", + "OpenActive::Models::Schema::CategoryCode", + "null", ] - # @return [String] - define_property :payment_method_id, as: "paymentMethodId", types: [ - "string", + # @return [Date,nil] + define_property :scheduled_payment_date, as: "scheduledPaymentDate", types: [ + "Date", + "null", ] # @return [String] - define_property :account_id, as: "accountId", types: [ + define_property :confirmation_number, as: "confirmationNumber", types: [ "string", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] - define_property :broker, as: "broker", types: [ - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :customer, as: "customer", types: [ "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", "URI", ] - # @return [OpenActive::Models::Schema::Order,URI] - define_property :references_order, as: "referencesOrder", types: [ - "OpenActive::Models::Schema::Order", - "URI", - ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] define_property :provider, as: "provider", types: [ "OpenActive::Models::Schema::Organization", "OpenActive::Models::Schema::Person", "URI", ] - # @return [Date,nil] - define_property :scheduled_payment_date, as: "scheduledPaymentDate", types: [ - "Date", - "null", + # @return [OpenActive::Models::Schema::MonetaryAmount,OpenActive::Models::Schema::PriceSpecification,URI] + define_property :minimum_payment_due, as: "minimumPaymentDue", types: [ + "OpenActive::Models::Schema::MonetaryAmount", + "OpenActive::Models::Schema::PriceSpecification", + "URI", ] # @return [DateTime,Date,nil] define_property :payment_due_date, as: "paymentDueDate", types: [ "DateTime", "Date", "null", ] - # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,String,URI,OpenActive::Models::Schema::Thing,nil] - define_property :category, as: "category", types: [ - "OpenActive::Enums::Schema::PhysicalActivityCategory", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :broker, as: "broker", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", + ] + + # @return [OpenActive::Models::Schema::PaymentStatusType,String,URI] + define_property :payment_status, as: "paymentStatus", types: [ + "OpenActive::Models::Schema::PaymentStatusType", "string", "URI", - "OpenActive::Models::Schema::Thing", + ] + + # @return [String] + define_property :payment_method_id, as: "paymentMethodId", types: [ + "string", + ] + + # @return [DateTime,nil] + define_property :payment_due, as: "paymentDue", types: [ + "DateTime", "null", ] # @return [OpenActive::Enums::Schema::PaymentMethod,nil] define_property :payment_method, as: "paymentMethod", types: [