Class: OpenActive::Models::Order

Inherits:
Schema::Order show all
Defined in:
lib/openactive/models/order.rb

Overview

This type is derived from [Order](schema.org/Order), which means that any of this type’s properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

Direct Known Subclasses

OrderQuote

Instance Attribute Summary collapse

Attributes inherited from Schema::Order

#accepted_offer, #billing_address, #confirmation_number, #discount, #discount_code, #discount_currency, #is_gift, #merchant, #order_date, #order_delivery, #order_status, #part_of_invoice, #payment_due, #payment_due_date, #payment_method, #payment_method_id, #payment_url

Attributes inherited from Schema::Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#booking_serviceOpenActive::Models::BookingService



21
22
23
# File 'lib/openactive/models/order.rb', line 21

def booking_service
  @booking_service
end

#brokerOpenActive::Models::Organization



26
27
28
# File 'lib/openactive/models/order.rb', line 26

def broker
  @broker
end

#broker_roleOpenActive::Enums::BrokerType?



31
32
33
# File 'lib/openactive/models/order.rb', line 31

def broker_role
  @broker_role
end

#customerOpenActive::Models::Organization, OpenActive::Models::Person



37
38
39
# File 'lib/openactive/models/order.rb', line 37

def customer
  @customer
end

#identifierint, ...



12
13
14
# File 'lib/openactive/models/order.rb', line 12

def identifier
  @identifier
end

#order_creation_statusOpenActive::Enums::OrderCreationStatus?



43
44
45
# File 'lib/openactive/models/order.rb', line 43

def order_creation_status
  @order_creation_status
end

#order_numberString

Returns:

  • (String)


54
55
56
# File 'lib/openactive/models/order.rb', line 54

def order_number
  @order_number
end

#order_proposal_versionURI

Returns:

  • (URI)


59
60
61
# File 'lib/openactive/models/order.rb', line 59

def order_proposal_version
  @order_proposal_version
end

#ordered_itemArray<OpenActive::Models::OrderItem>

Returns:



49
50
51
# File 'lib/openactive/models/order.rb', line 49

def ordered_item
  @ordered_item
end

#paymentOpenActive::Models::Payment



64
65
66
# File 'lib/openactive/models/order.rb', line 64

def payment
  @payment
end

#sellerOpenActive::Models::Person, OpenActive::Models::Organization



69
70
71
# File 'lib/openactive/models/order.rb', line 69

def seller
  @seller
end

#tax_calculation_excludedBoolean?

Returns:

  • (Boolean, nil)


75
76
77
# File 'lib/openactive/models/order.rb', line 75

def tax_calculation_excluded
  @tax_calculation_excluded
end

#total_payment_dueOpenActive::Models::PriceSpecification



81
82
83
# File 'lib/openactive/models/order.rb', line 81

def total_payment_due
  @total_payment_due
end

#total_payment_taxArray<OpenActive::Models::TaxChargeSpecification>



86
87
88
# File 'lib/openactive/models/order.rb', line 86

def total_payment_tax
  @total_payment_tax
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/order.rb', line 7

def type
  "Order"
end