subtledata 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,132 @@
1
+ class Employee
2
+ attr_accessor :ssn, :last_name, :middle_name, :emergency_contact_number, :date_terminated, :dob, :alcohol_commission_number, :alcohol_commission_expiration_date, :first_name, :is_manager, :health_cert_number, :mobile_phone, :date_hired, :home_phone, :country_of_nationality, :emergency_contact_name, :health_cert_expiration_date, :date_last_review, :user_name, :email, :employee_id
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :ssn => :ssn, :last_name => :last_name, :middle_name => :middle_name, :emergency_contact_number => :emergency_contact_number, :date_terminated => :date_terminated, :dob => :dob, :alcohol_commission_number => :alcohol_commission_number, :alcohol_commission_expiration_date => :alcohol_commission_expiration_date, :first_name => :first_name, :is_manager => :is_manager, :health_cert_number => :health_cert_number, :mobile_phone => :mobile_phone, :date_hired => :date_hired, :home_phone => :home_phone, :country_of_nationality => :country_of_nationality, :emergency_contact_name => :emergency_contact_name, :health_cert_expiration_date => :health_cert_expiration_date, :date_last_review => :date_last_review, :user_name => :user_name, :email => :email, :employee_id => :employee_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 Employee.attribute_map["ssn".to_sym] != nil
17
+ name = "ssn".to_sym
18
+ value = attributes["ssn"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if Employee.attribute_map["last_name".to_sym] != nil
22
+ name = "last_name".to_sym
23
+ value = attributes["last_name"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if Employee.attribute_map["middle_name".to_sym] != nil
27
+ name = "middle_name".to_sym
28
+ value = attributes["middle_name"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ if Employee.attribute_map["emergency_contact_number".to_sym] != nil
32
+ name = "emergency_contact_number".to_sym
33
+ value = attributes["emergency_contact_number"]
34
+ send("#{name}=", value) if self.respond_to?(name)
35
+ end
36
+ if Employee.attribute_map["date_terminated".to_sym] != nil
37
+ name = "date_terminated".to_sym
38
+ value = attributes["date_terminated"]
39
+ send("#{name}=", value) if self.respond_to?(name)
40
+ end
41
+ if Employee.attribute_map["dob".to_sym] != nil
42
+ name = "dob".to_sym
43
+ value = attributes["dob"]
44
+ send("#{name}=", value) if self.respond_to?(name)
45
+ end
46
+ if Employee.attribute_map["alcohol_commission_number".to_sym] != nil
47
+ name = "alcohol_commission_number".to_sym
48
+ value = attributes["alcohol_commission_number"]
49
+ send("#{name}=", value) if self.respond_to?(name)
50
+ end
51
+ if Employee.attribute_map["alcohol_commission_expiration_date".to_sym] != nil
52
+ name = "alcohol_commission_expiration_date".to_sym
53
+ value = attributes["alcohol_commission_expiration_date"]
54
+ send("#{name}=", value) if self.respond_to?(name)
55
+ end
56
+ if Employee.attribute_map["first_name".to_sym] != nil
57
+ name = "first_name".to_sym
58
+ value = attributes["first_name"]
59
+ send("#{name}=", value) if self.respond_to?(name)
60
+ end
61
+ if Employee.attribute_map["is_manager".to_sym] != nil
62
+ name = "is_manager".to_sym
63
+ value = attributes["is_manager"]
64
+ send("#{name}=", value) if self.respond_to?(name)
65
+ end
66
+ if Employee.attribute_map["health_cert_number".to_sym] != nil
67
+ name = "health_cert_number".to_sym
68
+ value = attributes["health_cert_number"]
69
+ send("#{name}=", value) if self.respond_to?(name)
70
+ end
71
+ if Employee.attribute_map["mobile_phone".to_sym] != nil
72
+ name = "mobile_phone".to_sym
73
+ value = attributes["mobile_phone"]
74
+ send("#{name}=", value) if self.respond_to?(name)
75
+ end
76
+ if Employee.attribute_map["date_hired".to_sym] != nil
77
+ name = "date_hired".to_sym
78
+ value = attributes["date_hired"]
79
+ send("#{name}=", value) if self.respond_to?(name)
80
+ end
81
+ if Employee.attribute_map["home_phone".to_sym] != nil
82
+ name = "home_phone".to_sym
83
+ value = attributes["home_phone"]
84
+ send("#{name}=", value) if self.respond_to?(name)
85
+ end
86
+ if Employee.attribute_map["country_of_nationality".to_sym] != nil
87
+ name = "country_of_nationality".to_sym
88
+ value = attributes["country_of_nationality"]
89
+ send("#{name}=", value) if self.respond_to?(name)
90
+ end
91
+ if Employee.attribute_map["emergency_contact_name".to_sym] != nil
92
+ name = "emergency_contact_name".to_sym
93
+ value = attributes["emergency_contact_name"]
94
+ send("#{name}=", value) if self.respond_to?(name)
95
+ end
96
+ if Employee.attribute_map["health_cert_expiration_date".to_sym] != nil
97
+ name = "health_cert_expiration_date".to_sym
98
+ value = attributes["health_cert_expiration_date"]
99
+ send("#{name}=", value) if self.respond_to?(name)
100
+ end
101
+ if Employee.attribute_map["date_last_review".to_sym] != nil
102
+ name = "date_last_review".to_sym
103
+ value = attributes["date_last_review"]
104
+ send("#{name}=", value) if self.respond_to?(name)
105
+ end
106
+ if Employee.attribute_map["user_name".to_sym] != nil
107
+ name = "user_name".to_sym
108
+ value = attributes["user_name"]
109
+ send("#{name}=", value) if self.respond_to?(name)
110
+ end
111
+ if Employee.attribute_map["email".to_sym] != nil
112
+ name = "email".to_sym
113
+ value = attributes["email"]
114
+ send("#{name}=", value) if self.respond_to?(name)
115
+ end
116
+ if Employee.attribute_map["employee_id".to_sym] != nil
117
+ name = "employee_id".to_sym
118
+ value = attributes["employee_id"]
119
+ send("#{name}=", value) if self.respond_to?(name)
120
+ end
121
+ end
122
+ end
123
+
124
+ def to_body
125
+ body = {}
126
+ Employee.attribute_map.each_pair do |key,value|
127
+ body[value] = self.send(key) unless self.send(key).nil?
128
+ end
129
+ body
130
+ end
131
+ end
132
+
@@ -0,0 +1,82 @@
1
+ class ExternalPayment
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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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 ExternalPayment.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
+ ExternalPayment.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 ExternalPaymentStatus
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 ExternalPaymentStatus.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 ExternalPaymentStatus.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 ExternalPaymentStatus.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
+ ExternalPaymentStatus.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/item.rb ADDED
@@ -0,0 +1,63 @@
1
+ class Item
2
+ attr_accessor :description, :price, :name, :revenue_center_id, :item_id, :item_images
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :description => :description, :price => :price, :name => :name, :revenue_center_id => :revenue_center_id, :item_id => :item_id, :item_images => :item_images
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 Item.attribute_map["description".to_sym] != nil
17
+ name = "description".to_sym
18
+ value = attributes["description"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if Item.attribute_map["price".to_sym] != nil
22
+ name = "price".to_sym
23
+ value = attributes["price"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if Item.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
+ if Item.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 Item.attribute_map["item_id".to_sym] != nil
37
+ name = "item_id".to_sym
38
+ value = attributes["item_id"]
39
+ send("#{name}=", value) if self.respond_to?(name)
40
+ end
41
+ if Item.attribute_map["item_images".to_sym] != nil
42
+ name = "item_images".to_sym
43
+ value = attributes["item_images"]
44
+ if value.is_a?(Array)
45
+ array = Array.new
46
+ value.each do |arrayValue|
47
+ array.push ItemImage.new(arrayValue)
48
+ end
49
+ send("#{name}=", array) if self.respond_to?(name)
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ def to_body
56
+ body = {}
57
+ Item.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,37 @@
1
+ class ItemImage
2
+ attr_accessor :image_url, :image_type_id
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :image_url => :image_url, :image_type_id => :image_type_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 ItemImage.attribute_map["image_url".to_sym] != nil
17
+ name = "image_url".to_sym
18
+ value = attributes["image_url"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if ItemImage.attribute_map["image_type_id".to_sym] != nil
22
+ name = "image_type_id".to_sym
23
+ value = attributes["image_type_id"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ end
27
+ end
28
+
29
+ def to_body
30
+ body = {}
31
+ ItemImage.attribute_map.each_pair do |key,value|
32
+ body[value] = self.send(key) unless self.send(key).nil?
33
+ end
34
+ body
35
+ end
36
+ end
37
+
@@ -0,0 +1,42 @@
1
+ class ItemToAdd
2
+ attr_accessor :item_id, :instructions, :quantity
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :item_id => :item_id, :instructions => :instructions, :quantity => :quantity
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 ItemToAdd.attribute_map["item_id".to_sym] != nil
17
+ name = "item_id".to_sym
18
+ value = attributes["item_id"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if ItemToAdd.attribute_map["instructions".to_sym] != nil
22
+ name = "instructions".to_sym
23
+ value = attributes["instructions"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if ItemToAdd.attribute_map["quantity".to_sym] != nil
27
+ name = "quantity".to_sym
28
+ value = attributes["quantity"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ end
32
+ end
33
+
34
+ def to_body
35
+ body = {}
36
+ ItemToAdd.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,211 @@
1
+ class Location
2
+ attr_accessor :cross_streets, :receipt_number_instructions, :employee_request_through_app, :menu_ordering_available, :payment_via_credit_card_available_message, :postal_code, :location_id, :app_specials, :user_rating, :location_name, :tender_types, :process_new_credit_cards, :table_number_instructions, :state, :color_theme, :latitude, :logo_url, :website_url, :revenue_centers, :city, :ordering_available_message, :phone, :terminals, :location_picture_url, :favorites_ordering_available, :neighborhood_name, :discount_types, :longitude, :price_rating, :process_pre_authed_cards, :address_line_2, :address_line_1
3
+
4
+ # :internal => :external
5
+ def self.attribute_map
6
+ {
7
+ :cross_streets => :cross_streets, :receipt_number_instructions => :receipt_number_instructions, :employee_request_through_app => :employee_request_through_app, :menu_ordering_available => :menu_ordering_available, :payment_via_credit_card_available_message => :payment_via_credit_card_available_message, :postal_code => :postal_code, :location_id => :location_id, :app_specials => :app_specials, :user_rating => :user_rating, :location_name => :location_name, :tender_types => :tender_types, :process_new_credit_cards => :process_new_credit_cards, :table_number_instructions => :table_number_instructions, :state => :state, :color_theme => :color_theme, :latitude => :latitude, :logo_url => :logo_url, :website_url => :website_url, :revenue_centers => :revenue_centers, :city => :city, :ordering_available_message => :ordering_available_message, :phone => :phone, :terminals => :terminals, :location_picture_url => :location_picture_url, :favorites_ordering_available => :favorites_ordering_available, :neighborhood_name => :neighborhood_name, :discount_types => :discount_types, :longitude => :longitude, :price_rating => :price_rating, :process_pre_authed_cards => :process_pre_authed_cards, :address_line_2 => :address_line_2, :address_line_1 => :address_line_1
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 Location.attribute_map["cross_streets".to_sym] != nil
17
+ name = "cross_streets".to_sym
18
+ value = attributes["cross_streets"]
19
+ send("#{name}=", value) if self.respond_to?(name)
20
+ end
21
+ if Location.attribute_map["receipt_number_instructions".to_sym] != nil
22
+ name = "receipt_number_instructions".to_sym
23
+ value = attributes["receipt_number_instructions"]
24
+ send("#{name}=", value) if self.respond_to?(name)
25
+ end
26
+ if Location.attribute_map["employee_request_through_app".to_sym] != nil
27
+ name = "employee_request_through_app".to_sym
28
+ value = attributes["employee_request_through_app"]
29
+ send("#{name}=", value) if self.respond_to?(name)
30
+ end
31
+ if Location.attribute_map["menu_ordering_available".to_sym] != nil
32
+ name = "menu_ordering_available".to_sym
33
+ value = attributes["menu_ordering_available"]
34
+ send("#{name}=", value) if self.respond_to?(name)
35
+ end
36
+ if Location.attribute_map["payment_via_credit_card_available_message".to_sym] != nil
37
+ name = "payment_via_credit_card_available_message".to_sym
38
+ value = attributes["payment_via_credit_card_available_message"]
39
+ send("#{name}=", value) if self.respond_to?(name)
40
+ end
41
+ if Location.attribute_map["postal_code".to_sym] != nil
42
+ name = "postal_code".to_sym
43
+ value = attributes["postal_code"]
44
+ send("#{name}=", value) if self.respond_to?(name)
45
+ end
46
+ if Location.attribute_map["location_id".to_sym] != nil
47
+ name = "location_id".to_sym
48
+ value = attributes["location_id"]
49
+ send("#{name}=", value) if self.respond_to?(name)
50
+ end
51
+ if Location.attribute_map["app_specials".to_sym] != nil
52
+ name = "app_specials".to_sym
53
+ value = attributes["app_specials"]
54
+ send("#{name}=", value) if self.respond_to?(name)
55
+ end
56
+ if Location.attribute_map["user_rating".to_sym] != nil
57
+ name = "user_rating".to_sym
58
+ value = attributes["user_rating"]
59
+ send("#{name}=", value) if self.respond_to?(name)
60
+ end
61
+ if Location.attribute_map["location_name".to_sym] != nil
62
+ name = "location_name".to_sym
63
+ value = attributes["location_name"]
64
+ send("#{name}=", value) if self.respond_to?(name)
65
+ end
66
+ if Location.attribute_map["tender_types".to_sym] != nil
67
+ name = "tender_types".to_sym
68
+ value = attributes["tender_types"]
69
+ if value.is_a?(Array)
70
+ array = Array.new
71
+ value.each do |arrayValue|
72
+ array.push TenderType.new(arrayValue)
73
+ end
74
+ send("#{name}=", array) if self.respond_to?(name)
75
+ end
76
+ end
77
+ if Location.attribute_map["process_new_credit_cards".to_sym] != nil
78
+ name = "process_new_credit_cards".to_sym
79
+ value = attributes["process_new_credit_cards"]
80
+ send("#{name}=", value) if self.respond_to?(name)
81
+ end
82
+ if Location.attribute_map["table_number_instructions".to_sym] != nil
83
+ name = "table_number_instructions".to_sym
84
+ value = attributes["table_number_instructions"]
85
+ send("#{name}=", value) if self.respond_to?(name)
86
+ end
87
+ if Location.attribute_map["state".to_sym] != nil
88
+ name = "state".to_sym
89
+ value = attributes["state"]
90
+ send("#{name}=", value) if self.respond_to?(name)
91
+ end
92
+ if Location.attribute_map["color_theme".to_sym] != nil
93
+ name = "color_theme".to_sym
94
+ value = attributes["color_theme"]
95
+ send("#{name}=", value) if self.respond_to?(name)
96
+ end
97
+ if Location.attribute_map["latitude".to_sym] != nil
98
+ name = "latitude".to_sym
99
+ value = attributes["latitude"]
100
+ send("#{name}=", value) if self.respond_to?(name)
101
+ end
102
+ if Location.attribute_map["logo_url".to_sym] != nil
103
+ name = "logo_url".to_sym
104
+ value = attributes["logo_url"]
105
+ send("#{name}=", value) if self.respond_to?(name)
106
+ end
107
+ if Location.attribute_map["website_url".to_sym] != nil
108
+ name = "website_url".to_sym
109
+ value = attributes["website_url"]
110
+ send("#{name}=", value) if self.respond_to?(name)
111
+ end
112
+ if Location.attribute_map["revenue_centers".to_sym] != nil
113
+ name = "revenue_centers".to_sym
114
+ value = attributes["revenue_centers"]
115
+ if value.is_a?(Array)
116
+ array = Array.new
117
+ value.each do |arrayValue|
118
+ array.push RevenueCenter.new(arrayValue)
119
+ end
120
+ send("#{name}=", array) if self.respond_to?(name)
121
+ end
122
+ end
123
+ if Location.attribute_map["city".to_sym] != nil
124
+ name = "city".to_sym
125
+ value = attributes["city"]
126
+ send("#{name}=", value) if self.respond_to?(name)
127
+ end
128
+ if Location.attribute_map["ordering_available_message".to_sym] != nil
129
+ name = "ordering_available_message".to_sym
130
+ value = attributes["ordering_available_message"]
131
+ send("#{name}=", value) if self.respond_to?(name)
132
+ end
133
+ if Location.attribute_map["phone".to_sym] != nil
134
+ name = "phone".to_sym
135
+ value = attributes["phone"]
136
+ send("#{name}=", value) if self.respond_to?(name)
137
+ end
138
+ if Location.attribute_map["terminals".to_sym] != nil
139
+ name = "terminals".to_sym
140
+ value = attributes["terminals"]
141
+ if value.is_a?(Array)
142
+ array = Array.new
143
+ value.each do |arrayValue|
144
+ array.push Terminal.new(arrayValue)
145
+ end
146
+ send("#{name}=", array) if self.respond_to?(name)
147
+ end
148
+ end
149
+ if Location.attribute_map["location_picture_url".to_sym] != nil
150
+ name = "location_picture_url".to_sym
151
+ value = attributes["location_picture_url"]
152
+ send("#{name}=", value) if self.respond_to?(name)
153
+ end
154
+ if Location.attribute_map["favorites_ordering_available".to_sym] != nil
155
+ name = "favorites_ordering_available".to_sym
156
+ value = attributes["favorites_ordering_available"]
157
+ send("#{name}=", value) if self.respond_to?(name)
158
+ end
159
+ if Location.attribute_map["neighborhood_name".to_sym] != nil
160
+ name = "neighborhood_name".to_sym
161
+ value = attributes["neighborhood_name"]
162
+ send("#{name}=", value) if self.respond_to?(name)
163
+ end
164
+ if Location.attribute_map["discount_types".to_sym] != nil
165
+ name = "discount_types".to_sym
166
+ value = attributes["discount_types"]
167
+ if value.is_a?(Array)
168
+ array = Array.new
169
+ value.each do |arrayValue|
170
+ array.push DiscountType.new(arrayValue)
171
+ end
172
+ send("#{name}=", array) if self.respond_to?(name)
173
+ end
174
+ end
175
+ if Location.attribute_map["longitude".to_sym] != nil
176
+ name = "longitude".to_sym
177
+ value = attributes["longitude"]
178
+ send("#{name}=", value) if self.respond_to?(name)
179
+ end
180
+ if Location.attribute_map["price_rating".to_sym] != nil
181
+ name = "price_rating".to_sym
182
+ value = attributes["price_rating"]
183
+ send("#{name}=", value) if self.respond_to?(name)
184
+ end
185
+ if Location.attribute_map["process_pre_authed_cards".to_sym] != nil
186
+ name = "process_pre_authed_cards".to_sym
187
+ value = attributes["process_pre_authed_cards"]
188
+ send("#{name}=", value) if self.respond_to?(name)
189
+ end
190
+ if Location.attribute_map["address_line_2".to_sym] != nil
191
+ name = "address_line_2".to_sym
192
+ value = attributes["address_line_2"]
193
+ send("#{name}=", value) if self.respond_to?(name)
194
+ end
195
+ if Location.attribute_map["address_line_1".to_sym] != nil
196
+ name = "address_line_1".to_sym
197
+ value = attributes["address_line_1"]
198
+ send("#{name}=", value) if self.respond_to?(name)
199
+ end
200
+ end
201
+ end
202
+
203
+ def to_body
204
+ body = {}
205
+ Location.attribute_map.each_pair do |key,value|
206
+ body[value] = self.send(key) unless self.send(key).nil?
207
+ end
208
+ body
209
+ end
210
+ end
211
+