lib/openactive/models/schema/order.rb in openactive-0.1.2 vs lib/openactive/models/schema/order.rb in openactive-0.2.0

- old
+ new

@@ -12,126 +12,135 @@ define_property :is_gift, as: "isGift", types: [ "bool", "null", ] + # @return [OpenActive::Models::Schema::ParcelDelivery,URI] + define_property :order_delivery, as: "orderDelivery", types: [ + "OpenActive::Models::Schema::ParcelDelivery", + "URI", + ] + + # @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::Offer,URI] + define_property :accepted_offer, as: "acceptedOffer", types: [ + "OpenActive::Models::Schema::Offer", + "URI", + ] + # @return [String] - define_property :discount_code, as: "discountCode", types: [ + define_property :discount_currency, as: "discountCurrency", types: [ "string", ] - # @return [OpenActive::Models::Schema::PostalAddress] - define_property :billing_address, as: "billingAddress", types: [ - "OpenActive::Models::Schema::PostalAddress", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :seller, as: "seller", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", ] # @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: [ - "OpenActive::Enums::Schema::PaymentMethod", - "null", + # @return [String] + define_property :confirmation_number, as: "confirmationNumber", types: [ + "string", ] - # @return [URI] - define_property :payment_url, as: "paymentUrl", types: [ + # @return [String] + define_property :order_number, as: "orderNumber", types: [ + "string", + ] + + # @return [String] + define_property :payment_method_id, as: "paymentMethodId", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::PostalAddress,URI] + define_property :billing_address, as: "billingAddress", types: [ + "OpenActive::Models::Schema::PostalAddress", "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization] - define_property :seller, as: "seller", types: [ + # @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::Invoice] + # @return [URI] + define_property :payment_url, as: "paymentUrl", types: [ + "URI", + ] + + # @return [OpenActive::Models::Schema::Invoice,URI] define_property :part_of_invoice, as: "partOfInvoice", types: [ "OpenActive::Models::Schema::Invoice", + "URI", ] - # @return [String] - define_property :payment_method_id, as: "paymentMethodId", types: [ - "string", - ] - # @return [DateTime,Date,nil] - define_property :order_date, as: "orderDate", types: [ + define_property :payment_due_date, as: "paymentDueDate", types: [ "DateTime", "Date", "null", ] - # @return [String,BigDecimal,nil] - define_property :discount, as: "discount", types: [ - "string", - "Number", - "null", - ] - - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization] + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] define_property :merchant, as: "merchant", types: [ "OpenActive::Models::Schema::Person", "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::Service,OpenActive::Models::Schema::OrderItem] + # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::OrderItem,OpenActive::Models::Schema::Service,URI] define_property :ordered_item, as: "orderedItem", types: [ "OpenActive::Models::Schema::Product", - "OpenActive::Models::Schema::Service", "OpenActive::Models::Schema::OrderItem", + "OpenActive::Models::Schema::Service", + "URI", ] - # @return [Date,DateTime,nil] - define_property :payment_due_date, as: "paymentDueDate", types: [ - "Date", + # @return [DateTime,Date,nil] + define_property :order_date, as: "orderDate", types: [ "DateTime", + "Date", "null", ] - # @return [String] - define_property :discount_currency, as: "discountCurrency", types: [ - "string", + # @return [OpenActive::Enums::Schema::PaymentMethod,nil] + define_property :payment_method, as: "paymentMethod", types: [ + "OpenActive::Enums::Schema::PaymentMethod", + "null", ] - # @return [OpenActive::Models::Schema::Offer] - define_property :accepted_offer, as: "acceptedOffer", types: [ - "OpenActive::Models::Schema::Offer", - ] - - # @return [OpenActive::Models::Schema::ParcelDelivery] - define_property :order_delivery, as: "orderDelivery", types: [ - "OpenActive::Models::Schema::ParcelDelivery", - ] - # @return [String] - define_property :order_number, as: "orderNumber", types: [ + define_property :discount_code, as: "discountCode", types: [ "string", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person] - define_property :broker, as: "broker", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::OrderStatus,URI] + define_property :order_status, as: "orderStatus", types: [ + "OpenActive::Models::Schema::OrderStatus", + "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization] - define_property :customer, as: "customer", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", - ] - - # @return [String] - define_property :confirmation_number, as: "confirmationNumber", types: [ + # @return [BigDecimal,String,nil] + define_property :discount, as: "discount", types: [ + "Number", "string", - ] - - # @return [OpenActive::Enums::Schema::OrderStatus,nil] - define_property :order_status, as: "orderStatus", types: [ - "OpenActive::Enums::Schema::OrderStatus", "null", ] end end end