order_cloud 0.0.4 → 0.0.5

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 (303) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +39 -14
  4. data/Rakefile +1 -1
  5. data/docs/AdminUserGroupApi.md +482 -0
  6. data/docs/CategoryApi.md +4 -3
  7. data/docs/ListMessageCCListenerAssignment.md +9 -0
  8. data/docs/{ListApiClient.md → ListMessageConfig.md} +2 -2
  9. data/docs/{ListDevAccessibleCompany.md → ListMessageSender.md} +2 -2
  10. data/docs/ListMessageSenderAssignment.md +9 -0
  11. data/docs/MessageCCListenerAssignment.md +13 -0
  12. data/docs/MessageConfig.md +11 -0
  13. data/docs/MessageSender.md +10 -0
  14. data/docs/MessageSenderAssignment.md +12 -0
  15. data/docs/MessageSendersApi.md +398 -0
  16. data/docs/Product.md +4 -0
  17. data/docs/ProductApi.md +4 -3
  18. data/docs/ProductAssignment.md +2 -2
  19. data/docs/SecurityProfileApi.md +5 -5
  20. data/docs/User.md +1 -0
  21. data/docs/UserApi.md +4 -3
  22. data/docs/UserGroupApi.md +4 -3
  23. data/git_push.sh +0 -0
  24. data/lib/order_cloud.rb +11 -4
  25. data/lib/order_cloud/api/address_api.rb +1 -1
  26. data/lib/order_cloud/api/admin_address_api.rb +1 -1
  27. data/lib/order_cloud/api/admin_user_api.rb +1 -1
  28. data/lib/order_cloud/api/admin_user_group_api.rb +578 -0
  29. data/lib/order_cloud/api/approval_rule_api.rb +1 -1
  30. data/lib/order_cloud/api/buyer_api.rb +1 -1
  31. data/lib/order_cloud/api/category_api.rb +7 -6
  32. data/lib/order_cloud/api/cost_center_api.rb +1 -1
  33. data/lib/order_cloud/api/credit_card_api.rb +1 -1
  34. data/lib/order_cloud/api/email_template_api.rb +1 -1
  35. data/lib/order_cloud/api/line_item_api.rb +1 -1
  36. data/lib/order_cloud/api/me_api.rb +1 -1
  37. data/lib/order_cloud/api/message_senders_api.rb +484 -0
  38. data/lib/order_cloud/api/order_api.rb +1 -1
  39. data/lib/order_cloud/api/password_reset_api.rb +1 -1
  40. data/lib/order_cloud/api/payment_api.rb +1 -1
  41. data/lib/order_cloud/api/price_schedule_api.rb +1 -1
  42. data/lib/order_cloud/api/product_api.rb +7 -6
  43. data/lib/order_cloud/api/promotion_api.rb +1 -1
  44. data/lib/order_cloud/api/security_profile_api.rb +6 -6
  45. data/lib/order_cloud/api/shipment_api.rb +1 -1
  46. data/lib/order_cloud/api/spec_api.rb +1 -1
  47. data/lib/order_cloud/api/spending_account_api.rb +1 -1
  48. data/lib/order_cloud/api/user_api.rb +7 -6
  49. data/lib/order_cloud/api/user_group_api.rb +7 -6
  50. data/lib/order_cloud/api_auth.rb +1 -1
  51. data/lib/order_cloud/api_client.rb +1 -1
  52. data/lib/order_cloud/api_error.rb +1 -1
  53. data/lib/order_cloud/configuration.rb +1 -1
  54. data/lib/order_cloud/models/access_token.rb +1 -1
  55. data/lib/order_cloud/models/address.rb +1 -1
  56. data/lib/order_cloud/models/address_assignment.rb +1 -1
  57. data/lib/order_cloud/models/admin_company.rb +1 -1
  58. data/lib/order_cloud/models/admin_model_on_view.rb +1 -1
  59. data/lib/order_cloud/models/approval_rule.rb +1 -1
  60. data/lib/order_cloud/models/base_spec.rb +1 -1
  61. data/lib/order_cloud/models/buyer.rb +1 -1
  62. data/lib/order_cloud/models/buyer_address.rb +1 -1
  63. data/lib/order_cloud/models/buyer_credit_card.rb +1 -1
  64. data/lib/order_cloud/models/buyer_product.rb +1 -1
  65. data/lib/order_cloud/models/buyer_spec.rb +1 -1
  66. data/lib/order_cloud/models/category.rb +1 -1
  67. data/lib/order_cloud/models/category_assignment.rb +1 -1
  68. data/lib/order_cloud/models/category_product_assignment.rb +1 -1
  69. data/lib/order_cloud/models/cost_center.rb +1 -1
  70. data/lib/order_cloud/models/cost_center_assignment.rb +1 -1
  71. data/lib/order_cloud/models/credit_card.rb +1 -1
  72. data/lib/order_cloud/models/credit_card_assignment.rb +1 -1
  73. data/lib/order_cloud/models/email_template.rb +1 -1
  74. data/lib/order_cloud/models/file.rb +1 -1
  75. data/lib/order_cloud/models/impersonate_token_request.rb +1 -1
  76. data/lib/order_cloud/models/inventory.rb +1 -1
  77. data/lib/order_cloud/models/line_item.rb +1 -1
  78. data/lib/order_cloud/models/line_item_spec.rb +1 -1
  79. data/lib/order_cloud/models/list_address.rb +1 -1
  80. data/lib/order_cloud/models/list_address_assignment.rb +1 -1
  81. data/lib/order_cloud/models/list_admin_company.rb +1 -1
  82. data/lib/order_cloud/models/list_approval_rule.rb +1 -1
  83. data/lib/order_cloud/models/list_buyer.rb +1 -1
  84. data/lib/order_cloud/models/list_buyer_address.rb +1 -1
  85. data/lib/order_cloud/models/list_buyer_credit_card.rb +1 -1
  86. data/lib/order_cloud/models/list_buyer_product.rb +1 -1
  87. data/lib/order_cloud/models/list_buyer_spec.rb +1 -1
  88. data/lib/order_cloud/models/list_category.rb +1 -1
  89. data/lib/order_cloud/models/list_category_assignment.rb +1 -1
  90. data/lib/order_cloud/models/list_category_product_assignment.rb +1 -1
  91. data/lib/order_cloud/models/list_cost_center.rb +1 -1
  92. data/lib/order_cloud/models/list_cost_center_assignment.rb +1 -1
  93. data/lib/order_cloud/models/list_credit_card.rb +1 -1
  94. data/lib/order_cloud/models/list_credit_card_assignment.rb +1 -1
  95. data/lib/order_cloud/models/list_file.rb +1 -1
  96. data/lib/order_cloud/models/list_inventory.rb +1 -1
  97. data/lib/order_cloud/models/list_line_item.rb +1 -1
  98. data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +210 -0
  99. data/lib/order_cloud/models/{list_api_client.rb → list_message_config.rb} +3 -3
  100. data/lib/order_cloud/models/{list_dev_accessible_company.rb → list_message_sender.rb} +3 -3
  101. data/lib/order_cloud/models/list_message_sender_assignment.rb +210 -0
  102. data/lib/order_cloud/models/list_order.rb +1 -1
  103. data/lib/order_cloud/models/list_order_approval.rb +1 -1
  104. data/lib/order_cloud/models/list_order_promotion.rb +1 -1
  105. data/lib/order_cloud/models/list_payment.rb +1 -1
  106. data/lib/order_cloud/models/list_price_schedule.rb +1 -1
  107. data/lib/order_cloud/models/list_product.rb +1 -1
  108. data/lib/order_cloud/models/list_product_assignment.rb +1 -1
  109. data/lib/order_cloud/models/list_promotion.rb +1 -1
  110. data/lib/order_cloud/models/list_promotion_assignment.rb +1 -1
  111. data/lib/order_cloud/models/list_security_profile.rb +1 -1
  112. data/lib/order_cloud/models/list_security_profile_assignment.rb +1 -1
  113. data/lib/order_cloud/models/list_shipment.rb +1 -1
  114. data/lib/order_cloud/models/list_spec.rb +1 -1
  115. data/lib/order_cloud/models/list_spec_option.rb +1 -1
  116. data/lib/order_cloud/models/list_spec_product_assignment.rb +1 -1
  117. data/lib/order_cloud/models/list_spending_account.rb +1 -1
  118. data/lib/order_cloud/models/list_spending_account_assignment.rb +1 -1
  119. data/lib/order_cloud/models/list_user.rb +1 -1
  120. data/lib/order_cloud/models/list_user_group.rb +1 -1
  121. data/lib/order_cloud/models/list_user_group_assignment.rb +1 -1
  122. data/lib/order_cloud/models/list_variant.rb +1 -1
  123. data/lib/order_cloud/models/list_web_hook.rb +1 -1
  124. data/lib/order_cloud/models/list_web_hook_route.rb +1 -1
  125. data/lib/order_cloud/models/list_xp_index.rb +1 -1
  126. data/lib/order_cloud/models/message_cc_listener_assignment.rb +244 -0
  127. data/lib/order_cloud/models/message_config.rb +226 -0
  128. data/lib/order_cloud/models/message_sender.rb +217 -0
  129. data/lib/order_cloud/models/message_sender_assignment.rb +235 -0
  130. data/lib/order_cloud/models/meta.rb +1 -1
  131. data/lib/order_cloud/models/order.rb +1 -1
  132. data/lib/order_cloud/models/order_approval.rb +1 -1
  133. data/lib/order_cloud/models/order_promotion.rb +1 -1
  134. data/lib/order_cloud/models/password_reset.rb +1 -1
  135. data/lib/order_cloud/models/password_reset_request.rb +1 -1
  136. data/lib/order_cloud/models/payment.rb +1 -1
  137. data/lib/order_cloud/models/payment_transaction.rb +1 -1
  138. data/lib/order_cloud/models/ping_response.rb +1 -1
  139. data/lib/order_cloud/models/price_break.rb +1 -1
  140. data/lib/order_cloud/models/price_schedule.rb +1 -1
  141. data/lib/order_cloud/models/product.rb +41 -5
  142. data/lib/order_cloud/models/product_assignment.rb +20 -20
  143. data/lib/order_cloud/models/promotion.rb +1 -1
  144. data/lib/order_cloud/models/promotion_assignment.rb +1 -1
  145. data/lib/order_cloud/models/security_profile.rb +1 -1
  146. data/lib/order_cloud/models/security_profile_assignment.rb +1 -1
  147. data/lib/order_cloud/models/shipment.rb +1 -1
  148. data/lib/order_cloud/models/shipment_item.rb +1 -1
  149. data/lib/order_cloud/models/spec.rb +1 -1
  150. data/lib/order_cloud/models/spec_option.rb +1 -1
  151. data/lib/order_cloud/models/spec_product_assignment.rb +1 -1
  152. data/lib/order_cloud/models/spending_account.rb +1 -1
  153. data/lib/order_cloud/models/spending_account_assignment.rb +1 -1
  154. data/lib/order_cloud/models/user.rb +16 -5
  155. data/lib/order_cloud/models/user_group.rb +1 -1
  156. data/lib/order_cloud/models/user_group_assignment.rb +1 -1
  157. data/lib/order_cloud/models/variant.rb +1 -1
  158. data/lib/order_cloud/models/web_hook.rb +1 -1
  159. data/lib/order_cloud/models/web_hook_route.rb +1 -1
  160. data/lib/order_cloud/models/xp_index.rb +1 -1
  161. data/lib/order_cloud/version.rb +2 -2
  162. data/order_cloud.gemspec +2 -2
  163. data/spec/api/address_api_spec.rb +1 -1
  164. data/spec/api/admin_address_api_spec.rb +1 -1
  165. data/spec/api/admin_user_api_spec.rb +1 -1
  166. data/spec/api/admin_user_group_api_spec.rb +165 -0
  167. data/spec/api/approval_rule_api_spec.rb +1 -1
  168. data/spec/api/buyer_api_spec.rb +1 -1
  169. data/spec/api/category_api_spec.rb +2 -2
  170. data/spec/api/cost_center_api_spec.rb +1 -1
  171. data/spec/api/credit_card_api_spec.rb +1 -1
  172. data/spec/api/email_template_api_spec.rb +1 -1
  173. data/spec/api/line_item_api_spec.rb +1 -1
  174. data/spec/api/me_api_spec.rb +1 -1
  175. data/spec/api/message_senders_api_spec.rb +149 -0
  176. data/spec/api/order_api_spec.rb +1 -1
  177. data/spec/api/password_reset_api_spec.rb +1 -1
  178. data/spec/api/payment_api_spec.rb +1 -1
  179. data/spec/api/price_schedule_api_spec.rb +1 -1
  180. data/spec/api/product_api_spec.rb +2 -2
  181. data/spec/api/promotion_api_spec.rb +1 -1
  182. data/spec/api/security_profile_api_spec.rb +1 -1
  183. data/spec/api/shipment_api_spec.rb +1 -1
  184. data/spec/api/spec_api_spec.rb +1 -1
  185. data/spec/api/spending_account_api_spec.rb +1 -1
  186. data/spec/api/user_api_spec.rb +2 -2
  187. data/spec/api/user_group_api_spec.rb +2 -2
  188. data/spec/api_auth_spec.rb +1 -1
  189. data/spec/api_client_spec.rb +1 -1
  190. data/spec/configuration_spec.rb +3 -3
  191. data/spec/models/access_token_spec.rb +1 -1
  192. data/spec/models/address_assignment_spec.rb +1 -1
  193. data/spec/models/address_spec.rb +1 -1
  194. data/spec/models/admin_company_spec.rb +1 -1
  195. data/spec/models/admin_model_on_view_spec.rb +1 -1
  196. data/spec/models/approval_rule_spec.rb +1 -1
  197. data/spec/models/base_spec_spec.rb +1 -1
  198. data/spec/models/buyer_address_spec.rb +1 -1
  199. data/spec/models/buyer_credit_card_spec.rb +1 -1
  200. data/spec/models/buyer_product_spec.rb +1 -1
  201. data/spec/models/buyer_spec.rb +1 -1
  202. data/spec/models/buyer_spec_spec.rb +1 -1
  203. data/spec/models/category_assignment_spec.rb +1 -1
  204. data/spec/models/category_product_assignment_spec.rb +1 -1
  205. data/spec/models/category_spec.rb +1 -1
  206. data/spec/models/cost_center_assignment_spec.rb +1 -1
  207. data/spec/models/cost_center_spec.rb +1 -1
  208. data/spec/models/credit_card_assignment_spec.rb +1 -1
  209. data/spec/models/credit_card_spec.rb +1 -1
  210. data/spec/models/email_template_spec.rb +1 -1
  211. data/spec/models/file_spec.rb +1 -1
  212. data/spec/models/impersonate_token_request_spec.rb +1 -1
  213. data/spec/models/inventory_spec.rb +1 -1
  214. data/spec/models/line_item_spec.rb +1 -1
  215. data/spec/models/line_item_spec_spec.rb +1 -1
  216. data/spec/models/list_address_assignment_spec.rb +1 -1
  217. data/spec/models/list_address_spec.rb +1 -1
  218. data/spec/models/list_admin_company_spec.rb +1 -1
  219. data/spec/models/list_approval_rule_spec.rb +1 -1
  220. data/spec/models/list_buyer_address_spec.rb +1 -1
  221. data/spec/models/list_buyer_credit_card_spec.rb +1 -1
  222. data/spec/models/list_buyer_product_spec.rb +1 -1
  223. data/spec/models/list_buyer_spec.rb +1 -1
  224. data/spec/models/list_buyer_spec_spec.rb +1 -1
  225. data/spec/models/list_category_assignment_spec.rb +1 -1
  226. data/spec/models/list_category_product_assignment_spec.rb +1 -1
  227. data/spec/models/list_category_spec.rb +1 -1
  228. data/spec/models/list_cost_center_assignment_spec.rb +1 -1
  229. data/spec/models/list_cost_center_spec.rb +1 -1
  230. data/spec/models/list_credit_card_assignment_spec.rb +1 -1
  231. data/spec/models/list_credit_card_spec.rb +1 -1
  232. data/spec/models/list_file_spec.rb +1 -1
  233. data/spec/models/list_inventory_spec.rb +1 -1
  234. data/spec/models/list_line_item_spec.rb +1 -1
  235. data/spec/models/list_message_cc_listener_assignment_spec.rb +59 -0
  236. data/spec/models/{list_api_client_spec.rb → list_message_config_spec.rb} +7 -7
  237. data/spec/models/list_message_sender_assignment_spec.rb +59 -0
  238. data/spec/models/{list_dev_accessible_company_spec.rb → list_message_sender_spec.rb} +7 -7
  239. data/spec/models/list_order_approval_spec.rb +1 -1
  240. data/spec/models/list_order_promotion_spec.rb +1 -1
  241. data/spec/models/list_order_spec.rb +1 -1
  242. data/spec/models/list_payment_spec.rb +1 -1
  243. data/spec/models/list_price_schedule_spec.rb +1 -1
  244. data/spec/models/list_product_assignment_spec.rb +1 -1
  245. data/spec/models/list_product_spec.rb +1 -1
  246. data/spec/models/list_promotion_assignment_spec.rb +1 -1
  247. data/spec/models/list_promotion_spec.rb +1 -1
  248. data/spec/models/list_security_profile_assignment_spec.rb +1 -1
  249. data/spec/models/list_security_profile_spec.rb +1 -1
  250. data/spec/models/list_shipment_spec.rb +1 -1
  251. data/spec/models/list_spec_option_spec.rb +1 -1
  252. data/spec/models/list_spec_product_assignment_spec.rb +1 -1
  253. data/spec/models/list_spec_spec.rb +1 -1
  254. data/spec/models/list_spending_account_assignment_spec.rb +1 -1
  255. data/spec/models/list_spending_account_spec.rb +1 -1
  256. data/spec/models/list_user_group_assignment_spec.rb +1 -1
  257. data/spec/models/list_user_group_spec.rb +1 -1
  258. data/spec/models/list_user_spec.rb +1 -1
  259. data/spec/models/list_variant_spec.rb +1 -1
  260. data/spec/models/list_web_hook_route_spec.rb +1 -1
  261. data/spec/models/list_web_hook_spec.rb +1 -1
  262. data/spec/models/list_xp_index_spec.rb +1 -1
  263. data/spec/models/message_cc_listener_assignment_spec.rb +83 -0
  264. data/spec/models/message_config_spec.rb +71 -0
  265. data/spec/models/message_sender_assignment_spec.rb +77 -0
  266. data/spec/models/message_sender_spec.rb +65 -0
  267. data/spec/models/meta_spec.rb +1 -1
  268. data/spec/models/order_approval_spec.rb +1 -1
  269. data/spec/models/order_promotion_spec.rb +1 -1
  270. data/spec/models/order_spec.rb +1 -1
  271. data/spec/models/password_reset_request_spec.rb +1 -1
  272. data/spec/models/password_reset_spec.rb +1 -1
  273. data/spec/models/payment_spec.rb +1 -1
  274. data/spec/models/payment_transaction_spec.rb +1 -1
  275. data/spec/models/ping_response_spec.rb +1 -1
  276. data/spec/models/price_break_spec.rb +1 -1
  277. data/spec/models/price_schedule_spec.rb +1 -1
  278. data/spec/models/product_assignment_spec.rb +6 -6
  279. data/spec/models/product_spec.rb +25 -1
  280. data/spec/models/promotion_assignment_spec.rb +1 -1
  281. data/spec/models/promotion_spec.rb +1 -1
  282. data/spec/models/security_profile_assignment_spec.rb +1 -1
  283. data/spec/models/security_profile_spec.rb +1 -1
  284. data/spec/models/shipment_item_spec.rb +1 -1
  285. data/spec/models/shipment_spec.rb +1 -1
  286. data/spec/models/spec_option_spec.rb +1 -1
  287. data/spec/models/spec_product_assignment_spec.rb +1 -1
  288. data/spec/models/spec_spec.rb +1 -1
  289. data/spec/models/spending_account_assignment_spec.rb +1 -1
  290. data/spec/models/spending_account_spec.rb +1 -1
  291. data/spec/models/user_group_assignment_spec.rb +1 -1
  292. data/spec/models/user_group_spec.rb +1 -1
  293. data/spec/models/user_spec.rb +7 -1
  294. data/spec/models/variant_spec.rb +1 -1
  295. data/spec/models/web_hook_route_spec.rb +1 -1
  296. data/spec/models/web_hook_spec.rb +1 -1
  297. data/spec/models/xp_index_spec.rb +1 -1
  298. data/spec/spec_helper.rb +1 -1
  299. metadata +42 -15
  300. data/Gemfile.lock +0 -34
  301. data/docs/FileApi.md +0 -162
  302. data/lib/order_cloud/api/file_api.rb +0 -206
  303. data/spec/api/file_api_spec.rb +0 -83
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #OrderCloud
3
3
 
4
- #A full ecommerce backend as a service.
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
6
  OpenAPI spec version: 1.0
7
7
  Contact: ordercloud@four51.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #OrderCloud
3
3
 
4
- #A full ecommerce backend as a service.
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
6
  OpenAPI spec version: 1.0
7
7
  Contact: ordercloud@four51.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #OrderCloud
3
3
 
4
- #A full ecommerce backend as a service.
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
6
  OpenAPI spec version: 1.0
7
7
  Contact: ordercloud@four51.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #OrderCloud
3
3
 
4
- #A full ecommerce backend as a service.
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
6
  OpenAPI spec version: 1.0
7
7
  Contact: ordercloud@four51.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #OrderCloud
3
3
 
4
- #A full ecommerce backend as a service.
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
6
  OpenAPI spec version: 1.0
7
7
  Contact: ordercloud@four51.com
@@ -0,0 +1,244 @@
1
+ =begin
2
+ #OrderCloud
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0
7
+ Contact: ordercloud@four51.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'date'
25
+
26
+ module OrderCloud
27
+
28
+ class MessageCCListenerAssignment
29
+ attr_accessor :message_sender_assignment
30
+
31
+ attr_accessor :message_config_name
32
+
33
+ attr_accessor :message_type
34
+
35
+ attr_accessor :buyer_id
36
+
37
+ attr_accessor :user_group_id
38
+
39
+ attr_accessor :user_id
40
+
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'message_sender_assignment' => :'MessageSenderAssignment',
46
+ :'message_config_name' => :'MessageConfigName',
47
+ :'message_type' => :'MessageType',
48
+ :'buyer_id' => :'BuyerID',
49
+ :'user_group_id' => :'UserGroupID',
50
+ :'user_id' => :'UserID'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'message_sender_assignment' => :'MessageSenderAssignment',
58
+ :'message_config_name' => :'String',
59
+ :'message_type' => :'String',
60
+ :'buyer_id' => :'String',
61
+ :'user_group_id' => :'String',
62
+ :'user_id' => :'String'
63
+ }
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ return unless attributes.is_a?(Hash)
70
+
71
+ # convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
73
+
74
+ if attributes.has_key?(:'MessageSenderAssignment')
75
+ self.message_sender_assignment = attributes[:'MessageSenderAssignment']
76
+ end
77
+
78
+ if attributes.has_key?(:'MessageConfigName')
79
+ self.message_config_name = attributes[:'MessageConfigName']
80
+ end
81
+
82
+ if attributes.has_key?(:'MessageType')
83
+ self.message_type = attributes[:'MessageType']
84
+ end
85
+
86
+ if attributes.has_key?(:'BuyerID')
87
+ self.buyer_id = attributes[:'BuyerID']
88
+ end
89
+
90
+ if attributes.has_key?(:'UserGroupID')
91
+ self.user_group_id = attributes[:'UserGroupID']
92
+ end
93
+
94
+ if attributes.has_key?(:'UserID')
95
+ self.user_id = attributes[:'UserID']
96
+ end
97
+
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properies with the reasons
102
+ def list_invalid_properties
103
+ invalid_properties = Array.new
104
+ return invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+ return true
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ message_sender_assignment == o.message_sender_assignment &&
119
+ message_config_name == o.message_config_name &&
120
+ message_type == o.message_type &&
121
+ buyer_id == o.buyer_id &&
122
+ user_group_id == o.user_group_id &&
123
+ user_id == o.user_id
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(o)
129
+ self == o
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Fixnum] Hash code
134
+ def hash
135
+ [message_sender_assignment, message_config_name, message_type, buyer_id, user_group_id, user_id].hash
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def build_from_hash(attributes)
142
+ return nil unless attributes.is_a?(Hash)
143
+ self.class.swagger_types.each_pair do |key, type|
144
+ if type =~ /^Array<(.*)>/i
145
+ # check to ensure the input is an array given that the the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
148
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
149
+ end
150
+ elsif !attributes[self.class.attribute_map[key]].nil?
151
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
152
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
153
+ end
154
+
155
+ self
156
+ end
157
+
158
+ # Deserializes the data based on type
159
+ # @param string type Data type
160
+ # @param string value Value to be deserialized
161
+ # @return [Object] Deserialized data
162
+ def _deserialize(type, value)
163
+ case type.to_sym
164
+ when :DateTime
165
+ DateTime.parse(value)
166
+ when :Date
167
+ Date.parse(value)
168
+ when :String
169
+ value.to_s
170
+ when :Integer
171
+ value.to_i
172
+ when :Float
173
+ value.to_f
174
+ when :BOOLEAN
175
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
176
+ true
177
+ else
178
+ false
179
+ end
180
+ when :Object
181
+ # generic object (usually a Hash), return directly
182
+ value
183
+ when /\AArray<(?<inner_type>.+)>\z/
184
+ inner_type = Regexp.last_match[:inner_type]
185
+ value.map { |v| _deserialize(inner_type, v) }
186
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
187
+ k_type = Regexp.last_match[:k_type]
188
+ v_type = Regexp.last_match[:v_type]
189
+ {}.tap do |hash|
190
+ value.each do |k, v|
191
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
192
+ end
193
+ end
194
+ else # model
195
+ temp_model = OrderCloud.const_get(type).new
196
+ temp_model.build_from_hash(value)
197
+ end
198
+ end
199
+
200
+ # Returns the string representation of the object
201
+ # @return [String] String presentation of the object
202
+ def to_s
203
+ to_hash.to_s
204
+ end
205
+
206
+ # to_body is an alias to to_hash (backward compatibility)
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_body
209
+ to_hash
210
+ end
211
+
212
+ # Returns the object in the form of hash
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_hash
215
+ hash = {}
216
+ self.class.attribute_map.each_pair do |attr, param|
217
+ value = self.send(attr)
218
+ next if value.nil?
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map{ |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+
242
+ end
243
+
244
+ end
@@ -0,0 +1,226 @@
1
+ =begin
2
+ #OrderCloud
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0
7
+ Contact: ordercloud@four51.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'date'
25
+
26
+ module OrderCloud
27
+
28
+ class MessageConfig
29
+ attr_accessor :url
30
+
31
+ attr_accessor :elevated_claims_list
32
+
33
+ attr_accessor :shared_key
34
+
35
+ attr_accessor :config_data
36
+
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'url' => :'URL',
42
+ :'elevated_claims_list' => :'ElevatedClaimsList',
43
+ :'shared_key' => :'SharedKey',
44
+ :'config_data' => :'ConfigData'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.swagger_types
50
+ {
51
+ :'url' => :'String',
52
+ :'elevated_claims_list' => :'String',
53
+ :'shared_key' => :'String',
54
+ :'config_data' => :'Object'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ return unless attributes.is_a?(Hash)
62
+
63
+ # convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
65
+
66
+ if attributes.has_key?(:'URL')
67
+ self.url = attributes[:'URL']
68
+ end
69
+
70
+ if attributes.has_key?(:'ElevatedClaimsList')
71
+ self.elevated_claims_list = attributes[:'ElevatedClaimsList']
72
+ end
73
+
74
+ if attributes.has_key?(:'SharedKey')
75
+ self.shared_key = attributes[:'SharedKey']
76
+ end
77
+
78
+ if attributes.has_key?(:'ConfigData')
79
+ self.config_data = attributes[:'ConfigData']
80
+ end
81
+
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properies with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = Array.new
88
+ return invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ return true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(o)
100
+ return true if self.equal?(o)
101
+ self.class == o.class &&
102
+ url == o.url &&
103
+ elevated_claims_list == o.elevated_claims_list &&
104
+ shared_key == o.shared_key &&
105
+ config_data == o.config_data
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Fixnum] Hash code
116
+ def hash
117
+ [url, elevated_claims_list, shared_key, config_data].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def build_from_hash(attributes)
124
+ return nil unless attributes.is_a?(Hash)
125
+ self.class.swagger_types.each_pair do |key, type|
126
+ if type =~ /^Array<(.*)>/i
127
+ # check to ensure the input is an array given that the the attribute
128
+ # is documented as an array but the input is not
129
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
130
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
131
+ end
132
+ elsif !attributes[self.class.attribute_map[key]].nil?
133
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
134
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
135
+ end
136
+
137
+ self
138
+ end
139
+
140
+ # Deserializes the data based on type
141
+ # @param string type Data type
142
+ # @param string value Value to be deserialized
143
+ # @return [Object] Deserialized data
144
+ def _deserialize(type, value)
145
+ case type.to_sym
146
+ when :DateTime
147
+ DateTime.parse(value)
148
+ when :Date
149
+ Date.parse(value)
150
+ when :String
151
+ value.to_s
152
+ when :Integer
153
+ value.to_i
154
+ when :Float
155
+ value.to_f
156
+ when :BOOLEAN
157
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
158
+ true
159
+ else
160
+ false
161
+ end
162
+ when :Object
163
+ # generic object (usually a Hash), return directly
164
+ value
165
+ when /\AArray<(?<inner_type>.+)>\z/
166
+ inner_type = Regexp.last_match[:inner_type]
167
+ value.map { |v| _deserialize(inner_type, v) }
168
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
169
+ k_type = Regexp.last_match[:k_type]
170
+ v_type = Regexp.last_match[:v_type]
171
+ {}.tap do |hash|
172
+ value.each do |k, v|
173
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
174
+ end
175
+ end
176
+ else # model
177
+ temp_model = OrderCloud.const_get(type).new
178
+ temp_model.build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ next if value.nil?
201
+ hash[param] = _to_hash(value)
202
+ end
203
+ hash
204
+ end
205
+
206
+ # Outputs non-array value in the form of hash
207
+ # For object, use to_hash. Otherwise, just return the value
208
+ # @param [Object] value Any valid value
209
+ # @return [Hash] Returns the value in the form of hash
210
+ def _to_hash(value)
211
+ if value.is_a?(Array)
212
+ value.compact.map{ |v| _to_hash(v) }
213
+ elsif value.is_a?(Hash)
214
+ {}.tap do |hash|
215
+ value.each { |k, v| hash[k] = _to_hash(v) }
216
+ end
217
+ elsif value.respond_to? :to_hash
218
+ value.to_hash
219
+ else
220
+ value
221
+ end
222
+ end
223
+
224
+ end
225
+
226
+ end