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,12 @@
1
+ # OrderCloud::Meta
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **page** | **Integer** | | [optional]
7
+ **page_size** | **Integer** | | [optional]
8
+ **total_count** | **Integer** | | [optional]
9
+ **total_pages** | **Integer** | | [optional]
10
+ **item_range** | **Array<Integer>** | | [optional]
11
+
12
+
@@ -0,0 +1,30 @@
1
+ # OrderCloud::Order
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **from_user** | [**User**](User.md) | | [optional]
8
+ **from_company_id** | **String** | | [optional]
9
+ **from_user_id** | **String** | | [optional]
10
+ **billing_address_id** | **String** | | [optional]
11
+ **billing_address** | [**Address**](Address.md) | | [optional]
12
+ **shipping_address_id** | **String** | | [optional]
13
+ **comments** | **String** | | [optional]
14
+ **line_item_count** | **Integer** | | [optional]
15
+ **status** | **String** | | [optional]
16
+ **date_created** | **String** | | [optional]
17
+ **date_submitted** | **String** | | [optional]
18
+ **date_approved** | **String** | | [optional]
19
+ **date_declined** | **String** | | [optional]
20
+ **date_canceled** | **String** | | [optional]
21
+ **date_completed** | **String** | | [optional]
22
+ **subtotal** | **Float** | | [optional]
23
+ **shipping_cost** | **Float** | | [optional]
24
+ **tax_cost** | **Float** | | [optional]
25
+ **promotion_discount** | **Float** | | [optional]
26
+ **total** | **Float** | | [optional]
27
+ **is_submitted** | **BOOLEAN** | | [optional]
28
+ **xp** | **Object** | | [optional]
29
+
30
+
@@ -0,0 +1,1161 @@
1
+ # OrderCloud::OrderApi
2
+
3
+ All URIs are relative to *https://api.ordercloud.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add_promotion**](OrderApi.md#add_promotion) | **POST** /orders/{direction}/{orderID}/promotions/{promoCode} |
8
+ [**approve**](OrderApi.md#approve) | **POST** /orders/{direction}/{orderID}/approve |
9
+ [**cancel**](OrderApi.md#cancel) | **POST** /orders/{direction}/{orderID}/cancel |
10
+ [**create**](OrderApi.md#create) | **POST** /orders/{direction} |
11
+ [**decline**](OrderApi.md#decline) | **POST** /orders/{direction}/{orderID}/decline |
12
+ [**delete**](OrderApi.md#delete) | **DELETE** /orders/{direction}/{orderID} |
13
+ [**get**](OrderApi.md#get) | **GET** /orders/{direction}/{orderID} |
14
+ [**list**](OrderApi.md#list) | **GET** /orders/{direction} |
15
+ [**list_approvals**](OrderApi.md#list_approvals) | **GET** /orders/{direction}/{orderID}/approvals |
16
+ [**list_eligible_approvers**](OrderApi.md#list_eligible_approvers) | **GET** /orders/{direction}/{orderID}/eligibleapprovers |
17
+ [**list_promotions**](OrderApi.md#list_promotions) | **GET** /orders/{direction}/{orderID}/promotions |
18
+ [**patch**](OrderApi.md#patch) | **PATCH** /orders/{direction}/{orderID} |
19
+ [**patch_billing_address**](OrderApi.md#patch_billing_address) | **PATCH** /orders/{direction}/{orderID}/billto |
20
+ [**patch_shipping_address**](OrderApi.md#patch_shipping_address) | **PATCH** /orders/{direction}/{orderID}/shipto |
21
+ [**remove_promotion**](OrderApi.md#remove_promotion) | **DELETE** /orders/{direction}/{orderID}/promotions/{promoCode} |
22
+ [**set_billing_address**](OrderApi.md#set_billing_address) | **PUT** /orders/{direction}/{orderID}/billto |
23
+ [**set_shipping_address**](OrderApi.md#set_shipping_address) | **PUT** /orders/{direction}/{orderID}/shipto |
24
+ [**ship**](OrderApi.md#ship) | **POST** /orders/{direction}/{orderID}/ship |
25
+ [**submit**](OrderApi.md#submit) | **POST** /orders/{direction}/{orderID}/submit |
26
+ [**update**](OrderApi.md#update) | **PUT** /orders/{direction}/{orderID} |
27
+
28
+
29
+ # **add_promotion**
30
+ > Promotion add_promotion(direction, order_id, promo_code)
31
+
32
+
33
+
34
+ ### Example
35
+ ```ruby
36
+ # load the gem
37
+ require 'order_cloud'
38
+ # setup authorization
39
+ OrderCloud.configure do |config|
40
+ # Configure OAuth2 access token for authorization: oauth2
41
+ config.access_token = 'YOUR ACCESS TOKEN'
42
+ end
43
+
44
+ api_instance = OrderCloud::OrderApi.new
45
+
46
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
47
+
48
+ order_id = "order_id_example" # String | ID of the order.
49
+
50
+ promo_code = "promo_code_example" # String | Promo code of the order.
51
+
52
+
53
+ begin
54
+ result = api_instance.add_promotion(direction, order_id, promo_code)
55
+ p result
56
+ rescue OrderCloud::ApiError => e
57
+ puts "Exception when calling OrderApi->add_promotion: #{e}"
58
+ end
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+ Name | Type | Description | Notes
64
+ ------------- | ------------- | ------------- | -------------
65
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
66
+ **order_id** | **String**| ID of the order. |
67
+ **promo_code** | **String**| Promo code of the order. |
68
+
69
+ ### Return type
70
+
71
+ [**Promotion**](Promotion.md)
72
+
73
+ ### Authorization
74
+
75
+ [oauth2](../README.md#oauth2)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: application/json, text/plain; charset=utf-8
80
+ - **Accept**: application/json
81
+
82
+
83
+
84
+ # **approve**
85
+ > Order approve(direction, order_id, info)
86
+
87
+
88
+
89
+ ### Example
90
+ ```ruby
91
+ # load the gem
92
+ require 'order_cloud'
93
+ # setup authorization
94
+ OrderCloud.configure do |config|
95
+ # Configure OAuth2 access token for authorization: oauth2
96
+ config.access_token = 'YOUR ACCESS TOKEN'
97
+ end
98
+
99
+ api_instance = OrderCloud::OrderApi.new
100
+
101
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
102
+
103
+ order_id = "order_id_example" # String | ID of the order.
104
+
105
+ info = OrderCloud::OrderApprovalInfo.new # OrderApprovalInfo |
106
+
107
+
108
+ begin
109
+ result = api_instance.approve(direction, order_id, info)
110
+ p result
111
+ rescue OrderCloud::ApiError => e
112
+ puts "Exception when calling OrderApi->approve: #{e}"
113
+ end
114
+ ```
115
+
116
+ ### Parameters
117
+
118
+ Name | Type | Description | Notes
119
+ ------------- | ------------- | ------------- | -------------
120
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
121
+ **order_id** | **String**| ID of the order. |
122
+ **info** | [**OrderApprovalInfo**](OrderApprovalInfo.md)| |
123
+
124
+ ### Return type
125
+
126
+ [**Order**](Order.md)
127
+
128
+ ### Authorization
129
+
130
+ [oauth2](../README.md#oauth2)
131
+
132
+ ### HTTP request headers
133
+
134
+ - **Content-Type**: application/json, text/plain; charset=utf-8
135
+ - **Accept**: application/json
136
+
137
+
138
+
139
+ # **cancel**
140
+ > Order cancel(direction, order_id)
141
+
142
+
143
+
144
+ ### Example
145
+ ```ruby
146
+ # load the gem
147
+ require 'order_cloud'
148
+ # setup authorization
149
+ OrderCloud.configure do |config|
150
+ # Configure OAuth2 access token for authorization: oauth2
151
+ config.access_token = 'YOUR ACCESS TOKEN'
152
+ end
153
+
154
+ api_instance = OrderCloud::OrderApi.new
155
+
156
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
157
+
158
+ order_id = "order_id_example" # String | ID of the order.
159
+
160
+
161
+ begin
162
+ result = api_instance.cancel(direction, order_id)
163
+ p result
164
+ rescue OrderCloud::ApiError => e
165
+ puts "Exception when calling OrderApi->cancel: #{e}"
166
+ end
167
+ ```
168
+
169
+ ### Parameters
170
+
171
+ Name | Type | Description | Notes
172
+ ------------- | ------------- | ------------- | -------------
173
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
174
+ **order_id** | **String**| ID of the order. |
175
+
176
+ ### Return type
177
+
178
+ [**Order**](Order.md)
179
+
180
+ ### Authorization
181
+
182
+ [oauth2](../README.md#oauth2)
183
+
184
+ ### HTTP request headers
185
+
186
+ - **Content-Type**: application/json, text/plain; charset=utf-8
187
+ - **Accept**: application/json
188
+
189
+
190
+
191
+ # **create**
192
+ > Order create(direction, order)
193
+
194
+
195
+
196
+ ### Example
197
+ ```ruby
198
+ # load the gem
199
+ require 'order_cloud'
200
+ # setup authorization
201
+ OrderCloud.configure do |config|
202
+ # Configure OAuth2 access token for authorization: oauth2
203
+ config.access_token = 'YOUR ACCESS TOKEN'
204
+ end
205
+
206
+ api_instance = OrderCloud::OrderApi.new
207
+
208
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
209
+
210
+ order = OrderCloud::Order.new # Order |
211
+
212
+
213
+ begin
214
+ result = api_instance.create(direction, order)
215
+ p result
216
+ rescue OrderCloud::ApiError => e
217
+ puts "Exception when calling OrderApi->create: #{e}"
218
+ end
219
+ ```
220
+
221
+ ### Parameters
222
+
223
+ Name | Type | Description | Notes
224
+ ------------- | ------------- | ------------- | -------------
225
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
226
+ **order** | [**Order**](Order.md)| |
227
+
228
+ ### Return type
229
+
230
+ [**Order**](Order.md)
231
+
232
+ ### Authorization
233
+
234
+ [oauth2](../README.md#oauth2)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: application/json, text/plain; charset=utf-8
239
+ - **Accept**: application/json
240
+
241
+
242
+
243
+ # **decline**
244
+ > Order decline(direction, order_id, info)
245
+
246
+
247
+
248
+ ### Example
249
+ ```ruby
250
+ # load the gem
251
+ require 'order_cloud'
252
+ # setup authorization
253
+ OrderCloud.configure do |config|
254
+ # Configure OAuth2 access token for authorization: oauth2
255
+ config.access_token = 'YOUR ACCESS TOKEN'
256
+ end
257
+
258
+ api_instance = OrderCloud::OrderApi.new
259
+
260
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
261
+
262
+ order_id = "order_id_example" # String | ID of the order.
263
+
264
+ info = OrderCloud::OrderApprovalInfo.new # OrderApprovalInfo |
265
+
266
+
267
+ begin
268
+ result = api_instance.decline(direction, order_id, info)
269
+ p result
270
+ rescue OrderCloud::ApiError => e
271
+ puts "Exception when calling OrderApi->decline: #{e}"
272
+ end
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ Name | Type | Description | Notes
278
+ ------------- | ------------- | ------------- | -------------
279
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
280
+ **order_id** | **String**| ID of the order. |
281
+ **info** | [**OrderApprovalInfo**](OrderApprovalInfo.md)| |
282
+
283
+ ### Return type
284
+
285
+ [**Order**](Order.md)
286
+
287
+ ### Authorization
288
+
289
+ [oauth2](../README.md#oauth2)
290
+
291
+ ### HTTP request headers
292
+
293
+ - **Content-Type**: application/json, text/plain; charset=utf-8
294
+ - **Accept**: application/json
295
+
296
+
297
+
298
+ # **delete**
299
+ > delete(direction, order_id)
300
+
301
+
302
+
303
+ ### Example
304
+ ```ruby
305
+ # load the gem
306
+ require 'order_cloud'
307
+ # setup authorization
308
+ OrderCloud.configure do |config|
309
+ # Configure OAuth2 access token for authorization: oauth2
310
+ config.access_token = 'YOUR ACCESS TOKEN'
311
+ end
312
+
313
+ api_instance = OrderCloud::OrderApi.new
314
+
315
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
316
+
317
+ order_id = "order_id_example" # String | ID of the order.
318
+
319
+
320
+ begin
321
+ api_instance.delete(direction, order_id)
322
+ rescue OrderCloud::ApiError => e
323
+ puts "Exception when calling OrderApi->delete: #{e}"
324
+ end
325
+ ```
326
+
327
+ ### Parameters
328
+
329
+ Name | Type | Description | Notes
330
+ ------------- | ------------- | ------------- | -------------
331
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
332
+ **order_id** | **String**| ID of the order. |
333
+
334
+ ### Return type
335
+
336
+ nil (empty response body)
337
+
338
+ ### Authorization
339
+
340
+ [oauth2](../README.md#oauth2)
341
+
342
+ ### HTTP request headers
343
+
344
+ - **Content-Type**: application/json, text/plain; charset=utf-8
345
+ - **Accept**: application/json
346
+
347
+
348
+
349
+ # **get**
350
+ > Order get(direction, order_id)
351
+
352
+
353
+
354
+ ### Example
355
+ ```ruby
356
+ # load the gem
357
+ require 'order_cloud'
358
+ # setup authorization
359
+ OrderCloud.configure do |config|
360
+ # Configure OAuth2 access token for authorization: oauth2
361
+ config.access_token = 'YOUR ACCESS TOKEN'
362
+ end
363
+
364
+ api_instance = OrderCloud::OrderApi.new
365
+
366
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
367
+
368
+ order_id = "order_id_example" # String | ID of the order.
369
+
370
+
371
+ begin
372
+ result = api_instance.get(direction, order_id)
373
+ p result
374
+ rescue OrderCloud::ApiError => e
375
+ puts "Exception when calling OrderApi->get: #{e}"
376
+ end
377
+ ```
378
+
379
+ ### Parameters
380
+
381
+ Name | Type | Description | Notes
382
+ ------------- | ------------- | ------------- | -------------
383
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
384
+ **order_id** | **String**| ID of the order. |
385
+
386
+ ### Return type
387
+
388
+ [**Order**](Order.md)
389
+
390
+ ### Authorization
391
+
392
+ [oauth2](../README.md#oauth2)
393
+
394
+ ### HTTP request headers
395
+
396
+ - **Content-Type**: application/json, text/plain; charset=utf-8
397
+ - **Accept**: application/json
398
+
399
+
400
+
401
+ # **list**
402
+ > ListOrder list(direction, opts)
403
+
404
+
405
+
406
+ ### Example
407
+ ```ruby
408
+ # load the gem
409
+ require 'order_cloud'
410
+ # setup authorization
411
+ OrderCloud.configure do |config|
412
+ # Configure OAuth2 access token for authorization: oauth2
413
+ config.access_token = 'YOUR ACCESS TOKEN'
414
+ end
415
+
416
+ api_instance = OrderCloud::OrderApi.new
417
+
418
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
419
+
420
+ opts = {
421
+ buyer_id: "buyer_id_example", # String | ID of the buyer.
422
+ supplier_id: "supplier_id_example", # String | ID of the supplier.
423
+ from: "from_example", # String | Lower bound of date range that the order was created.
424
+ to: "to_example", # String | Upper bound of date range that the order was created.
425
+ search: "search_example", # String | Search of the order.
426
+ search_on: ["search_on_example"], # Array<String> | Search on of the order.
427
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
428
+ page: 56, # Integer | Page of the order.
429
+ page_size: 56, # Integer | Page size of the order.
430
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
431
+ }
432
+
433
+ begin
434
+ result = api_instance.list(direction, opts)
435
+ p result
436
+ rescue OrderCloud::ApiError => e
437
+ puts "Exception when calling OrderApi->list: #{e}"
438
+ end
439
+ ```
440
+
441
+ ### Parameters
442
+
443
+ Name | Type | Description | Notes
444
+ ------------- | ------------- | ------------- | -------------
445
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
446
+ **buyer_id** | **String**| ID of the buyer. | [optional]
447
+ **supplier_id** | **String**| ID of the supplier. | [optional]
448
+ **from** | **String**| Lower bound of date range that the order was created. | [optional]
449
+ **to** | **String**| Upper bound of date range that the order was created. | [optional]
450
+ **search** | **String**| Search of the order. | [optional]
451
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the order. | [optional]
452
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the order. | [optional]
453
+ **page** | **Integer**| Page of the order. | [optional]
454
+ **page_size** | **Integer**| Page size of the order. | [optional]
455
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the order. | [optional]
456
+
457
+ ### Return type
458
+
459
+ [**ListOrder**](ListOrder.md)
460
+
461
+ ### Authorization
462
+
463
+ [oauth2](../README.md#oauth2)
464
+
465
+ ### HTTP request headers
466
+
467
+ - **Content-Type**: application/json, text/plain; charset=utf-8
468
+ - **Accept**: application/json
469
+
470
+
471
+
472
+ # **list_approvals**
473
+ > ListOrderApproval list_approvals(direction, order_id, opts)
474
+
475
+
476
+
477
+ ### Example
478
+ ```ruby
479
+ # load the gem
480
+ require 'order_cloud'
481
+ # setup authorization
482
+ OrderCloud.configure do |config|
483
+ # Configure OAuth2 access token for authorization: oauth2
484
+ config.access_token = 'YOUR ACCESS TOKEN'
485
+ end
486
+
487
+ api_instance = OrderCloud::OrderApi.new
488
+
489
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
490
+
491
+ order_id = "order_id_example" # String | ID of the order.
492
+
493
+ opts = {
494
+ search: "search_example", # String | Search of the order.
495
+ search_on: ["search_on_example"], # Array<String> | Search on of the order.
496
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
497
+ page: 56, # Integer | Page of the order.
498
+ page_size: 56, # Integer | Page size of the order.
499
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
500
+ }
501
+
502
+ begin
503
+ result = api_instance.list_approvals(direction, order_id, opts)
504
+ p result
505
+ rescue OrderCloud::ApiError => e
506
+ puts "Exception when calling OrderApi->list_approvals: #{e}"
507
+ end
508
+ ```
509
+
510
+ ### Parameters
511
+
512
+ Name | Type | Description | Notes
513
+ ------------- | ------------- | ------------- | -------------
514
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
515
+ **order_id** | **String**| ID of the order. |
516
+ **search** | **String**| Search of the order. | [optional]
517
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the order. | [optional]
518
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the order. | [optional]
519
+ **page** | **Integer**| Page of the order. | [optional]
520
+ **page_size** | **Integer**| Page size of the order. | [optional]
521
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the order. | [optional]
522
+
523
+ ### Return type
524
+
525
+ [**ListOrderApproval**](ListOrderApproval.md)
526
+
527
+ ### Authorization
528
+
529
+ [oauth2](../README.md#oauth2)
530
+
531
+ ### HTTP request headers
532
+
533
+ - **Content-Type**: application/json, text/plain; charset=utf-8
534
+ - **Accept**: application/json
535
+
536
+
537
+
538
+ # **list_eligible_approvers**
539
+ > ListUser list_eligible_approvers(direction, order_id, opts)
540
+
541
+
542
+
543
+ ### Example
544
+ ```ruby
545
+ # load the gem
546
+ require 'order_cloud'
547
+ # setup authorization
548
+ OrderCloud.configure do |config|
549
+ # Configure OAuth2 access token for authorization: oauth2
550
+ config.access_token = 'YOUR ACCESS TOKEN'
551
+ end
552
+
553
+ api_instance = OrderCloud::OrderApi.new
554
+
555
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
556
+
557
+ order_id = "order_id_example" # String | ID of the order.
558
+
559
+ opts = {
560
+ search: "search_example", # String | Search of the order.
561
+ search_on: ["search_on_example"], # Array<String> | Search on of the order.
562
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
563
+ page: 56, # Integer | Page of the order.
564
+ page_size: 56, # Integer | Page size of the order.
565
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
566
+ }
567
+
568
+ begin
569
+ result = api_instance.list_eligible_approvers(direction, order_id, opts)
570
+ p result
571
+ rescue OrderCloud::ApiError => e
572
+ puts "Exception when calling OrderApi->list_eligible_approvers: #{e}"
573
+ end
574
+ ```
575
+
576
+ ### Parameters
577
+
578
+ Name | Type | Description | Notes
579
+ ------------- | ------------- | ------------- | -------------
580
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
581
+ **order_id** | **String**| ID of the order. |
582
+ **search** | **String**| Search of the order. | [optional]
583
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the order. | [optional]
584
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the order. | [optional]
585
+ **page** | **Integer**| Page of the order. | [optional]
586
+ **page_size** | **Integer**| Page size of the order. | [optional]
587
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the order. | [optional]
588
+
589
+ ### Return type
590
+
591
+ [**ListUser**](ListUser.md)
592
+
593
+ ### Authorization
594
+
595
+ [oauth2](../README.md#oauth2)
596
+
597
+ ### HTTP request headers
598
+
599
+ - **Content-Type**: application/json, text/plain; charset=utf-8
600
+ - **Accept**: application/json
601
+
602
+
603
+
604
+ # **list_promotions**
605
+ > ListOrderPromotion list_promotions(direction, order_id, opts)
606
+
607
+
608
+
609
+ ### Example
610
+ ```ruby
611
+ # load the gem
612
+ require 'order_cloud'
613
+ # setup authorization
614
+ OrderCloud.configure do |config|
615
+ # Configure OAuth2 access token for authorization: oauth2
616
+ config.access_token = 'YOUR ACCESS TOKEN'
617
+ end
618
+
619
+ api_instance = OrderCloud::OrderApi.new
620
+
621
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
622
+
623
+ order_id = "order_id_example" # String | ID of the order.
624
+
625
+ opts = {
626
+ search: "search_example", # String | Search of the order.
627
+ search_on: ["search_on_example"], # Array<String> | Search on of the order.
628
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
629
+ page: 56, # Integer | Page of the order.
630
+ page_size: 56, # Integer | Page size of the order.
631
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
632
+ }
633
+
634
+ begin
635
+ result = api_instance.list_promotions(direction, order_id, opts)
636
+ p result
637
+ rescue OrderCloud::ApiError => e
638
+ puts "Exception when calling OrderApi->list_promotions: #{e}"
639
+ end
640
+ ```
641
+
642
+ ### Parameters
643
+
644
+ Name | Type | Description | Notes
645
+ ------------- | ------------- | ------------- | -------------
646
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
647
+ **order_id** | **String**| ID of the order. |
648
+ **search** | **String**| Search of the order. | [optional]
649
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the order. | [optional]
650
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the order. | [optional]
651
+ **page** | **Integer**| Page of the order. | [optional]
652
+ **page_size** | **Integer**| Page size of the order. | [optional]
653
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the order. | [optional]
654
+
655
+ ### Return type
656
+
657
+ [**ListOrderPromotion**](ListOrderPromotion.md)
658
+
659
+ ### Authorization
660
+
661
+ [oauth2](../README.md#oauth2)
662
+
663
+ ### HTTP request headers
664
+
665
+ - **Content-Type**: application/json, text/plain; charset=utf-8
666
+ - **Accept**: application/json
667
+
668
+
669
+
670
+ # **patch**
671
+ > Order patch(direction, order_id, partial_order)
672
+
673
+
674
+
675
+ ### Example
676
+ ```ruby
677
+ # load the gem
678
+ require 'order_cloud'
679
+ # setup authorization
680
+ OrderCloud.configure do |config|
681
+ # Configure OAuth2 access token for authorization: oauth2
682
+ config.access_token = 'YOUR ACCESS TOKEN'
683
+ end
684
+
685
+ api_instance = OrderCloud::OrderApi.new
686
+
687
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
688
+
689
+ order_id = "order_id_example" # String | ID of the order.
690
+
691
+ partial_order = OrderCloud::Order.new # Order |
692
+
693
+
694
+ begin
695
+ result = api_instance.patch(direction, order_id, partial_order)
696
+ p result
697
+ rescue OrderCloud::ApiError => e
698
+ puts "Exception when calling OrderApi->patch: #{e}"
699
+ end
700
+ ```
701
+
702
+ ### Parameters
703
+
704
+ Name | Type | Description | Notes
705
+ ------------- | ------------- | ------------- | -------------
706
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
707
+ **order_id** | **String**| ID of the order. |
708
+ **partial_order** | [**Order**](Order.md)| |
709
+
710
+ ### Return type
711
+
712
+ [**Order**](Order.md)
713
+
714
+ ### Authorization
715
+
716
+ [oauth2](../README.md#oauth2)
717
+
718
+ ### HTTP request headers
719
+
720
+ - **Content-Type**: application/json, text/plain; charset=utf-8
721
+ - **Accept**: application/json
722
+
723
+
724
+
725
+ # **patch_billing_address**
726
+ > Order patch_billing_address(direction, order_id, address)
727
+
728
+
729
+
730
+ ### Example
731
+ ```ruby
732
+ # load the gem
733
+ require 'order_cloud'
734
+ # setup authorization
735
+ OrderCloud.configure do |config|
736
+ # Configure OAuth2 access token for authorization: oauth2
737
+ config.access_token = 'YOUR ACCESS TOKEN'
738
+ end
739
+
740
+ api_instance = OrderCloud::OrderApi.new
741
+
742
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
743
+
744
+ order_id = "order_id_example" # String | ID of the order.
745
+
746
+ address = OrderCloud::Address.new # Address |
747
+
748
+
749
+ begin
750
+ result = api_instance.patch_billing_address(direction, order_id, address)
751
+ p result
752
+ rescue OrderCloud::ApiError => e
753
+ puts "Exception when calling OrderApi->patch_billing_address: #{e}"
754
+ end
755
+ ```
756
+
757
+ ### Parameters
758
+
759
+ Name | Type | Description | Notes
760
+ ------------- | ------------- | ------------- | -------------
761
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
762
+ **order_id** | **String**| ID of the order. |
763
+ **address** | [**Address**](Address.md)| |
764
+
765
+ ### Return type
766
+
767
+ [**Order**](Order.md)
768
+
769
+ ### Authorization
770
+
771
+ [oauth2](../README.md#oauth2)
772
+
773
+ ### HTTP request headers
774
+
775
+ - **Content-Type**: application/json, text/plain; charset=utf-8
776
+ - **Accept**: application/json
777
+
778
+
779
+
780
+ # **patch_shipping_address**
781
+ > Order patch_shipping_address(direction, order_id, address)
782
+
783
+
784
+
785
+ ### Example
786
+ ```ruby
787
+ # load the gem
788
+ require 'order_cloud'
789
+ # setup authorization
790
+ OrderCloud.configure do |config|
791
+ # Configure OAuth2 access token for authorization: oauth2
792
+ config.access_token = 'YOUR ACCESS TOKEN'
793
+ end
794
+
795
+ api_instance = OrderCloud::OrderApi.new
796
+
797
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
798
+
799
+ order_id = "order_id_example" # String | ID of the order.
800
+
801
+ address = OrderCloud::Address.new # Address |
802
+
803
+
804
+ begin
805
+ result = api_instance.patch_shipping_address(direction, order_id, address)
806
+ p result
807
+ rescue OrderCloud::ApiError => e
808
+ puts "Exception when calling OrderApi->patch_shipping_address: #{e}"
809
+ end
810
+ ```
811
+
812
+ ### Parameters
813
+
814
+ Name | Type | Description | Notes
815
+ ------------- | ------------- | ------------- | -------------
816
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
817
+ **order_id** | **String**| ID of the order. |
818
+ **address** | [**Address**](Address.md)| |
819
+
820
+ ### Return type
821
+
822
+ [**Order**](Order.md)
823
+
824
+ ### Authorization
825
+
826
+ [oauth2](../README.md#oauth2)
827
+
828
+ ### HTTP request headers
829
+
830
+ - **Content-Type**: application/json, text/plain; charset=utf-8
831
+ - **Accept**: application/json
832
+
833
+
834
+
835
+ # **remove_promotion**
836
+ > Order remove_promotion(direction, order_id, promo_code)
837
+
838
+
839
+
840
+ ### Example
841
+ ```ruby
842
+ # load the gem
843
+ require 'order_cloud'
844
+ # setup authorization
845
+ OrderCloud.configure do |config|
846
+ # Configure OAuth2 access token for authorization: oauth2
847
+ config.access_token = 'YOUR ACCESS TOKEN'
848
+ end
849
+
850
+ api_instance = OrderCloud::OrderApi.new
851
+
852
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
853
+
854
+ order_id = "order_id_example" # String | ID of the order.
855
+
856
+ promo_code = "promo_code_example" # String | Promo code of the order.
857
+
858
+
859
+ begin
860
+ result = api_instance.remove_promotion(direction, order_id, promo_code)
861
+ p result
862
+ rescue OrderCloud::ApiError => e
863
+ puts "Exception when calling OrderApi->remove_promotion: #{e}"
864
+ end
865
+ ```
866
+
867
+ ### Parameters
868
+
869
+ Name | Type | Description | Notes
870
+ ------------- | ------------- | ------------- | -------------
871
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
872
+ **order_id** | **String**| ID of the order. |
873
+ **promo_code** | **String**| Promo code of the order. |
874
+
875
+ ### Return type
876
+
877
+ [**Order**](Order.md)
878
+
879
+ ### Authorization
880
+
881
+ [oauth2](../README.md#oauth2)
882
+
883
+ ### HTTP request headers
884
+
885
+ - **Content-Type**: application/json, text/plain; charset=utf-8
886
+ - **Accept**: application/json
887
+
888
+
889
+
890
+ # **set_billing_address**
891
+ > Order set_billing_address(direction, order_id, address)
892
+
893
+
894
+
895
+ ### Example
896
+ ```ruby
897
+ # load the gem
898
+ require 'order_cloud'
899
+ # setup authorization
900
+ OrderCloud.configure do |config|
901
+ # Configure OAuth2 access token for authorization: oauth2
902
+ config.access_token = 'YOUR ACCESS TOKEN'
903
+ end
904
+
905
+ api_instance = OrderCloud::OrderApi.new
906
+
907
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
908
+
909
+ order_id = "order_id_example" # String | ID of the order.
910
+
911
+ address = OrderCloud::Address.new # Address |
912
+
913
+
914
+ begin
915
+ result = api_instance.set_billing_address(direction, order_id, address)
916
+ p result
917
+ rescue OrderCloud::ApiError => e
918
+ puts "Exception when calling OrderApi->set_billing_address: #{e}"
919
+ end
920
+ ```
921
+
922
+ ### Parameters
923
+
924
+ Name | Type | Description | Notes
925
+ ------------- | ------------- | ------------- | -------------
926
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
927
+ **order_id** | **String**| ID of the order. |
928
+ **address** | [**Address**](Address.md)| |
929
+
930
+ ### Return type
931
+
932
+ [**Order**](Order.md)
933
+
934
+ ### Authorization
935
+
936
+ [oauth2](../README.md#oauth2)
937
+
938
+ ### HTTP request headers
939
+
940
+ - **Content-Type**: application/json, text/plain; charset=utf-8
941
+ - **Accept**: application/json
942
+
943
+
944
+
945
+ # **set_shipping_address**
946
+ > Order set_shipping_address(direction, order_id, address)
947
+
948
+
949
+
950
+ ### Example
951
+ ```ruby
952
+ # load the gem
953
+ require 'order_cloud'
954
+ # setup authorization
955
+ OrderCloud.configure do |config|
956
+ # Configure OAuth2 access token for authorization: oauth2
957
+ config.access_token = 'YOUR ACCESS TOKEN'
958
+ end
959
+
960
+ api_instance = OrderCloud::OrderApi.new
961
+
962
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
963
+
964
+ order_id = "order_id_example" # String | ID of the order.
965
+
966
+ address = OrderCloud::Address.new # Address |
967
+
968
+
969
+ begin
970
+ result = api_instance.set_shipping_address(direction, order_id, address)
971
+ p result
972
+ rescue OrderCloud::ApiError => e
973
+ puts "Exception when calling OrderApi->set_shipping_address: #{e}"
974
+ end
975
+ ```
976
+
977
+ ### Parameters
978
+
979
+ Name | Type | Description | Notes
980
+ ------------- | ------------- | ------------- | -------------
981
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
982
+ **order_id** | **String**| ID of the order. |
983
+ **address** | [**Address**](Address.md)| |
984
+
985
+ ### Return type
986
+
987
+ [**Order**](Order.md)
988
+
989
+ ### Authorization
990
+
991
+ [oauth2](../README.md#oauth2)
992
+
993
+ ### HTTP request headers
994
+
995
+ - **Content-Type**: application/json, text/plain; charset=utf-8
996
+ - **Accept**: application/json
997
+
998
+
999
+
1000
+ # **ship**
1001
+ > Order ship(direction, order_id, shipment)
1002
+
1003
+
1004
+
1005
+ ### Example
1006
+ ```ruby
1007
+ # load the gem
1008
+ require 'order_cloud'
1009
+ # setup authorization
1010
+ OrderCloud.configure do |config|
1011
+ # Configure OAuth2 access token for authorization: oauth2
1012
+ config.access_token = 'YOUR ACCESS TOKEN'
1013
+ end
1014
+
1015
+ api_instance = OrderCloud::OrderApi.new
1016
+
1017
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
1018
+
1019
+ order_id = "order_id_example" # String | ID of the order.
1020
+
1021
+ shipment = OrderCloud::BuyerShipment.new # BuyerShipment |
1022
+
1023
+
1024
+ begin
1025
+ result = api_instance.ship(direction, order_id, shipment)
1026
+ p result
1027
+ rescue OrderCloud::ApiError => e
1028
+ puts "Exception when calling OrderApi->ship: #{e}"
1029
+ end
1030
+ ```
1031
+
1032
+ ### Parameters
1033
+
1034
+ Name | Type | Description | Notes
1035
+ ------------- | ------------- | ------------- | -------------
1036
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
1037
+ **order_id** | **String**| ID of the order. |
1038
+ **shipment** | [**BuyerShipment**](BuyerShipment.md)| |
1039
+
1040
+ ### Return type
1041
+
1042
+ [**Order**](Order.md)
1043
+
1044
+ ### Authorization
1045
+
1046
+ [oauth2](../README.md#oauth2)
1047
+
1048
+ ### HTTP request headers
1049
+
1050
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1051
+ - **Accept**: application/json
1052
+
1053
+
1054
+
1055
+ # **submit**
1056
+ > Order submit(direction, order_id)
1057
+
1058
+
1059
+
1060
+ ### Example
1061
+ ```ruby
1062
+ # load the gem
1063
+ require 'order_cloud'
1064
+ # setup authorization
1065
+ OrderCloud.configure do |config|
1066
+ # Configure OAuth2 access token for authorization: oauth2
1067
+ config.access_token = 'YOUR ACCESS TOKEN'
1068
+ end
1069
+
1070
+ api_instance = OrderCloud::OrderApi.new
1071
+
1072
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
1073
+
1074
+ order_id = "order_id_example" # String | ID of the order.
1075
+
1076
+
1077
+ begin
1078
+ result = api_instance.submit(direction, order_id)
1079
+ p result
1080
+ rescue OrderCloud::ApiError => e
1081
+ puts "Exception when calling OrderApi->submit: #{e}"
1082
+ end
1083
+ ```
1084
+
1085
+ ### Parameters
1086
+
1087
+ Name | Type | Description | Notes
1088
+ ------------- | ------------- | ------------- | -------------
1089
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
1090
+ **order_id** | **String**| ID of the order. |
1091
+
1092
+ ### Return type
1093
+
1094
+ [**Order**](Order.md)
1095
+
1096
+ ### Authorization
1097
+
1098
+ [oauth2](../README.md#oauth2)
1099
+
1100
+ ### HTTP request headers
1101
+
1102
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1103
+ - **Accept**: application/json
1104
+
1105
+
1106
+
1107
+ # **update**
1108
+ > Order update(direction, order_id, order)
1109
+
1110
+
1111
+
1112
+ ### Example
1113
+ ```ruby
1114
+ # load the gem
1115
+ require 'order_cloud'
1116
+ # setup authorization
1117
+ OrderCloud.configure do |config|
1118
+ # Configure OAuth2 access token for authorization: oauth2
1119
+ config.access_token = 'YOUR ACCESS TOKEN'
1120
+ end
1121
+
1122
+ api_instance = OrderCloud::OrderApi.new
1123
+
1124
+ direction = "direction_example" # String | Direction of the order. Possible values: Incoming, Outgoing.
1125
+
1126
+ order_id = "order_id_example" # String | ID of the order.
1127
+
1128
+ order = OrderCloud::Order.new # Order |
1129
+
1130
+
1131
+ begin
1132
+ result = api_instance.update(direction, order_id, order)
1133
+ p result
1134
+ rescue OrderCloud::ApiError => e
1135
+ puts "Exception when calling OrderApi->update: #{e}"
1136
+ end
1137
+ ```
1138
+
1139
+ ### Parameters
1140
+
1141
+ Name | Type | Description | Notes
1142
+ ------------- | ------------- | ------------- | -------------
1143
+ **direction** | **String**| Direction of the order. Possible values: Incoming, Outgoing. |
1144
+ **order_id** | **String**| ID of the order. |
1145
+ **order** | [**Order**](Order.md)| |
1146
+
1147
+ ### Return type
1148
+
1149
+ [**Order**](Order.md)
1150
+
1151
+ ### Authorization
1152
+
1153
+ [oauth2](../README.md#oauth2)
1154
+
1155
+ ### HTTP request headers
1156
+
1157
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1158
+ - **Accept**: application/json
1159
+
1160
+
1161
+