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,10 @@
1
+ # OrderCloud::PromotionAssignment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **promotion_id** | **String** | | [optional]
7
+ **buyer_id** | **String** | | [optional]
8
+ **user_group_id** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # OrderCloud::SecurityProfile
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **roles** | **Array<String>** | | [optional]
9
+
10
+
@@ -0,0 +1,292 @@
1
+ # OrderCloud::SecurityProfileApi
2
+
3
+ All URIs are relative to *https://api.ordercloud.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_assignment**](SecurityProfileApi.md#delete_assignment) | **DELETE** /securityprofiles/{securityProfileID}/assignments |
8
+ [**get**](SecurityProfileApi.md#get) | **GET** /securityprofiles/{securityProfileID} |
9
+ [**list**](SecurityProfileApi.md#list) | **GET** /securityprofiles |
10
+ [**list_assignments**](SecurityProfileApi.md#list_assignments) | **GET** /securityprofiles/assignments |
11
+ [**save_assignment**](SecurityProfileApi.md#save_assignment) | **POST** /securityprofiles/assignments |
12
+
13
+
14
+ # **delete_assignment**
15
+ > delete_assignment(security_profile_id, opts)
16
+
17
+
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'order_cloud'
23
+ # setup authorization
24
+ OrderCloud.configure do |config|
25
+ # Configure OAuth2 access token for authorization: oauth2
26
+ config.access_token = 'YOUR ACCESS TOKEN'
27
+ end
28
+
29
+ api_instance = OrderCloud::SecurityProfileApi.new
30
+
31
+ security_profile_id = "security_profile_id_example" # String | ID of the security profile.
32
+
33
+ opts = {
34
+ buyer_id: "buyer_id_example", # String | ID of the buyer.
35
+ user_id: "user_id_example", # String | ID of the user.
36
+ user_group_id: "user_group_id_example" # String | ID of the user group.
37
+ }
38
+
39
+ begin
40
+ api_instance.delete_assignment(security_profile_id, opts)
41
+ rescue OrderCloud::ApiError => e
42
+ puts "Exception when calling SecurityProfileApi->delete_assignment: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **security_profile_id** | **String**| ID of the security profile. |
51
+ **buyer_id** | **String**| ID of the buyer. | [optional]
52
+ **user_id** | **String**| ID of the user. | [optional]
53
+ **user_group_id** | **String**| ID of the user group. | [optional]
54
+
55
+ ### Return type
56
+
57
+ nil (empty response body)
58
+
59
+ ### Authorization
60
+
61
+ [oauth2](../README.md#oauth2)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json, text/plain; charset=utf-8
66
+ - **Accept**: application/json
67
+
68
+
69
+
70
+ # **get**
71
+ > SecurityProfile get(security_profile_id)
72
+
73
+
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'order_cloud'
79
+ # setup authorization
80
+ OrderCloud.configure do |config|
81
+ # Configure OAuth2 access token for authorization: oauth2
82
+ config.access_token = 'YOUR ACCESS TOKEN'
83
+ end
84
+
85
+ api_instance = OrderCloud::SecurityProfileApi.new
86
+
87
+ security_profile_id = "security_profile_id_example" # String | ID of the security profile.
88
+
89
+
90
+ begin
91
+ result = api_instance.get(security_profile_id)
92
+ p result
93
+ rescue OrderCloud::ApiError => e
94
+ puts "Exception when calling SecurityProfileApi->get: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ Name | Type | Description | Notes
101
+ ------------- | ------------- | ------------- | -------------
102
+ **security_profile_id** | **String**| ID of the security profile. |
103
+
104
+ ### Return type
105
+
106
+ [**SecurityProfile**](SecurityProfile.md)
107
+
108
+ ### Authorization
109
+
110
+ [oauth2](../README.md#oauth2)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: application/json, text/plain; charset=utf-8
115
+ - **Accept**: application/json
116
+
117
+
118
+
119
+ # **list**
120
+ > ListSecurityProfile list(opts)
121
+
122
+
123
+
124
+ ### Example
125
+ ```ruby
126
+ # load the gem
127
+ require 'order_cloud'
128
+ # setup authorization
129
+ OrderCloud.configure do |config|
130
+ # Configure OAuth2 access token for authorization: oauth2
131
+ config.access_token = 'YOUR ACCESS TOKEN'
132
+ end
133
+
134
+ api_instance = OrderCloud::SecurityProfileApi.new
135
+
136
+ opts = {
137
+ search: "search_example", # String | Search of the security profile.
138
+ search_on: ["search_on_example"], # Array<String> | Search on of the security profile.
139
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the security profile.
140
+ page: 56, # Integer | Page of the security profile.
141
+ page_size: 56, # Integer | Page size of the security profile.
142
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the security profile.
143
+ }
144
+
145
+ begin
146
+ result = api_instance.list(opts)
147
+ p result
148
+ rescue OrderCloud::ApiError => e
149
+ puts "Exception when calling SecurityProfileApi->list: #{e}"
150
+ end
151
+ ```
152
+
153
+ ### Parameters
154
+
155
+ Name | Type | Description | Notes
156
+ ------------- | ------------- | ------------- | -------------
157
+ **search** | **String**| Search of the security profile. | [optional]
158
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the security profile. | [optional]
159
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the security profile. | [optional]
160
+ **page** | **Integer**| Page of the security profile. | [optional]
161
+ **page_size** | **Integer**| Page size of the security profile. | [optional]
162
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the security profile. | [optional]
163
+
164
+ ### Return type
165
+
166
+ [**ListSecurityProfile**](ListSecurityProfile.md)
167
+
168
+ ### Authorization
169
+
170
+ [oauth2](../README.md#oauth2)
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: application/json, text/plain; charset=utf-8
175
+ - **Accept**: application/json
176
+
177
+
178
+
179
+ # **list_assignments**
180
+ > ListSecurityProfileAssignment list_assignments(opts)
181
+
182
+
183
+
184
+ ### Example
185
+ ```ruby
186
+ # load the gem
187
+ require 'order_cloud'
188
+ # setup authorization
189
+ OrderCloud.configure do |config|
190
+ # Configure OAuth2 access token for authorization: oauth2
191
+ config.access_token = 'YOUR ACCESS TOKEN'
192
+ end
193
+
194
+ api_instance = OrderCloud::SecurityProfileApi.new
195
+
196
+ opts = {
197
+ buyer_id: "buyer_id_example", # String | ID of the buyer.
198
+ supplier_id: "supplier_id_example", # String | ID of the supplier.
199
+ security_profile_id: "security_profile_id_example", # String | ID of the security profile.
200
+ user_id: "user_id_example", # String | ID of the user.
201
+ user_group_id: "user_group_id_example", # String | ID of the user group.
202
+ commerce_role: "commerce_role_example", # String | Commerce role of the security profile.
203
+ level: "level_example", # String | Level of the security profile.
204
+ page: 56, # Integer | Page of the security profile.
205
+ page_size: 56 # Integer | Page size of the security profile.
206
+ }
207
+
208
+ begin
209
+ result = api_instance.list_assignments(opts)
210
+ p result
211
+ rescue OrderCloud::ApiError => e
212
+ puts "Exception when calling SecurityProfileApi->list_assignments: #{e}"
213
+ end
214
+ ```
215
+
216
+ ### Parameters
217
+
218
+ Name | Type | Description | Notes
219
+ ------------- | ------------- | ------------- | -------------
220
+ **buyer_id** | **String**| ID of the buyer. | [optional]
221
+ **supplier_id** | **String**| ID of the supplier. | [optional]
222
+ **security_profile_id** | **String**| ID of the security profile. | [optional]
223
+ **user_id** | **String**| ID of the user. | [optional]
224
+ **user_group_id** | **String**| ID of the user group. | [optional]
225
+ **commerce_role** | **String**| Commerce role of the security profile. | [optional]
226
+ **level** | **String**| Level of the security profile. | [optional]
227
+ **page** | **Integer**| Page of the security profile. | [optional]
228
+ **page_size** | **Integer**| Page size of the security profile. | [optional]
229
+
230
+ ### Return type
231
+
232
+ [**ListSecurityProfileAssignment**](ListSecurityProfileAssignment.md)
233
+
234
+ ### Authorization
235
+
236
+ [oauth2](../README.md#oauth2)
237
+
238
+ ### HTTP request headers
239
+
240
+ - **Content-Type**: application/json, text/plain; charset=utf-8
241
+ - **Accept**: application/json
242
+
243
+
244
+
245
+ # **save_assignment**
246
+ > save_assignment(assignment)
247
+
248
+
249
+
250
+ ### Example
251
+ ```ruby
252
+ # load the gem
253
+ require 'order_cloud'
254
+ # setup authorization
255
+ OrderCloud.configure do |config|
256
+ # Configure OAuth2 access token for authorization: oauth2
257
+ config.access_token = 'YOUR ACCESS TOKEN'
258
+ end
259
+
260
+ api_instance = OrderCloud::SecurityProfileApi.new
261
+
262
+ assignment = OrderCloud::SecurityProfileAssignment.new # SecurityProfileAssignment |
263
+
264
+
265
+ begin
266
+ api_instance.save_assignment(assignment)
267
+ rescue OrderCloud::ApiError => e
268
+ puts "Exception when calling SecurityProfileApi->save_assignment: #{e}"
269
+ end
270
+ ```
271
+
272
+ ### Parameters
273
+
274
+ Name | Type | Description | Notes
275
+ ------------- | ------------- | ------------- | -------------
276
+ **assignment** | [**SecurityProfileAssignment**](SecurityProfileAssignment.md)| |
277
+
278
+ ### Return type
279
+
280
+ nil (empty response body)
281
+
282
+ ### Authorization
283
+
284
+ [oauth2](../README.md#oauth2)
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: application/json, text/plain; charset=utf-8
289
+ - **Accept**: application/json
290
+
291
+
292
+
@@ -0,0 +1,12 @@
1
+ # OrderCloud::SecurityProfileAssignment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **security_profile_id** | **String** | | [optional]
7
+ **buyer_id** | **String** | | [optional]
8
+ **supplier_id** | **String** | | [optional]
9
+ **user_id** | **String** | | [optional]
10
+ **user_group_id** | **String** | | [optional]
11
+
12
+
@@ -0,0 +1,20 @@
1
+ # OrderCloud::Shipment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **buyer_id** | **String** | | [optional]
7
+ **id** | **String** | | [optional]
8
+ **shipper** | **String** | | [optional]
9
+ **date_shipped** | **String** | | [optional]
10
+ **date_delivered** | **String** | | [optional]
11
+ **tracking_number** | **String** | | [optional]
12
+ **cost** | **Float** | | [optional]
13
+ **xp** | **Object** | | [optional]
14
+ **account** | **String** | | [optional]
15
+ **from_address_id** | **String** | | [optional]
16
+ **to_address_id** | **String** | | [optional]
17
+ **from_address** | [**Address**](Address.md) | | [optional]
18
+ **to_address** | [**Address**](Address.md) | | [optional]
19
+
20
+
@@ -0,0 +1,554 @@
1
+ # OrderCloud::ShipmentApi
2
+
3
+ All URIs are relative to *https://api.ordercloud.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](ShipmentApi.md#create) | **POST** /shipments |
8
+ [**delete**](ShipmentApi.md#delete) | **DELETE** /shipments/{shipmentID} |
9
+ [**delete_item**](ShipmentApi.md#delete_item) | **DELETE** /shipments/{shipmentID}/items/{orderID}/{lineItemID} |
10
+ [**get**](ShipmentApi.md#get) | **GET** /shipments/{shipmentID} |
11
+ [**get_item**](ShipmentApi.md#get_item) | **GET** /shipments/{shipmentID}/items/{orderID}/{lineItemID} |
12
+ [**list**](ShipmentApi.md#list) | **GET** /shipments |
13
+ [**list_items**](ShipmentApi.md#list_items) | **GET** /shipments/{shipmentID}/items |
14
+ [**patch**](ShipmentApi.md#patch) | **PATCH** /shipments/{shipmentID} |
15
+ [**save_item**](ShipmentApi.md#save_item) | **POST** /shipments/{shipmentID}/items |
16
+ [**update**](ShipmentApi.md#update) | **PUT** /shipments/{shipmentID} |
17
+
18
+
19
+ # **create**
20
+ > Shipment create(shipment)
21
+
22
+
23
+
24
+ ### Example
25
+ ```ruby
26
+ # load the gem
27
+ require 'order_cloud'
28
+ # setup authorization
29
+ OrderCloud.configure do |config|
30
+ # Configure OAuth2 access token for authorization: oauth2
31
+ config.access_token = 'YOUR ACCESS TOKEN'
32
+ end
33
+
34
+ api_instance = OrderCloud::ShipmentApi.new
35
+
36
+ shipment = OrderCloud::Shipment.new # Shipment |
37
+
38
+
39
+ begin
40
+ result = api_instance.create(shipment)
41
+ p result
42
+ rescue OrderCloud::ApiError => e
43
+ puts "Exception when calling ShipmentApi->create: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **shipment** | [**Shipment**](Shipment.md)| |
52
+
53
+ ### Return type
54
+
55
+ [**Shipment**](Shipment.md)
56
+
57
+ ### Authorization
58
+
59
+ [oauth2](../README.md#oauth2)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json, text/plain; charset=utf-8
64
+ - **Accept**: application/json
65
+
66
+
67
+
68
+ # **delete**
69
+ > delete(shipment_id)
70
+
71
+
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'order_cloud'
77
+ # setup authorization
78
+ OrderCloud.configure do |config|
79
+ # Configure OAuth2 access token for authorization: oauth2
80
+ config.access_token = 'YOUR ACCESS TOKEN'
81
+ end
82
+
83
+ api_instance = OrderCloud::ShipmentApi.new
84
+
85
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
86
+
87
+
88
+ begin
89
+ api_instance.delete(shipment_id)
90
+ rescue OrderCloud::ApiError => e
91
+ puts "Exception when calling ShipmentApi->delete: #{e}"
92
+ end
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ Name | Type | Description | Notes
98
+ ------------- | ------------- | ------------- | -------------
99
+ **shipment_id** | **String**| ID of the shipment. |
100
+
101
+ ### Return type
102
+
103
+ nil (empty response body)
104
+
105
+ ### Authorization
106
+
107
+ [oauth2](../README.md#oauth2)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: application/json, text/plain; charset=utf-8
112
+ - **Accept**: application/json
113
+
114
+
115
+
116
+ # **delete_item**
117
+ > delete_item(shipment_id, order_id, line_item_id)
118
+
119
+
120
+
121
+ ### Example
122
+ ```ruby
123
+ # load the gem
124
+ require 'order_cloud'
125
+ # setup authorization
126
+ OrderCloud.configure do |config|
127
+ # Configure OAuth2 access token for authorization: oauth2
128
+ config.access_token = 'YOUR ACCESS TOKEN'
129
+ end
130
+
131
+ api_instance = OrderCloud::ShipmentApi.new
132
+
133
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
134
+
135
+ order_id = "order_id_example" # String | ID of the order.
136
+
137
+ line_item_id = "line_item_id_example" # String | ID of the line item.
138
+
139
+
140
+ begin
141
+ api_instance.delete_item(shipment_id, order_id, line_item_id)
142
+ rescue OrderCloud::ApiError => e
143
+ puts "Exception when calling ShipmentApi->delete_item: #{e}"
144
+ end
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ Name | Type | Description | Notes
150
+ ------------- | ------------- | ------------- | -------------
151
+ **shipment_id** | **String**| ID of the shipment. |
152
+ **order_id** | **String**| ID of the order. |
153
+ **line_item_id** | **String**| ID of the line item. |
154
+
155
+ ### Return type
156
+
157
+ nil (empty response body)
158
+
159
+ ### Authorization
160
+
161
+ [oauth2](../README.md#oauth2)
162
+
163
+ ### HTTP request headers
164
+
165
+ - **Content-Type**: application/json, text/plain; charset=utf-8
166
+ - **Accept**: application/json
167
+
168
+
169
+
170
+ # **get**
171
+ > Shipment get(shipment_id)
172
+
173
+
174
+
175
+ ### Example
176
+ ```ruby
177
+ # load the gem
178
+ require 'order_cloud'
179
+ # setup authorization
180
+ OrderCloud.configure do |config|
181
+ # Configure OAuth2 access token for authorization: oauth2
182
+ config.access_token = 'YOUR ACCESS TOKEN'
183
+ end
184
+
185
+ api_instance = OrderCloud::ShipmentApi.new
186
+
187
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
188
+
189
+
190
+ begin
191
+ result = api_instance.get(shipment_id)
192
+ p result
193
+ rescue OrderCloud::ApiError => e
194
+ puts "Exception when calling ShipmentApi->get: #{e}"
195
+ end
196
+ ```
197
+
198
+ ### Parameters
199
+
200
+ Name | Type | Description | Notes
201
+ ------------- | ------------- | ------------- | -------------
202
+ **shipment_id** | **String**| ID of the shipment. |
203
+
204
+ ### Return type
205
+
206
+ [**Shipment**](Shipment.md)
207
+
208
+ ### Authorization
209
+
210
+ [oauth2](../README.md#oauth2)
211
+
212
+ ### HTTP request headers
213
+
214
+ - **Content-Type**: application/json, text/plain; charset=utf-8
215
+ - **Accept**: application/json
216
+
217
+
218
+
219
+ # **get_item**
220
+ > ShipmentItem get_item(shipment_id, order_id, line_item_id)
221
+
222
+
223
+
224
+ ### Example
225
+ ```ruby
226
+ # load the gem
227
+ require 'order_cloud'
228
+ # setup authorization
229
+ OrderCloud.configure do |config|
230
+ # Configure OAuth2 access token for authorization: oauth2
231
+ config.access_token = 'YOUR ACCESS TOKEN'
232
+ end
233
+
234
+ api_instance = OrderCloud::ShipmentApi.new
235
+
236
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
237
+
238
+ order_id = "order_id_example" # String | ID of the order.
239
+
240
+ line_item_id = "line_item_id_example" # String | ID of the line item.
241
+
242
+
243
+ begin
244
+ result = api_instance.get_item(shipment_id, order_id, line_item_id)
245
+ p result
246
+ rescue OrderCloud::ApiError => e
247
+ puts "Exception when calling ShipmentApi->get_item: #{e}"
248
+ end
249
+ ```
250
+
251
+ ### Parameters
252
+
253
+ Name | Type | Description | Notes
254
+ ------------- | ------------- | ------------- | -------------
255
+ **shipment_id** | **String**| ID of the shipment. |
256
+ **order_id** | **String**| ID of the order. |
257
+ **line_item_id** | **String**| ID of the line item. |
258
+
259
+ ### Return type
260
+
261
+ [**ShipmentItem**](ShipmentItem.md)
262
+
263
+ ### Authorization
264
+
265
+ [oauth2](../README.md#oauth2)
266
+
267
+ ### HTTP request headers
268
+
269
+ - **Content-Type**: application/json, text/plain; charset=utf-8
270
+ - **Accept**: application/json
271
+
272
+
273
+
274
+ # **list**
275
+ > ListShipment list(opts)
276
+
277
+
278
+
279
+ ### Example
280
+ ```ruby
281
+ # load the gem
282
+ require 'order_cloud'
283
+ # setup authorization
284
+ OrderCloud.configure do |config|
285
+ # Configure OAuth2 access token for authorization: oauth2
286
+ config.access_token = 'YOUR ACCESS TOKEN'
287
+ end
288
+
289
+ api_instance = OrderCloud::ShipmentApi.new
290
+
291
+ opts = {
292
+ order_id: "order_id_example", # String | ID of the order.
293
+ search: "search_example", # String | Search of the shipment.
294
+ search_on: ["search_on_example"], # Array<String> | Search on of the shipment.
295
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the shipment.
296
+ page: 56, # Integer | Page of the shipment.
297
+ page_size: 56, # Integer | Page size of the shipment.
298
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the shipment.
299
+ }
300
+
301
+ begin
302
+ result = api_instance.list(opts)
303
+ p result
304
+ rescue OrderCloud::ApiError => e
305
+ puts "Exception when calling ShipmentApi->list: #{e}"
306
+ end
307
+ ```
308
+
309
+ ### Parameters
310
+
311
+ Name | Type | Description | Notes
312
+ ------------- | ------------- | ------------- | -------------
313
+ **order_id** | **String**| ID of the order. | [optional]
314
+ **search** | **String**| Search of the shipment. | [optional]
315
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the shipment. | [optional]
316
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the shipment. | [optional]
317
+ **page** | **Integer**| Page of the shipment. | [optional]
318
+ **page_size** | **Integer**| Page size of the shipment. | [optional]
319
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the shipment. | [optional]
320
+
321
+ ### Return type
322
+
323
+ [**ListShipment**](ListShipment.md)
324
+
325
+ ### Authorization
326
+
327
+ [oauth2](../README.md#oauth2)
328
+
329
+ ### HTTP request headers
330
+
331
+ - **Content-Type**: application/json, text/plain; charset=utf-8
332
+ - **Accept**: application/json
333
+
334
+
335
+
336
+ # **list_items**
337
+ > ListShipmentItem list_items(shipment_id, opts)
338
+
339
+
340
+
341
+ ### Example
342
+ ```ruby
343
+ # load the gem
344
+ require 'order_cloud'
345
+ # setup authorization
346
+ OrderCloud.configure do |config|
347
+ # Configure OAuth2 access token for authorization: oauth2
348
+ config.access_token = 'YOUR ACCESS TOKEN'
349
+ end
350
+
351
+ api_instance = OrderCloud::ShipmentApi.new
352
+
353
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
354
+
355
+ opts = {
356
+ search: "search_example", # String | Search of the shipment.
357
+ search_on: ["search_on_example"], # Array<String> | Search on of the shipment.
358
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the shipment.
359
+ page: 56, # Integer | Page of the shipment.
360
+ page_size: 56, # Integer | Page size of the shipment.
361
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the shipment.
362
+ }
363
+
364
+ begin
365
+ result = api_instance.list_items(shipment_id, opts)
366
+ p result
367
+ rescue OrderCloud::ApiError => e
368
+ puts "Exception when calling ShipmentApi->list_items: #{e}"
369
+ end
370
+ ```
371
+
372
+ ### Parameters
373
+
374
+ Name | Type | Description | Notes
375
+ ------------- | ------------- | ------------- | -------------
376
+ **shipment_id** | **String**| ID of the shipment. |
377
+ **search** | **String**| Search of the shipment. | [optional]
378
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the shipment. | [optional]
379
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the shipment. | [optional]
380
+ **page** | **Integer**| Page of the shipment. | [optional]
381
+ **page_size** | **Integer**| Page size of the shipment. | [optional]
382
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the shipment. | [optional]
383
+
384
+ ### Return type
385
+
386
+ [**ListShipmentItem**](ListShipmentItem.md)
387
+
388
+ ### Authorization
389
+
390
+ [oauth2](../README.md#oauth2)
391
+
392
+ ### HTTP request headers
393
+
394
+ - **Content-Type**: application/json, text/plain; charset=utf-8
395
+ - **Accept**: application/json
396
+
397
+
398
+
399
+ # **patch**
400
+ > Shipment patch(shipment_id, shipment)
401
+
402
+
403
+
404
+ ### Example
405
+ ```ruby
406
+ # load the gem
407
+ require 'order_cloud'
408
+ # setup authorization
409
+ OrderCloud.configure do |config|
410
+ # Configure OAuth2 access token for authorization: oauth2
411
+ config.access_token = 'YOUR ACCESS TOKEN'
412
+ end
413
+
414
+ api_instance = OrderCloud::ShipmentApi.new
415
+
416
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
417
+
418
+ shipment = OrderCloud::Shipment.new # Shipment |
419
+
420
+
421
+ begin
422
+ result = api_instance.patch(shipment_id, shipment)
423
+ p result
424
+ rescue OrderCloud::ApiError => e
425
+ puts "Exception when calling ShipmentApi->patch: #{e}"
426
+ end
427
+ ```
428
+
429
+ ### Parameters
430
+
431
+ Name | Type | Description | Notes
432
+ ------------- | ------------- | ------------- | -------------
433
+ **shipment_id** | **String**| ID of the shipment. |
434
+ **shipment** | [**Shipment**](Shipment.md)| |
435
+
436
+ ### Return type
437
+
438
+ [**Shipment**](Shipment.md)
439
+
440
+ ### Authorization
441
+
442
+ [oauth2](../README.md#oauth2)
443
+
444
+ ### HTTP request headers
445
+
446
+ - **Content-Type**: application/json, text/plain; charset=utf-8
447
+ - **Accept**: application/json
448
+
449
+
450
+
451
+ # **save_item**
452
+ > ShipmentItem save_item(shipment_id, item)
453
+
454
+
455
+
456
+ ### Example
457
+ ```ruby
458
+ # load the gem
459
+ require 'order_cloud'
460
+ # setup authorization
461
+ OrderCloud.configure do |config|
462
+ # Configure OAuth2 access token for authorization: oauth2
463
+ config.access_token = 'YOUR ACCESS TOKEN'
464
+ end
465
+
466
+ api_instance = OrderCloud::ShipmentApi.new
467
+
468
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
469
+
470
+ item = OrderCloud::ShipmentItem.new # ShipmentItem |
471
+
472
+
473
+ begin
474
+ result = api_instance.save_item(shipment_id, item)
475
+ p result
476
+ rescue OrderCloud::ApiError => e
477
+ puts "Exception when calling ShipmentApi->save_item: #{e}"
478
+ end
479
+ ```
480
+
481
+ ### Parameters
482
+
483
+ Name | Type | Description | Notes
484
+ ------------- | ------------- | ------------- | -------------
485
+ **shipment_id** | **String**| ID of the shipment. |
486
+ **item** | [**ShipmentItem**](ShipmentItem.md)| |
487
+
488
+ ### Return type
489
+
490
+ [**ShipmentItem**](ShipmentItem.md)
491
+
492
+ ### Authorization
493
+
494
+ [oauth2](../README.md#oauth2)
495
+
496
+ ### HTTP request headers
497
+
498
+ - **Content-Type**: application/json, text/plain; charset=utf-8
499
+ - **Accept**: application/json
500
+
501
+
502
+
503
+ # **update**
504
+ > Shipment update(shipment_id, shipment)
505
+
506
+
507
+
508
+ ### Example
509
+ ```ruby
510
+ # load the gem
511
+ require 'order_cloud'
512
+ # setup authorization
513
+ OrderCloud.configure do |config|
514
+ # Configure OAuth2 access token for authorization: oauth2
515
+ config.access_token = 'YOUR ACCESS TOKEN'
516
+ end
517
+
518
+ api_instance = OrderCloud::ShipmentApi.new
519
+
520
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
521
+
522
+ shipment = OrderCloud::Shipment.new # Shipment |
523
+
524
+
525
+ begin
526
+ result = api_instance.update(shipment_id, shipment)
527
+ p result
528
+ rescue OrderCloud::ApiError => e
529
+ puts "Exception when calling ShipmentApi->update: #{e}"
530
+ end
531
+ ```
532
+
533
+ ### Parameters
534
+
535
+ Name | Type | Description | Notes
536
+ ------------- | ------------- | ------------- | -------------
537
+ **shipment_id** | **String**| ID of the shipment. |
538
+ **shipment** | [**Shipment**](Shipment.md)| |
539
+
540
+ ### Return type
541
+
542
+ [**Shipment**](Shipment.md)
543
+
544
+ ### Authorization
545
+
546
+ [oauth2](../README.md#oauth2)
547
+
548
+ ### HTTP request headers
549
+
550
+ - **Content-Type**: application/json, text/plain; charset=utf-8
551
+ - **Accept**: application/json
552
+
553
+
554
+