order_cloud 0.0.6 → 1.0.43

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