subtledata 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/lib/subtledata.rb +26 -0
  2. data/lib/swagger/configuration.rb +2 -1
  3. data/lib/swagger/request.rb +4 -2
  4. data/models/authresponse.rb +52 -0
  5. data/models/authuserrequest.rb +57 -0
  6. data/models/card.rb +62 -0
  7. data/models/cardstatus.rb +47 -0
  8. data/models/category.rb +74 -0
  9. data/models/categoryimage.rb +37 -0
  10. data/models/connecteduser.rb +72 -0
  11. data/models/connectstatus.rb +42 -0
  12. data/models/country.rb +37 -0
  13. data/models/deleteuserstatus.rb +42 -0
  14. data/models/discountinfo.rb +42 -0
  15. data/models/discounttype.rb +42 -0
  16. data/models/employee.rb +132 -0
  17. data/models/externalpayment.rb +82 -0
  18. data/models/externalpaymentstatus.rb +42 -0
  19. data/models/item.rb +63 -0
  20. data/models/itemimage.rb +37 -0
  21. data/models/itemtoadd.rb +42 -0
  22. data/models/location.rb +211 -0
  23. data/models/newcard.rb +72 -0
  24. data/models/newconnection.rb +52 -0
  25. data/models/newexternalpayment.rb +77 -0
  26. data/models/newpayment.rb +62 -0
  27. data/models/newticket.rb +62 -0
  28. data/models/newuser.rb +42 -0
  29. data/models/newuserdetails.rb +82 -0
  30. data/models/openticket.rb +108 -0
  31. data/models/orderresults.rb +47 -0
  32. data/models/payment.rb +82 -0
  33. data/models/paymentstatus.rb +42 -0
  34. data/models/preauthcard.rb +72 -0
  35. data/models/preauthpayment.rb +82 -0
  36. data/models/revenuecenter.rb +42 -0
  37. data/models/state.rb +42 -0
  38. data/models/status.rb +42 -0
  39. data/models/tab.rb +92 -0
  40. data/models/tabledetails.rb +63 -0
  41. data/models/tableminimal.rb +52 -0
  42. data/models/tendertype.rb +42 -0
  43. data/models/terminal.rb +57 -0
  44. data/models/ticket.rb +188 -0
  45. data/models/ticketstatus.rb +47 -0
  46. data/models/user.rb +77 -0
  47. metadata +79 -3
data/models/payment.rb ADDED
@@ -0,0 +1,82 @@
1
+ class Payment
2
+ attr_accessor :payment_id, :card_type, :tip_amount, :total_amount, :expiration_year, :card_nickname, :name_on_tender, :expiration_month, :amount_before_tip, :credit_card_id, :last_4_digits
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :payment_id => :payment_id, :card_type => :card_type, :tip_amount => :tip_amount, :total_amount => :total_amount, :expiration_year => :expiration_year, :card_nickname => :card_nickname, :name_on_tender => :name_on_tender, :expiration_month => :expiration_month, :amount_before_tip => :amount_before_tip, :credit_card_id => :credit_card_id, :last_4_digits => :last_4_digits
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if Payment.attribute_map["payment_id".to_sym] != nil
17
+ name = "payment_id".to_sym
18
+ value = attributes["payment_id"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if Payment.attribute_map["card_type".to_sym] != nil
22
+ name = "card_type".to_sym
23
+ value = attributes["card_type"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if Payment.attribute_map["tip_amount".to_sym] != nil
27
+ name = "tip_amount".to_sym
28
+ value = attributes["tip_amount"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ if Payment.attribute_map["total_amount".to_sym] != nil
32
+ name = "total_amount".to_sym
33
+ value = attributes["total_amount"]
34
+ send("#{name}=", value) if self.respond_to?(name)
35
+ end
36
+ if Payment.attribute_map["expiration_year".to_sym] != nil
37
+ name = "expiration_year".to_sym
38
+ value = attributes["expiration_year"]
39
+ send("#{name}=", value) if self.respond_to?(name)
40
+ end
41
+ if Payment.attribute_map["card_nickname".to_sym] != nil
42
+ name = "card_nickname".to_sym
43
+ value = attributes["card_nickname"]
44
+ send("#{name}=", value) if self.respond_to?(name)
45
+ end
46
+ if Payment.attribute_map["name_on_tender".to_sym] != nil
47
+ name = "name_on_tender".to_sym
48
+ value = attributes["name_on_tender"]
49
+ send("#{name}=", value) if self.respond_to?(name)
50
+ end
51
+ if Payment.attribute_map["expiration_month".to_sym] != nil
52
+ name = "expiration_month".to_sym
53
+ value = attributes["expiration_month"]
54
+ send("#{name}=", value) if self.respond_to?(name)
55
+ end
56
+ if Payment.attribute_map["amount_before_tip".to_sym] != nil
57
+ name = "amount_before_tip".to_sym
58
+ value = attributes["amount_before_tip"]
59
+ send("#{name}=", value) if self.respond_to?(name)
60
+ end
61
+ if Payment.attribute_map["credit_card_id".to_sym] != nil
62
+ name = "credit_card_id".to_sym
63
+ value = attributes["credit_card_id"]
64
+ send("#{name}=", value) if self.respond_to?(name)
65
+ end
66
+ if Payment.attribute_map["last_4_digits".to_sym] != nil
67
+ name = "last_4_digits".to_sym
68
+ value = attributes["last_4_digits"]
69
+ send("#{name}=", value) if self.respond_to?(name)
70
+ end
71
+ end
72
+ end
73
+
74
+ def to_body
75
+ body = {}
76
+ Payment.attribute_map.each_pair do |key,value|
77
+ body[value] = self.send(key) unless self.send(key).nil?
78
+ end
79
+ body
80
+ end
81
+ end
82
+
@@ -0,0 +1,42 @@
1
+ class PaymentStatus
2
+ attr_accessor :result, :success, :error
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :result => :result, :success => :success, :error => :error
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if PaymentStatus.attribute_map["result".to_sym] != nil
17
+ name = "result".to_sym
18
+ value = attributes["result"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if PaymentStatus.attribute_map["success".to_sym] != nil
22
+ name = "success".to_sym
23
+ value = attributes["success"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if PaymentStatus.attribute_map["error".to_sym] != nil
27
+ name = "error".to_sym
28
+ value = attributes["error"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ end
32
+ end
33
+
34
+ def to_body
35
+ body = {}
36
+ PaymentStatus.attribute_map.each_pair do |key,value|
37
+ body[value] = self.send(key) unless self.send(key).nil?
38
+ end
39
+ body
40
+ end
41
+ end
42
+
@@ -0,0 +1,72 @@
1
+ class PreAuthCard
2
+ attr_accessor :name_on_card, :card_type, :billing_address, :expiration_year, :card_id, :expiration_month, :billing_zip, :nickname, :last_4_digits
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :name_on_card => :name_on_card, :card_type => :card_type, :billing_address => :billing_address, :expiration_year => :expiration_year, :card_id => :card_id, :expiration_month => :expiration_month, :billing_zip => :billing_zip, :nickname => :nickname, :last_4_digits => :last_4_digits
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if PreAuthCard.attribute_map["name_on_card".to_sym] != nil
17
+ name = "name_on_card".to_sym
18
+ value = attributes["name_on_card"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if PreAuthCard.attribute_map["card_type".to_sym] != nil
22
+ name = "card_type".to_sym
23
+ value = attributes["card_type"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if PreAuthCard.attribute_map["billing_address".to_sym] != nil
27
+ name = "billing_address".to_sym
28
+ value = attributes["billing_address"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ if PreAuthCard.attribute_map["expiration_year".to_sym] != nil
32
+ name = "expiration_year".to_sym
33
+ value = attributes["expiration_year"]
34
+ send("#{name}=", value) if self.respond_to?(name)
35
+ end
36
+ if PreAuthCard.attribute_map["card_id".to_sym] != nil
37
+ name = "card_id".to_sym
38
+ value = attributes["card_id"]
39
+ send("#{name}=", value) if self.respond_to?(name)
40
+ end
41
+ if PreAuthCard.attribute_map["expiration_month".to_sym] != nil
42
+ name = "expiration_month".to_sym
43
+ value = attributes["expiration_month"]
44
+ send("#{name}=", value) if self.respond_to?(name)
45
+ end
46
+ if PreAuthCard.attribute_map["billing_zip".to_sym] != nil
47
+ name = "billing_zip".to_sym
48
+ value = attributes["billing_zip"]
49
+ send("#{name}=", value) if self.respond_to?(name)
50
+ end
51
+ if PreAuthCard.attribute_map["nickname".to_sym] != nil
52
+ name = "nickname".to_sym
53
+ value = attributes["nickname"]
54
+ send("#{name}=", value) if self.respond_to?(name)
55
+ end
56
+ if PreAuthCard.attribute_map["last_4_digits".to_sym] != nil
57
+ name = "last_4_digits".to_sym
58
+ value = attributes["last_4_digits"]
59
+ send("#{name}=", value) if self.respond_to?(name)
60
+ end
61
+ end
62
+ end
63
+
64
+ def to_body
65
+ body = {}
66
+ PreAuthCard.attribute_map.each_pair do |key,value|
67
+ body[value] = self.send(key) unless self.send(key).nil?
68
+ end
69
+ body
70
+ end
71
+ end
72
+
@@ -0,0 +1,82 @@
1
+ class PreAuthPayment
2
+ attr_accessor :status, :tip_amount, :total_amount, :amount_before_tip, :payment_source, :external_payment_id, :external_response_field_1, :tender_type_name, :external_response_field_2, :external_response_field_3, :external_response_field_4
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :status => :status, :tip_amount => :tip_amount, :total_amount => :total_amount, :amount_before_tip => :amount_before_tip, :payment_source => :payment_source, :external_payment_id => :external_payment_id, :external_response_field_1 => :external_response_field_1, :tender_type_name => :tender_type_name, :external_response_field_2 => :external_response_field_2, :external_response_field_3 => :external_response_field_3, :external_response_field_4 => :external_response_field_4
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if PreAuthPayment.attribute_map["status".to_sym] != nil
17
+ name = "status".to_sym
18
+ value = attributes["status"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if PreAuthPayment.attribute_map["tip_amount".to_sym] != nil
22
+ name = "tip_amount".to_sym
23
+ value = attributes["tip_amount"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if PreAuthPayment.attribute_map["total_amount".to_sym] != nil
27
+ name = "total_amount".to_sym
28
+ value = attributes["total_amount"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ if PreAuthPayment.attribute_map["amount_before_tip".to_sym] != nil
32
+ name = "amount_before_tip".to_sym
33
+ value = attributes["amount_before_tip"]
34
+ send("#{name}=", value) if self.respond_to?(name)
35
+ end
36
+ if PreAuthPayment.attribute_map["payment_source".to_sym] != nil
37
+ name = "payment_source".to_sym
38
+ value = attributes["payment_source"]
39
+ send("#{name}=", value) if self.respond_to?(name)
40
+ end
41
+ if PreAuthPayment.attribute_map["external_payment_id".to_sym] != nil
42
+ name = "external_payment_id".to_sym
43
+ value = attributes["external_payment_id"]
44
+ send("#{name}=", value) if self.respond_to?(name)
45
+ end
46
+ if PreAuthPayment.attribute_map["external_response_field_1".to_sym] != nil
47
+ name = "external_response_field_1".to_sym
48
+ value = attributes["external_response_field_1"]
49
+ send("#{name}=", value) if self.respond_to?(name)
50
+ end
51
+ if PreAuthPayment.attribute_map["tender_type_name".to_sym] != nil
52
+ name = "tender_type_name".to_sym
53
+ value = attributes["tender_type_name"]
54
+ send("#{name}=", value) if self.respond_to?(name)
55
+ end
56
+ if PreAuthPayment.attribute_map["external_response_field_2".to_sym] != nil
57
+ name = "external_response_field_2".to_sym
58
+ value = attributes["external_response_field_2"]
59
+ send("#{name}=", value) if self.respond_to?(name)
60
+ end
61
+ if PreAuthPayment.attribute_map["external_response_field_3".to_sym] != nil
62
+ name = "external_response_field_3".to_sym
63
+ value = attributes["external_response_field_3"]
64
+ send("#{name}=", value) if self.respond_to?(name)
65
+ end
66
+ if PreAuthPayment.attribute_map["external_response_field_4".to_sym] != nil
67
+ name = "external_response_field_4".to_sym
68
+ value = attributes["external_response_field_4"]
69
+ send("#{name}=", value) if self.respond_to?(name)
70
+ end
71
+ end
72
+ end
73
+
74
+ def to_body
75
+ body = {}
76
+ PreAuthPayment.attribute_map.each_pair do |key,value|
77
+ body[value] = self.send(key) unless self.send(key).nil?
78
+ end
79
+ body
80
+ end
81
+ end
82
+
@@ -0,0 +1,42 @@
1
+ class RevenueCenter
2
+ attr_accessor :default_center, :revenue_center_id, :name
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :default_center => :default_center, :revenue_center_id => :revenue_center_id, :name => :name
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if RevenueCenter.attribute_map["default_center".to_sym] != nil
17
+ name = "default_center".to_sym
18
+ value = attributes["default_center"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if RevenueCenter.attribute_map["revenue_center_id".to_sym] != nil
22
+ name = "revenue_center_id".to_sym
23
+ value = attributes["revenue_center_id"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if RevenueCenter.attribute_map["name".to_sym] != nil
27
+ name = "name".to_sym
28
+ value = attributes["name"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ end
32
+ end
33
+
34
+ def to_body
35
+ body = {}
36
+ RevenueCenter.attribute_map.each_pair do |key,value|
37
+ body[value] = self.send(key) unless self.send(key).nil?
38
+ end
39
+ body
40
+ end
41
+ end
42
+
data/models/state.rb ADDED
@@ -0,0 +1,42 @@
1
+ class State
2
+ attr_accessor :abbreviation, :state_id, :country_id
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :abbreviation => :abbreviation, :state_id => :state_id, :country_id => :country_id
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if State.attribute_map["abbreviation".to_sym] != nil
17
+ name = "abbreviation".to_sym
18
+ value = attributes["abbreviation"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if State.attribute_map["state_id".to_sym] != nil
22
+ name = "state_id".to_sym
23
+ value = attributes["state_id"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if State.attribute_map["country_id".to_sym] != nil
27
+ name = "country_id".to_sym
28
+ value = attributes["country_id"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ end
32
+ end
33
+
34
+ def to_body
35
+ body = {}
36
+ State.attribute_map.each_pair do |key,value|
37
+ body[value] = self.send(key) unless self.send(key).nil?
38
+ end
39
+ body
40
+ end
41
+ end
42
+
data/models/status.rb ADDED
@@ -0,0 +1,42 @@
1
+ class Status
2
+ attr_accessor :result, :success, :error
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :result => :result, :success => :success, :error => :error
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if Status.attribute_map["result".to_sym] != nil
17
+ name = "result".to_sym
18
+ value = attributes["result"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if Status.attribute_map["success".to_sym] != nil
22
+ name = "success".to_sym
23
+ value = attributes["success"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if Status.attribute_map["error".to_sym] != nil
27
+ name = "error".to_sym
28
+ value = attributes["error"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ end
32
+ end
33
+
34
+ def to_body
35
+ body = {}
36
+ Status.attribute_map.each_pair do |key,value|
37
+ body[value] = self.send(key) unless self.send(key).nil?
38
+ end
39
+ body
40
+ end
41
+ end
42
+
data/models/tab.rb ADDED
@@ -0,0 +1,92 @@
1
+ class Tab
2
+ attr_accessor :payment_id, :name_on_card, :card_type, :expiration_year, :card_nickname, :card_id, :expiration_month, :pos_ticket_id, :table_id, :ticket_id, :table_name, :pre_auth_amount, :last_4_digits
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :payment_id => :payment_id, :name_on_card => :name_on_card, :card_type => :card_type, :expiration_year => :expiration_year, :card_nickname => :card_nickname, :card_id => :card_id, :expiration_month => :expiration_month, :pos_ticket_id => :pos_ticket_id, :table_id => :table_id, :ticket_id => :ticket_id, :table_name => :table_name, :pre_auth_amount => :pre_auth_amount, :last_4_digits => :last_4_digits
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if Tab.attribute_map["payment_id".to_sym] != nil
17
+ name = "payment_id".to_sym
18
+ value = attributes["payment_id"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if Tab.attribute_map["name_on_card".to_sym] != nil
22
+ name = "name_on_card".to_sym
23
+ value = attributes["name_on_card"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if Tab.attribute_map["card_type".to_sym] != nil
27
+ name = "card_type".to_sym
28
+ value = attributes["card_type"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ if Tab.attribute_map["expiration_year".to_sym] != nil
32
+ name = "expiration_year".to_sym
33
+ value = attributes["expiration_year"]
34
+ send("#{name}=", value) if self.respond_to?(name)
35
+ end
36
+ if Tab.attribute_map["card_nickname".to_sym] != nil
37
+ name = "card_nickname".to_sym
38
+ value = attributes["card_nickname"]
39
+ send("#{name}=", value) if self.respond_to?(name)
40
+ end
41
+ if Tab.attribute_map["card_id".to_sym] != nil
42
+ name = "card_id".to_sym
43
+ value = attributes["card_id"]
44
+ send("#{name}=", value) if self.respond_to?(name)
45
+ end
46
+ if Tab.attribute_map["expiration_month".to_sym] != nil
47
+ name = "expiration_month".to_sym
48
+ value = attributes["expiration_month"]
49
+ send("#{name}=", value) if self.respond_to?(name)
50
+ end
51
+ if Tab.attribute_map["pos_ticket_id".to_sym] != nil
52
+ name = "pos_ticket_id".to_sym
53
+ value = attributes["pos_ticket_id"]
54
+ send("#{name}=", value) if self.respond_to?(name)
55
+ end
56
+ if Tab.attribute_map["table_id".to_sym] != nil
57
+ name = "table_id".to_sym
58
+ value = attributes["table_id"]
59
+ send("#{name}=", value) if self.respond_to?(name)
60
+ end
61
+ if Tab.attribute_map["ticket_id".to_sym] != nil
62
+ name = "ticket_id".to_sym
63
+ value = attributes["ticket_id"]
64
+ send("#{name}=", value) if self.respond_to?(name)
65
+ end
66
+ if Tab.attribute_map["table_name".to_sym] != nil
67
+ name = "table_name".to_sym
68
+ value = attributes["table_name"]
69
+ send("#{name}=", value) if self.respond_to?(name)
70
+ end
71
+ if Tab.attribute_map["pre_auth_amount".to_sym] != nil
72
+ name = "pre_auth_amount".to_sym
73
+ value = attributes["pre_auth_amount"]
74
+ send("#{name}=", value) if self.respond_to?(name)
75
+ end
76
+ if Tab.attribute_map["last_4_digits".to_sym] != nil
77
+ name = "last_4_digits".to_sym
78
+ value = attributes["last_4_digits"]
79
+ send("#{name}=", value) if self.respond_to?(name)
80
+ end
81
+ end
82
+ end
83
+
84
+ def to_body
85
+ body = {}
86
+ Tab.attribute_map.each_pair do |key,value|
87
+ body[value] = self.send(key) unless self.send(key).nil?
88
+ end
89
+ body
90
+ end
91
+ end
92
+
@@ -0,0 +1,63 @@
1
+ class TableDetails
2
+ attr_accessor :pos_table_id, :subtledata_id, :revenue_center_name, :revenue_center_id, :open_tickets, :name
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :pos_table_id => :pos_table_id, :subtledata_id => :subtledata_id, :revenue_center_name => :revenue_center_name, :revenue_center_id => :revenue_center_id, :open_tickets => :open_tickets, :name => :name
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if TableDetails.attribute_map["pos_table_id".to_sym] != nil
17
+ name = "pos_table_id".to_sym
18
+ value = attributes["pos_table_id"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if TableDetails.attribute_map["subtledata_id".to_sym] != nil
22
+ name = "subtledata_id".to_sym
23
+ value = attributes["subtledata_id"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if TableDetails.attribute_map["revenue_center_name".to_sym] != nil
27
+ name = "revenue_center_name".to_sym
28
+ value = attributes["revenue_center_name"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ if TableDetails.attribute_map["revenue_center_id".to_sym] != nil
32
+ name = "revenue_center_id".to_sym
33
+ value = attributes["revenue_center_id"]
34
+ send("#{name}=", value) if self.respond_to?(name)
35
+ end
36
+ if TableDetails.attribute_map["open_tickets".to_sym] != nil
37
+ name = "open_tickets".to_sym
38
+ value = attributes["open_tickets"]
39
+ if value.is_a?(Array)
40
+ array = Array.new
41
+ value.each do |arrayValue|
42
+ array.push OpenTicket.new(arrayValue)
43
+ end
44
+ send("#{name}=", array) if self.respond_to?(name)
45
+ end
46
+ end
47
+ if TableDetails.attribute_map["name".to_sym] != nil
48
+ name = "name".to_sym
49
+ value = attributes["name"]
50
+ send("#{name}=", value) if self.respond_to?(name)
51
+ end
52
+ end
53
+ end
54
+
55
+ def to_body
56
+ body = {}
57
+ TableDetails.attribute_map.each_pair do |key,value|
58
+ body[value] = self.send(key) unless self.send(key).nil?
59
+ end
60
+ body
61
+ end
62
+ end
63
+
@@ -0,0 +1,52 @@
1
+ class TableMinimal
2
+ attr_accessor :pos_table_id, :subtledata_id, :revenue_center_name, :name, :revenue_center_id
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :pos_table_id => :pos_table_id, :subtledata_id => :subtledata_id, :revenue_center_name => :revenue_center_name, :name => :name, :revenue_center_id => :revenue_center_id
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if TableMinimal.attribute_map["pos_table_id".to_sym] != nil
17
+ name = "pos_table_id".to_sym
18
+ value = attributes["pos_table_id"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if TableMinimal.attribute_map["subtledata_id".to_sym] != nil
22
+ name = "subtledata_id".to_sym
23
+ value = attributes["subtledata_id"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if TableMinimal.attribute_map["revenue_center_name".to_sym] != nil
27
+ name = "revenue_center_name".to_sym
28
+ value = attributes["revenue_center_name"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ if TableMinimal.attribute_map["name".to_sym] != nil
32
+ name = "name".to_sym
33
+ value = attributes["name"]
34
+ send("#{name}=", value) if self.respond_to?(name)
35
+ end
36
+ if TableMinimal.attribute_map["revenue_center_id".to_sym] != nil
37
+ name = "revenue_center_id".to_sym
38
+ value = attributes["revenue_center_id"]
39
+ send("#{name}=", value) if self.respond_to?(name)
40
+ end
41
+ end
42
+ end
43
+
44
+ def to_body
45
+ body = {}
46
+ TableMinimal.attribute_map.each_pair do |key,value|
47
+ body[value] = self.send(key) unless self.send(key).nil?
48
+ end
49
+ body
50
+ end
51
+ end
52
+
@@ -0,0 +1,42 @@
1
+ class TenderType
2
+ attr_accessor :tender_type_id, :identifier, :name
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :tender_type_id => :tender_type_id, :identifier => :identifier, :name => :name
8
+
9
+ }
10
+ end
11
+
12
+ def initialize(attributes = {})
13
+ # Morph attribute keys into undescored rubyish style
14
+ if attributes.to_s != ""
15
+
16
+ if TenderType.attribute_map["tender_type_id".to_sym] != nil
17
+ name = "tender_type_id".to_sym
18
+ value = attributes["tender_type_id"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if TenderType.attribute_map["identifier".to_sym] != nil
22
+ name = "identifier".to_sym
23
+ value = attributes["identifier"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if TenderType.attribute_map["name".to_sym] != nil
27
+ name = "name".to_sym
28
+ value = attributes["name"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ end
32
+ end
33
+
34
+ def to_body
35
+ body = {}
36
+ TenderType.attribute_map.each_pair do |key,value|
37
+ body[value] = self.send(key) unless self.send(key).nil?
38
+ end
39
+ body
40
+ end
41
+ end
42
+