Class: OpenActive::Models::Schema::Order

Inherits:
Intangible show all
Defined in:
lib/openactive/models/schema/order.rb

Direct Known Subclasses

Order

Instance Attribute Summary collapse

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #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

#accepted_offerOpenActive::Models::Schema::Offer



100
101
102
# File 'lib/openactive/models/schema/order.rb', line 100

def accepted_offer
  @accepted_offer
end

#billing_addressOpenActive::Models::Schema::PostalAddress



23
24
25
# File 'lib/openactive/models/schema/order.rb', line 23

def billing_address
  @billing_address
end

#brokerOpenActive::Models::Schema::Organization, OpenActive::Models::Schema::Person



115
116
117
# File 'lib/openactive/models/schema/order.rb', line 115

def broker
  @broker
end

#confirmation_numberString

Returns:

  • (String)


127
128
129
# File 'lib/openactive/models/schema/order.rb', line 127

def confirmation_number
  @confirmation_number
end

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



121
122
123
# File 'lib/openactive/models/schema/order.rb', line 121

def customer
  @customer
end

#discountString, ...

Returns:

  • (String, BigDecimal, nil)


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

def discount
  @discount
end

#discount_codeString

Returns:

  • (String)


18
19
20
# File 'lib/openactive/models/schema/order.rb', line 18

def discount_code
  @discount_code
end

#discount_currencyString

Returns:

  • (String)


95
96
97
# File 'lib/openactive/models/schema/order.rb', line 95

def discount_currency
  @discount_currency
end

#is_giftBoolean?

Returns:

  • (Boolean, nil)


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

def is_gift
  @is_gift
end

#merchantOpenActive::Models::Schema::Person, OpenActive::Models::Schema::Organization



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

def merchant
  @merchant
end

#order_dateDateTime, ...

Returns:

  • (DateTime, Date, nil)


61
62
63
# File 'lib/openactive/models/schema/order.rb', line 61

def order_date
  @order_date
end

#order_deliveryOpenActive::Models::Schema::ParcelDelivery



105
106
107
# File 'lib/openactive/models/schema/order.rb', line 105

def order_delivery
  @order_delivery
end

#order_numberString

Returns:

  • (String)


110
111
112
# File 'lib/openactive/models/schema/order.rb', line 110

def order_number
  @order_number
end

#order_statusOpenActive::Enums::Schema::OrderStatus?



132
133
134
# File 'lib/openactive/models/schema/order.rb', line 132

def order_status
  @order_status
end

#ordered_itemOpenActive::Models::Schema::Product, ...



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

def ordered_item
  @ordered_item
end

#part_of_invoiceOpenActive::Models::Schema::Invoice



51
52
53
# File 'lib/openactive/models/schema/order.rb', line 51

def part_of_invoice
  @part_of_invoice
end

#payment_dueDateTime?

Returns:

  • (DateTime, nil)


28
29
30
# File 'lib/openactive/models/schema/order.rb', line 28

def payment_due
  @payment_due
end

#payment_due_dateDate, ...

Returns:

  • (Date, DateTime, nil)


88
89
90
# File 'lib/openactive/models/schema/order.rb', line 88

def payment_due_date
  @payment_due_date
end

#payment_methodOpenActive::Enums::Schema::PaymentMethod?



34
35
36
# File 'lib/openactive/models/schema/order.rb', line 34

def payment_method
  @payment_method
end

#payment_method_idString

Returns:

  • (String)


56
57
58
# File 'lib/openactive/models/schema/order.rb', line 56

def payment_method_id
  @payment_method_id
end

#payment_urlURI

Returns:

  • (URI)


40
41
42
# File 'lib/openactive/models/schema/order.rb', line 40

def payment_url
  @payment_url
end

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



45
46
47
# File 'lib/openactive/models/schema/order.rb', line 45

def seller
  @seller
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Order"
end