order_cloud 1.0.45.pre.staging → 1.0.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (446) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +28 -0
  3. data/Gemfile.lock +34 -0
  4. data/LICENSE +201 -0
  5. data/README.md +552 -0
  6. data/Rakefile +31 -0
  7. data/docs/AccessToken.md +11 -0
  8. data/docs/Address.md +20 -0
  9. data/docs/AddressApi.md +520 -0
  10. data/docs/AddressAssignment.md +12 -0
  11. data/docs/AdminAddressApi.md +324 -0
  12. data/docs/AdminUserApi.md +324 -0
  13. data/docs/AdminUserGroupApi.md +482 -0
  14. data/docs/ApprovalRule.md +13 -0
  15. data/docs/ApprovalRuleApi.md +342 -0
  16. data/docs/BaseSpec.md +16 -0
  17. data/docs/Buyer.md +12 -0
  18. data/docs/BuyerAddress.md +23 -0
  19. data/docs/BuyerApi.md +324 -0
  20. data/docs/BuyerCreditCard.md +16 -0
  21. data/docs/BuyerProduct.md +23 -0
  22. data/docs/BuyerShipment.md +19 -0
  23. data/docs/BuyerSpec.md +17 -0
  24. data/docs/Catalog.md +13 -0
  25. data/docs/CatalogApi.md +640 -0
  26. data/docs/CatalogAssignment.md +11 -0
  27. data/docs/Category.md +15 -0
  28. data/docs/CategoryApi.md +690 -0
  29. data/docs/CategoryAssignment.md +12 -0
  30. data/docs/CategoryProductAssignment.md +10 -0
  31. data/docs/CostCenter.md +11 -0
  32. data/docs/CostCenterApi.md +516 -0
  33. data/docs/CostCenterAssignment.md +9 -0
  34. data/docs/CreditCard.md +15 -0
  35. data/docs/CreditCardApi.md +516 -0
  36. data/docs/CreditCardAssignment.md +10 -0
  37. data/docs/ImpersonateTokenRequest.md +9 -0
  38. data/docs/ImpersonationConfig.md +16 -0
  39. data/docs/ImpersonationConfigApi.md +324 -0
  40. data/docs/Inventory.md +13 -0
  41. data/docs/LineItem.md +24 -0
  42. data/docs/LineItemApi.md +478 -0
  43. data/docs/LineItemProduct.md +16 -0
  44. data/docs/LineItemSpec.md +11 -0
  45. data/docs/ListAddress.md +9 -0
  46. data/docs/ListAddressAssignment.md +9 -0
  47. data/docs/ListApprovalRule.md +9 -0
  48. data/docs/ListArgs.md +13 -0
  49. data/docs/ListBuyer.md +9 -0
  50. data/docs/ListBuyerAddress.md +9 -0
  51. data/docs/ListBuyerCreditCard.md +9 -0
  52. data/docs/ListBuyerProduct.md +9 -0
  53. data/docs/ListBuyerShipment.md +9 -0
  54. data/docs/ListBuyerSpec.md +9 -0
  55. data/docs/ListCatalog.md +9 -0
  56. data/docs/ListCatalogAssignment.md +9 -0
  57. data/docs/ListCategory.md +9 -0
  58. data/docs/ListCategoryAssignment.md +9 -0
  59. data/docs/ListCategoryProductAssignment.md +9 -0
  60. data/docs/ListCostCenter.md +9 -0
  61. data/docs/ListCostCenterAssignment.md +9 -0
  62. data/docs/ListCreditCard.md +9 -0
  63. data/docs/ListCreditCardAssignment.md +9 -0
  64. data/docs/ListImpersonationConfig.md +9 -0
  65. data/docs/ListLineItem.md +9 -0
  66. data/docs/ListMessageCCListenerAssignment.md +9 -0
  67. data/docs/ListMessageConfig.md +9 -0
  68. data/docs/ListMessageSender.md +9 -0
  69. data/docs/ListMessageSenderAssignment.md +9 -0
  70. data/docs/ListOrder.md +9 -0
  71. data/docs/ListOrderApproval.md +9 -0
  72. data/docs/ListOrderPromotion.md +9 -0
  73. data/docs/ListPayment.md +9 -0
  74. data/docs/ListPriceSchedule.md +9 -0
  75. data/docs/ListProduct.md +9 -0
  76. data/docs/ListProductAssignment.md +9 -0
  77. data/docs/ListProductCatalogAssignment.md +9 -0
  78. data/docs/ListPromotion.md +9 -0
  79. data/docs/ListPromotionAssignment.md +9 -0
  80. data/docs/ListSecurityProfile.md +9 -0
  81. data/docs/ListSecurityProfileAssignment.md +9 -0
  82. data/docs/ListShipment.md +9 -0
  83. data/docs/ListShipmentItem.md +9 -0
  84. data/docs/ListSpec.md +9 -0
  85. data/docs/ListSpecOption.md +9 -0
  86. data/docs/ListSpecProductAssignment.md +9 -0
  87. data/docs/ListSpendingAccount.md +9 -0
  88. data/docs/ListSpendingAccountAssignment.md +9 -0
  89. data/docs/ListSupplier.md +9 -0
  90. data/docs/ListUser.md +9 -0
  91. data/docs/ListUserGroup.md +9 -0
  92. data/docs/ListUserGroupAssignment.md +9 -0
  93. data/docs/ListVariant.md +9 -0
  94. data/docs/MeApi.md +2002 -0
  95. data/docs/MeBuyer.md +9 -0
  96. data/docs/MeUser.md +19 -0
  97. data/docs/MessageCCListenerAssignment.md +13 -0
  98. data/docs/MessageConfig.md +14 -0
  99. data/docs/MessageSender.md +10 -0
  100. data/docs/MessageSenderAssignment.md +11 -0
  101. data/docs/MessageSendersApi.md +398 -0
  102. data/docs/Meta.md +12 -0
  103. data/docs/Order.md +30 -0
  104. data/docs/OrderApi.md +1161 -0
  105. data/docs/OrderApproval.md +14 -0
  106. data/docs/OrderApprovalInfo.md +9 -0
  107. data/docs/OrderPromotion.md +22 -0
  108. data/docs/PasswordReset.md +10 -0
  109. data/docs/PasswordResetApi.md +109 -0
  110. data/docs/PasswordResetRequest.md +11 -0
  111. data/docs/Payment.md +17 -0
  112. data/docs/PaymentApi.md +418 -0
  113. data/docs/PaymentTransaction.md +15 -0
  114. data/docs/PriceBreak.md +9 -0
  115. data/docs/PriceSchedule.md +17 -0
  116. data/docs/PriceScheduleApi.md +429 -0
  117. data/docs/Product.md +23 -0
  118. data/docs/ProductApi.md +953 -0
  119. data/docs/ProductAssignment.md +11 -0
  120. data/docs/ProductBase.md +22 -0
  121. data/docs/ProductCatalogAssignment.md +9 -0
  122. data/docs/Promotion.md +21 -0
  123. data/docs/PromotionApi.md +494 -0
  124. data/docs/PromotionAssignment.md +10 -0
  125. data/docs/SecurityProfile.md +10 -0
  126. data/docs/SecurityProfileApi.md +292 -0
  127. data/docs/SecurityProfileAssignment.md +12 -0
  128. data/docs/Shipment.md +20 -0
  129. data/docs/ShipmentApi.md +554 -0
  130. data/docs/ShipmentItem.md +16 -0
  131. data/docs/Spec.md +17 -0
  132. data/docs/SpecApi.md +820 -0
  133. data/docs/SpecOption.md +14 -0
  134. data/docs/SpecProductAssignment.md +11 -0
  135. data/docs/SpendingAccount.md +15 -0
  136. data/docs/SpendingAccountApi.md +516 -0
  137. data/docs/SpendingAccountAssignment.md +11 -0
  138. data/docs/Supplier.md +11 -0
  139. data/docs/SupplierApi.md +324 -0
  140. data/docs/SupplierUserApi.md +400 -0
  141. data/docs/SupplierUserGroupApi.md +509 -0
  142. data/docs/TokenPasswordReset.md +8 -0
  143. data/docs/User.md +18 -0
  144. data/docs/UserApi.md +400 -0
  145. data/docs/UserGroup.md +11 -0
  146. data/docs/UserGroupApi.md +509 -0
  147. data/docs/UserGroupAssignment.md +9 -0
  148. data/docs/Variant.md +12 -0
  149. data/git_push.sh +67 -0
  150. data/lib/order_cloud.rb +193 -0
  151. data/lib/order_cloud/api/address_api.rb +628 -0
  152. data/lib/order_cloud/api/admin_address_api.rb +397 -0
  153. data/lib/order_cloud/api/admin_user_api.rb +397 -0
  154. data/lib/order_cloud/api/admin_user_group_api.rb +578 -0
  155. data/lib/order_cloud/api/approval_rule_api.rb +421 -0
  156. data/lib/order_cloud/api/auth_api.rb +138 -0
  157. data/lib/order_cloud/api/buyer_api.rb +397 -0
  158. data/lib/order_cloud/api/catalog_api.rb +760 -0
  159. data/lib/order_cloud/api/category_api.rb +826 -0
  160. data/lib/order_cloud/api/cost_center_api.rb +622 -0
  161. data/lib/order_cloud/api/credit_card_api.rb +622 -0
  162. data/lib/order_cloud/api/impersonation_config_api.rb +397 -0
  163. data/lib/order_cloud/api/line_item_api.rb +583 -0
  164. data/lib/order_cloud/api/me_api.rb +2345 -0
  165. data/lib/order_cloud/api/message_senders_api.rb +484 -0
  166. data/lib/order_cloud/api/order_api.rb +1377 -0
  167. data/lib/order_cloud/api/password_reset_api.rb +150 -0
  168. data/lib/order_cloud/api/payment_api.rb +513 -0
  169. data/lib/order_cloud/api/price_schedule_api.rb +519 -0
  170. data/lib/order_cloud/api/product_api.rb +1126 -0
  171. data/lib/order_cloud/api/promotion_api.rb +594 -0
  172. data/lib/order_cloud/api/security_profile_api.rb +363 -0
  173. data/lib/order_cloud/api/shipment_api.rb +665 -0
  174. data/lib/order_cloud/api/spec_api.rb +971 -0
  175. data/lib/order_cloud/api/spending_account_api.rb +622 -0
  176. data/lib/order_cloud/api/supplier_api.rb +397 -0
  177. data/lib/order_cloud/api/supplier_user_api.rb +489 -0
  178. data/lib/order_cloud/api/supplier_user_group_api.rb +614 -0
  179. data/lib/order_cloud/api/user_api.rb +489 -0
  180. data/lib/order_cloud/api/user_group_api.rb +614 -0
  181. data/lib/order_cloud/api_client.rb +385 -0
  182. data/lib/order_cloud/api_error.rb +47 -0
  183. data/lib/order_cloud/configuration.rb +245 -0
  184. data/lib/order_cloud/models/access_token.rb +226 -0
  185. data/lib/order_cloud/models/address.rb +307 -0
  186. data/lib/order_cloud/models/address_assignment.rb +235 -0
  187. data/lib/order_cloud/models/approval_rule.rb +244 -0
  188. data/lib/order_cloud/models/base_spec.rb +271 -0
  189. data/lib/order_cloud/models/buyer.rb +235 -0
  190. data/lib/order_cloud/models/buyer_address.rb +334 -0
  191. data/lib/order_cloud/models/buyer_credit_card.rb +271 -0
  192. data/lib/order_cloud/models/buyer_product.rb +334 -0
  193. data/lib/order_cloud/models/buyer_shipment.rb +298 -0
  194. data/lib/order_cloud/models/buyer_spec.rb +282 -0
  195. data/lib/order_cloud/models/catalog.rb +244 -0
  196. data/lib/order_cloud/models/catalog_assignment.rb +226 -0
  197. data/lib/order_cloud/models/category.rb +262 -0
  198. data/lib/order_cloud/models/category_assignment.rb +235 -0
  199. data/lib/order_cloud/models/category_product_assignment.rb +217 -0
  200. data/lib/order_cloud/models/cost_center.rb +226 -0
  201. data/lib/order_cloud/models/cost_center_assignment.rb +208 -0
  202. data/lib/order_cloud/models/credit_card.rb +262 -0
  203. data/lib/order_cloud/models/credit_card_assignment.rb +217 -0
  204. data/lib/order_cloud/models/impersonate_token_request.rb +210 -0
  205. data/lib/order_cloud/models/impersonation_config.rb +271 -0
  206. data/lib/order_cloud/models/inventory.rb +244 -0
  207. data/lib/order_cloud/models/line_item.rb +345 -0
  208. data/lib/order_cloud/models/line_item_product.rb +271 -0
  209. data/lib/order_cloud/models/line_item_spec.rb +226 -0
  210. data/lib/order_cloud/models/list_address.rb +210 -0
  211. data/lib/order_cloud/models/list_address_assignment.rb +210 -0
  212. data/lib/order_cloud/models/list_approval_rule.rb +210 -0
  213. data/lib/order_cloud/models/list_args.rb +248 -0
  214. data/lib/order_cloud/models/list_buyer.rb +210 -0
  215. data/lib/order_cloud/models/list_buyer_address.rb +210 -0
  216. data/lib/order_cloud/models/list_buyer_credit_card.rb +210 -0
  217. data/lib/order_cloud/models/list_buyer_product.rb +210 -0
  218. data/lib/order_cloud/models/list_buyer_shipment.rb +210 -0
  219. data/lib/order_cloud/models/list_buyer_spec.rb +210 -0
  220. data/lib/order_cloud/models/list_catalog.rb +210 -0
  221. data/lib/order_cloud/models/list_catalog_assignment.rb +210 -0
  222. data/lib/order_cloud/models/list_category.rb +210 -0
  223. data/lib/order_cloud/models/list_category_assignment.rb +210 -0
  224. data/lib/order_cloud/models/list_category_product_assignment.rb +210 -0
  225. data/lib/order_cloud/models/list_cost_center.rb +210 -0
  226. data/lib/order_cloud/models/list_cost_center_assignment.rb +210 -0
  227. data/lib/order_cloud/models/list_credit_card.rb +210 -0
  228. data/lib/order_cloud/models/list_credit_card_assignment.rb +210 -0
  229. data/lib/order_cloud/models/list_impersonation_config.rb +210 -0
  230. data/lib/order_cloud/models/list_line_item.rb +210 -0
  231. data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +210 -0
  232. data/lib/order_cloud/models/list_message_config.rb +210 -0
  233. data/lib/order_cloud/models/list_message_sender.rb +210 -0
  234. data/lib/order_cloud/models/list_message_sender_assignment.rb +210 -0
  235. data/lib/order_cloud/models/list_order.rb +210 -0
  236. data/lib/order_cloud/models/list_order_approval.rb +210 -0
  237. data/lib/order_cloud/models/list_order_promotion.rb +210 -0
  238. data/lib/order_cloud/models/list_payment.rb +210 -0
  239. data/lib/order_cloud/models/list_price_schedule.rb +210 -0
  240. data/lib/order_cloud/models/list_product.rb +210 -0
  241. data/lib/order_cloud/models/list_product_assignment.rb +210 -0
  242. data/lib/order_cloud/models/list_product_catalog_assignment.rb +210 -0
  243. data/lib/order_cloud/models/list_promotion.rb +210 -0
  244. data/lib/order_cloud/models/list_promotion_assignment.rb +210 -0
  245. data/lib/order_cloud/models/list_security_profile.rb +210 -0
  246. data/lib/order_cloud/models/list_security_profile_assignment.rb +210 -0
  247. data/lib/order_cloud/models/list_shipment.rb +210 -0
  248. data/lib/order_cloud/models/list_shipment_item.rb +210 -0
  249. data/lib/order_cloud/models/list_spec.rb +210 -0
  250. data/lib/order_cloud/models/list_spec_option.rb +210 -0
  251. data/lib/order_cloud/models/list_spec_product_assignment.rb +210 -0
  252. data/lib/order_cloud/models/list_spending_account.rb +210 -0
  253. data/lib/order_cloud/models/list_spending_account_assignment.rb +210 -0
  254. data/lib/order_cloud/models/list_supplier.rb +210 -0
  255. data/lib/order_cloud/models/list_user.rb +210 -0
  256. data/lib/order_cloud/models/list_user_group.rb +210 -0
  257. data/lib/order_cloud/models/list_user_group_assignment.rb +210 -0
  258. data/lib/order_cloud/models/list_variant.rb +210 -0
  259. data/lib/order_cloud/models/me_buyer.rb +208 -0
  260. data/lib/order_cloud/models/me_user.rb +300 -0
  261. data/lib/order_cloud/models/message_cc_listener_assignment.rb +244 -0
  262. data/lib/order_cloud/models/message_config.rb +255 -0
  263. data/lib/order_cloud/models/message_sender.rb +219 -0
  264. data/lib/order_cloud/models/message_sender_assignment.rb +226 -0
  265. data/lib/order_cloud/models/meta.rb +237 -0
  266. data/lib/order_cloud/models/order.rb +397 -0
  267. data/lib/order_cloud/models/order_approval.rb +253 -0
  268. data/lib/order_cloud/models/order_approval_info.rb +208 -0
  269. data/lib/order_cloud/models/order_promotion.rb +325 -0
  270. data/lib/order_cloud/models/password_reset.rb +217 -0
  271. data/lib/order_cloud/models/password_reset_request.rb +226 -0
  272. data/lib/order_cloud/models/payment.rb +282 -0
  273. data/lib/order_cloud/models/payment_transaction.rb +262 -0
  274. data/lib/order_cloud/models/price_break.rb +208 -0
  275. data/lib/order_cloud/models/price_schedule.rb +282 -0
  276. data/lib/order_cloud/models/product.rb +334 -0
  277. data/lib/order_cloud/models/product_assignment.rb +226 -0
  278. data/lib/order_cloud/models/product_base.rb +325 -0
  279. data/lib/order_cloud/models/product_catalog_assignment.rb +208 -0
  280. data/lib/order_cloud/models/promotion.rb +316 -0
  281. data/lib/order_cloud/models/promotion_assignment.rb +217 -0
  282. data/lib/order_cloud/models/security_profile.rb +219 -0
  283. data/lib/order_cloud/models/security_profile_assignment.rb +235 -0
  284. data/lib/order_cloud/models/shipment.rb +307 -0
  285. data/lib/order_cloud/models/shipment_item.rb +273 -0
  286. data/lib/order_cloud/models/spec.rb +280 -0
  287. data/lib/order_cloud/models/spec_option.rb +253 -0
  288. data/lib/order_cloud/models/spec_product_assignment.rb +226 -0
  289. data/lib/order_cloud/models/spending_account.rb +262 -0
  290. data/lib/order_cloud/models/spending_account_assignment.rb +226 -0
  291. data/lib/order_cloud/models/supplier.rb +226 -0
  292. data/lib/order_cloud/models/token_password_reset.rb +199 -0
  293. data/lib/order_cloud/models/user.rb +291 -0
  294. data/lib/order_cloud/models/user_group.rb +226 -0
  295. data/lib/order_cloud/models/user_group_assignment.rb +208 -0
  296. data/lib/order_cloud/models/variant.rb +235 -0
  297. data/lib/order_cloud/version.rb +26 -0
  298. data/order_cloud-1.0.56.gem +0 -0
  299. data/order_cloud.gemspec +56 -0
  300. data/spec/api/address_api_spec.rb +179 -0
  301. data/spec/api/admin_address_api_spec.rb +125 -0
  302. data/spec/api/admin_user_api_spec.rb +125 -0
  303. data/spec/api/admin_user_group_api_spec.rb +165 -0
  304. data/spec/api/approval_rule_api_spec.rb +131 -0
  305. data/spec/api/auth_api_spec.rb +165 -0
  306. data/spec/api/buyer_api_spec.rb +125 -0
  307. data/spec/api/catalog_api_spec.rb +205 -0
  308. data/spec/api/category_api_spec.rb +223 -0
  309. data/spec/api/cost_center_api_spec.rb +177 -0
  310. data/spec/api/credit_card_api_spec.rb +177 -0
  311. data/spec/api/impersonation_config_api_spec.rb +125 -0
  312. data/spec/api/line_item_api_spec.rb +167 -0
  313. data/spec/api/me_api_spec.rb +568 -0
  314. data/spec/api/message_senders_api_spec.rb +149 -0
  315. data/spec/api/order_api_spec.rb +344 -0
  316. data/spec/api/password_reset_api_spec.rb +71 -0
  317. data/spec/api/payment_api_spec.rb +152 -0
  318. data/spec/api/price_schedule_api_spec.rb +151 -0
  319. data/spec/api/product_api_spec.rb +290 -0
  320. data/spec/api/promotion_api_spec.rb +170 -0
  321. data/spec/api/security_profile_api_spec.rb +122 -0
  322. data/spec/api/shipment_api_spec.rb +185 -0
  323. data/spec/api/spec_api_spec.rb +252 -0
  324. data/spec/api/spending_account_api_spec.rb +177 -0
  325. data/spec/api/supplier_api_spec.rb +125 -0
  326. data/spec/api/supplier_user_api_spec.rb +146 -0
  327. data/spec/api/supplier_user_group_api_spec.rb +174 -0
  328. data/spec/api/user_api_spec.rb +146 -0
  329. data/spec/api/user_group_api_spec.rb +174 -0
  330. data/spec/api_client_spec.rb +237 -0
  331. data/spec/configuration_spec.rb +80 -0
  332. data/spec/models/access_token_spec.rb +71 -0
  333. data/spec/models/address_assignment_spec.rb +77 -0
  334. data/spec/models/address_spec.rb +125 -0
  335. data/spec/models/approval_rule_spec.rb +83 -0
  336. data/spec/models/base_spec_spec.rb +101 -0
  337. data/spec/models/buyer_address_spec.rb +143 -0
  338. data/spec/models/buyer_credit_card_spec.rb +101 -0
  339. data/spec/models/buyer_product_spec.rb +143 -0
  340. data/spec/models/buyer_shipment_spec.rb +119 -0
  341. data/spec/models/buyer_spec.rb +77 -0
  342. data/spec/models/buyer_spec_spec.rb +107 -0
  343. data/spec/models/catalog_assignment_spec.rb +71 -0
  344. data/spec/models/catalog_spec.rb +83 -0
  345. data/spec/models/category_assignment_spec.rb +77 -0
  346. data/spec/models/category_product_assignment_spec.rb +65 -0
  347. data/spec/models/category_spec.rb +95 -0
  348. data/spec/models/cost_center_assignment_spec.rb +59 -0
  349. data/spec/models/cost_center_spec.rb +71 -0
  350. data/spec/models/credit_card_assignment_spec.rb +65 -0
  351. data/spec/models/credit_card_spec.rb +95 -0
  352. data/spec/models/impersonate_token_request_spec.rb +59 -0
  353. data/spec/models/impersonation_config_spec.rb +101 -0
  354. data/spec/models/inventory_spec.rb +83 -0
  355. data/spec/models/line_item_product_spec.rb +101 -0
  356. data/spec/models/line_item_spec.rb +149 -0
  357. data/spec/models/line_item_spec_spec.rb +71 -0
  358. data/spec/models/list_address_assignment_spec.rb +59 -0
  359. data/spec/models/list_address_spec.rb +59 -0
  360. data/spec/models/list_approval_rule_spec.rb +59 -0
  361. data/spec/models/list_args_spec.rb +83 -0
  362. data/spec/models/list_buyer_address_spec.rb +59 -0
  363. data/spec/models/list_buyer_credit_card_spec.rb +59 -0
  364. data/spec/models/list_buyer_product_spec.rb +59 -0
  365. data/spec/models/list_buyer_shipment_spec.rb +59 -0
  366. data/spec/models/list_buyer_spec.rb +59 -0
  367. data/spec/models/list_buyer_spec_spec.rb +59 -0
  368. data/spec/models/list_catalog_assignment_spec.rb +59 -0
  369. data/spec/models/list_catalog_spec.rb +59 -0
  370. data/spec/models/list_category_assignment_spec.rb +59 -0
  371. data/spec/models/list_category_product_assignment_spec.rb +59 -0
  372. data/spec/models/list_category_spec.rb +59 -0
  373. data/spec/models/list_cost_center_assignment_spec.rb +59 -0
  374. data/spec/models/list_cost_center_spec.rb +59 -0
  375. data/spec/models/list_credit_card_assignment_spec.rb +59 -0
  376. data/spec/models/list_credit_card_spec.rb +59 -0
  377. data/spec/models/list_impersonation_config_spec.rb +59 -0
  378. data/spec/models/list_line_item_spec.rb +59 -0
  379. data/spec/models/list_message_cc_listener_assignment_spec.rb +59 -0
  380. data/spec/models/list_message_config_spec.rb +59 -0
  381. data/spec/models/list_message_sender_assignment_spec.rb +59 -0
  382. data/spec/models/list_message_sender_spec.rb +59 -0
  383. data/spec/models/list_order_approval_spec.rb +59 -0
  384. data/spec/models/list_order_promotion_spec.rb +59 -0
  385. data/spec/models/list_order_spec.rb +59 -0
  386. data/spec/models/list_payment_spec.rb +59 -0
  387. data/spec/models/list_price_schedule_spec.rb +59 -0
  388. data/spec/models/list_product_assignment_spec.rb +59 -0
  389. data/spec/models/list_product_catalog_assignment_spec.rb +59 -0
  390. data/spec/models/list_product_spec.rb +59 -0
  391. data/spec/models/list_promotion_assignment_spec.rb +59 -0
  392. data/spec/models/list_promotion_spec.rb +59 -0
  393. data/spec/models/list_security_profile_assignment_spec.rb +59 -0
  394. data/spec/models/list_security_profile_spec.rb +59 -0
  395. data/spec/models/list_shipment_item_spec.rb +59 -0
  396. data/spec/models/list_shipment_spec.rb +59 -0
  397. data/spec/models/list_spec_option_spec.rb +59 -0
  398. data/spec/models/list_spec_product_assignment_spec.rb +59 -0
  399. data/spec/models/list_spec_spec.rb +59 -0
  400. data/spec/models/list_spending_account_assignment_spec.rb +59 -0
  401. data/spec/models/list_spending_account_spec.rb +59 -0
  402. data/spec/models/list_supplier_spec.rb +59 -0
  403. data/spec/models/list_user_group_assignment_spec.rb +59 -0
  404. data/spec/models/list_user_group_spec.rb +59 -0
  405. data/spec/models/list_user_spec.rb +59 -0
  406. data/spec/models/list_variant_spec.rb +59 -0
  407. data/spec/models/me_buyer_spec.rb +59 -0
  408. data/spec/models/me_user_spec.rb +119 -0
  409. data/spec/models/message_cc_listener_assignment_spec.rb +83 -0
  410. data/spec/models/message_config_spec.rb +89 -0
  411. data/spec/models/message_sender_assignment_spec.rb +71 -0
  412. data/spec/models/message_sender_spec.rb +65 -0
  413. data/spec/models/meta_spec.rb +77 -0
  414. data/spec/models/order_approval_info_spec.rb +59 -0
  415. data/spec/models/order_approval_spec.rb +89 -0
  416. data/spec/models/order_promotion_spec.rb +137 -0
  417. data/spec/models/order_spec.rb +185 -0
  418. data/spec/models/password_reset_request_spec.rb +71 -0
  419. data/spec/models/password_reset_spec.rb +65 -0
  420. data/spec/models/payment_spec.rb +107 -0
  421. data/spec/models/payment_transaction_spec.rb +95 -0
  422. data/spec/models/price_break_spec.rb +59 -0
  423. data/spec/models/price_schedule_spec.rb +107 -0
  424. data/spec/models/product_assignment_spec.rb +71 -0
  425. data/spec/models/product_base_spec.rb +137 -0
  426. data/spec/models/product_catalog_assignment_spec.rb +59 -0
  427. data/spec/models/product_spec.rb +143 -0
  428. data/spec/models/promotion_assignment_spec.rb +65 -0
  429. data/spec/models/promotion_spec.rb +131 -0
  430. data/spec/models/security_profile_assignment_spec.rb +77 -0
  431. data/spec/models/security_profile_spec.rb +65 -0
  432. data/spec/models/shipment_item_spec.rb +101 -0
  433. data/spec/models/shipment_spec.rb +125 -0
  434. data/spec/models/spec_option_spec.rb +89 -0
  435. data/spec/models/spec_product_assignment_spec.rb +71 -0
  436. data/spec/models/spec_spec.rb +107 -0
  437. data/spec/models/spending_account_assignment_spec.rb +71 -0
  438. data/spec/models/spending_account_spec.rb +95 -0
  439. data/spec/models/supplier_spec.rb +71 -0
  440. data/spec/models/token_password_reset_spec.rb +53 -0
  441. data/spec/models/user_group_assignment_spec.rb +59 -0
  442. data/spec/models/user_group_spec.rb +71 -0
  443. data/spec/models/user_spec.rb +113 -0
  444. data/spec/models/variant_spec.rb +77 -0
  445. data/spec/spec_helper.rb +122 -0
  446. metadata +596 -6
@@ -0,0 +1,23 @@
1
+ # OrderCloud::Product
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **default_price_schedule_id** | **String** | | [optional]
7
+ **id** | **String** | | [optional]
8
+ **name** | **String** | | [optional]
9
+ **description** | **String** | | [optional]
10
+ **quantity_multiplier** | **Integer** | | [optional]
11
+ **ship_weight** | **Float** | | [optional]
12
+ **ship_height** | **Float** | | [optional]
13
+ **ship_width** | **Float** | | [optional]
14
+ **ship_length** | **Float** | | [optional]
15
+ **active** | **BOOLEAN** | | [optional]
16
+ **spec_count** | **Integer** | | [optional]
17
+ **xp** | **Object** | | [optional]
18
+ **variant_count** | **Integer** | | [optional]
19
+ **ship_from_address_id** | **String** | | [optional]
20
+ **inventory** | [**Inventory**](Inventory.md) | | [optional]
21
+ **auto_forward_supplier_id** | **String** | | [optional]
22
+
23
+
@@ -0,0 +1,953 @@
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_variant**](ProductApi.md#get_variant) | **GET** /products/{productID}/variants/{variantID} |
13
+ [**list**](ProductApi.md#list) | **GET** /products |
14
+ [**list_assignments**](ProductApi.md#list_assignments) | **GET** /products/assignments |
15
+ [**list_suppliers**](ProductApi.md#list_suppliers) | **GET** /products/{productID}/suppliers |
16
+ [**list_variants**](ProductApi.md#list_variants) | **GET** /products/{productID}/variants |
17
+ [**patch**](ProductApi.md#patch) | **PATCH** /products/{productID} |
18
+ [**patch_variant**](ProductApi.md#patch_variant) | **PATCH** /products/{productID}/variants/{variantID} |
19
+ [**remove_supplier**](ProductApi.md#remove_supplier) | **DELETE** /products/{productID}/suppliers/{supplierID} |
20
+ [**save_assignment**](ProductApi.md#save_assignment) | **POST** /products/assignments |
21
+ [**save_supplier**](ProductApi.md#save_supplier) | **PUT** /products/{productID}/suppliers/{supplierID} |
22
+ [**update**](ProductApi.md#update) | **PUT** /products/{productID} |
23
+ [**update_variant**](ProductApi.md#update_variant) | **PUT** /products/{productID}/variants/{variantID} |
24
+
25
+
26
+ # **create**
27
+ > Product create(product)
28
+
29
+
30
+
31
+ ### Example
32
+ ```ruby
33
+ # load the gem
34
+ require 'order_cloud'
35
+ # setup authorization
36
+ OrderCloud.configure do |config|
37
+ # Configure OAuth2 access token for authorization: oauth2
38
+ config.access_token = 'YOUR ACCESS TOKEN'
39
+ end
40
+
41
+ api_instance = OrderCloud::ProductApi.new
42
+
43
+ product = OrderCloud::Product.new # Product |
44
+
45
+
46
+ begin
47
+ result = api_instance.create(product)
48
+ p result
49
+ rescue OrderCloud::ApiError => e
50
+ puts "Exception when calling ProductApi->create: #{e}"
51
+ end
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **product** | [**Product**](Product.md)| |
59
+
60
+ ### Return type
61
+
62
+ [**Product**](Product.md)
63
+
64
+ ### Authorization
65
+
66
+ [oauth2](../README.md#oauth2)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: application/json, text/plain; charset=utf-8
71
+ - **Accept**: application/json
72
+
73
+
74
+
75
+ # **delete**
76
+ > delete(product_id)
77
+
78
+
79
+
80
+ ### Example
81
+ ```ruby
82
+ # load the gem
83
+ require 'order_cloud'
84
+ # setup authorization
85
+ OrderCloud.configure do |config|
86
+ # Configure OAuth2 access token for authorization: oauth2
87
+ config.access_token = 'YOUR ACCESS TOKEN'
88
+ end
89
+
90
+ api_instance = OrderCloud::ProductApi.new
91
+
92
+ product_id = "product_id_example" # String | ID of the product.
93
+
94
+
95
+ begin
96
+ api_instance.delete(product_id)
97
+ rescue OrderCloud::ApiError => e
98
+ puts "Exception when calling ProductApi->delete: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **product_id** | **String**| ID of the product. |
107
+
108
+ ### Return type
109
+
110
+ nil (empty response body)
111
+
112
+ ### Authorization
113
+
114
+ [oauth2](../README.md#oauth2)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: application/json, text/plain; charset=utf-8
119
+ - **Accept**: application/json
120
+
121
+
122
+
123
+ # **delete_assignment**
124
+ > delete_assignment(product_id, buyer_id, opts)
125
+
126
+
127
+
128
+ ### Example
129
+ ```ruby
130
+ # load the gem
131
+ require 'order_cloud'
132
+ # setup authorization
133
+ OrderCloud.configure do |config|
134
+ # Configure OAuth2 access token for authorization: oauth2
135
+ config.access_token = 'YOUR ACCESS TOKEN'
136
+ end
137
+
138
+ api_instance = OrderCloud::ProductApi.new
139
+
140
+ product_id = "product_id_example" # String | ID of the product.
141
+
142
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
143
+
144
+ opts = {
145
+ user_id: "user_id_example", # String | ID of the user.
146
+ user_group_id: "user_group_id_example" # String | ID of the user group.
147
+ }
148
+
149
+ begin
150
+ api_instance.delete_assignment(product_id, buyer_id, opts)
151
+ rescue OrderCloud::ApiError => e
152
+ puts "Exception when calling ProductApi->delete_assignment: #{e}"
153
+ end
154
+ ```
155
+
156
+ ### Parameters
157
+
158
+ Name | Type | Description | Notes
159
+ ------------- | ------------- | ------------- | -------------
160
+ **product_id** | **String**| ID of the product. |
161
+ **buyer_id** | **String**| ID of the buyer. |
162
+ **user_id** | **String**| ID of the user. | [optional]
163
+ **user_group_id** | **String**| ID of the user group. | [optional]
164
+
165
+ ### Return type
166
+
167
+ nil (empty response body)
168
+
169
+ ### Authorization
170
+
171
+ [oauth2](../README.md#oauth2)
172
+
173
+ ### HTTP request headers
174
+
175
+ - **Content-Type**: application/json, text/plain; charset=utf-8
176
+ - **Accept**: application/json
177
+
178
+
179
+
180
+ # **generate_variants**
181
+ > Product generate_variants(product_id, opts)
182
+
183
+
184
+
185
+ ### Example
186
+ ```ruby
187
+ # load the gem
188
+ require 'order_cloud'
189
+ # setup authorization
190
+ OrderCloud.configure do |config|
191
+ # Configure OAuth2 access token for authorization: oauth2
192
+ config.access_token = 'YOUR ACCESS TOKEN'
193
+ end
194
+
195
+ api_instance = OrderCloud::ProductApi.new
196
+
197
+ product_id = "product_id_example" # String | ID of the product.
198
+
199
+ opts = {
200
+ overwrite_existing: true # BOOLEAN | Overwrite existing of the product.
201
+ }
202
+
203
+ begin
204
+ result = api_instance.generate_variants(product_id, opts)
205
+ p result
206
+ rescue OrderCloud::ApiError => e
207
+ puts "Exception when calling ProductApi->generate_variants: #{e}"
208
+ end
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ Name | Type | Description | Notes
214
+ ------------- | ------------- | ------------- | -------------
215
+ **product_id** | **String**| ID of the product. |
216
+ **overwrite_existing** | **BOOLEAN**| Overwrite existing of the product. | [optional]
217
+
218
+ ### Return type
219
+
220
+ [**Product**](Product.md)
221
+
222
+ ### Authorization
223
+
224
+ [oauth2](../README.md#oauth2)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: application/json, text/plain; charset=utf-8
229
+ - **Accept**: application/json
230
+
231
+
232
+
233
+ # **get**
234
+ > Product get(product_id)
235
+
236
+
237
+
238
+ ### Example
239
+ ```ruby
240
+ # load the gem
241
+ require 'order_cloud'
242
+ # setup authorization
243
+ OrderCloud.configure do |config|
244
+ # Configure OAuth2 access token for authorization: oauth2
245
+ config.access_token = 'YOUR ACCESS TOKEN'
246
+ end
247
+
248
+ api_instance = OrderCloud::ProductApi.new
249
+
250
+ product_id = "product_id_example" # String | ID of the product.
251
+
252
+
253
+ begin
254
+ result = api_instance.get(product_id)
255
+ p result
256
+ rescue OrderCloud::ApiError => e
257
+ puts "Exception when calling ProductApi->get: #{e}"
258
+ end
259
+ ```
260
+
261
+ ### Parameters
262
+
263
+ Name | Type | Description | Notes
264
+ ------------- | ------------- | ------------- | -------------
265
+ **product_id** | **String**| ID of the product. |
266
+
267
+ ### Return type
268
+
269
+ [**Product**](Product.md)
270
+
271
+ ### Authorization
272
+
273
+ [oauth2](../README.md#oauth2)
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: application/json, text/plain; charset=utf-8
278
+ - **Accept**: application/json
279
+
280
+
281
+
282
+ # **get_variant**
283
+ > Variant get_variant(product_id, variant_id)
284
+
285
+
286
+
287
+ ### Example
288
+ ```ruby
289
+ # load the gem
290
+ require 'order_cloud'
291
+ # setup authorization
292
+ OrderCloud.configure do |config|
293
+ # Configure OAuth2 access token for authorization: oauth2
294
+ config.access_token = 'YOUR ACCESS TOKEN'
295
+ end
296
+
297
+ api_instance = OrderCloud::ProductApi.new
298
+
299
+ product_id = "product_id_example" # String | ID of the product.
300
+
301
+ variant_id = "variant_id_example" # String | ID of the variant.
302
+
303
+
304
+ begin
305
+ result = api_instance.get_variant(product_id, variant_id)
306
+ p result
307
+ rescue OrderCloud::ApiError => e
308
+ puts "Exception when calling ProductApi->get_variant: #{e}"
309
+ end
310
+ ```
311
+
312
+ ### Parameters
313
+
314
+ Name | Type | Description | Notes
315
+ ------------- | ------------- | ------------- | -------------
316
+ **product_id** | **String**| ID of the product. |
317
+ **variant_id** | **String**| ID of the variant. |
318
+
319
+ ### Return type
320
+
321
+ [**Variant**](Variant.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
+ # **list**
335
+ > ListProduct list(opts)
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
+ opts = {
352
+ catalog_id: "catalog_id_example", # String | ID of the catalog.
353
+ category_id: "category_id_example", # String | ID of the category.
354
+ supplier_id: "supplier_id_example", # String | ID of the supplier.
355
+ search: "search_example", # String | Search of the product.
356
+ search_on: ["search_on_example"], # Array<String> | Search on of the product.
357
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the product.
358
+ page: 56, # Integer | Page of the product.
359
+ page_size: 56, # Integer | Page size of the product.
360
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the product.
361
+ }
362
+
363
+ begin
364
+ result = api_instance.list(opts)
365
+ p result
366
+ rescue OrderCloud::ApiError => e
367
+ puts "Exception when calling ProductApi->list: #{e}"
368
+ end
369
+ ```
370
+
371
+ ### Parameters
372
+
373
+ Name | Type | Description | Notes
374
+ ------------- | ------------- | ------------- | -------------
375
+ **catalog_id** | **String**| ID of the catalog. | [optional]
376
+ **category_id** | **String**| ID of the category. | [optional]
377
+ **supplier_id** | **String**| ID of the supplier. | [optional]
378
+ **search** | **String**| Search of the product. | [optional]
379
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the product. | [optional]
380
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the product. | [optional]
381
+ **page** | **Integer**| Page of the product. | [optional]
382
+ **page_size** | **Integer**| Page size of the product. | [optional]
383
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the product. | [optional]
384
+
385
+ ### Return type
386
+
387
+ [**ListProduct**](ListProduct.md)
388
+
389
+ ### Authorization
390
+
391
+ [oauth2](../README.md#oauth2)
392
+
393
+ ### HTTP request headers
394
+
395
+ - **Content-Type**: application/json, text/plain; charset=utf-8
396
+ - **Accept**: application/json
397
+
398
+
399
+
400
+ # **list_assignments**
401
+ > ListProductAssignment list_assignments(opts)
402
+
403
+
404
+
405
+ ### Example
406
+ ```ruby
407
+ # load the gem
408
+ require 'order_cloud'
409
+ # setup authorization
410
+ OrderCloud.configure do |config|
411
+ # Configure OAuth2 access token for authorization: oauth2
412
+ config.access_token = 'YOUR ACCESS TOKEN'
413
+ end
414
+
415
+ api_instance = OrderCloud::ProductApi.new
416
+
417
+ opts = {
418
+ product_id: "product_id_example", # String | ID of the product.
419
+ price_schedule_id: "price_schedule_id_example", # String | ID of the price schedule.
420
+ buyer_id: "buyer_id_example", # String | ID of the buyer.
421
+ user_id: "user_id_example", # String | ID of the user.
422
+ user_group_id: "user_group_id_example", # String | ID of the user group.
423
+ level: "level_example", # String | Level of the product.
424
+ page: 56, # Integer | Page of the product.
425
+ page_size: 56 # Integer | Page size of the product.
426
+ }
427
+
428
+ begin
429
+ result = api_instance.list_assignments(opts)
430
+ p result
431
+ rescue OrderCloud::ApiError => e
432
+ puts "Exception when calling ProductApi->list_assignments: #{e}"
433
+ end
434
+ ```
435
+
436
+ ### Parameters
437
+
438
+ Name | Type | Description | Notes
439
+ ------------- | ------------- | ------------- | -------------
440
+ **product_id** | **String**| ID of the product. | [optional]
441
+ **price_schedule_id** | **String**| ID of the price schedule. | [optional]
442
+ **buyer_id** | **String**| ID of the buyer. | [optional]
443
+ **user_id** | **String**| ID of the user. | [optional]
444
+ **user_group_id** | **String**| ID of the user group. | [optional]
445
+ **level** | **String**| Level of the product. | [optional]
446
+ **page** | **Integer**| Page of the product. | [optional]
447
+ **page_size** | **Integer**| Page size of the product. | [optional]
448
+
449
+ ### Return type
450
+
451
+ [**ListProductAssignment**](ListProductAssignment.md)
452
+
453
+ ### Authorization
454
+
455
+ [oauth2](../README.md#oauth2)
456
+
457
+ ### HTTP request headers
458
+
459
+ - **Content-Type**: application/json, text/plain; charset=utf-8
460
+ - **Accept**: application/json
461
+
462
+
463
+
464
+ # **list_suppliers**
465
+ > ListSupplier list_suppliers(product_id, opts)
466
+
467
+
468
+
469
+ ### Example
470
+ ```ruby
471
+ # load the gem
472
+ require 'order_cloud'
473
+ # setup authorization
474
+ OrderCloud.configure do |config|
475
+ # Configure OAuth2 access token for authorization: oauth2
476
+ config.access_token = 'YOUR ACCESS TOKEN'
477
+ end
478
+
479
+ api_instance = OrderCloud::ProductApi.new
480
+
481
+ product_id = "product_id_example" # String | ID of the product.
482
+
483
+ opts = {
484
+ search: "search_example", # String | Search of the product.
485
+ search_on: ["search_on_example"], # Array<String> | Search on of the product.
486
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the product.
487
+ page: 56, # Integer | Page of the product.
488
+ page_size: 56, # Integer | Page size of the product.
489
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the product.
490
+ }
491
+
492
+ begin
493
+ result = api_instance.list_suppliers(product_id, opts)
494
+ p result
495
+ rescue OrderCloud::ApiError => e
496
+ puts "Exception when calling ProductApi->list_suppliers: #{e}"
497
+ end
498
+ ```
499
+
500
+ ### Parameters
501
+
502
+ Name | Type | Description | Notes
503
+ ------------- | ------------- | ------------- | -------------
504
+ **product_id** | **String**| ID of the product. |
505
+ **search** | **String**| Search of the product. | [optional]
506
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the product. | [optional]
507
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the product. | [optional]
508
+ **page** | **Integer**| Page of the product. | [optional]
509
+ **page_size** | **Integer**| Page size of the product. | [optional]
510
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the product. | [optional]
511
+
512
+ ### Return type
513
+
514
+ [**ListSupplier**](ListSupplier.md)
515
+
516
+ ### Authorization
517
+
518
+ [oauth2](../README.md#oauth2)
519
+
520
+ ### HTTP request headers
521
+
522
+ - **Content-Type**: application/json, text/plain; charset=utf-8
523
+ - **Accept**: application/json
524
+
525
+
526
+
527
+ # **list_variants**
528
+ > ListVariant list_variants(product_id, opts)
529
+
530
+
531
+
532
+ ### Example
533
+ ```ruby
534
+ # load the gem
535
+ require 'order_cloud'
536
+ # setup authorization
537
+ OrderCloud.configure do |config|
538
+ # Configure OAuth2 access token for authorization: oauth2
539
+ config.access_token = 'YOUR ACCESS TOKEN'
540
+ end
541
+
542
+ api_instance = OrderCloud::ProductApi.new
543
+
544
+ product_id = "product_id_example" # String | ID of the product.
545
+
546
+ opts = {
547
+ search: "search_example", # String | Search of the product.
548
+ search_on: ["search_on_example"], # Array<String> | Search on of the product.
549
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the product.
550
+ page: 56, # Integer | Page of the product.
551
+ page_size: 56, # Integer | Page size of the product.
552
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the product.
553
+ }
554
+
555
+ begin
556
+ result = api_instance.list_variants(product_id, opts)
557
+ p result
558
+ rescue OrderCloud::ApiError => e
559
+ puts "Exception when calling ProductApi->list_variants: #{e}"
560
+ end
561
+ ```
562
+
563
+ ### Parameters
564
+
565
+ Name | Type | Description | Notes
566
+ ------------- | ------------- | ------------- | -------------
567
+ **product_id** | **String**| ID of the product. |
568
+ **search** | **String**| Search of the product. | [optional]
569
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the product. | [optional]
570
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the product. | [optional]
571
+ **page** | **Integer**| Page of the product. | [optional]
572
+ **page_size** | **Integer**| Page size of the product. | [optional]
573
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the product. | [optional]
574
+
575
+ ### Return type
576
+
577
+ [**ListVariant**](ListVariant.md)
578
+
579
+ ### Authorization
580
+
581
+ [oauth2](../README.md#oauth2)
582
+
583
+ ### HTTP request headers
584
+
585
+ - **Content-Type**: application/json, text/plain; charset=utf-8
586
+ - **Accept**: application/json
587
+
588
+
589
+
590
+ # **patch**
591
+ > Product patch(product_id, product)
592
+
593
+
594
+
595
+ ### Example
596
+ ```ruby
597
+ # load the gem
598
+ require 'order_cloud'
599
+ # setup authorization
600
+ OrderCloud.configure do |config|
601
+ # Configure OAuth2 access token for authorization: oauth2
602
+ config.access_token = 'YOUR ACCESS TOKEN'
603
+ end
604
+
605
+ api_instance = OrderCloud::ProductApi.new
606
+
607
+ product_id = "product_id_example" # String | ID of the product.
608
+
609
+ product = OrderCloud::Product.new # Product |
610
+
611
+
612
+ begin
613
+ result = api_instance.patch(product_id, product)
614
+ p result
615
+ rescue OrderCloud::ApiError => e
616
+ puts "Exception when calling ProductApi->patch: #{e}"
617
+ end
618
+ ```
619
+
620
+ ### Parameters
621
+
622
+ Name | Type | Description | Notes
623
+ ------------- | ------------- | ------------- | -------------
624
+ **product_id** | **String**| ID of the product. |
625
+ **product** | [**Product**](Product.md)| |
626
+
627
+ ### Return type
628
+
629
+ [**Product**](Product.md)
630
+
631
+ ### Authorization
632
+
633
+ [oauth2](../README.md#oauth2)
634
+
635
+ ### HTTP request headers
636
+
637
+ - **Content-Type**: application/json, text/plain; charset=utf-8
638
+ - **Accept**: application/json
639
+
640
+
641
+
642
+ # **patch_variant**
643
+ > Variant patch_variant(product_id, variant_id, variant)
644
+
645
+
646
+
647
+ ### Example
648
+ ```ruby
649
+ # load the gem
650
+ require 'order_cloud'
651
+ # setup authorization
652
+ OrderCloud.configure do |config|
653
+ # Configure OAuth2 access token for authorization: oauth2
654
+ config.access_token = 'YOUR ACCESS TOKEN'
655
+ end
656
+
657
+ api_instance = OrderCloud::ProductApi.new
658
+
659
+ product_id = "product_id_example" # String | ID of the product.
660
+
661
+ variant_id = "variant_id_example" # String | ID of the variant.
662
+
663
+ variant = OrderCloud::Variant.new # Variant |
664
+
665
+
666
+ begin
667
+ result = api_instance.patch_variant(product_id, variant_id, variant)
668
+ p result
669
+ rescue OrderCloud::ApiError => e
670
+ puts "Exception when calling ProductApi->patch_variant: #{e}"
671
+ end
672
+ ```
673
+
674
+ ### Parameters
675
+
676
+ Name | Type | Description | Notes
677
+ ------------- | ------------- | ------------- | -------------
678
+ **product_id** | **String**| ID of the product. |
679
+ **variant_id** | **String**| ID of the variant. |
680
+ **variant** | [**Variant**](Variant.md)| |
681
+
682
+ ### Return type
683
+
684
+ [**Variant**](Variant.md)
685
+
686
+ ### Authorization
687
+
688
+ [oauth2](../README.md#oauth2)
689
+
690
+ ### HTTP request headers
691
+
692
+ - **Content-Type**: application/json, text/plain; charset=utf-8
693
+ - **Accept**: application/json
694
+
695
+
696
+
697
+ # **remove_supplier**
698
+ > remove_supplier(product_id, supplier_id)
699
+
700
+
701
+
702
+ ### Example
703
+ ```ruby
704
+ # load the gem
705
+ require 'order_cloud'
706
+ # setup authorization
707
+ OrderCloud.configure do |config|
708
+ # Configure OAuth2 access token for authorization: oauth2
709
+ config.access_token = 'YOUR ACCESS TOKEN'
710
+ end
711
+
712
+ api_instance = OrderCloud::ProductApi.new
713
+
714
+ product_id = "product_id_example" # String | ID of the product.
715
+
716
+ supplier_id = "supplier_id_example" # String | ID of the supplier.
717
+
718
+
719
+ begin
720
+ api_instance.remove_supplier(product_id, supplier_id)
721
+ rescue OrderCloud::ApiError => e
722
+ puts "Exception when calling ProductApi->remove_supplier: #{e}"
723
+ end
724
+ ```
725
+
726
+ ### Parameters
727
+
728
+ Name | Type | Description | Notes
729
+ ------------- | ------------- | ------------- | -------------
730
+ **product_id** | **String**| ID of the product. |
731
+ **supplier_id** | **String**| ID of the supplier. |
732
+
733
+ ### Return type
734
+
735
+ nil (empty response body)
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
+ # **save_assignment**
749
+ > save_assignment(product_assignment)
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_assignment = OrderCloud::ProductAssignment.new # ProductAssignment |
766
+
767
+
768
+ begin
769
+ api_instance.save_assignment(product_assignment)
770
+ rescue OrderCloud::ApiError => e
771
+ puts "Exception when calling ProductApi->save_assignment: #{e}"
772
+ end
773
+ ```
774
+
775
+ ### Parameters
776
+
777
+ Name | Type | Description | Notes
778
+ ------------- | ------------- | ------------- | -------------
779
+ **product_assignment** | [**ProductAssignment**](ProductAssignment.md)| |
780
+
781
+ ### Return type
782
+
783
+ nil (empty response body)
784
+
785
+ ### Authorization
786
+
787
+ [oauth2](../README.md#oauth2)
788
+
789
+ ### HTTP request headers
790
+
791
+ - **Content-Type**: application/json, text/plain; charset=utf-8
792
+ - **Accept**: application/json
793
+
794
+
795
+
796
+ # **save_supplier**
797
+ > save_supplier(product_id, supplier_id)
798
+
799
+
800
+
801
+ ### Example
802
+ ```ruby
803
+ # load the gem
804
+ require 'order_cloud'
805
+ # setup authorization
806
+ OrderCloud.configure do |config|
807
+ # Configure OAuth2 access token for authorization: oauth2
808
+ config.access_token = 'YOUR ACCESS TOKEN'
809
+ end
810
+
811
+ api_instance = OrderCloud::ProductApi.new
812
+
813
+ product_id = "product_id_example" # String | ID of the product.
814
+
815
+ supplier_id = "supplier_id_example" # String | ID of the supplier.
816
+
817
+
818
+ begin
819
+ api_instance.save_supplier(product_id, supplier_id)
820
+ rescue OrderCloud::ApiError => e
821
+ puts "Exception when calling ProductApi->save_supplier: #{e}"
822
+ end
823
+ ```
824
+
825
+ ### Parameters
826
+
827
+ Name | Type | Description | Notes
828
+ ------------- | ------------- | ------------- | -------------
829
+ **product_id** | **String**| ID of the product. |
830
+ **supplier_id** | **String**| ID of the supplier. |
831
+
832
+ ### Return type
833
+
834
+ nil (empty response body)
835
+
836
+ ### Authorization
837
+
838
+ [oauth2](../README.md#oauth2)
839
+
840
+ ### HTTP request headers
841
+
842
+ - **Content-Type**: application/json, text/plain; charset=utf-8
843
+ - **Accept**: application/json
844
+
845
+
846
+
847
+ # **update**
848
+ > Product update(product_id, product)
849
+
850
+
851
+
852
+ ### Example
853
+ ```ruby
854
+ # load the gem
855
+ require 'order_cloud'
856
+ # setup authorization
857
+ OrderCloud.configure do |config|
858
+ # Configure OAuth2 access token for authorization: oauth2
859
+ config.access_token = 'YOUR ACCESS TOKEN'
860
+ end
861
+
862
+ api_instance = OrderCloud::ProductApi.new
863
+
864
+ product_id = "product_id_example" # String | ID of the product.
865
+
866
+ product = OrderCloud::Product.new # Product |
867
+
868
+
869
+ begin
870
+ result = api_instance.update(product_id, product)
871
+ p result
872
+ rescue OrderCloud::ApiError => e
873
+ puts "Exception when calling ProductApi->update: #{e}"
874
+ end
875
+ ```
876
+
877
+ ### Parameters
878
+
879
+ Name | Type | Description | Notes
880
+ ------------- | ------------- | ------------- | -------------
881
+ **product_id** | **String**| ID of the product. |
882
+ **product** | [**Product**](Product.md)| |
883
+
884
+ ### Return type
885
+
886
+ [**Product**](Product.md)
887
+
888
+ ### Authorization
889
+
890
+ [oauth2](../README.md#oauth2)
891
+
892
+ ### HTTP request headers
893
+
894
+ - **Content-Type**: application/json, text/plain; charset=utf-8
895
+ - **Accept**: application/json
896
+
897
+
898
+
899
+ # **update_variant**
900
+ > Variant update_variant(product_id, variant_id, variant)
901
+
902
+
903
+
904
+ ### Example
905
+ ```ruby
906
+ # load the gem
907
+ require 'order_cloud'
908
+ # setup authorization
909
+ OrderCloud.configure do |config|
910
+ # Configure OAuth2 access token for authorization: oauth2
911
+ config.access_token = 'YOUR ACCESS TOKEN'
912
+ end
913
+
914
+ api_instance = OrderCloud::ProductApi.new
915
+
916
+ product_id = "product_id_example" # String | ID of the product.
917
+
918
+ variant_id = "variant_id_example" # String | ID of the variant.
919
+
920
+ variant = OrderCloud::Variant.new # Variant |
921
+
922
+
923
+ begin
924
+ result = api_instance.update_variant(product_id, variant_id, variant)
925
+ p result
926
+ rescue OrderCloud::ApiError => e
927
+ puts "Exception when calling ProductApi->update_variant: #{e}"
928
+ end
929
+ ```
930
+
931
+ ### Parameters
932
+
933
+ Name | Type | Description | Notes
934
+ ------------- | ------------- | ------------- | -------------
935
+ **product_id** | **String**| ID of the product. |
936
+ **variant_id** | **String**| ID of the variant. |
937
+ **variant** | [**Variant**](Variant.md)| |
938
+
939
+ ### Return type
940
+
941
+ [**Variant**](Variant.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
+