order_cloud 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (392) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +476 -0
  4. data/Rakefile +31 -0
  5. data/docs/AccessToken.md +10 -0
  6. data/docs/Address.md +20 -0
  7. data/docs/AddressApi.md +520 -0
  8. data/docs/AddressAssignment.md +12 -0
  9. data/docs/AdminAddressApi.md +324 -0
  10. data/docs/AdminCompany.md +10 -0
  11. data/docs/AdminModelOnView.md +7 -0
  12. data/docs/AdminUserApi.md +323 -0
  13. data/docs/ApprovalRule.md +20 -0
  14. data/docs/ApprovalRuleApi.md +342 -0
  15. data/docs/BaseSpec.md +15 -0
  16. data/docs/Buyer.md +11 -0
  17. data/docs/BuyerAddress.md +11 -0
  18. data/docs/BuyerApi.md +324 -0
  19. data/docs/BuyerCreditCard.md +9 -0
  20. data/docs/BuyerProduct.md +9 -0
  21. data/docs/BuyerSpec.md +9 -0
  22. data/docs/Category.md +15 -0
  23. data/docs/CategoryApi.md +684 -0
  24. data/docs/CategoryAssignment.md +10 -0
  25. data/docs/CategoryProductAssignment.md +10 -0
  26. data/docs/CostCenter.md +11 -0
  27. data/docs/CostCenterApi.md +516 -0
  28. data/docs/CostCenterAssignment.md +10 -0
  29. data/docs/CreditCard.md +15 -0
  30. data/docs/CreditCardApi.md +516 -0
  31. data/docs/CreditCardAssignment.md +10 -0
  32. data/docs/EmailTemplate.md +12 -0
  33. data/docs/EmailTemplateApi.md +223 -0
  34. data/docs/File.md +10 -0
  35. data/docs/FileApi.md +162 -0
  36. data/docs/ImpersonateTokenRequest.md +9 -0
  37. data/docs/Inventory.md +12 -0
  38. data/docs/LineItem.md +23 -0
  39. data/docs/LineItemApi.md +478 -0
  40. data/docs/LineItemSpec.md +11 -0
  41. data/docs/ListAddress.md +9 -0
  42. data/docs/ListAddressAssignment.md +9 -0
  43. data/docs/ListAdminCompany.md +9 -0
  44. data/docs/ListApiClient.md +9 -0
  45. data/docs/ListApprovalRule.md +9 -0
  46. data/docs/ListBuyer.md +9 -0
  47. data/docs/ListBuyerAddress.md +9 -0
  48. data/docs/ListBuyerCreditCard.md +9 -0
  49. data/docs/ListBuyerProduct.md +9 -0
  50. data/docs/ListBuyerSpec.md +9 -0
  51. data/docs/ListCategory.md +9 -0
  52. data/docs/ListCategoryAssignment.md +9 -0
  53. data/docs/ListCategoryProductAssignment.md +9 -0
  54. data/docs/ListCostCenter.md +9 -0
  55. data/docs/ListCostCenterAssignment.md +9 -0
  56. data/docs/ListCreditCard.md +9 -0
  57. data/docs/ListCreditCardAssignment.md +9 -0
  58. data/docs/ListDevAccessibleCompany.md +9 -0
  59. data/docs/ListFile.md +9 -0
  60. data/docs/ListInventory.md +9 -0
  61. data/docs/ListLineItem.md +9 -0
  62. data/docs/ListOrder.md +9 -0
  63. data/docs/ListOrderApproval.md +9 -0
  64. data/docs/ListOrderPromotion.md +9 -0
  65. data/docs/ListPayment.md +9 -0
  66. data/docs/ListPriceSchedule.md +9 -0
  67. data/docs/ListProduct.md +9 -0
  68. data/docs/ListProductAssignment.md +9 -0
  69. data/docs/ListPromotion.md +9 -0
  70. data/docs/ListPromotionAssignment.md +9 -0
  71. data/docs/ListSecurityProfile.md +9 -0
  72. data/docs/ListSecurityProfileAssignment.md +9 -0
  73. data/docs/ListShipment.md +9 -0
  74. data/docs/ListSpec.md +9 -0
  75. data/docs/ListSpecOption.md +9 -0
  76. data/docs/ListSpecProductAssignment.md +9 -0
  77. data/docs/ListSpendingAccount.md +9 -0
  78. data/docs/ListSpendingAccountAssignment.md +9 -0
  79. data/docs/ListUser.md +9 -0
  80. data/docs/ListUserGroup.md +9 -0
  81. data/docs/ListUserGroupAssignment.md +9 -0
  82. data/docs/ListVariant.md +9 -0
  83. data/docs/ListWebHook.md +9 -0
  84. data/docs/ListWebHookRoute.md +9 -0
  85. data/docs/ListXpIndex.md +9 -0
  86. data/docs/MeApi.md +1488 -0
  87. data/docs/Meta.md +12 -0
  88. data/docs/Order.md +31 -0
  89. data/docs/OrderApi.md +1277 -0
  90. data/docs/OrderApproval.md +16 -0
  91. data/docs/OrderPromotion.md +8 -0
  92. data/docs/PasswordReset.md +10 -0
  93. data/docs/PasswordResetApi.md +109 -0
  94. data/docs/PasswordResetRequest.md +11 -0
  95. data/docs/Payment.md +16 -0
  96. data/docs/PaymentApi.md +601 -0
  97. data/docs/PaymentTransaction.md +15 -0
  98. data/docs/PingResponse.md +8 -0
  99. data/docs/PriceBreak.md +9 -0
  100. data/docs/PriceSchedule.md +18 -0
  101. data/docs/PriceScheduleApi.md +429 -0
  102. data/docs/Product.md +22 -0
  103. data/docs/ProductApi.md +1115 -0
  104. data/docs/ProductAssignment.md +13 -0
  105. data/docs/Promotion.md +21 -0
  106. data/docs/PromotionApi.md +495 -0
  107. data/docs/PromotionAssignment.md +11 -0
  108. data/docs/SecurityProfile.md +11 -0
  109. data/docs/SecurityProfileApi.md +290 -0
  110. data/docs/SecurityProfileAssignment.md +11 -0
  111. data/docs/Shipment.md +14 -0
  112. data/docs/ShipmentApi.md +459 -0
  113. data/docs/ShipmentItem.md +10 -0
  114. data/docs/Spec.md +8 -0
  115. data/docs/SpecApi.md +816 -0
  116. data/docs/SpecOption.md +14 -0
  117. data/docs/SpecProductAssignment.md +10 -0
  118. data/docs/SpendingAccount.md +15 -0
  119. data/docs/SpendingAccountApi.md +516 -0
  120. data/docs/SpendingAccountAssignment.md +11 -0
  121. data/docs/User.md +17 -0
  122. data/docs/UserApi.md +399 -0
  123. data/docs/UserGroup.md +11 -0
  124. data/docs/UserGroupApi.md +508 -0
  125. data/docs/UserGroupAssignment.md +9 -0
  126. data/docs/Variant.md +12 -0
  127. data/docs/WebHook.md +18 -0
  128. data/docs/WebHookRoute.md +10 -0
  129. data/docs/XpIndex.md +9 -0
  130. data/git_push.sh +67 -0
  131. data/lib/order_cloud.rb +176 -0
  132. data/lib/order_cloud/api/address_api.rb +628 -0
  133. data/lib/order_cloud/api/admin_address_api.rb +397 -0
  134. data/lib/order_cloud/api/admin_user_api.rb +396 -0
  135. data/lib/order_cloud/api/approval_rule_api.rb +421 -0
  136. data/lib/order_cloud/api/buyer_api.rb +397 -0
  137. data/lib/order_cloud/api/category_api.rb +817 -0
  138. data/lib/order_cloud/api/cost_center_api.rb +622 -0
  139. data/lib/order_cloud/api/credit_card_api.rb +622 -0
  140. data/lib/order_cloud/api/email_template_api.rb +283 -0
  141. data/lib/order_cloud/api/file_api.rb +206 -0
  142. data/lib/order_cloud/api/line_item_api.rb +583 -0
  143. data/lib/order_cloud/api/me_api.rb +1747 -0
  144. data/lib/order_cloud/api/order_api.rb +1509 -0
  145. data/lib/order_cloud/api/password_reset_api.rb +150 -0
  146. data/lib/order_cloud/api/payment_api.rb +728 -0
  147. data/lib/order_cloud/api/price_schedule_api.rb +519 -0
  148. data/lib/order_cloud/api/product_api.rb +1311 -0
  149. data/lib/order_cloud/api/promotion_api.rb +596 -0
  150. data/lib/order_cloud/api/security_profile_api.rb +361 -0
  151. data/lib/order_cloud/api/shipment_api.rb +558 -0
  152. data/lib/order_cloud/api/spec_api.rb +965 -0
  153. data/lib/order_cloud/api/spending_account_api.rb +622 -0
  154. data/lib/order_cloud/api/user_api.rb +488 -0
  155. data/lib/order_cloud/api/user_group_api.rb +613 -0
  156. data/lib/order_cloud/api_auth.rb +99 -0
  157. data/lib/order_cloud/api_client.rb +385 -0
  158. data/lib/order_cloud/api_error.rb +47 -0
  159. data/lib/order_cloud/configuration.rb +244 -0
  160. data/lib/order_cloud/models/access_token.rb +217 -0
  161. data/lib/order_cloud/models/address.rb +307 -0
  162. data/lib/order_cloud/models/address_assignment.rb +235 -0
  163. data/lib/order_cloud/models/admin_company.rb +217 -0
  164. data/lib/order_cloud/models/admin_model_on_view.rb +190 -0
  165. data/lib/order_cloud/models/approval_rule.rb +307 -0
  166. data/lib/order_cloud/models/base_spec.rb +262 -0
  167. data/lib/order_cloud/models/buyer.rb +226 -0
  168. data/lib/order_cloud/models/buyer_address.rb +226 -0
  169. data/lib/order_cloud/models/buyer_credit_card.rb +208 -0
  170. data/lib/order_cloud/models/buyer_product.rb +208 -0
  171. data/lib/order_cloud/models/buyer_spec.rb +210 -0
  172. data/lib/order_cloud/models/category.rb +262 -0
  173. data/lib/order_cloud/models/category_assignment.rb +217 -0
  174. data/lib/order_cloud/models/category_product_assignment.rb +217 -0
  175. data/lib/order_cloud/models/cost_center.rb +226 -0
  176. data/lib/order_cloud/models/cost_center_assignment.rb +217 -0
  177. data/lib/order_cloud/models/credit_card.rb +262 -0
  178. data/lib/order_cloud/models/credit_card_assignment.rb +217 -0
  179. data/lib/order_cloud/models/email_template.rb +235 -0
  180. data/lib/order_cloud/models/file.rb +217 -0
  181. data/lib/order_cloud/models/impersonate_token_request.rb +208 -0
  182. data/lib/order_cloud/models/inventory.rb +235 -0
  183. data/lib/order_cloud/models/line_item.rb +336 -0
  184. data/lib/order_cloud/models/line_item_spec.rb +226 -0
  185. data/lib/order_cloud/models/list_address.rb +210 -0
  186. data/lib/order_cloud/models/list_address_assignment.rb +210 -0
  187. data/lib/order_cloud/models/list_admin_company.rb +210 -0
  188. data/lib/order_cloud/models/list_api_client.rb +210 -0
  189. data/lib/order_cloud/models/list_approval_rule.rb +210 -0
  190. data/lib/order_cloud/models/list_buyer.rb +210 -0
  191. data/lib/order_cloud/models/list_buyer_address.rb +210 -0
  192. data/lib/order_cloud/models/list_buyer_credit_card.rb +210 -0
  193. data/lib/order_cloud/models/list_buyer_product.rb +210 -0
  194. data/lib/order_cloud/models/list_buyer_spec.rb +210 -0
  195. data/lib/order_cloud/models/list_category.rb +210 -0
  196. data/lib/order_cloud/models/list_category_assignment.rb +210 -0
  197. data/lib/order_cloud/models/list_category_product_assignment.rb +210 -0
  198. data/lib/order_cloud/models/list_cost_center.rb +210 -0
  199. data/lib/order_cloud/models/list_cost_center_assignment.rb +210 -0
  200. data/lib/order_cloud/models/list_credit_card.rb +210 -0
  201. data/lib/order_cloud/models/list_credit_card_assignment.rb +210 -0
  202. data/lib/order_cloud/models/list_dev_accessible_company.rb +210 -0
  203. data/lib/order_cloud/models/list_file.rb +210 -0
  204. data/lib/order_cloud/models/list_inventory.rb +210 -0
  205. data/lib/order_cloud/models/list_line_item.rb +210 -0
  206. data/lib/order_cloud/models/list_order.rb +210 -0
  207. data/lib/order_cloud/models/list_order_approval.rb +210 -0
  208. data/lib/order_cloud/models/list_order_promotion.rb +210 -0
  209. data/lib/order_cloud/models/list_payment.rb +210 -0
  210. data/lib/order_cloud/models/list_price_schedule.rb +210 -0
  211. data/lib/order_cloud/models/list_product.rb +210 -0
  212. data/lib/order_cloud/models/list_product_assignment.rb +210 -0
  213. data/lib/order_cloud/models/list_promotion.rb +210 -0
  214. data/lib/order_cloud/models/list_promotion_assignment.rb +210 -0
  215. data/lib/order_cloud/models/list_security_profile.rb +210 -0
  216. data/lib/order_cloud/models/list_security_profile_assignment.rb +210 -0
  217. data/lib/order_cloud/models/list_shipment.rb +210 -0
  218. data/lib/order_cloud/models/list_spec.rb +210 -0
  219. data/lib/order_cloud/models/list_spec_option.rb +210 -0
  220. data/lib/order_cloud/models/list_spec_product_assignment.rb +210 -0
  221. data/lib/order_cloud/models/list_spending_account.rb +210 -0
  222. data/lib/order_cloud/models/list_spending_account_assignment.rb +210 -0
  223. data/lib/order_cloud/models/list_user.rb +210 -0
  224. data/lib/order_cloud/models/list_user_group.rb +210 -0
  225. data/lib/order_cloud/models/list_user_group_assignment.rb +210 -0
  226. data/lib/order_cloud/models/list_variant.rb +210 -0
  227. data/lib/order_cloud/models/list_web_hook.rb +210 -0
  228. data/lib/order_cloud/models/list_web_hook_route.rb +210 -0
  229. data/lib/order_cloud/models/list_xp_index.rb +210 -0
  230. data/lib/order_cloud/models/meta.rb +237 -0
  231. data/lib/order_cloud/models/order.rb +406 -0
  232. data/lib/order_cloud/models/order_approval.rb +271 -0
  233. data/lib/order_cloud/models/order_promotion.rb +199 -0
  234. data/lib/order_cloud/models/password_reset.rb +217 -0
  235. data/lib/order_cloud/models/password_reset_request.rb +226 -0
  236. data/lib/order_cloud/models/payment.rb +273 -0
  237. data/lib/order_cloud/models/payment_transaction.rb +262 -0
  238. data/lib/order_cloud/models/ping_response.rb +199 -0
  239. data/lib/order_cloud/models/price_break.rb +208 -0
  240. data/lib/order_cloud/models/price_schedule.rb +291 -0
  241. data/lib/order_cloud/models/product.rb +325 -0
  242. data/lib/order_cloud/models/product_assignment.rb +244 -0
  243. data/lib/order_cloud/models/promotion.rb +316 -0
  244. data/lib/order_cloud/models/promotion_assignment.rb +226 -0
  245. data/lib/order_cloud/models/security_profile.rb +228 -0
  246. data/lib/order_cloud/models/security_profile_assignment.rb +226 -0
  247. data/lib/order_cloud/models/shipment.rb +255 -0
  248. data/lib/order_cloud/models/shipment_item.rb +217 -0
  249. data/lib/order_cloud/models/spec.rb +199 -0
  250. data/lib/order_cloud/models/spec_option.rb +253 -0
  251. data/lib/order_cloud/models/spec_product_assignment.rb +217 -0
  252. data/lib/order_cloud/models/spending_account.rb +262 -0
  253. data/lib/order_cloud/models/spending_account_assignment.rb +226 -0
  254. data/lib/order_cloud/models/user.rb +280 -0
  255. data/lib/order_cloud/models/user_group.rb +226 -0
  256. data/lib/order_cloud/models/user_group_assignment.rb +208 -0
  257. data/lib/order_cloud/models/variant.rb +235 -0
  258. data/lib/order_cloud/models/web_hook.rb +289 -0
  259. data/lib/order_cloud/models/web_hook_route.rb +217 -0
  260. data/lib/order_cloud/models/xp_index.rb +208 -0
  261. data/lib/order_cloud/version.rb +26 -0
  262. data/order_cloud.gemspec +56 -0
  263. data/spec/api/address_api_spec.rb +179 -0
  264. data/spec/api/admin_address_api_spec.rb +125 -0
  265. data/spec/api/admin_user_api_spec.rb +125 -0
  266. data/spec/api/approval_rule_api_spec.rb +131 -0
  267. data/spec/api/buyer_api_spec.rb +125 -0
  268. data/spec/api/category_api_spec.rb +221 -0
  269. data/spec/api/cost_center_api_spec.rb +177 -0
  270. data/spec/api/credit_card_api_spec.rb +177 -0
  271. data/spec/api/email_template_api_spec.rb +100 -0
  272. data/spec/api/file_api_spec.rb +83 -0
  273. data/spec/api/line_item_api_spec.rb +167 -0
  274. data/spec/api/me_api_spec.rb +431 -0
  275. data/spec/api/order_api_spec.rb +375 -0
  276. data/spec/api/password_reset_api_spec.rb +71 -0
  277. data/spec/api/payment_api_spec.rb +199 -0
  278. data/spec/api/price_schedule_api_spec.rb +151 -0
  279. data/spec/api/product_api_spec.rb +330 -0
  280. data/spec/api/promotion_api_spec.rb +170 -0
  281. data/spec/api/security_profile_api_spec.rb +120 -0
  282. data/spec/api/shipment_api_spec.rb +161 -0
  283. data/spec/api/spec_api_spec.rb +250 -0
  284. data/spec/api/spending_account_api_spec.rb +177 -0
  285. data/spec/api/user_api_spec.rb +146 -0
  286. data/spec/api/user_group_api_spec.rb +174 -0
  287. data/spec/api_auth_spec.rb +165 -0
  288. data/spec/api_client_spec.rb +237 -0
  289. data/spec/configuration_spec.rb +80 -0
  290. data/spec/models/access_token_spec.rb +65 -0
  291. data/spec/models/address_assignment_spec.rb +77 -0
  292. data/spec/models/address_spec.rb +125 -0
  293. data/spec/models/admin_company_spec.rb +65 -0
  294. data/spec/models/admin_model_on_view_spec.rb +47 -0
  295. data/spec/models/approval_rule_spec.rb +125 -0
  296. data/spec/models/base_spec_spec.rb +95 -0
  297. data/spec/models/buyer_address_spec.rb +71 -0
  298. data/spec/models/buyer_credit_card_spec.rb +59 -0
  299. data/spec/models/buyer_product_spec.rb +59 -0
  300. data/spec/models/buyer_spec.rb +71 -0
  301. data/spec/models/buyer_spec_spec.rb +59 -0
  302. data/spec/models/category_assignment_spec.rb +65 -0
  303. data/spec/models/category_product_assignment_spec.rb +65 -0
  304. data/spec/models/category_spec.rb +95 -0
  305. data/spec/models/cost_center_assignment_spec.rb +65 -0
  306. data/spec/models/cost_center_spec.rb +71 -0
  307. data/spec/models/credit_card_assignment_spec.rb +65 -0
  308. data/spec/models/credit_card_spec.rb +95 -0
  309. data/spec/models/email_template_spec.rb +77 -0
  310. data/spec/models/file_spec.rb +65 -0
  311. data/spec/models/impersonate_token_request_spec.rb +59 -0
  312. data/spec/models/inventory_spec.rb +77 -0
  313. data/spec/models/line_item_spec.rb +143 -0
  314. data/spec/models/line_item_spec_spec.rb +71 -0
  315. data/spec/models/list_address_assignment_spec.rb +59 -0
  316. data/spec/models/list_address_spec.rb +59 -0
  317. data/spec/models/list_admin_company_spec.rb +59 -0
  318. data/spec/models/list_api_client_spec.rb +59 -0
  319. data/spec/models/list_approval_rule_spec.rb +59 -0
  320. data/spec/models/list_buyer_address_spec.rb +59 -0
  321. data/spec/models/list_buyer_credit_card_spec.rb +59 -0
  322. data/spec/models/list_buyer_product_spec.rb +59 -0
  323. data/spec/models/list_buyer_spec.rb +59 -0
  324. data/spec/models/list_buyer_spec_spec.rb +59 -0
  325. data/spec/models/list_category_assignment_spec.rb +59 -0
  326. data/spec/models/list_category_product_assignment_spec.rb +59 -0
  327. data/spec/models/list_category_spec.rb +59 -0
  328. data/spec/models/list_cost_center_assignment_spec.rb +59 -0
  329. data/spec/models/list_cost_center_spec.rb +59 -0
  330. data/spec/models/list_credit_card_assignment_spec.rb +59 -0
  331. data/spec/models/list_credit_card_spec.rb +59 -0
  332. data/spec/models/list_dev_accessible_company_spec.rb +59 -0
  333. data/spec/models/list_file_spec.rb +59 -0
  334. data/spec/models/list_inventory_spec.rb +59 -0
  335. data/spec/models/list_line_item_spec.rb +59 -0
  336. data/spec/models/list_order_approval_spec.rb +59 -0
  337. data/spec/models/list_order_promotion_spec.rb +59 -0
  338. data/spec/models/list_order_spec.rb +59 -0
  339. data/spec/models/list_payment_spec.rb +59 -0
  340. data/spec/models/list_price_schedule_spec.rb +59 -0
  341. data/spec/models/list_product_assignment_spec.rb +59 -0
  342. data/spec/models/list_product_spec.rb +59 -0
  343. data/spec/models/list_promotion_assignment_spec.rb +59 -0
  344. data/spec/models/list_promotion_spec.rb +59 -0
  345. data/spec/models/list_security_profile_assignment_spec.rb +59 -0
  346. data/spec/models/list_security_profile_spec.rb +59 -0
  347. data/spec/models/list_shipment_spec.rb +59 -0
  348. data/spec/models/list_spec_option_spec.rb +59 -0
  349. data/spec/models/list_spec_product_assignment_spec.rb +59 -0
  350. data/spec/models/list_spec_spec.rb +59 -0
  351. data/spec/models/list_spending_account_assignment_spec.rb +59 -0
  352. data/spec/models/list_spending_account_spec.rb +59 -0
  353. data/spec/models/list_user_group_assignment_spec.rb +59 -0
  354. data/spec/models/list_user_group_spec.rb +59 -0
  355. data/spec/models/list_user_spec.rb +59 -0
  356. data/spec/models/list_variant_spec.rb +59 -0
  357. data/spec/models/list_web_hook_route_spec.rb +59 -0
  358. data/spec/models/list_web_hook_spec.rb +59 -0
  359. data/spec/models/list_xp_index_spec.rb +59 -0
  360. data/spec/models/meta_spec.rb +77 -0
  361. data/spec/models/order_approval_spec.rb +101 -0
  362. data/spec/models/order_promotion_spec.rb +53 -0
  363. data/spec/models/order_spec.rb +191 -0
  364. data/spec/models/password_reset_request_spec.rb +71 -0
  365. data/spec/models/password_reset_spec.rb +65 -0
  366. data/spec/models/payment_spec.rb +101 -0
  367. data/spec/models/payment_transaction_spec.rb +95 -0
  368. data/spec/models/ping_response_spec.rb +53 -0
  369. data/spec/models/price_break_spec.rb +59 -0
  370. data/spec/models/price_schedule_spec.rb +113 -0
  371. data/spec/models/product_assignment_spec.rb +83 -0
  372. data/spec/models/product_spec.rb +137 -0
  373. data/spec/models/promotion_assignment_spec.rb +71 -0
  374. data/spec/models/promotion_spec.rb +131 -0
  375. data/spec/models/security_profile_assignment_spec.rb +71 -0
  376. data/spec/models/security_profile_spec.rb +71 -0
  377. data/spec/models/shipment_item_spec.rb +65 -0
  378. data/spec/models/shipment_spec.rb +89 -0
  379. data/spec/models/spec_option_spec.rb +89 -0
  380. data/spec/models/spec_product_assignment_spec.rb +65 -0
  381. data/spec/models/spec_spec.rb +53 -0
  382. data/spec/models/spending_account_assignment_spec.rb +71 -0
  383. data/spec/models/spending_account_spec.rb +95 -0
  384. data/spec/models/user_group_assignment_spec.rb +59 -0
  385. data/spec/models/user_group_spec.rb +71 -0
  386. data/spec/models/user_spec.rb +107 -0
  387. data/spec/models/variant_spec.rb +77 -0
  388. data/spec/models/web_hook_route_spec.rb +65 -0
  389. data/spec/models/web_hook_spec.rb +113 -0
  390. data/spec/models/xp_index_spec.rb +59 -0
  391. data/spec/spec_helper.rb +122 -0
  392. metadata +757 -0
@@ -0,0 +1,22 @@
1
+ # OrderCloud::Product
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **description** | **String** | | [optional]
9
+ **quantity_multiplier** | **Integer** | | [optional]
10
+ **ship_weight** | **Float** | | [optional]
11
+ **active** | **BOOLEAN** | | [optional]
12
+ **type** | **String** | | [optional]
13
+ **inventory_enabled** | **BOOLEAN** | | [optional]
14
+ **inventory_notification_point** | **Integer** | | [optional]
15
+ **variant_level_inventory** | **BOOLEAN** | | [optional]
16
+ **spec_count** | **Integer** | | [optional]
17
+ **xp** | **Object** | | [optional]
18
+ **allow_order_exceed_inventory** | **BOOLEAN** | | [optional]
19
+ **inventory_visible** | **BOOLEAN** | | [optional]
20
+ **variant_count** | **Integer** | | [optional]
21
+
22
+
@@ -0,0 +1,1115 @@
1
+ # OrderCloud::ProductApi
2
+
3
+ All URIs are relative to *https://api.ordercloud.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](ProductApi.md#create) | **POST** /products |
8
+ [**delete**](ProductApi.md#delete) | **DELETE** /products/{productID} |
9
+ [**delete_assignment**](ProductApi.md#delete_assignment) | **DELETE** /products/{productID}/assignments/{buyerID} |
10
+ [**generate_variants**](ProductApi.md#generate_variants) | **POST** /products/{productID}/variants/generate |
11
+ [**get**](ProductApi.md#get) | **GET** /products/{productID} |
12
+ [**get_inventory**](ProductApi.md#get_inventory) | **GET** /products/{productID}/inventory |
13
+ [**get_variant**](ProductApi.md#get_variant) | **GET** /products/{productID}/variants/{variantID} |
14
+ [**get_variant_inventory**](ProductApi.md#get_variant_inventory) | **GET** /products/{productID}/variants/inventory/{variantID} |
15
+ [**list**](ProductApi.md#list) | **GET** /products |
16
+ [**list_assignments**](ProductApi.md#list_assignments) | **GET** /products/assignments |
17
+ [**list_inventory**](ProductApi.md#list_inventory) | **GET** /products/inventory |
18
+ [**list_variant_inventory**](ProductApi.md#list_variant_inventory) | **GET** /products/{productID}/variants/inventory |
19
+ [**list_variants**](ProductApi.md#list_variants) | **GET** /products/{productID}/variants |
20
+ [**patch**](ProductApi.md#patch) | **PATCH** /products/{productID} |
21
+ [**patch_variant**](ProductApi.md#patch_variant) | **PATCH** /products/{productID}/variants/{variantID} |
22
+ [**save_assignment**](ProductApi.md#save_assignment) | **POST** /products/assignments |
23
+ [**update**](ProductApi.md#update) | **PUT** /products/{productID} |
24
+ [**update_inventory**](ProductApi.md#update_inventory) | **PUT** /products/{productID}/inventory/{inventory} |
25
+ [**update_variant**](ProductApi.md#update_variant) | **PUT** /products/{productID}/variants/{variantID} |
26
+ [**update_variant_inventory**](ProductApi.md#update_variant_inventory) | **PUT** /products/{productID}/variants/inventory/{variantID}/{inventory} |
27
+
28
+
29
+ # **create**
30
+ > Product create(product)
31
+
32
+
33
+
34
+ ### Example
35
+ ```ruby
36
+ # load the gem
37
+ require 'order_cloud'
38
+ # setup authorization
39
+ OrderCloud.configure do |config|
40
+ # Configure OAuth2 access token for authorization: oauth2
41
+ config.access_token = 'YOUR ACCESS TOKEN'
42
+ end
43
+
44
+ api_instance = OrderCloud::ProductApi.new
45
+
46
+ product = OrderCloud::Product.new # Product |
47
+
48
+
49
+ begin
50
+ result = api_instance.create(product)
51
+ p result
52
+ rescue OrderCloud::ApiError => e
53
+ puts "Exception when calling ProductApi->create: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ Name | Type | Description | Notes
60
+ ------------- | ------------- | ------------- | -------------
61
+ **product** | [**Product**](Product.md)| |
62
+
63
+ ### Return type
64
+
65
+ [**Product**](Product.md)
66
+
67
+ ### Authorization
68
+
69
+ [oauth2](../README.md#oauth2)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: application/json, text/plain; charset=utf-8
74
+ - **Accept**: application/json
75
+
76
+
77
+
78
+ # **delete**
79
+ > delete(product_id)
80
+
81
+
82
+
83
+ ### Example
84
+ ```ruby
85
+ # load the gem
86
+ require 'order_cloud'
87
+ # setup authorization
88
+ OrderCloud.configure do |config|
89
+ # Configure OAuth2 access token for authorization: oauth2
90
+ config.access_token = 'YOUR ACCESS TOKEN'
91
+ end
92
+
93
+ api_instance = OrderCloud::ProductApi.new
94
+
95
+ product_id = "product_id_example" # String | ID of the product.
96
+
97
+
98
+ begin
99
+ api_instance.delete(product_id)
100
+ rescue OrderCloud::ApiError => e
101
+ puts "Exception when calling ProductApi->delete: #{e}"
102
+ end
103
+ ```
104
+
105
+ ### Parameters
106
+
107
+ Name | Type | Description | Notes
108
+ ------------- | ------------- | ------------- | -------------
109
+ **product_id** | **String**| ID of the product. |
110
+
111
+ ### Return type
112
+
113
+ nil (empty response body)
114
+
115
+ ### Authorization
116
+
117
+ [oauth2](../README.md#oauth2)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: application/json, text/plain; charset=utf-8
122
+ - **Accept**: application/json
123
+
124
+
125
+
126
+ # **delete_assignment**
127
+ > delete_assignment(buyer_id, product_id, opts)
128
+
129
+
130
+
131
+ ### Example
132
+ ```ruby
133
+ # load the gem
134
+ require 'order_cloud'
135
+ # setup authorization
136
+ OrderCloud.configure do |config|
137
+ # Configure OAuth2 access token for authorization: oauth2
138
+ config.access_token = 'YOUR ACCESS TOKEN'
139
+ end
140
+
141
+ api_instance = OrderCloud::ProductApi.new
142
+
143
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
144
+
145
+ product_id = "product_id_example" # String | ID of the product.
146
+
147
+ opts = {
148
+ user_id: "user_id_example", # String | ID of the user.
149
+ user_group_id: "user_group_id_example" # String | ID of the user group.
150
+ }
151
+
152
+ begin
153
+ api_instance.delete_assignment(buyer_id, product_id, opts)
154
+ rescue OrderCloud::ApiError => e
155
+ puts "Exception when calling ProductApi->delete_assignment: #{e}"
156
+ end
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ Name | Type | Description | Notes
162
+ ------------- | ------------- | ------------- | -------------
163
+ **buyer_id** | **String**| ID of the buyer. |
164
+ **product_id** | **String**| ID of the product. |
165
+ **user_id** | **String**| ID of the user. | [optional]
166
+ **user_group_id** | **String**| ID of the user group. | [optional]
167
+
168
+ ### Return type
169
+
170
+ nil (empty response body)
171
+
172
+ ### Authorization
173
+
174
+ [oauth2](../README.md#oauth2)
175
+
176
+ ### HTTP request headers
177
+
178
+ - **Content-Type**: application/json, text/plain; charset=utf-8
179
+ - **Accept**: application/json
180
+
181
+
182
+
183
+ # **generate_variants**
184
+ > Product generate_variants(product_id, opts)
185
+
186
+
187
+
188
+ ### Example
189
+ ```ruby
190
+ # load the gem
191
+ require 'order_cloud'
192
+ # setup authorization
193
+ OrderCloud.configure do |config|
194
+ # Configure OAuth2 access token for authorization: oauth2
195
+ config.access_token = 'YOUR ACCESS TOKEN'
196
+ end
197
+
198
+ api_instance = OrderCloud::ProductApi.new
199
+
200
+ product_id = "product_id_example" # String | ID of the product.
201
+
202
+ opts = {
203
+ overwrite_existing: true # BOOLEAN | Overwrite existing of the product.
204
+ }
205
+
206
+ begin
207
+ result = api_instance.generate_variants(product_id, opts)
208
+ p result
209
+ rescue OrderCloud::ApiError => e
210
+ puts "Exception when calling ProductApi->generate_variants: #{e}"
211
+ end
212
+ ```
213
+
214
+ ### Parameters
215
+
216
+ Name | Type | Description | Notes
217
+ ------------- | ------------- | ------------- | -------------
218
+ **product_id** | **String**| ID of the product. |
219
+ **overwrite_existing** | **BOOLEAN**| Overwrite existing of the product. | [optional]
220
+
221
+ ### Return type
222
+
223
+ [**Product**](Product.md)
224
+
225
+ ### Authorization
226
+
227
+ [oauth2](../README.md#oauth2)
228
+
229
+ ### HTTP request headers
230
+
231
+ - **Content-Type**: application/json, text/plain; charset=utf-8
232
+ - **Accept**: application/json
233
+
234
+
235
+
236
+ # **get**
237
+ > Product get(product_id)
238
+
239
+
240
+
241
+ ### Example
242
+ ```ruby
243
+ # load the gem
244
+ require 'order_cloud'
245
+ # setup authorization
246
+ OrderCloud.configure do |config|
247
+ # Configure OAuth2 access token for authorization: oauth2
248
+ config.access_token = 'YOUR ACCESS TOKEN'
249
+ end
250
+
251
+ api_instance = OrderCloud::ProductApi.new
252
+
253
+ product_id = "product_id_example" # String | ID of the product.
254
+
255
+
256
+ begin
257
+ result = api_instance.get(product_id)
258
+ p result
259
+ rescue OrderCloud::ApiError => e
260
+ puts "Exception when calling ProductApi->get: #{e}"
261
+ end
262
+ ```
263
+
264
+ ### Parameters
265
+
266
+ Name | Type | Description | Notes
267
+ ------------- | ------------- | ------------- | -------------
268
+ **product_id** | **String**| ID of the product. |
269
+
270
+ ### Return type
271
+
272
+ [**Product**](Product.md)
273
+
274
+ ### Authorization
275
+
276
+ [oauth2](../README.md#oauth2)
277
+
278
+ ### HTTP request headers
279
+
280
+ - **Content-Type**: application/json, text/plain; charset=utf-8
281
+ - **Accept**: application/json
282
+
283
+
284
+
285
+ # **get_inventory**
286
+ > Inventory get_inventory(product_id)
287
+
288
+
289
+
290
+ ### Example
291
+ ```ruby
292
+ # load the gem
293
+ require 'order_cloud'
294
+ # setup authorization
295
+ OrderCloud.configure do |config|
296
+ # Configure OAuth2 access token for authorization: oauth2
297
+ config.access_token = 'YOUR ACCESS TOKEN'
298
+ end
299
+
300
+ api_instance = OrderCloud::ProductApi.new
301
+
302
+ product_id = "product_id_example" # String | ID of the product.
303
+
304
+
305
+ begin
306
+ result = api_instance.get_inventory(product_id)
307
+ p result
308
+ rescue OrderCloud::ApiError => e
309
+ puts "Exception when calling ProductApi->get_inventory: #{e}"
310
+ end
311
+ ```
312
+
313
+ ### Parameters
314
+
315
+ Name | Type | Description | Notes
316
+ ------------- | ------------- | ------------- | -------------
317
+ **product_id** | **String**| ID of the product. |
318
+
319
+ ### Return type
320
+
321
+ [**Inventory**](Inventory.md)
322
+
323
+ ### Authorization
324
+
325
+ [oauth2](../README.md#oauth2)
326
+
327
+ ### HTTP request headers
328
+
329
+ - **Content-Type**: application/json, text/plain; charset=utf-8
330
+ - **Accept**: application/json
331
+
332
+
333
+
334
+ # **get_variant**
335
+ > Variant get_variant(product_id, variant_id)
336
+
337
+
338
+
339
+ ### Example
340
+ ```ruby
341
+ # load the gem
342
+ require 'order_cloud'
343
+ # setup authorization
344
+ OrderCloud.configure do |config|
345
+ # Configure OAuth2 access token for authorization: oauth2
346
+ config.access_token = 'YOUR ACCESS TOKEN'
347
+ end
348
+
349
+ api_instance = OrderCloud::ProductApi.new
350
+
351
+ product_id = "product_id_example" # String | ID of the product.
352
+
353
+ variant_id = "variant_id_example" # String | ID of the variant.
354
+
355
+
356
+ begin
357
+ result = api_instance.get_variant(product_id, variant_id)
358
+ p result
359
+ rescue OrderCloud::ApiError => e
360
+ puts "Exception when calling ProductApi->get_variant: #{e}"
361
+ end
362
+ ```
363
+
364
+ ### Parameters
365
+
366
+ Name | Type | Description | Notes
367
+ ------------- | ------------- | ------------- | -------------
368
+ **product_id** | **String**| ID of the product. |
369
+ **variant_id** | **String**| ID of the variant. |
370
+
371
+ ### Return type
372
+
373
+ [**Variant**](Variant.md)
374
+
375
+ ### Authorization
376
+
377
+ [oauth2](../README.md#oauth2)
378
+
379
+ ### HTTP request headers
380
+
381
+ - **Content-Type**: application/json, text/plain; charset=utf-8
382
+ - **Accept**: application/json
383
+
384
+
385
+
386
+ # **get_variant_inventory**
387
+ > Inventory get_variant_inventory(product_id, variant_id)
388
+
389
+
390
+
391
+ ### Example
392
+ ```ruby
393
+ # load the gem
394
+ require 'order_cloud'
395
+ # setup authorization
396
+ OrderCloud.configure do |config|
397
+ # Configure OAuth2 access token for authorization: oauth2
398
+ config.access_token = 'YOUR ACCESS TOKEN'
399
+ end
400
+
401
+ api_instance = OrderCloud::ProductApi.new
402
+
403
+ product_id = "product_id_example" # String | ID of the product.
404
+
405
+ variant_id = "variant_id_example" # String | ID of the variant.
406
+
407
+
408
+ begin
409
+ result = api_instance.get_variant_inventory(product_id, variant_id)
410
+ p result
411
+ rescue OrderCloud::ApiError => e
412
+ puts "Exception when calling ProductApi->get_variant_inventory: #{e}"
413
+ end
414
+ ```
415
+
416
+ ### Parameters
417
+
418
+ Name | Type | Description | Notes
419
+ ------------- | ------------- | ------------- | -------------
420
+ **product_id** | **String**| ID of the product. |
421
+ **variant_id** | **String**| ID of the variant. |
422
+
423
+ ### Return type
424
+
425
+ [**Inventory**](Inventory.md)
426
+
427
+ ### Authorization
428
+
429
+ [oauth2](../README.md#oauth2)
430
+
431
+ ### HTTP request headers
432
+
433
+ - **Content-Type**: application/json, text/plain; charset=utf-8
434
+ - **Accept**: application/json
435
+
436
+
437
+
438
+ # **list**
439
+ > ListProduct list(opts)
440
+
441
+
442
+
443
+ ### Example
444
+ ```ruby
445
+ # load the gem
446
+ require 'order_cloud'
447
+ # setup authorization
448
+ OrderCloud.configure do |config|
449
+ # Configure OAuth2 access token for authorization: oauth2
450
+ config.access_token = 'YOUR ACCESS TOKEN'
451
+ end
452
+
453
+ api_instance = OrderCloud::ProductApi.new
454
+
455
+ opts = {
456
+ search: "search_example", # String | Word or phrase to search for.
457
+ search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
458
+ sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
459
+ page: 56, # Integer | Page of results to return. Default: 1
460
+ page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
461
+ filters: {'key' => "filters_example"} # Hash<String, String> | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
462
+ }
463
+
464
+ begin
465
+ result = api_instance.list(opts)
466
+ p result
467
+ rescue OrderCloud::ApiError => e
468
+ puts "Exception when calling ProductApi->list: #{e}"
469
+ end
470
+ ```
471
+
472
+ ### Parameters
473
+
474
+ Name | Type | Description | Notes
475
+ ------------- | ------------- | ------------- | -------------
476
+ **search** | **String**| Word or phrase to search for. | [optional]
477
+ **search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
478
+ **sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
479
+ **page** | **Integer**| Page of results to return. Default: 1 | [optional]
480
+ **page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
481
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or &#39;xp.???&#39; | [optional]
482
+
483
+ ### Return type
484
+
485
+ [**ListProduct**](ListProduct.md)
486
+
487
+ ### Authorization
488
+
489
+ [oauth2](../README.md#oauth2)
490
+
491
+ ### HTTP request headers
492
+
493
+ - **Content-Type**: application/json, text/plain; charset=utf-8
494
+ - **Accept**: application/json
495
+
496
+
497
+
498
+ # **list_assignments**
499
+ > ListProductAssignment list_assignments(opts)
500
+
501
+
502
+
503
+ ### Example
504
+ ```ruby
505
+ # load the gem
506
+ require 'order_cloud'
507
+ # setup authorization
508
+ OrderCloud.configure do |config|
509
+ # Configure OAuth2 access token for authorization: oauth2
510
+ config.access_token = 'YOUR ACCESS TOKEN'
511
+ end
512
+
513
+ api_instance = OrderCloud::ProductApi.new
514
+
515
+ opts = {
516
+ product_id: "product_id_example", # String | ID of the product.
517
+ buyer_id: "buyer_id_example", # String | ID of the buyer.
518
+ user_id: "user_id_example", # String | ID of the user.
519
+ user_group_id: "user_group_id_example", # String | ID of the user group.
520
+ level: "level_example", # String | Level of the product.
521
+ price_schedule_id: "price_schedule_id_example", # String | ID of the price schedule.
522
+ page: 56, # Integer | Page of results to return. Default: 1
523
+ page_size: 56 # Integer | Number of results to return per page. Default: 20, max: 100.
524
+ }
525
+
526
+ begin
527
+ result = api_instance.list_assignments(opts)
528
+ p result
529
+ rescue OrderCloud::ApiError => e
530
+ puts "Exception when calling ProductApi->list_assignments: #{e}"
531
+ end
532
+ ```
533
+
534
+ ### Parameters
535
+
536
+ Name | Type | Description | Notes
537
+ ------------- | ------------- | ------------- | -------------
538
+ **product_id** | **String**| ID of the product. | [optional]
539
+ **buyer_id** | **String**| ID of the buyer. | [optional]
540
+ **user_id** | **String**| ID of the user. | [optional]
541
+ **user_group_id** | **String**| ID of the user group. | [optional]
542
+ **level** | **String**| Level of the product. | [optional]
543
+ **price_schedule_id** | **String**| ID of the price schedule. | [optional]
544
+ **page** | **Integer**| Page of results to return. Default: 1 | [optional]
545
+ **page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
546
+
547
+ ### Return type
548
+
549
+ [**ListProductAssignment**](ListProductAssignment.md)
550
+
551
+ ### Authorization
552
+
553
+ [oauth2](../README.md#oauth2)
554
+
555
+ ### HTTP request headers
556
+
557
+ - **Content-Type**: application/json, text/plain; charset=utf-8
558
+ - **Accept**: application/json
559
+
560
+
561
+
562
+ # **list_inventory**
563
+ > ListInventory list_inventory(opts)
564
+
565
+
566
+
567
+ ### Example
568
+ ```ruby
569
+ # load the gem
570
+ require 'order_cloud'
571
+ # setup authorization
572
+ OrderCloud.configure do |config|
573
+ # Configure OAuth2 access token for authorization: oauth2
574
+ config.access_token = 'YOUR ACCESS TOKEN'
575
+ end
576
+
577
+ api_instance = OrderCloud::ProductApi.new
578
+
579
+ opts = {
580
+ search: "search_example", # String | Word or phrase to search for.
581
+ search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
582
+ sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
583
+ page: 56, # Integer | Page of results to return. Default: 1
584
+ page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
585
+ filters: {'key' => "filters_example"} # Hash<String, String> | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
586
+ }
587
+
588
+ begin
589
+ result = api_instance.list_inventory(opts)
590
+ p result
591
+ rescue OrderCloud::ApiError => e
592
+ puts "Exception when calling ProductApi->list_inventory: #{e}"
593
+ end
594
+ ```
595
+
596
+ ### Parameters
597
+
598
+ Name | Type | Description | Notes
599
+ ------------- | ------------- | ------------- | -------------
600
+ **search** | **String**| Word or phrase to search for. | [optional]
601
+ **search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
602
+ **sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
603
+ **page** | **Integer**| Page of results to return. Default: 1 | [optional]
604
+ **page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
605
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or &#39;xp.???&#39; | [optional]
606
+
607
+ ### Return type
608
+
609
+ [**ListInventory**](ListInventory.md)
610
+
611
+ ### Authorization
612
+
613
+ [oauth2](../README.md#oauth2)
614
+
615
+ ### HTTP request headers
616
+
617
+ - **Content-Type**: application/json, text/plain; charset=utf-8
618
+ - **Accept**: application/json
619
+
620
+
621
+
622
+ # **list_variant_inventory**
623
+ > ListInventory list_variant_inventory(product_id, opts)
624
+
625
+
626
+
627
+ ### Example
628
+ ```ruby
629
+ # load the gem
630
+ require 'order_cloud'
631
+ # setup authorization
632
+ OrderCloud.configure do |config|
633
+ # Configure OAuth2 access token for authorization: oauth2
634
+ config.access_token = 'YOUR ACCESS TOKEN'
635
+ end
636
+
637
+ api_instance = OrderCloud::ProductApi.new
638
+
639
+ product_id = "product_id_example" # String | ID of the product.
640
+
641
+ opts = {
642
+ search: "search_example", # String | Word or phrase to search for.
643
+ search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
644
+ sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
645
+ page: 56, # Integer | Page of results to return. Default: 1
646
+ page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
647
+ filters: {'key' => "filters_example"} # Hash<String, String> | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
648
+ }
649
+
650
+ begin
651
+ result = api_instance.list_variant_inventory(product_id, opts)
652
+ p result
653
+ rescue OrderCloud::ApiError => e
654
+ puts "Exception when calling ProductApi->list_variant_inventory: #{e}"
655
+ end
656
+ ```
657
+
658
+ ### Parameters
659
+
660
+ Name | Type | Description | Notes
661
+ ------------- | ------------- | ------------- | -------------
662
+ **product_id** | **String**| ID of the product. |
663
+ **search** | **String**| Word or phrase to search for. | [optional]
664
+ **search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
665
+ **sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
666
+ **page** | **Integer**| Page of results to return. Default: 1 | [optional]
667
+ **page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
668
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or &#39;xp.???&#39; | [optional]
669
+
670
+ ### Return type
671
+
672
+ [**ListInventory**](ListInventory.md)
673
+
674
+ ### Authorization
675
+
676
+ [oauth2](../README.md#oauth2)
677
+
678
+ ### HTTP request headers
679
+
680
+ - **Content-Type**: application/json, text/plain; charset=utf-8
681
+ - **Accept**: application/json
682
+
683
+
684
+
685
+ # **list_variants**
686
+ > ListVariant list_variants(product_id, opts)
687
+
688
+
689
+
690
+ ### Example
691
+ ```ruby
692
+ # load the gem
693
+ require 'order_cloud'
694
+ # setup authorization
695
+ OrderCloud.configure do |config|
696
+ # Configure OAuth2 access token for authorization: oauth2
697
+ config.access_token = 'YOUR ACCESS TOKEN'
698
+ end
699
+
700
+ api_instance = OrderCloud::ProductApi.new
701
+
702
+ product_id = "product_id_example" # String | ID of the product.
703
+
704
+ opts = {
705
+ search: "search_example", # String | Word or phrase to search for.
706
+ search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
707
+ sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
708
+ page: 56, # Integer | Page of results to return. Default: 1
709
+ page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
710
+ filters: {'key' => "filters_example"} # Hash<String, String> | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
711
+ }
712
+
713
+ begin
714
+ result = api_instance.list_variants(product_id, opts)
715
+ p result
716
+ rescue OrderCloud::ApiError => e
717
+ puts "Exception when calling ProductApi->list_variants: #{e}"
718
+ end
719
+ ```
720
+
721
+ ### Parameters
722
+
723
+ Name | Type | Description | Notes
724
+ ------------- | ------------- | ------------- | -------------
725
+ **product_id** | **String**| ID of the product. |
726
+ **search** | **String**| Word or phrase to search for. | [optional]
727
+ **search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
728
+ **sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
729
+ **page** | **Integer**| Page of results to return. Default: 1 | [optional]
730
+ **page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
731
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or &#39;xp.???&#39; | [optional]
732
+
733
+ ### Return type
734
+
735
+ [**ListVariant**](ListVariant.md)
736
+
737
+ ### Authorization
738
+
739
+ [oauth2](../README.md#oauth2)
740
+
741
+ ### HTTP request headers
742
+
743
+ - **Content-Type**: application/json, text/plain; charset=utf-8
744
+ - **Accept**: application/json
745
+
746
+
747
+
748
+ # **patch**
749
+ > patch(product_id, product)
750
+
751
+
752
+
753
+ ### Example
754
+ ```ruby
755
+ # load the gem
756
+ require 'order_cloud'
757
+ # setup authorization
758
+ OrderCloud.configure do |config|
759
+ # Configure OAuth2 access token for authorization: oauth2
760
+ config.access_token = 'YOUR ACCESS TOKEN'
761
+ end
762
+
763
+ api_instance = OrderCloud::ProductApi.new
764
+
765
+ product_id = "product_id_example" # String | ID of the product.
766
+
767
+ product = OrderCloud::Product.new # Product |
768
+
769
+
770
+ begin
771
+ api_instance.patch(product_id, product)
772
+ rescue OrderCloud::ApiError => e
773
+ puts "Exception when calling ProductApi->patch: #{e}"
774
+ end
775
+ ```
776
+
777
+ ### Parameters
778
+
779
+ Name | Type | Description | Notes
780
+ ------------- | ------------- | ------------- | -------------
781
+ **product_id** | **String**| ID of the product. |
782
+ **product** | [**Product**](Product.md)| |
783
+
784
+ ### Return type
785
+
786
+ nil (empty response body)
787
+
788
+ ### Authorization
789
+
790
+ [oauth2](../README.md#oauth2)
791
+
792
+ ### HTTP request headers
793
+
794
+ - **Content-Type**: application/json, text/plain; charset=utf-8
795
+ - **Accept**: application/json
796
+
797
+
798
+
799
+ # **patch_variant**
800
+ > Variant patch_variant(product_id, variant_id, variant)
801
+
802
+
803
+
804
+ ### Example
805
+ ```ruby
806
+ # load the gem
807
+ require 'order_cloud'
808
+ # setup authorization
809
+ OrderCloud.configure do |config|
810
+ # Configure OAuth2 access token for authorization: oauth2
811
+ config.access_token = 'YOUR ACCESS TOKEN'
812
+ end
813
+
814
+ api_instance = OrderCloud::ProductApi.new
815
+
816
+ product_id = "product_id_example" # String | ID of the product.
817
+
818
+ variant_id = "variant_id_example" # String | ID of the variant.
819
+
820
+ variant = OrderCloud::Variant.new # Variant |
821
+
822
+
823
+ begin
824
+ result = api_instance.patch_variant(product_id, variant_id, variant)
825
+ p result
826
+ rescue OrderCloud::ApiError => e
827
+ puts "Exception when calling ProductApi->patch_variant: #{e}"
828
+ end
829
+ ```
830
+
831
+ ### Parameters
832
+
833
+ Name | Type | Description | Notes
834
+ ------------- | ------------- | ------------- | -------------
835
+ **product_id** | **String**| ID of the product. |
836
+ **variant_id** | **String**| ID of the variant. |
837
+ **variant** | [**Variant**](Variant.md)| |
838
+
839
+ ### Return type
840
+
841
+ [**Variant**](Variant.md)
842
+
843
+ ### Authorization
844
+
845
+ [oauth2](../README.md#oauth2)
846
+
847
+ ### HTTP request headers
848
+
849
+ - **Content-Type**: application/json, text/plain; charset=utf-8
850
+ - **Accept**: application/json
851
+
852
+
853
+
854
+ # **save_assignment**
855
+ > save_assignment(product_assignment)
856
+
857
+
858
+
859
+ ### Example
860
+ ```ruby
861
+ # load the gem
862
+ require 'order_cloud'
863
+ # setup authorization
864
+ OrderCloud.configure do |config|
865
+ # Configure OAuth2 access token for authorization: oauth2
866
+ config.access_token = 'YOUR ACCESS TOKEN'
867
+ end
868
+
869
+ api_instance = OrderCloud::ProductApi.new
870
+
871
+ product_assignment = OrderCloud::ProductAssignment.new # ProductAssignment |
872
+
873
+
874
+ begin
875
+ api_instance.save_assignment(product_assignment)
876
+ rescue OrderCloud::ApiError => e
877
+ puts "Exception when calling ProductApi->save_assignment: #{e}"
878
+ end
879
+ ```
880
+
881
+ ### Parameters
882
+
883
+ Name | Type | Description | Notes
884
+ ------------- | ------------- | ------------- | -------------
885
+ **product_assignment** | [**ProductAssignment**](ProductAssignment.md)| |
886
+
887
+ ### Return type
888
+
889
+ nil (empty response body)
890
+
891
+ ### Authorization
892
+
893
+ [oauth2](../README.md#oauth2)
894
+
895
+ ### HTTP request headers
896
+
897
+ - **Content-Type**: application/json, text/plain; charset=utf-8
898
+ - **Accept**: application/json
899
+
900
+
901
+
902
+ # **update**
903
+ > Product update(product_id, product)
904
+
905
+
906
+
907
+ ### Example
908
+ ```ruby
909
+ # load the gem
910
+ require 'order_cloud'
911
+ # setup authorization
912
+ OrderCloud.configure do |config|
913
+ # Configure OAuth2 access token for authorization: oauth2
914
+ config.access_token = 'YOUR ACCESS TOKEN'
915
+ end
916
+
917
+ api_instance = OrderCloud::ProductApi.new
918
+
919
+ product_id = "product_id_example" # String | ID of the product.
920
+
921
+ product = OrderCloud::Product.new # Product |
922
+
923
+
924
+ begin
925
+ result = api_instance.update(product_id, product)
926
+ p result
927
+ rescue OrderCloud::ApiError => e
928
+ puts "Exception when calling ProductApi->update: #{e}"
929
+ end
930
+ ```
931
+
932
+ ### Parameters
933
+
934
+ Name | Type | Description | Notes
935
+ ------------- | ------------- | ------------- | -------------
936
+ **product_id** | **String**| ID of the product. |
937
+ **product** | [**Product**](Product.md)| |
938
+
939
+ ### Return type
940
+
941
+ [**Product**](Product.md)
942
+
943
+ ### Authorization
944
+
945
+ [oauth2](../README.md#oauth2)
946
+
947
+ ### HTTP request headers
948
+
949
+ - **Content-Type**: application/json, text/plain; charset=utf-8
950
+ - **Accept**: application/json
951
+
952
+
953
+
954
+ # **update_inventory**
955
+ > Inventory update_inventory(product_id, inventory)
956
+
957
+
958
+
959
+ ### Example
960
+ ```ruby
961
+ # load the gem
962
+ require 'order_cloud'
963
+ # setup authorization
964
+ OrderCloud.configure do |config|
965
+ # Configure OAuth2 access token for authorization: oauth2
966
+ config.access_token = 'YOUR ACCESS TOKEN'
967
+ end
968
+
969
+ api_instance = OrderCloud::ProductApi.new
970
+
971
+ product_id = "product_id_example" # String | ID of the product.
972
+
973
+ inventory = 56 # Integer | Inventory of the product.
974
+
975
+
976
+ begin
977
+ result = api_instance.update_inventory(product_id, inventory)
978
+ p result
979
+ rescue OrderCloud::ApiError => e
980
+ puts "Exception when calling ProductApi->update_inventory: #{e}"
981
+ end
982
+ ```
983
+
984
+ ### Parameters
985
+
986
+ Name | Type | Description | Notes
987
+ ------------- | ------------- | ------------- | -------------
988
+ **product_id** | **String**| ID of the product. |
989
+ **inventory** | **Integer**| Inventory of the product. |
990
+
991
+ ### Return type
992
+
993
+ [**Inventory**](Inventory.md)
994
+
995
+ ### Authorization
996
+
997
+ [oauth2](../README.md#oauth2)
998
+
999
+ ### HTTP request headers
1000
+
1001
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1002
+ - **Accept**: application/json
1003
+
1004
+
1005
+
1006
+ # **update_variant**
1007
+ > Variant update_variant(product_id, variant_id, variant)
1008
+
1009
+
1010
+
1011
+ ### Example
1012
+ ```ruby
1013
+ # load the gem
1014
+ require 'order_cloud'
1015
+ # setup authorization
1016
+ OrderCloud.configure do |config|
1017
+ # Configure OAuth2 access token for authorization: oauth2
1018
+ config.access_token = 'YOUR ACCESS TOKEN'
1019
+ end
1020
+
1021
+ api_instance = OrderCloud::ProductApi.new
1022
+
1023
+ product_id = "product_id_example" # String | ID of the product.
1024
+
1025
+ variant_id = "variant_id_example" # String | ID of the variant.
1026
+
1027
+ variant = OrderCloud::Variant.new # Variant |
1028
+
1029
+
1030
+ begin
1031
+ result = api_instance.update_variant(product_id, variant_id, variant)
1032
+ p result
1033
+ rescue OrderCloud::ApiError => e
1034
+ puts "Exception when calling ProductApi->update_variant: #{e}"
1035
+ end
1036
+ ```
1037
+
1038
+ ### Parameters
1039
+
1040
+ Name | Type | Description | Notes
1041
+ ------------- | ------------- | ------------- | -------------
1042
+ **product_id** | **String**| ID of the product. |
1043
+ **variant_id** | **String**| ID of the variant. |
1044
+ **variant** | [**Variant**](Variant.md)| |
1045
+
1046
+ ### Return type
1047
+
1048
+ [**Variant**](Variant.md)
1049
+
1050
+ ### Authorization
1051
+
1052
+ [oauth2](../README.md#oauth2)
1053
+
1054
+ ### HTTP request headers
1055
+
1056
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1057
+ - **Accept**: application/json
1058
+
1059
+
1060
+
1061
+ # **update_variant_inventory**
1062
+ > Inventory update_variant_inventory(product_id, variant_id, inventory)
1063
+
1064
+
1065
+
1066
+ ### Example
1067
+ ```ruby
1068
+ # load the gem
1069
+ require 'order_cloud'
1070
+ # setup authorization
1071
+ OrderCloud.configure do |config|
1072
+ # Configure OAuth2 access token for authorization: oauth2
1073
+ config.access_token = 'YOUR ACCESS TOKEN'
1074
+ end
1075
+
1076
+ api_instance = OrderCloud::ProductApi.new
1077
+
1078
+ product_id = "product_id_example" # String | ID of the product.
1079
+
1080
+ variant_id = "variant_id_example" # String | ID of the variant.
1081
+
1082
+ inventory = 56 # Integer | Inventory of the product.
1083
+
1084
+
1085
+ begin
1086
+ result = api_instance.update_variant_inventory(product_id, variant_id, inventory)
1087
+ p result
1088
+ rescue OrderCloud::ApiError => e
1089
+ puts "Exception when calling ProductApi->update_variant_inventory: #{e}"
1090
+ end
1091
+ ```
1092
+
1093
+ ### Parameters
1094
+
1095
+ Name | Type | Description | Notes
1096
+ ------------- | ------------- | ------------- | -------------
1097
+ **product_id** | **String**| ID of the product. |
1098
+ **variant_id** | **String**| ID of the variant. |
1099
+ **inventory** | **Integer**| Inventory of the product. |
1100
+
1101
+ ### Return type
1102
+
1103
+ [**Inventory**](Inventory.md)
1104
+
1105
+ ### Authorization
1106
+
1107
+ [oauth2](../README.md#oauth2)
1108
+
1109
+ ### HTTP request headers
1110
+
1111
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1112
+ - **Accept**: application/json
1113
+
1114
+
1115
+