Class: Centaman::Object::PurchasedTicket

Inherits:
Centaman::Object show all
Defined in:
lib/centaman/object/purchased_ticket.rb

Instance Method Summary collapse

Methods inherited from Centaman::Object

#after_init, #define_variables, #initialize

Constructor Details

This class inherits a constructor from Centaman::Object

Instance Method Details

#attributesObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/centaman/object/purchased_ticket.rb', line 2

def attributes
  [
    Centaman::Attribute.new(
      centaman_key: "ItemDescription",
      app_key: :item_description,
      type: :string
    ),
    Centaman::Attribute.new(
      centaman_key: "ItemDescription",
      app_key: :display_age_group,
      type: :display_age_group
    ),
    Centaman::Attribute.new(
      centaman_key: "ItemCode",
      app_key: :item_code,
      type: :string
    ),
    Centaman::Attribute.new(
      centaman_key: "Quantity",
      app_key: :quantity,
      type: :integer
    ),
    Centaman::Attribute.new(
      centaman_key: "ItemCost",
      app_key: :item_cost,
      type: :float
    ),
    Centaman::Attribute.new(
      centaman_key: "TotalPaid",
      app_key: :total_paid,
      type: :float
    ),
    Centaman::Attribute.new(
      centaman_key: "TaxPaid",
      app_key: :tax_paid,
      type: :float
    ),
    Centaman::Attribute.new(
      centaman_key: "Barcode",
      app_key: :barcode,
      type: :string
    ),
    Centaman::Attribute.new(
      centaman_key: "AttendeeName",
      app_key: :attendee_name,
      type: :string
    ),
    Centaman::Attribute.new(
      centaman_key: "IsExtraItem",
      app_key: :is_extra_item,
      type: :boolean
    ),
    Centaman::Attribute.new(
      centaman_key: "CouponCode",
      app_key: :coupon_code,
      type: :string
    ),
    Centaman::Attribute.new(
      centaman_key: "CostRateId",
      app_key: :cost_rate_id,
      type: :string
    ),
  ]
end