mints 0.0.26 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/lib/client.rb +75 -37
  4. data/lib/contact.rb +61 -62
  5. data/lib/errors.rb +98 -0
  6. data/lib/generators/mints_config.yml.erb +0 -2
  7. data/lib/generators/mints_link.rb +3 -3
  8. data/lib/mints/controllers/admin_base_controller.rb +8 -66
  9. data/lib/mints/controllers/base_api_controller.rb +16 -134
  10. data/lib/mints/controllers/base_controller.rb +20 -106
  11. data/lib/mints/controllers/concerns/mints_clients.rb +74 -0
  12. data/lib/mints/controllers/concerns/read_config_file.rb +28 -0
  13. data/lib/mints/controllers/contact_api_controller.rb +6 -85
  14. data/lib/mints/controllers/public_api_controller.rb +6 -79
  15. data/lib/mints/controllers/user_api_controller.rb +7 -82
  16. data/lib/mints/helpers/contact_auth_helper.rb +67 -0
  17. data/lib/{mints_helper.rb → mints/helpers/mints_helper.rb} +7 -5
  18. data/lib/mints/helpers/proxy_controllers_methods.rb +126 -0
  19. data/lib/mints/helpers/user_auth_helper.rb +53 -0
  20. data/lib/mints.rb +2 -0
  21. data/lib/pub.rb +56 -56
  22. data/lib/user/config/api_keys.rb +7 -7
  23. data/lib/user/config/appointments.rb +16 -16
  24. data/lib/user/config/attribute_groups.rb +10 -10
  25. data/lib/user/config/attributes.rb +10 -10
  26. data/lib/user/config/calendars.rb +9 -9
  27. data/lib/user/config/config.rb +7 -7
  28. data/lib/user/config/importers.rb +15 -15
  29. data/lib/user/config/public_folders.rb +11 -11
  30. data/lib/user/config/relationships.rb +11 -11
  31. data/lib/user/config/roles.rb +9 -9
  32. data/lib/user/config/seeds.rb +5 -5
  33. data/lib/user/config/system_settings.rb +5 -5
  34. data/lib/user/config/tags.rb +5 -5
  35. data/lib/user/config/taxonomies.rb +15 -15
  36. data/lib/user/config/teams.rb +67 -68
  37. data/lib/user/config/users.rb +70 -71
  38. data/lib/user/contacts/contacts.rb +19 -20
  39. data/lib/user/content/assets.rb +273 -278
  40. data/lib/user/content/content.rb +48 -48
  41. data/lib/user/content/content_instances.rb +136 -138
  42. data/lib/user/content/content_templates.rb +103 -103
  43. data/lib/user/content/conversations.rb +193 -193
  44. data/lib/user/content/dam.rb +83 -80
  45. data/lib/user/content/forms.rb +229 -233
  46. data/lib/user/content/message_templates.rb +152 -151
  47. data/lib/user/content/messages.rb +87 -87
  48. data/lib/user/content/pages.rb +82 -82
  49. data/lib/user/content/stories.rb +101 -101
  50. data/lib/user/content/story_templates.rb +88 -88
  51. data/lib/user/content/story_versions.rb +115 -117
  52. data/lib/user/crm/companies.rb +103 -105
  53. data/lib/user/crm/contacts.rb +285 -292
  54. data/lib/user/crm/crm.rb +19 -19
  55. data/lib/user/crm/deals.rb +103 -103
  56. data/lib/user/crm/favorites.rb +14 -13
  57. data/lib/user/crm/segments.rb +121 -123
  58. data/lib/user/crm/users.rb +20 -20
  59. data/lib/user/crm/workflow_step_objects.rb +84 -84
  60. data/lib/user/crm/workflow_steps.rb +45 -45
  61. data/lib/user/crm/workflows.rb +65 -65
  62. data/lib/user/ecommerce/ecommerce.rb +27 -27
  63. data/lib/user/ecommerce/item_prices.rb +82 -81
  64. data/lib/user/ecommerce/locations.rb +160 -160
  65. data/lib/user/ecommerce/order_items_groups.rb +107 -105
  66. data/lib/user/ecommerce/order_statuses.rb +24 -24
  67. data/lib/user/ecommerce/orders.rb +250 -246
  68. data/lib/user/ecommerce/price_lists.rb +68 -68
  69. data/lib/user/ecommerce/product_templates.rb +99 -99
  70. data/lib/user/ecommerce/product_variations.rb +122 -120
  71. data/lib/user/ecommerce/products.rb +160 -159
  72. data/lib/user/ecommerce/skus.rb +85 -85
  73. data/lib/user/ecommerce/taxes.rb +79 -79
  74. data/lib/user/ecommerce/variant_options.rb +66 -66
  75. data/lib/user/ecommerce/variant_values.rb +69 -69
  76. data/lib/user/helpers/helpers.rb +102 -101
  77. data/lib/user/helpers/object_activities.rb +78 -78
  78. data/lib/user/helpers/object_folders.rb +76 -76
  79. data/lib/user/helpers/user_folders.rb +77 -77
  80. data/lib/user/marketing/marketing.rb +114 -113
  81. data/lib/user/profile/profile.rb +94 -103
  82. data/lib/user.rb +4 -4
  83. metadata +41 -35
@@ -1,169 +1,169 @@
1
1
  module Locations
2
- ##
3
- # == Locations
4
- #
2
+ ##
3
+ # == Locations
4
+ #
5
5
 
6
- # === Get locations.
7
- # Get a collection of locations.
8
- #
9
- # ==== Parameters
10
- # use_post:: (Boolean) -- Variable to determine if the request is by 'post' or 'get' functions.
11
- #
12
- # ==== First Example
13
- # @data = @mints_user.get_locations
14
- #
15
- # ==== Second Example
16
- # options = {
17
- # "fields": "id, title"
18
- # }
19
- # @data = @mints_user.get_locations(options)
20
- def get_locations(options = nil, use_post = true)
21
- return get_query_results("/ecommerce/locations", options, use_post)
22
- end
23
-
24
- # === Get location.
25
- # Get a location info.
26
- #
27
- # ==== Parameters
28
- # id:: (Integer) -- Location id.
29
- #
30
- # ==== Example
31
- # @data = @mints_user.get_location(2)
32
- def get_location(id)
33
- return @client.raw("get", "/ecommerce/locations/#{id}")
34
- end
6
+ # === Get locations.
7
+ # Get a collection of locations.
8
+ #
9
+ # ==== Parameters
10
+ # use_post:: (Boolean) -- Variable to determine if the request is by 'post' or 'get' functions.
11
+ #
12
+ # ==== First Example
13
+ # @data = @mints_user.get_locations
14
+ #
15
+ # ==== Second Example
16
+ # options = {
17
+ # fields: 'id, title'
18
+ # }
19
+ # @data = @mints_user.get_locations(options)
20
+ def get_locations(options = nil, use_post = true)
21
+ get_query_results('/ecommerce/locations', options, use_post)
22
+ end
35
23
 
36
- # === Create location.
37
- # Create a location with data.
38
- #
39
- # ==== Parameters
40
- # data:: (Hash) -- Data to be submitted.
41
- #
42
- # ==== Example
43
- # data = {
44
- # "title": "New Location",
45
- # "location_template_id": 1
46
- # }
47
- # @data = @mints_user.create_location(data)
48
- def create_location(data, options = nil)
49
- return @client.raw("post", "/ecommerce/locations", options, data_transform(data))
50
- end
24
+ # === Get location.
25
+ # Get a location info.
26
+ #
27
+ # ==== Parameters
28
+ # id:: (Integer) -- Location id.
29
+ #
30
+ # ==== Example
31
+ # @data = @mints_user.get_location(2)
32
+ def get_location(id)
33
+ @client.raw('get', "/ecommerce/locations/#{id}")
34
+ end
51
35
 
52
- # === Update location.
53
- # Update a location info.
54
- #
55
- # ==== Parameters
56
- # id:: (Integer) -- Location id.
57
- # data:: (Hash) -- Data to be submitted.
58
- #
59
- # ==== Example
60
- # data = {
61
- # "title": "New Location Modified"
62
- # }
63
- # @data = @mints_user.update_location(5, data.to_json)
64
- def update_location(id, data, options = nil)
65
- return @client.raw("put", "/ecommerce/locations/#{id}", options, data)
66
- end
36
+ # === Create location.
37
+ # Create a location with data.
38
+ #
39
+ # ==== Parameters
40
+ # data:: (Hash) -- Data to be submitted.
41
+ #
42
+ # ==== Example
43
+ # data = {
44
+ # title: 'New Location',
45
+ # location_template_id: 1
46
+ # }
47
+ # @data = @mints_user.create_location(data)
48
+ def create_location(data, options = nil)
49
+ @client.raw('post', '/ecommerce/locations', options, data_transform(data))
50
+ end
67
51
 
68
- # === Delete location.
69
- # Delete a location.
70
- #
71
- # ==== Parameters
72
- # id:: (Integer) -- Location id.
73
- #
74
- # ==== Example
75
- # @data = @mints_user.delete_location(5)
76
- def delete_location(id)
77
- return @client.raw("delete", "/ecommerce/locations/#{id}")
78
- end
52
+ # === Update location.
53
+ # Update a location info.
54
+ #
55
+ # ==== Parameters
56
+ # id:: (Integer) -- Location id.
57
+ # data:: (Hash) -- Data to be submitted.
58
+ #
59
+ # ==== Example
60
+ # data = {
61
+ # title: 'New Location Modified'
62
+ # }
63
+ # @data = @mints_user.update_location(5, data.to_json)
64
+ def update_location(id, data, options = nil)
65
+ @client.raw('put', "/ecommerce/locations/#{id}", options, data)
66
+ end
79
67
 
80
- ##
81
- # == Locations Templates
82
- #
68
+ # === Delete location.
69
+ # Delete a location.
70
+ #
71
+ # ==== Parameters
72
+ # id:: (Integer) -- Location id.
73
+ #
74
+ # ==== Example
75
+ # @data = @mints_user.delete_location(5)
76
+ def delete_location(id)
77
+ @client.raw('delete', "/ecommerce/locations/#{id}")
78
+ end
83
79
 
84
- # === Get location template support data.
85
- # Get support data used in a location template.
86
- #
87
- # ==== Parameters
88
- # id:: (Integer) -- Location template id.
89
- #
90
- # ==== Example
91
- # @data = @mints_user.get_location_template_support_data(1)
92
- def get_location_template_support_data(id)
93
- return @client.raw("get", "/ecommerce/location-templates/#{id}/support-data")
94
- end
95
-
96
- # === Get location templates support data.
97
- # Get support data used in location templates.
98
- #
99
- # ==== Example
100
- # @data = @mints_user.get_location_templates_support_data
101
- def get_location_templates_support_data
102
- return @client.raw("get", "/ecommerce/location-templates/support-data")
103
- end
80
+ ##
81
+ # == Locations Templates
82
+ #
104
83
 
105
- # === Get location templates.
106
- # Get a collection of location templates.
107
- #
108
- # ==== Parameters
109
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
110
- #
111
- # ==== First Example
112
- # @data = @mints_user.get_location_templates
113
- #
114
- # ==== Second Example
115
- # options = { "fields": "title" }
116
- # @data = @mints_user.get_location_templates(options)
117
- def get_location_templates(options = nil)
118
- return @client.raw("get", "/ecommerce/location-templates", options)
119
- end
84
+ # === Get location template support data.
85
+ # Get support data used in a location template.
86
+ #
87
+ # ==== Parameters
88
+ # id:: (Integer) -- Location template id.
89
+ #
90
+ # ==== Example
91
+ # @data = @mints_user.get_location_template_support_data(1)
92
+ def get_location_template_support_data(id)
93
+ @client.raw('get', "/ecommerce/location-templates/#{id}/support-data")
94
+ end
120
95
 
121
- # === Get location template.
122
- # Get a location template info.
123
- #
124
- # ==== Parameters
125
- # id:: (Integer) -- Location template id.
126
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
127
- #
128
- # ==== First Example
129
- # @data = @mints_user.get_location_template(1)
130
- #
131
- # ==== Second Example
132
- # options = { "fields": "title" }
133
- # @data = @mints_user.get_location_template(1, options)
134
- def get_location_template(id, options = nil)
135
- return @client.raw("get", "/ecommerce/location-templates/#{id}", options)
136
- end
137
-
138
- # === Create location template.
139
- # Create a location template with data.
140
- #
141
- # ==== Parameters
142
- # data:: (Hash) -- Data to be submitted.
143
- #
144
- # ==== Example
145
- # data = {
146
- # "title": "New Location Template",
147
- # "slug": "new-location-template"
148
- # }
149
- # @data = @mints_user.create_location_template(data)
150
- def create_location_template(data)
151
- return @client.raw("post", "/ecommerce/location-templates", nil, data_transform(data))
152
- end
153
-
154
- # === Update location template.
155
- # Update a location template info.
156
- #
157
- # ==== Parameters
158
- # id:: (Integer) -- Location template id.
159
- # data:: (Hash) -- Data to be submitted.
160
- #
161
- # ==== Example
162
- # data = {
163
- # "title": "New Location Template Modified"
164
- # }
165
- # @data = @mints_user.update_location_template(3, data)
166
- def update_location_template(id, data)
167
- return @client.raw("put", "/ecommerce/location-templates/#{id}", nil, data_transform(data))
168
- end
169
- end
96
+ # === Get location templates support data.
97
+ # Get support data used in location templates.
98
+ #
99
+ # ==== Example
100
+ # @data = @mints_user.get_location_templates_support_data
101
+ def get_location_templates_support_data
102
+ @client.raw('get', '/ecommerce/location-templates/support-data')
103
+ end
104
+
105
+ # === Get location templates.
106
+ # Get a collection of location templates.
107
+ #
108
+ # ==== Parameters
109
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
110
+ #
111
+ # ==== First Example
112
+ # @data = @mints_user.get_location_templates
113
+ #
114
+ # ==== Second Example
115
+ # options = { fields: 'title' }
116
+ # @data = @mints_user.get_location_templates(options)
117
+ def get_location_templates(options = nil)
118
+ @client.raw('get', '/ecommerce/location-templates', options)
119
+ end
120
+
121
+ # === Get location template.
122
+ # Get a location template info.
123
+ #
124
+ # ==== Parameters
125
+ # id:: (Integer) -- Location template id.
126
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
127
+ #
128
+ # ==== First Example
129
+ # @data = @mints_user.get_location_template(1)
130
+ #
131
+ # ==== Second Example
132
+ # options = { fields: 'title' }
133
+ # @data = @mints_user.get_location_template(1, options)
134
+ def get_location_template(id, options = nil)
135
+ @client.raw('get', "/ecommerce/location-templates/#{id}", options)
136
+ end
137
+
138
+ # === Create location template.
139
+ # Create a location template with data.
140
+ #
141
+ # ==== Parameters
142
+ # data:: (Hash) -- Data to be submitted.
143
+ #
144
+ # ==== Example
145
+ # data = {
146
+ # title: 'New Location Template',
147
+ # slug: 'new-location-template'
148
+ # }
149
+ # @data = @mints_user.create_location_template(data)
150
+ def create_location_template(data)
151
+ @client.raw('post', '/ecommerce/location-templates', nil, data_transform(data))
152
+ end
153
+
154
+ # === Update location template.
155
+ # Update a location template info.
156
+ #
157
+ # ==== Parameters
158
+ # id:: (Integer) -- Location template id.
159
+ # data:: (Hash) -- Data to be submitted.
160
+ #
161
+ # ==== Example
162
+ # data = {
163
+ # title: 'New Location Template Modified'
164
+ # }
165
+ # @data = @mints_user.update_location_template(3, data)
166
+ def update_location_template(id, data)
167
+ @client.raw('put', "/ecommerce/location-templates/#{id}", nil, data_transform(data))
168
+ end
169
+ end
@@ -1,109 +1,111 @@
1
1
  module OrderItemsGroups
2
- ##
3
- # == Order Items Groups
4
- #
2
+ ##
3
+ # == Order Items Groups
4
+ #
5
5
 
6
- # === Get pending order template from order item group.
7
- # Get a pending order template from an order item group.
8
- #
9
- # ==== Parameters
10
- # parentOrderId:: (Integer) -- Order items group id.
11
- # orderTemplateId:: (Integer) -- Order template id.
12
- #
13
- # ==== Example
14
- # @data = @mints_user.get_pending_order_template_from_order_item_group(1, 1)
15
- def get_pending_order_template_from_order_item_group(parentOrderId, orderTemplateId)
16
- return @client.raw("get", "/ecommerce/order-items-groups/#{parentOrderId}/pending-items/order-template/#{orderTemplateId}")
17
- end
18
-
19
- # === Get order item group support data by order id.
20
- # Get support data of an order item group by an order id.
21
- #
22
- # ==== Parameters
23
- # orderId:: (Integer) -- Order id.
24
- #
25
- # ==== Example
26
- # @data = @mints_user.get_order_item_group_support_data_by_order_id(1)
27
- def get_order_item_group_support_data_by_order_id(orderId) #FIXME: Return in OrderItemsGroupController.getTemplateSupportDataByOrderId method doesnt create data variable.
28
- return @client.raw("get", "/ecommerce/order-items-groups/support-data/#{orderId}")
29
- end
6
+ # === Get pending order template from order item group.
7
+ # Get a pending order template from an order item group.
8
+ #
9
+ # ==== Parameters
10
+ # parent_order_id:: (Integer) -- Order items group id.
11
+ # order_template_id:: (Integer) -- Order template id.
12
+ #
13
+ # ==== Example
14
+ # @data = @mints_user.get_pending_order_template_from_order_item_group(1, 1)
15
+ def get_pending_order_template_from_order_item_group(parent_order_id, order_template_id)
16
+ @client.raw('get', "/ecommerce/order-items-groups/#{parent_order_id}/pending-items/order-template/#{order_template_id}")
17
+ end
30
18
 
31
- # === Get order item groups.
32
- # Get a collection of order item groups.
33
- #
34
- # ==== Parameters
35
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
36
- #
37
- # ==== First Example
38
- # @data = @mints_user.get_order_item_groups
39
- #
40
- # ==== Second Example
41
- # options = { "fields": "name" }
42
- # @data = @mints_user.get_order_item_groups(options)
43
- def get_order_item_groups(options = nil)
44
- return @client.raw("get", "/ecommerce/order-items-groups", options)
45
- end
19
+ # === Get order item group support data by order id.
20
+ # Get support data of an order item group by an order id.
21
+ #
22
+ # ==== Parameters
23
+ # order_id:: (Integer) -- Order id.
24
+ #
25
+ # ==== Example
26
+ # @data = @mints_user.get_order_item_group_support_data_by_order_id(1)
27
+ def get_order_item_group_support_data_by_order_id(order_id)
28
+ # FIXME: Return in OrderItemsGroupController.getTemplateSupportDataByOrderId method doesnt create data variable.
29
+ @client.raw('get', "/ecommerce/order-items-groups/support-data/#{order_id}")
30
+ end
46
31
 
47
- # === Get order item group.
48
- # Get a order item group info.
49
- #
50
- # ==== Parameters
51
- # id:: (Integer) -- Order item group id.
52
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
53
- #
54
- # ==== First Example
55
- # @data = @mints_user.get_order_item_group(1)
56
- #
57
- # ==== Second Example
58
- # options = { "fields": "name" }
59
- # @data = @mints_user.get_order_item_group(1, options)
60
- def get_order_item_group(id, options = nil)
61
- return @client.raw("get", "/ecommerce/order-items-groups/#{id}", options)
62
- end
63
-
64
- # === Create order item group.
65
- # Create a order item group with data.
66
- #
67
- # ==== Parameters
68
- # data:: (Hash) -- Data to be submitted.
69
- #
70
- # ==== Example
71
- # data = {
72
- # "name": "New Order Item Group",
73
- # "order_id": 1,
74
- # "quantity": 1,
75
- # "sale_price": 200
76
- # }
77
- # @data = @mints_user.create_order_item_group(data)
78
- def create_order_item_group(data)
79
- return @client.raw("post", "/ecommerce/order-items-groups", nil, data_transform(data))
80
- end
81
-
82
- # === Update order item group.
83
- # Update a order item group info.
84
- #
85
- # ==== Parameters
86
- # id:: (Integer) -- Order item group id.
87
- # data:: (Hash) -- Data to be submitted.
88
- #
89
- # ==== Example
90
- # data = {
91
- # "name": "New Order Item Group Modified"
92
- # }
93
- # @data = @mints_user.update_order_item_group(147, data)
94
- def update_order_item_group(id, data)
95
- return @client.raw("put", "/ecommerce/order-items-groups/#{id}", nil, data_transform(data))
96
- end
97
-
98
- # === Delete order item group.
99
- # Delete a order item group.
100
- #
101
- # ==== Parameters
102
- # id:: (Integer) -- Order item group id.
103
- #
104
- # ==== Example
105
- # @data = @mints_user.delete_order_item_group(147)
106
- def delete_order_item_group(id)
107
- return @client.raw("delete", "/ecommerce/order-items-groups/#{id}")
108
- end
109
- end
32
+ # === Get order item groups.
33
+ # Get a collection of order item groups.
34
+ #
35
+ # ==== Parameters
36
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
37
+ #
38
+ # ==== First Example
39
+ # @data = @mints_user.get_order_item_groups
40
+ #
41
+ # ==== Second Example
42
+ # options = { fields: 'name' }
43
+ # @data = @mints_user.get_order_item_groups(options)
44
+ def get_order_item_groups(options = nil)
45
+ @client.raw('get', '/ecommerce/order-items-groups', options)
46
+ end
47
+
48
+ # === Get order item group.
49
+ # Get a order item group info.
50
+ #
51
+ # ==== Parameters
52
+ # id:: (Integer) -- Order item group id.
53
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
54
+ #
55
+ # ==== First Example
56
+ # @data = @mints_user.get_order_item_group(1)
57
+ #
58
+ # ==== Second Example
59
+ # options = { fields: 'name' }
60
+ # @data = @mints_user.get_order_item_group(1, options)
61
+ def get_order_item_group(id, options = nil)
62
+ @client.raw('get', "/ecommerce/order-items-groups/#{id}", options)
63
+ end
64
+
65
+ # === Create order item group.
66
+ # Create a order item group with data.
67
+ #
68
+ # ==== Parameters
69
+ # data:: (Hash) -- Data to be submitted.
70
+ #
71
+ # ==== Example
72
+ # data = {
73
+ # name: 'New Order Item Group',
74
+ # order_id: 1,
75
+ # quantity: 1,
76
+ # sale_price: 200
77
+ # }
78
+ # options = { include: 'orderItems' }
79
+ # @data = @mints_user.create_order_item_group(data, options)
80
+ def create_order_item_group(data, options = nil)
81
+ @client.raw('post', '/ecommerce/order-items-groups', options, data_transform(data))
82
+ end
83
+
84
+ # === Update order item group.
85
+ # Update a order item group info.
86
+ #
87
+ # ==== Parameters
88
+ # id:: (Integer) -- Order item group id.
89
+ # data:: (Hash) -- Data to be submitted.
90
+ #
91
+ # ==== Example
92
+ # data = {
93
+ # name: 'New Order Item Group Modified'
94
+ # }
95
+ # @data = @mints_user.update_order_item_group(147, data)
96
+ def update_order_item_group(id, data)
97
+ @client.raw('put', "/ecommerce/order-items-groups/#{id}", nil, data_transform(data))
98
+ end
99
+
100
+ # === Delete order item group.
101
+ # Delete a order item group.
102
+ #
103
+ # ==== Parameters
104
+ # id:: (Integer) -- Order item group id.
105
+ #
106
+ # ==== Example
107
+ # @data = @mints_user.delete_order_item_group(147)
108
+ def delete_order_item_group(id)
109
+ @client.raw('delete', "/ecommerce/order-items-groups/#{id}")
110
+ end
111
+ end
@@ -1,26 +1,26 @@
1
1
  module OrderStatuses
2
- ##
3
- # == Order Statuses
4
- #
2
+ ##
3
+ # == Order Statuses
4
+ #
5
5
 
6
- # === Get order statuses.
7
- # Get order statuses.
8
- #
9
- # ==== First Example
10
- # @data = @mints_user.get_order_statuses
11
- def get_order_statuses
12
- return @client.raw("get", "/ecommerce/order-statuses")
13
- end
14
-
15
- # === Get order status.
16
- # Get status of an order.
17
- #
18
- # ==== Parameters
19
- # id:: (Integer) -- Order id.
20
- #
21
- # ==== First Example
22
- # @data = @mints_user.get_order_status(1)
23
- def get_order_status(id)
24
- return @client.raw("get", "/ecommerce/order-statuses/#{id}")
25
- end
26
- end
6
+ # === Get order statuses.
7
+ # Get order statuses.
8
+ #
9
+ # ==== First Example
10
+ # @data = @mints_user.get_order_statuses
11
+ def get_order_statuses
12
+ @client.raw('get', '/ecommerce/order-statuses')
13
+ end
14
+
15
+ # === Get order status.
16
+ # Get status of an order.
17
+ #
18
+ # ==== Parameters
19
+ # id:: (Integer) -- Order id.
20
+ #
21
+ # ==== First Example
22
+ # @data = @mints_user.get_order_status(1)
23
+ def get_order_status(id)
24
+ @client.raw('get', "/ecommerce/order-statuses/#{id}")
25
+ end
26
+ end