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,9 @@
1
+ # OrderCloud::ListShipmentItem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<ShipmentItem>**](ShipmentItem.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListSpec
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<Spec>**](Spec.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListSpecOption
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<SpecOption>**](SpecOption.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListSpecProductAssignment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<SpecProductAssignment>**](SpecProductAssignment.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListSpendingAccount
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<SpendingAccount>**](SpendingAccount.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListSpendingAccountAssignment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<SpendingAccountAssignment>**](SpendingAccountAssignment.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListSupplier
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<Supplier>**](Supplier.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListUser
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<User>**](User.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListUserGroup
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<UserGroup>**](UserGroup.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListUserGroupAssignment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<UserGroupAssignment>**](UserGroupAssignment.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # OrderCloud::ListVariant
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **items** | [**Array<Variant>**](Variant.md) | | [optional]
7
+ **meta** | [**Meta**](Meta.md) | | [optional]
8
+
9
+
@@ -0,0 +1,2002 @@
1
+ # OrderCloud::MeApi
2
+
3
+ All URIs are relative to *https://api.ordercloud.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_address**](MeApi.md#create_address) | **POST** /me/addresses |
8
+ [**create_credit_card**](MeApi.md#create_credit_card) | **POST** /me/creditcards |
9
+ [**delete_address**](MeApi.md#delete_address) | **DELETE** /me/addresses/{addressID} |
10
+ [**delete_credit_card**](MeApi.md#delete_credit_card) | **DELETE** /me/creditcards/{creditcardID} |
11
+ [**get**](MeApi.md#get) | **GET** /me |
12
+ [**get_address**](MeApi.md#get_address) | **GET** /me/addresses/{addressID} |
13
+ [**get_catalog**](MeApi.md#get_catalog) | **GET** /me/catalogs/{catalogID} |
14
+ [**get_credit_card**](MeApi.md#get_credit_card) | **GET** /me/creditcards/{creditcardID} |
15
+ [**get_product**](MeApi.md#get_product) | **GET** /me/products/{productID} |
16
+ [**get_promotion**](MeApi.md#get_promotion) | **GET** /me/promotions/{promotionID} |
17
+ [**get_shipment**](MeApi.md#get_shipment) | **GET** /me/shipments/{shipmentID} |
18
+ [**get_spec**](MeApi.md#get_spec) | **GET** /me/products/{productID}/specs/{specID} |
19
+ [**get_spending_account**](MeApi.md#get_spending_account) | **GET** /me/spendingaccounts/{spendingAccountID} |
20
+ [**list_addresses**](MeApi.md#list_addresses) | **GET** /me/addresses |
21
+ [**list_approvable_orders**](MeApi.md#list_approvable_orders) | **GET** /me/orders/approvable |
22
+ [**list_catalogs**](MeApi.md#list_catalogs) | **GET** /me/catalogs |
23
+ [**list_categories**](MeApi.md#list_categories) | **GET** /me/categories |
24
+ [**list_cost_centers**](MeApi.md#list_cost_centers) | **GET** /me/costcenters |
25
+ [**list_credit_cards**](MeApi.md#list_credit_cards) | **GET** /me/creditcards |
26
+ [**list_orders**](MeApi.md#list_orders) | **GET** /me/orders |
27
+ [**list_products**](MeApi.md#list_products) | **GET** /me/products |
28
+ [**list_promotions**](MeApi.md#list_promotions) | **GET** /me/promotions |
29
+ [**list_shipment_items**](MeApi.md#list_shipment_items) | **GET** /me/shipments/{shipmentID}/items |
30
+ [**list_shipments**](MeApi.md#list_shipments) | **GET** /me/shipments |
31
+ [**list_specs**](MeApi.md#list_specs) | **GET** /me/products/{productID}/specs |
32
+ [**list_spending_accounts**](MeApi.md#list_spending_accounts) | **GET** /me/spendingAccounts |
33
+ [**list_user_groups**](MeApi.md#list_user_groups) | **GET** /me/usergroups |
34
+ [**patch**](MeApi.md#patch) | **PATCH** /me |
35
+ [**patch_address**](MeApi.md#patch_address) | **PATCH** /me/addresses/{addressID} |
36
+ [**patch_credit_card**](MeApi.md#patch_credit_card) | **PATCH** /me/creditcards/{creditcardID} |
37
+ [**register**](MeApi.md#register) | **PUT** /me/register |
38
+ [**reset_password_by_token**](MeApi.md#reset_password_by_token) | **POST** /me/password |
39
+ [**transfer_anon_user_order**](MeApi.md#transfer_anon_user_order) | **PUT** /me/orders |
40
+ [**update**](MeApi.md#update) | **PUT** /me |
41
+ [**update_address**](MeApi.md#update_address) | **PUT** /me/addresses/{addressID} |
42
+ [**update_credit_card**](MeApi.md#update_credit_card) | **PUT** /me/creditcards/{creditcardID} |
43
+
44
+
45
+ # **create_address**
46
+ > BuyerAddress create_address(address)
47
+
48
+
49
+
50
+ ### Example
51
+ ```ruby
52
+ # load the gem
53
+ require 'order_cloud'
54
+ # setup authorization
55
+ OrderCloud.configure do |config|
56
+ # Configure OAuth2 access token for authorization: oauth2
57
+ config.access_token = 'YOUR ACCESS TOKEN'
58
+ end
59
+
60
+ api_instance = OrderCloud::MeApi.new
61
+
62
+ address = OrderCloud::BuyerAddress.new # BuyerAddress |
63
+
64
+
65
+ begin
66
+ result = api_instance.create_address(address)
67
+ p result
68
+ rescue OrderCloud::ApiError => e
69
+ puts "Exception when calling MeApi->create_address: #{e}"
70
+ end
71
+ ```
72
+
73
+ ### Parameters
74
+
75
+ Name | Type | Description | Notes
76
+ ------------- | ------------- | ------------- | -------------
77
+ **address** | [**BuyerAddress**](BuyerAddress.md)| |
78
+
79
+ ### Return type
80
+
81
+ [**BuyerAddress**](BuyerAddress.md)
82
+
83
+ ### Authorization
84
+
85
+ [oauth2](../README.md#oauth2)
86
+
87
+ ### HTTP request headers
88
+
89
+ - **Content-Type**: application/json, text/plain; charset=utf-8
90
+ - **Accept**: application/json
91
+
92
+
93
+
94
+ # **create_credit_card**
95
+ > BuyerCreditCard create_credit_card(credit_card)
96
+
97
+
98
+
99
+ ### Example
100
+ ```ruby
101
+ # load the gem
102
+ require 'order_cloud'
103
+ # setup authorization
104
+ OrderCloud.configure do |config|
105
+ # Configure OAuth2 access token for authorization: oauth2
106
+ config.access_token = 'YOUR ACCESS TOKEN'
107
+ end
108
+
109
+ api_instance = OrderCloud::MeApi.new
110
+
111
+ credit_card = OrderCloud::BuyerCreditCard.new # BuyerCreditCard |
112
+
113
+
114
+ begin
115
+ result = api_instance.create_credit_card(credit_card)
116
+ p result
117
+ rescue OrderCloud::ApiError => e
118
+ puts "Exception when calling MeApi->create_credit_card: #{e}"
119
+ end
120
+ ```
121
+
122
+ ### Parameters
123
+
124
+ Name | Type | Description | Notes
125
+ ------------- | ------------- | ------------- | -------------
126
+ **credit_card** | [**BuyerCreditCard**](BuyerCreditCard.md)| |
127
+
128
+ ### Return type
129
+
130
+ [**BuyerCreditCard**](BuyerCreditCard.md)
131
+
132
+ ### Authorization
133
+
134
+ [oauth2](../README.md#oauth2)
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: application/json, text/plain; charset=utf-8
139
+ - **Accept**: application/json
140
+
141
+
142
+
143
+ # **delete_address**
144
+ > delete_address(address_id)
145
+
146
+
147
+
148
+ ### Example
149
+ ```ruby
150
+ # load the gem
151
+ require 'order_cloud'
152
+ # setup authorization
153
+ OrderCloud.configure do |config|
154
+ # Configure OAuth2 access token for authorization: oauth2
155
+ config.access_token = 'YOUR ACCESS TOKEN'
156
+ end
157
+
158
+ api_instance = OrderCloud::MeApi.new
159
+
160
+ address_id = "address_id_example" # String | ID of the address.
161
+
162
+
163
+ begin
164
+ api_instance.delete_address(address_id)
165
+ rescue OrderCloud::ApiError => e
166
+ puts "Exception when calling MeApi->delete_address: #{e}"
167
+ end
168
+ ```
169
+
170
+ ### Parameters
171
+
172
+ Name | Type | Description | Notes
173
+ ------------- | ------------- | ------------- | -------------
174
+ **address_id** | **String**| ID of the address. |
175
+
176
+ ### Return type
177
+
178
+ nil (empty response body)
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
+ # **delete_credit_card**
192
+ > delete_credit_card(creditcard_id)
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::MeApi.new
207
+
208
+ creditcard_id = "creditcard_id_example" # String | ID of the creditcard.
209
+
210
+
211
+ begin
212
+ api_instance.delete_credit_card(creditcard_id)
213
+ rescue OrderCloud::ApiError => e
214
+ puts "Exception when calling MeApi->delete_credit_card: #{e}"
215
+ end
216
+ ```
217
+
218
+ ### Parameters
219
+
220
+ Name | Type | Description | Notes
221
+ ------------- | ------------- | ------------- | -------------
222
+ **creditcard_id** | **String**| ID of the creditcard. |
223
+
224
+ ### Return type
225
+
226
+ nil (empty response body)
227
+
228
+ ### Authorization
229
+
230
+ [oauth2](../README.md#oauth2)
231
+
232
+ ### HTTP request headers
233
+
234
+ - **Content-Type**: application/json, text/plain; charset=utf-8
235
+ - **Accept**: application/json
236
+
237
+
238
+
239
+ # **get**
240
+ > MeUser get
241
+
242
+
243
+
244
+ ### Example
245
+ ```ruby
246
+ # load the gem
247
+ require 'order_cloud'
248
+ # setup authorization
249
+ OrderCloud.configure do |config|
250
+ # Configure OAuth2 access token for authorization: oauth2
251
+ config.access_token = 'YOUR ACCESS TOKEN'
252
+ end
253
+
254
+ api_instance = OrderCloud::MeApi.new
255
+
256
+ begin
257
+ result = api_instance.get
258
+ p result
259
+ rescue OrderCloud::ApiError => e
260
+ puts "Exception when calling MeApi->get: #{e}"
261
+ end
262
+ ```
263
+
264
+ ### Parameters
265
+ This endpoint does not need any parameter.
266
+
267
+ ### Return type
268
+
269
+ [**MeUser**](MeUser.md)
270
+
271
+ ### Authorization
272
+
273
+ [oauth2](../README.md#oauth2)
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: application/json, text/plain; charset=utf-8
278
+ - **Accept**: application/json
279
+
280
+
281
+
282
+ # **get_address**
283
+ > BuyerAddress get_address(address_id)
284
+
285
+
286
+
287
+ ### Example
288
+ ```ruby
289
+ # load the gem
290
+ require 'order_cloud'
291
+ # setup authorization
292
+ OrderCloud.configure do |config|
293
+ # Configure OAuth2 access token for authorization: oauth2
294
+ config.access_token = 'YOUR ACCESS TOKEN'
295
+ end
296
+
297
+ api_instance = OrderCloud::MeApi.new
298
+
299
+ address_id = "address_id_example" # String | ID of the address.
300
+
301
+
302
+ begin
303
+ result = api_instance.get_address(address_id)
304
+ p result
305
+ rescue OrderCloud::ApiError => e
306
+ puts "Exception when calling MeApi->get_address: #{e}"
307
+ end
308
+ ```
309
+
310
+ ### Parameters
311
+
312
+ Name | Type | Description | Notes
313
+ ------------- | ------------- | ------------- | -------------
314
+ **address_id** | **String**| ID of the address. |
315
+
316
+ ### Return type
317
+
318
+ [**BuyerAddress**](BuyerAddress.md)
319
+
320
+ ### Authorization
321
+
322
+ [oauth2](../README.md#oauth2)
323
+
324
+ ### HTTP request headers
325
+
326
+ - **Content-Type**: application/json, text/plain; charset=utf-8
327
+ - **Accept**: application/json
328
+
329
+
330
+
331
+ # **get_catalog**
332
+ > Catalog get_catalog(catalog_id)
333
+
334
+
335
+
336
+ ### Example
337
+ ```ruby
338
+ # load the gem
339
+ require 'order_cloud'
340
+ # setup authorization
341
+ OrderCloud.configure do |config|
342
+ # Configure OAuth2 access token for authorization: oauth2
343
+ config.access_token = 'YOUR ACCESS TOKEN'
344
+ end
345
+
346
+ api_instance = OrderCloud::MeApi.new
347
+
348
+ catalog_id = "catalog_id_example" # String | ID of the catalog.
349
+
350
+
351
+ begin
352
+ result = api_instance.get_catalog(catalog_id)
353
+ p result
354
+ rescue OrderCloud::ApiError => e
355
+ puts "Exception when calling MeApi->get_catalog: #{e}"
356
+ end
357
+ ```
358
+
359
+ ### Parameters
360
+
361
+ Name | Type | Description | Notes
362
+ ------------- | ------------- | ------------- | -------------
363
+ **catalog_id** | **String**| ID of the catalog. |
364
+
365
+ ### Return type
366
+
367
+ [**Catalog**](Catalog.md)
368
+
369
+ ### Authorization
370
+
371
+ [oauth2](../README.md#oauth2)
372
+
373
+ ### HTTP request headers
374
+
375
+ - **Content-Type**: application/json, text/plain; charset=utf-8
376
+ - **Accept**: application/json
377
+
378
+
379
+
380
+ # **get_credit_card**
381
+ > BuyerCreditCard get_credit_card(creditcard_id)
382
+
383
+
384
+
385
+ ### Example
386
+ ```ruby
387
+ # load the gem
388
+ require 'order_cloud'
389
+ # setup authorization
390
+ OrderCloud.configure do |config|
391
+ # Configure OAuth2 access token for authorization: oauth2
392
+ config.access_token = 'YOUR ACCESS TOKEN'
393
+ end
394
+
395
+ api_instance = OrderCloud::MeApi.new
396
+
397
+ creditcard_id = "creditcard_id_example" # String | ID of the creditcard.
398
+
399
+
400
+ begin
401
+ result = api_instance.get_credit_card(creditcard_id)
402
+ p result
403
+ rescue OrderCloud::ApiError => e
404
+ puts "Exception when calling MeApi->get_credit_card: #{e}"
405
+ end
406
+ ```
407
+
408
+ ### Parameters
409
+
410
+ Name | Type | Description | Notes
411
+ ------------- | ------------- | ------------- | -------------
412
+ **creditcard_id** | **String**| ID of the creditcard. |
413
+
414
+ ### Return type
415
+
416
+ [**BuyerCreditCard**](BuyerCreditCard.md)
417
+
418
+ ### Authorization
419
+
420
+ [oauth2](../README.md#oauth2)
421
+
422
+ ### HTTP request headers
423
+
424
+ - **Content-Type**: application/json, text/plain; charset=utf-8
425
+ - **Accept**: application/json
426
+
427
+
428
+
429
+ # **get_product**
430
+ > BuyerProduct get_product(product_id)
431
+
432
+
433
+
434
+ ### Example
435
+ ```ruby
436
+ # load the gem
437
+ require 'order_cloud'
438
+ # setup authorization
439
+ OrderCloud.configure do |config|
440
+ # Configure OAuth2 access token for authorization: oauth2
441
+ config.access_token = 'YOUR ACCESS TOKEN'
442
+ end
443
+
444
+ api_instance = OrderCloud::MeApi.new
445
+
446
+ product_id = "product_id_example" # String | ID of the product.
447
+
448
+
449
+ begin
450
+ result = api_instance.get_product(product_id)
451
+ p result
452
+ rescue OrderCloud::ApiError => e
453
+ puts "Exception when calling MeApi->get_product: #{e}"
454
+ end
455
+ ```
456
+
457
+ ### Parameters
458
+
459
+ Name | Type | Description | Notes
460
+ ------------- | ------------- | ------------- | -------------
461
+ **product_id** | **String**| ID of the product. |
462
+
463
+ ### Return type
464
+
465
+ [**BuyerProduct**](BuyerProduct.md)
466
+
467
+ ### Authorization
468
+
469
+ [oauth2](../README.md#oauth2)
470
+
471
+ ### HTTP request headers
472
+
473
+ - **Content-Type**: application/json, text/plain; charset=utf-8
474
+ - **Accept**: application/json
475
+
476
+
477
+
478
+ # **get_promotion**
479
+ > Promotion get_promotion(promotion_id)
480
+
481
+
482
+
483
+ ### Example
484
+ ```ruby
485
+ # load the gem
486
+ require 'order_cloud'
487
+ # setup authorization
488
+ OrderCloud.configure do |config|
489
+ # Configure OAuth2 access token for authorization: oauth2
490
+ config.access_token = 'YOUR ACCESS TOKEN'
491
+ end
492
+
493
+ api_instance = OrderCloud::MeApi.new
494
+
495
+ promotion_id = "promotion_id_example" # String | ID of the promotion.
496
+
497
+
498
+ begin
499
+ result = api_instance.get_promotion(promotion_id)
500
+ p result
501
+ rescue OrderCloud::ApiError => e
502
+ puts "Exception when calling MeApi->get_promotion: #{e}"
503
+ end
504
+ ```
505
+
506
+ ### Parameters
507
+
508
+ Name | Type | Description | Notes
509
+ ------------- | ------------- | ------------- | -------------
510
+ **promotion_id** | **String**| ID of the promotion. |
511
+
512
+ ### Return type
513
+
514
+ [**Promotion**](Promotion.md)
515
+
516
+ ### Authorization
517
+
518
+ [oauth2](../README.md#oauth2)
519
+
520
+ ### HTTP request headers
521
+
522
+ - **Content-Type**: application/json, text/plain; charset=utf-8
523
+ - **Accept**: application/json
524
+
525
+
526
+
527
+ # **get_shipment**
528
+ > BuyerShipment get_shipment(shipment_id)
529
+
530
+
531
+
532
+ ### Example
533
+ ```ruby
534
+ # load the gem
535
+ require 'order_cloud'
536
+ # setup authorization
537
+ OrderCloud.configure do |config|
538
+ # Configure OAuth2 access token for authorization: oauth2
539
+ config.access_token = 'YOUR ACCESS TOKEN'
540
+ end
541
+
542
+ api_instance = OrderCloud::MeApi.new
543
+
544
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
545
+
546
+
547
+ begin
548
+ result = api_instance.get_shipment(shipment_id)
549
+ p result
550
+ rescue OrderCloud::ApiError => e
551
+ puts "Exception when calling MeApi->get_shipment: #{e}"
552
+ end
553
+ ```
554
+
555
+ ### Parameters
556
+
557
+ Name | Type | Description | Notes
558
+ ------------- | ------------- | ------------- | -------------
559
+ **shipment_id** | **String**| ID of the shipment. |
560
+
561
+ ### Return type
562
+
563
+ [**BuyerShipment**](BuyerShipment.md)
564
+
565
+ ### Authorization
566
+
567
+ [oauth2](../README.md#oauth2)
568
+
569
+ ### HTTP request headers
570
+
571
+ - **Content-Type**: application/json, text/plain; charset=utf-8
572
+ - **Accept**: application/json
573
+
574
+
575
+
576
+ # **get_spec**
577
+ > BuyerSpec get_spec(product_id, spec_id, opts)
578
+
579
+
580
+
581
+ ### Example
582
+ ```ruby
583
+ # load the gem
584
+ require 'order_cloud'
585
+ # setup authorization
586
+ OrderCloud.configure do |config|
587
+ # Configure OAuth2 access token for authorization: oauth2
588
+ config.access_token = 'YOUR ACCESS TOKEN'
589
+ end
590
+
591
+ api_instance = OrderCloud::MeApi.new
592
+
593
+ product_id = "product_id_example" # String | ID of the product.
594
+
595
+ spec_id = "spec_id_example" # String | ID of the spec.
596
+
597
+ opts = {
598
+ catalog_id: "catalog_id_example" # String | ID of the catalog.
599
+ }
600
+
601
+ begin
602
+ result = api_instance.get_spec(product_id, spec_id, opts)
603
+ p result
604
+ rescue OrderCloud::ApiError => e
605
+ puts "Exception when calling MeApi->get_spec: #{e}"
606
+ end
607
+ ```
608
+
609
+ ### Parameters
610
+
611
+ Name | Type | Description | Notes
612
+ ------------- | ------------- | ------------- | -------------
613
+ **product_id** | **String**| ID of the product. |
614
+ **spec_id** | **String**| ID of the spec. |
615
+ **catalog_id** | **String**| ID of the catalog. | [optional]
616
+
617
+ ### Return type
618
+
619
+ [**BuyerSpec**](BuyerSpec.md)
620
+
621
+ ### Authorization
622
+
623
+ [oauth2](../README.md#oauth2)
624
+
625
+ ### HTTP request headers
626
+
627
+ - **Content-Type**: application/json, text/plain; charset=utf-8
628
+ - **Accept**: application/json
629
+
630
+
631
+
632
+ # **get_spending_account**
633
+ > SpendingAccount get_spending_account(spending_account_id)
634
+
635
+
636
+
637
+ ### Example
638
+ ```ruby
639
+ # load the gem
640
+ require 'order_cloud'
641
+ # setup authorization
642
+ OrderCloud.configure do |config|
643
+ # Configure OAuth2 access token for authorization: oauth2
644
+ config.access_token = 'YOUR ACCESS TOKEN'
645
+ end
646
+
647
+ api_instance = OrderCloud::MeApi.new
648
+
649
+ spending_account_id = "spending_account_id_example" # String | ID of the spending account.
650
+
651
+
652
+ begin
653
+ result = api_instance.get_spending_account(spending_account_id)
654
+ p result
655
+ rescue OrderCloud::ApiError => e
656
+ puts "Exception when calling MeApi->get_spending_account: #{e}"
657
+ end
658
+ ```
659
+
660
+ ### Parameters
661
+
662
+ Name | Type | Description | Notes
663
+ ------------- | ------------- | ------------- | -------------
664
+ **spending_account_id** | **String**| ID of the spending account. |
665
+
666
+ ### Return type
667
+
668
+ [**SpendingAccount**](SpendingAccount.md)
669
+
670
+ ### Authorization
671
+
672
+ [oauth2](../README.md#oauth2)
673
+
674
+ ### HTTP request headers
675
+
676
+ - **Content-Type**: application/json, text/plain; charset=utf-8
677
+ - **Accept**: application/json
678
+
679
+
680
+
681
+ # **list_addresses**
682
+ > ListBuyerAddress list_addresses(opts)
683
+
684
+
685
+
686
+ ### Example
687
+ ```ruby
688
+ # load the gem
689
+ require 'order_cloud'
690
+ # setup authorization
691
+ OrderCloud.configure do |config|
692
+ # Configure OAuth2 access token for authorization: oauth2
693
+ config.access_token = 'YOUR ACCESS TOKEN'
694
+ end
695
+
696
+ api_instance = OrderCloud::MeApi.new
697
+
698
+ opts = {
699
+ search: "search_example", # String | Search of the address.
700
+ search_on: ["search_on_example"], # Array<String> | Search on of the address.
701
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the address.
702
+ page: 56, # Integer | Page of the address.
703
+ page_size: 56, # Integer | Page size of the address.
704
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the address.
705
+ }
706
+
707
+ begin
708
+ result = api_instance.list_addresses(opts)
709
+ p result
710
+ rescue OrderCloud::ApiError => e
711
+ puts "Exception when calling MeApi->list_addresses: #{e}"
712
+ end
713
+ ```
714
+
715
+ ### Parameters
716
+
717
+ Name | Type | Description | Notes
718
+ ------------- | ------------- | ------------- | -------------
719
+ **search** | **String**| Search of the address. | [optional]
720
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the address. | [optional]
721
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the address. | [optional]
722
+ **page** | **Integer**| Page of the address. | [optional]
723
+ **page_size** | **Integer**| Page size of the address. | [optional]
724
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the address. | [optional]
725
+
726
+ ### Return type
727
+
728
+ [**ListBuyerAddress**](ListBuyerAddress.md)
729
+
730
+ ### Authorization
731
+
732
+ [oauth2](../README.md#oauth2)
733
+
734
+ ### HTTP request headers
735
+
736
+ - **Content-Type**: application/json, text/plain; charset=utf-8
737
+ - **Accept**: application/json
738
+
739
+
740
+
741
+ # **list_approvable_orders**
742
+ > ListOrder list_approvable_orders(opts)
743
+
744
+
745
+
746
+ ### Example
747
+ ```ruby
748
+ # load the gem
749
+ require 'order_cloud'
750
+ # setup authorization
751
+ OrderCloud.configure do |config|
752
+ # Configure OAuth2 access token for authorization: oauth2
753
+ config.access_token = 'YOUR ACCESS TOKEN'
754
+ end
755
+
756
+ api_instance = OrderCloud::MeApi.new
757
+
758
+ opts = {
759
+ from: "from_example", # String | Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
760
+ to: "to_example", # String | Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
761
+ search: "search_example", # String | Search of the order.
762
+ search_on: ["search_on_example"], # Array<String> | Search on of the order.
763
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
764
+ page: 56, # Integer | Page of the order.
765
+ page_size: 56, # Integer | Page size of the order.
766
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
767
+ }
768
+
769
+ begin
770
+ result = api_instance.list_approvable_orders(opts)
771
+ p result
772
+ rescue OrderCloud::ApiError => e
773
+ puts "Exception when calling MeApi->list_approvable_orders: #{e}"
774
+ end
775
+ ```
776
+
777
+ ### Parameters
778
+
779
+ Name | Type | Description | Notes
780
+ ------------- | ------------- | ------------- | -------------
781
+ **from** | **String**| Lower bound of date range that the order was created (if outgoing) or submitted (if incoming). | [optional]
782
+ **to** | **String**| Upper bound of date range that the order was created (if outgoing) or submitted (if incoming). | [optional]
783
+ **search** | **String**| Search of the order. | [optional]
784
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the order. | [optional]
785
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the order. | [optional]
786
+ **page** | **Integer**| Page of the order. | [optional]
787
+ **page_size** | **Integer**| Page size of the order. | [optional]
788
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the order. | [optional]
789
+
790
+ ### Return type
791
+
792
+ [**ListOrder**](ListOrder.md)
793
+
794
+ ### Authorization
795
+
796
+ [oauth2](../README.md#oauth2)
797
+
798
+ ### HTTP request headers
799
+
800
+ - **Content-Type**: application/json, text/plain; charset=utf-8
801
+ - **Accept**: application/json
802
+
803
+
804
+
805
+ # **list_catalogs**
806
+ > ListCatalog list_catalogs(opts)
807
+
808
+
809
+
810
+ ### Example
811
+ ```ruby
812
+ # load the gem
813
+ require 'order_cloud'
814
+ # setup authorization
815
+ OrderCloud.configure do |config|
816
+ # Configure OAuth2 access token for authorization: oauth2
817
+ config.access_token = 'YOUR ACCESS TOKEN'
818
+ end
819
+
820
+ api_instance = OrderCloud::MeApi.new
821
+
822
+ opts = {
823
+ search: "search_example", # String | Search of the catalog.
824
+ search_on: ["search_on_example"], # Array<String> | Search on of the catalog.
825
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the catalog.
826
+ page: 56, # Integer | Page of the catalog.
827
+ page_size: 56, # Integer | Page size of the catalog.
828
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the catalog.
829
+ }
830
+
831
+ begin
832
+ result = api_instance.list_catalogs(opts)
833
+ p result
834
+ rescue OrderCloud::ApiError => e
835
+ puts "Exception when calling MeApi->list_catalogs: #{e}"
836
+ end
837
+ ```
838
+
839
+ ### Parameters
840
+
841
+ Name | Type | Description | Notes
842
+ ------------- | ------------- | ------------- | -------------
843
+ **search** | **String**| Search of the catalog. | [optional]
844
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the catalog. | [optional]
845
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the catalog. | [optional]
846
+ **page** | **Integer**| Page of the catalog. | [optional]
847
+ **page_size** | **Integer**| Page size of the catalog. | [optional]
848
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the catalog. | [optional]
849
+
850
+ ### Return type
851
+
852
+ [**ListCatalog**](ListCatalog.md)
853
+
854
+ ### Authorization
855
+
856
+ [oauth2](../README.md#oauth2)
857
+
858
+ ### HTTP request headers
859
+
860
+ - **Content-Type**: application/json, text/plain; charset=utf-8
861
+ - **Accept**: application/json
862
+
863
+
864
+
865
+ # **list_categories**
866
+ > ListCategory list_categories(opts)
867
+
868
+
869
+
870
+ ### Example
871
+ ```ruby
872
+ # load the gem
873
+ require 'order_cloud'
874
+ # setup authorization
875
+ OrderCloud.configure do |config|
876
+ # Configure OAuth2 access token for authorization: oauth2
877
+ config.access_token = 'YOUR ACCESS TOKEN'
878
+ end
879
+
880
+ api_instance = OrderCloud::MeApi.new
881
+
882
+ opts = {
883
+ depth: "depth_example", # String | Depth of the category.
884
+ catalog_id: "catalog_id_example", # String | ID of the catalog.
885
+ search: "search_example", # String | Search of the category.
886
+ search_on: ["search_on_example"], # Array<String> | Search on of the category.
887
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the category.
888
+ page: 56, # Integer | Page of the category.
889
+ page_size: 56, # Integer | Page size of the category.
890
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the category.
891
+ }
892
+
893
+ begin
894
+ result = api_instance.list_categories(opts)
895
+ p result
896
+ rescue OrderCloud::ApiError => e
897
+ puts "Exception when calling MeApi->list_categories: #{e}"
898
+ end
899
+ ```
900
+
901
+ ### Parameters
902
+
903
+ Name | Type | Description | Notes
904
+ ------------- | ------------- | ------------- | -------------
905
+ **depth** | **String**| Depth of the category. | [optional]
906
+ **catalog_id** | **String**| ID of the catalog. | [optional]
907
+ **search** | **String**| Search of the category. | [optional]
908
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the category. | [optional]
909
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the category. | [optional]
910
+ **page** | **Integer**| Page of the category. | [optional]
911
+ **page_size** | **Integer**| Page size of the category. | [optional]
912
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the category. | [optional]
913
+
914
+ ### Return type
915
+
916
+ [**ListCategory**](ListCategory.md)
917
+
918
+ ### Authorization
919
+
920
+ [oauth2](../README.md#oauth2)
921
+
922
+ ### HTTP request headers
923
+
924
+ - **Content-Type**: application/json, text/plain; charset=utf-8
925
+ - **Accept**: application/json
926
+
927
+
928
+
929
+ # **list_cost_centers**
930
+ > ListCostCenter list_cost_centers(opts)
931
+
932
+
933
+
934
+ ### Example
935
+ ```ruby
936
+ # load the gem
937
+ require 'order_cloud'
938
+ # setup authorization
939
+ OrderCloud.configure do |config|
940
+ # Configure OAuth2 access token for authorization: oauth2
941
+ config.access_token = 'YOUR ACCESS TOKEN'
942
+ end
943
+
944
+ api_instance = OrderCloud::MeApi.new
945
+
946
+ opts = {
947
+ search: "search_example", # String | Search of the cost center.
948
+ search_on: ["search_on_example"], # Array<String> | Search on of the cost center.
949
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the cost center.
950
+ page: 56, # Integer | Page of the cost center.
951
+ page_size: 56, # Integer | Page size of the cost center.
952
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the cost center.
953
+ }
954
+
955
+ begin
956
+ result = api_instance.list_cost_centers(opts)
957
+ p result
958
+ rescue OrderCloud::ApiError => e
959
+ puts "Exception when calling MeApi->list_cost_centers: #{e}"
960
+ end
961
+ ```
962
+
963
+ ### Parameters
964
+
965
+ Name | Type | Description | Notes
966
+ ------------- | ------------- | ------------- | -------------
967
+ **search** | **String**| Search of the cost center. | [optional]
968
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the cost center. | [optional]
969
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the cost center. | [optional]
970
+ **page** | **Integer**| Page of the cost center. | [optional]
971
+ **page_size** | **Integer**| Page size of the cost center. | [optional]
972
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the cost center. | [optional]
973
+
974
+ ### Return type
975
+
976
+ [**ListCostCenter**](ListCostCenter.md)
977
+
978
+ ### Authorization
979
+
980
+ [oauth2](../README.md#oauth2)
981
+
982
+ ### HTTP request headers
983
+
984
+ - **Content-Type**: application/json, text/plain; charset=utf-8
985
+ - **Accept**: application/json
986
+
987
+
988
+
989
+ # **list_credit_cards**
990
+ > ListBuyerCreditCard list_credit_cards(opts)
991
+
992
+
993
+
994
+ ### Example
995
+ ```ruby
996
+ # load the gem
997
+ require 'order_cloud'
998
+ # setup authorization
999
+ OrderCloud.configure do |config|
1000
+ # Configure OAuth2 access token for authorization: oauth2
1001
+ config.access_token = 'YOUR ACCESS TOKEN'
1002
+ end
1003
+
1004
+ api_instance = OrderCloud::MeApi.new
1005
+
1006
+ opts = {
1007
+ search: "search_example", # String | Search of the credit card.
1008
+ search_on: ["search_on_example"], # Array<String> | Search on of the credit card.
1009
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the credit card.
1010
+ page: 56, # Integer | Page of the credit card.
1011
+ page_size: 56, # Integer | Page size of the credit card.
1012
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the credit card.
1013
+ }
1014
+
1015
+ begin
1016
+ result = api_instance.list_credit_cards(opts)
1017
+ p result
1018
+ rescue OrderCloud::ApiError => e
1019
+ puts "Exception when calling MeApi->list_credit_cards: #{e}"
1020
+ end
1021
+ ```
1022
+
1023
+ ### Parameters
1024
+
1025
+ Name | Type | Description | Notes
1026
+ ------------- | ------------- | ------------- | -------------
1027
+ **search** | **String**| Search of the credit card. | [optional]
1028
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the credit card. | [optional]
1029
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the credit card. | [optional]
1030
+ **page** | **Integer**| Page of the credit card. | [optional]
1031
+ **page_size** | **Integer**| Page size of the credit card. | [optional]
1032
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the credit card. | [optional]
1033
+
1034
+ ### Return type
1035
+
1036
+ [**ListBuyerCreditCard**](ListBuyerCreditCard.md)
1037
+
1038
+ ### Authorization
1039
+
1040
+ [oauth2](../README.md#oauth2)
1041
+
1042
+ ### HTTP request headers
1043
+
1044
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1045
+ - **Accept**: application/json
1046
+
1047
+
1048
+
1049
+ # **list_orders**
1050
+ > ListOrder list_orders(opts)
1051
+
1052
+
1053
+
1054
+ ### Example
1055
+ ```ruby
1056
+ # load the gem
1057
+ require 'order_cloud'
1058
+ # setup authorization
1059
+ OrderCloud.configure do |config|
1060
+ # Configure OAuth2 access token for authorization: oauth2
1061
+ config.access_token = 'YOUR ACCESS TOKEN'
1062
+ end
1063
+
1064
+ api_instance = OrderCloud::MeApi.new
1065
+
1066
+ opts = {
1067
+ from: "from_example", # String | Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
1068
+ to: "to_example", # String | Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
1069
+ search: "search_example", # String | Search of the order.
1070
+ search_on: ["search_on_example"], # Array<String> | Search on of the order.
1071
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the order.
1072
+ page: 56, # Integer | Page of the order.
1073
+ page_size: 56, # Integer | Page size of the order.
1074
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the order.
1075
+ }
1076
+
1077
+ begin
1078
+ result = api_instance.list_orders(opts)
1079
+ p result
1080
+ rescue OrderCloud::ApiError => e
1081
+ puts "Exception when calling MeApi->list_orders: #{e}"
1082
+ end
1083
+ ```
1084
+
1085
+ ### Parameters
1086
+
1087
+ Name | Type | Description | Notes
1088
+ ------------- | ------------- | ------------- | -------------
1089
+ **from** | **String**| Lower bound of date range that the order was created (if outgoing) or submitted (if incoming). | [optional]
1090
+ **to** | **String**| Upper bound of date range that the order was created (if outgoing) or submitted (if incoming). | [optional]
1091
+ **search** | **String**| Search of the order. | [optional]
1092
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the order. | [optional]
1093
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the order. | [optional]
1094
+ **page** | **Integer**| Page of the order. | [optional]
1095
+ **page_size** | **Integer**| Page size of the order. | [optional]
1096
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the order. | [optional]
1097
+
1098
+ ### Return type
1099
+
1100
+ [**ListOrder**](ListOrder.md)
1101
+
1102
+ ### Authorization
1103
+
1104
+ [oauth2](../README.md#oauth2)
1105
+
1106
+ ### HTTP request headers
1107
+
1108
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1109
+ - **Accept**: application/json
1110
+
1111
+
1112
+
1113
+ # **list_products**
1114
+ > ListBuyerProduct list_products(opts)
1115
+
1116
+
1117
+
1118
+ ### Example
1119
+ ```ruby
1120
+ # load the gem
1121
+ require 'order_cloud'
1122
+ # setup authorization
1123
+ OrderCloud.configure do |config|
1124
+ # Configure OAuth2 access token for authorization: oauth2
1125
+ config.access_token = 'YOUR ACCESS TOKEN'
1126
+ end
1127
+
1128
+ api_instance = OrderCloud::MeApi.new
1129
+
1130
+ opts = {
1131
+ catalog_id: "catalog_id_example", # String | ID of the catalog.
1132
+ category_id: "category_id_example", # String | ID of the category.
1133
+ depth: "depth_example", # String | Depth of the product.
1134
+ search: "search_example", # String | Search of the product.
1135
+ search_on: ["search_on_example"], # Array<String> | Search on of the product.
1136
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the product.
1137
+ page: 56, # Integer | Page of the product.
1138
+ page_size: 56, # Integer | Page size of the product.
1139
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the product.
1140
+ }
1141
+
1142
+ begin
1143
+ result = api_instance.list_products(opts)
1144
+ p result
1145
+ rescue OrderCloud::ApiError => e
1146
+ puts "Exception when calling MeApi->list_products: #{e}"
1147
+ end
1148
+ ```
1149
+
1150
+ ### Parameters
1151
+
1152
+ Name | Type | Description | Notes
1153
+ ------------- | ------------- | ------------- | -------------
1154
+ **catalog_id** | **String**| ID of the catalog. | [optional]
1155
+ **category_id** | **String**| ID of the category. | [optional]
1156
+ **depth** | **String**| Depth of the product. | [optional]
1157
+ **search** | **String**| Search of the product. | [optional]
1158
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the product. | [optional]
1159
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the product. | [optional]
1160
+ **page** | **Integer**| Page of the product. | [optional]
1161
+ **page_size** | **Integer**| Page size of the product. | [optional]
1162
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the product. | [optional]
1163
+
1164
+ ### Return type
1165
+
1166
+ [**ListBuyerProduct**](ListBuyerProduct.md)
1167
+
1168
+ ### Authorization
1169
+
1170
+ [oauth2](../README.md#oauth2)
1171
+
1172
+ ### HTTP request headers
1173
+
1174
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1175
+ - **Accept**: application/json
1176
+
1177
+
1178
+
1179
+ # **list_promotions**
1180
+ > ListPromotion list_promotions(opts)
1181
+
1182
+
1183
+
1184
+ ### Example
1185
+ ```ruby
1186
+ # load the gem
1187
+ require 'order_cloud'
1188
+ # setup authorization
1189
+ OrderCloud.configure do |config|
1190
+ # Configure OAuth2 access token for authorization: oauth2
1191
+ config.access_token = 'YOUR ACCESS TOKEN'
1192
+ end
1193
+
1194
+ api_instance = OrderCloud::MeApi.new
1195
+
1196
+ opts = {
1197
+ search: "search_example", # String | Search of the promotion.
1198
+ search_on: ["search_on_example"], # Array<String> | Search on of the promotion.
1199
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the promotion.
1200
+ page: 56, # Integer | Page of the promotion.
1201
+ page_size: 56, # Integer | Page size of the promotion.
1202
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the promotion.
1203
+ }
1204
+
1205
+ begin
1206
+ result = api_instance.list_promotions(opts)
1207
+ p result
1208
+ rescue OrderCloud::ApiError => e
1209
+ puts "Exception when calling MeApi->list_promotions: #{e}"
1210
+ end
1211
+ ```
1212
+
1213
+ ### Parameters
1214
+
1215
+ Name | Type | Description | Notes
1216
+ ------------- | ------------- | ------------- | -------------
1217
+ **search** | **String**| Search of the promotion. | [optional]
1218
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the promotion. | [optional]
1219
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the promotion. | [optional]
1220
+ **page** | **Integer**| Page of the promotion. | [optional]
1221
+ **page_size** | **Integer**| Page size of the promotion. | [optional]
1222
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the promotion. | [optional]
1223
+
1224
+ ### Return type
1225
+
1226
+ [**ListPromotion**](ListPromotion.md)
1227
+
1228
+ ### Authorization
1229
+
1230
+ [oauth2](../README.md#oauth2)
1231
+
1232
+ ### HTTP request headers
1233
+
1234
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1235
+ - **Accept**: application/json
1236
+
1237
+
1238
+
1239
+ # **list_shipment_items**
1240
+ > ListShipmentItem list_shipment_items(shipment_id, opts)
1241
+
1242
+
1243
+
1244
+ ### Example
1245
+ ```ruby
1246
+ # load the gem
1247
+ require 'order_cloud'
1248
+ # setup authorization
1249
+ OrderCloud.configure do |config|
1250
+ # Configure OAuth2 access token for authorization: oauth2
1251
+ config.access_token = 'YOUR ACCESS TOKEN'
1252
+ end
1253
+
1254
+ api_instance = OrderCloud::MeApi.new
1255
+
1256
+ shipment_id = "shipment_id_example" # String | ID of the shipment.
1257
+
1258
+ opts = {
1259
+ order_id: "order_id_example", # String | ID of the order.
1260
+ search: "search_example", # String | Search of the shipment.
1261
+ search_on: ["search_on_example"], # Array<String> | Search on of the shipment.
1262
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the shipment.
1263
+ page: 56, # Integer | Page of the shipment.
1264
+ page_size: 56, # Integer | Page size of the shipment.
1265
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the shipment.
1266
+ }
1267
+
1268
+ begin
1269
+ result = api_instance.list_shipment_items(shipment_id, opts)
1270
+ p result
1271
+ rescue OrderCloud::ApiError => e
1272
+ puts "Exception when calling MeApi->list_shipment_items: #{e}"
1273
+ end
1274
+ ```
1275
+
1276
+ ### Parameters
1277
+
1278
+ Name | Type | Description | Notes
1279
+ ------------- | ------------- | ------------- | -------------
1280
+ **shipment_id** | **String**| ID of the shipment. |
1281
+ **order_id** | **String**| ID of the order. | [optional]
1282
+ **search** | **String**| Search of the shipment. | [optional]
1283
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the shipment. | [optional]
1284
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the shipment. | [optional]
1285
+ **page** | **Integer**| Page of the shipment. | [optional]
1286
+ **page_size** | **Integer**| Page size of the shipment. | [optional]
1287
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the shipment. | [optional]
1288
+
1289
+ ### Return type
1290
+
1291
+ [**ListShipmentItem**](ListShipmentItem.md)
1292
+
1293
+ ### Authorization
1294
+
1295
+ [oauth2](../README.md#oauth2)
1296
+
1297
+ ### HTTP request headers
1298
+
1299
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1300
+ - **Accept**: application/json
1301
+
1302
+
1303
+
1304
+ # **list_shipments**
1305
+ > ListBuyerShipment list_shipments(opts)
1306
+
1307
+
1308
+
1309
+ ### Example
1310
+ ```ruby
1311
+ # load the gem
1312
+ require 'order_cloud'
1313
+ # setup authorization
1314
+ OrderCloud.configure do |config|
1315
+ # Configure OAuth2 access token for authorization: oauth2
1316
+ config.access_token = 'YOUR ACCESS TOKEN'
1317
+ end
1318
+
1319
+ api_instance = OrderCloud::MeApi.new
1320
+
1321
+ opts = {
1322
+ order_id: "order_id_example", # String | ID of the order.
1323
+ search: "search_example", # String | Search of the shipment.
1324
+ search_on: ["search_on_example"], # Array<String> | Search on of the shipment.
1325
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the shipment.
1326
+ page: 56, # Integer | Page of the shipment.
1327
+ page_size: 56, # Integer | Page size of the shipment.
1328
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the shipment.
1329
+ }
1330
+
1331
+ begin
1332
+ result = api_instance.list_shipments(opts)
1333
+ p result
1334
+ rescue OrderCloud::ApiError => e
1335
+ puts "Exception when calling MeApi->list_shipments: #{e}"
1336
+ end
1337
+ ```
1338
+
1339
+ ### Parameters
1340
+
1341
+ Name | Type | Description | Notes
1342
+ ------------- | ------------- | ------------- | -------------
1343
+ **order_id** | **String**| ID of the order. | [optional]
1344
+ **search** | **String**| Search of the shipment. | [optional]
1345
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the shipment. | [optional]
1346
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the shipment. | [optional]
1347
+ **page** | **Integer**| Page of the shipment. | [optional]
1348
+ **page_size** | **Integer**| Page size of the shipment. | [optional]
1349
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the shipment. | [optional]
1350
+
1351
+ ### Return type
1352
+
1353
+ [**ListBuyerShipment**](ListBuyerShipment.md)
1354
+
1355
+ ### Authorization
1356
+
1357
+ [oauth2](../README.md#oauth2)
1358
+
1359
+ ### HTTP request headers
1360
+
1361
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1362
+ - **Accept**: application/json
1363
+
1364
+
1365
+
1366
+ # **list_specs**
1367
+ > ListBuyerSpec list_specs(product_id, opts)
1368
+
1369
+
1370
+
1371
+ ### Example
1372
+ ```ruby
1373
+ # load the gem
1374
+ require 'order_cloud'
1375
+ # setup authorization
1376
+ OrderCloud.configure do |config|
1377
+ # Configure OAuth2 access token for authorization: oauth2
1378
+ config.access_token = 'YOUR ACCESS TOKEN'
1379
+ end
1380
+
1381
+ api_instance = OrderCloud::MeApi.new
1382
+
1383
+ product_id = "product_id_example" # String | ID of the product.
1384
+
1385
+ opts = {
1386
+ catalog_id: "catalog_id_example", # String | ID of the catalog.
1387
+ search: "search_example", # String | Search of the product.
1388
+ search_on: ["search_on_example"], # Array<String> | Search on of the product.
1389
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the product.
1390
+ page: 56, # Integer | Page of the product.
1391
+ page_size: 56, # Integer | Page size of the product.
1392
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the product.
1393
+ }
1394
+
1395
+ begin
1396
+ result = api_instance.list_specs(product_id, opts)
1397
+ p result
1398
+ rescue OrderCloud::ApiError => e
1399
+ puts "Exception when calling MeApi->list_specs: #{e}"
1400
+ end
1401
+ ```
1402
+
1403
+ ### Parameters
1404
+
1405
+ Name | Type | Description | Notes
1406
+ ------------- | ------------- | ------------- | -------------
1407
+ **product_id** | **String**| ID of the product. |
1408
+ **catalog_id** | **String**| ID of the catalog. | [optional]
1409
+ **search** | **String**| Search of the product. | [optional]
1410
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the product. | [optional]
1411
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the product. | [optional]
1412
+ **page** | **Integer**| Page of the product. | [optional]
1413
+ **page_size** | **Integer**| Page size of the product. | [optional]
1414
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the product. | [optional]
1415
+
1416
+ ### Return type
1417
+
1418
+ [**ListBuyerSpec**](ListBuyerSpec.md)
1419
+
1420
+ ### Authorization
1421
+
1422
+ [oauth2](../README.md#oauth2)
1423
+
1424
+ ### HTTP request headers
1425
+
1426
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1427
+ - **Accept**: application/json
1428
+
1429
+
1430
+
1431
+ # **list_spending_accounts**
1432
+ > ListSpendingAccount list_spending_accounts(opts)
1433
+
1434
+
1435
+
1436
+ ### Example
1437
+ ```ruby
1438
+ # load the gem
1439
+ require 'order_cloud'
1440
+ # setup authorization
1441
+ OrderCloud.configure do |config|
1442
+ # Configure OAuth2 access token for authorization: oauth2
1443
+ config.access_token = 'YOUR ACCESS TOKEN'
1444
+ end
1445
+
1446
+ api_instance = OrderCloud::MeApi.new
1447
+
1448
+ opts = {
1449
+ search: "search_example", # String | Search of the spending account.
1450
+ search_on: ["search_on_example"], # Array<String> | Search on of the spending account.
1451
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the spending account.
1452
+ page: 56, # Integer | Page of the spending account.
1453
+ page_size: 56, # Integer | Page size of the spending account.
1454
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the spending account.
1455
+ }
1456
+
1457
+ begin
1458
+ result = api_instance.list_spending_accounts(opts)
1459
+ p result
1460
+ rescue OrderCloud::ApiError => e
1461
+ puts "Exception when calling MeApi->list_spending_accounts: #{e}"
1462
+ end
1463
+ ```
1464
+
1465
+ ### Parameters
1466
+
1467
+ Name | Type | Description | Notes
1468
+ ------------- | ------------- | ------------- | -------------
1469
+ **search** | **String**| Search of the spending account. | [optional]
1470
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the spending account. | [optional]
1471
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the spending account. | [optional]
1472
+ **page** | **Integer**| Page of the spending account. | [optional]
1473
+ **page_size** | **Integer**| Page size of the spending account. | [optional]
1474
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the spending account. | [optional]
1475
+
1476
+ ### Return type
1477
+
1478
+ [**ListSpendingAccount**](ListSpendingAccount.md)
1479
+
1480
+ ### Authorization
1481
+
1482
+ [oauth2](../README.md#oauth2)
1483
+
1484
+ ### HTTP request headers
1485
+
1486
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1487
+ - **Accept**: application/json
1488
+
1489
+
1490
+
1491
+ # **list_user_groups**
1492
+ > ListUserGroup list_user_groups(opts)
1493
+
1494
+
1495
+
1496
+ ### Example
1497
+ ```ruby
1498
+ # load the gem
1499
+ require 'order_cloud'
1500
+ # setup authorization
1501
+ OrderCloud.configure do |config|
1502
+ # Configure OAuth2 access token for authorization: oauth2
1503
+ config.access_token = 'YOUR ACCESS TOKEN'
1504
+ end
1505
+
1506
+ api_instance = OrderCloud::MeApi.new
1507
+
1508
+ opts = {
1509
+ search: "search_example", # String | Search of the user group.
1510
+ search_on: ["search_on_example"], # Array<String> | Search on of the user group.
1511
+ sort_by: ["sort_by_example"], # Array<String> | Sort by of the user group.
1512
+ page: 56, # Integer | Page of the user group.
1513
+ page_size: 56, # Integer | Page size of the user group.
1514
+ filters: {'key' => "filters_example"} # Hash<String, String> | Filters of the user group.
1515
+ }
1516
+
1517
+ begin
1518
+ result = api_instance.list_user_groups(opts)
1519
+ p result
1520
+ rescue OrderCloud::ApiError => e
1521
+ puts "Exception when calling MeApi->list_user_groups: #{e}"
1522
+ end
1523
+ ```
1524
+
1525
+ ### Parameters
1526
+
1527
+ Name | Type | Description | Notes
1528
+ ------------- | ------------- | ------------- | -------------
1529
+ **search** | **String**| Search of the user group. | [optional]
1530
+ **search_on** | [**Array&lt;String&gt;**](String.md)| Search on of the user group. | [optional]
1531
+ **sort_by** | [**Array&lt;String&gt;**](String.md)| Sort by of the user group. | [optional]
1532
+ **page** | **Integer**| Page of the user group. | [optional]
1533
+ **page_size** | **Integer**| Page size of the user group. | [optional]
1534
+ **filters** | [**Hash&lt;String, String&gt;**](String.md)| Filters of the user group. | [optional]
1535
+
1536
+ ### Return type
1537
+
1538
+ [**ListUserGroup**](ListUserGroup.md)
1539
+
1540
+ ### Authorization
1541
+
1542
+ [oauth2](../README.md#oauth2)
1543
+
1544
+ ### HTTP request headers
1545
+
1546
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1547
+ - **Accept**: application/json
1548
+
1549
+
1550
+
1551
+ # **patch**
1552
+ > MeUser patch(user)
1553
+
1554
+
1555
+
1556
+ ### Example
1557
+ ```ruby
1558
+ # load the gem
1559
+ require 'order_cloud'
1560
+ # setup authorization
1561
+ OrderCloud.configure do |config|
1562
+ # Configure OAuth2 access token for authorization: oauth2
1563
+ config.access_token = 'YOUR ACCESS TOKEN'
1564
+ end
1565
+
1566
+ api_instance = OrderCloud::MeApi.new
1567
+
1568
+ user = OrderCloud::User.new # User |
1569
+
1570
+
1571
+ begin
1572
+ result = api_instance.patch(user)
1573
+ p result
1574
+ rescue OrderCloud::ApiError => e
1575
+ puts "Exception when calling MeApi->patch: #{e}"
1576
+ end
1577
+ ```
1578
+
1579
+ ### Parameters
1580
+
1581
+ Name | Type | Description | Notes
1582
+ ------------- | ------------- | ------------- | -------------
1583
+ **user** | [**User**](User.md)| |
1584
+
1585
+ ### Return type
1586
+
1587
+ [**MeUser**](MeUser.md)
1588
+
1589
+ ### Authorization
1590
+
1591
+ [oauth2](../README.md#oauth2)
1592
+
1593
+ ### HTTP request headers
1594
+
1595
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1596
+ - **Accept**: application/json
1597
+
1598
+
1599
+
1600
+ # **patch_address**
1601
+ > patch_address(address_id, address)
1602
+
1603
+
1604
+
1605
+ ### Example
1606
+ ```ruby
1607
+ # load the gem
1608
+ require 'order_cloud'
1609
+ # setup authorization
1610
+ OrderCloud.configure do |config|
1611
+ # Configure OAuth2 access token for authorization: oauth2
1612
+ config.access_token = 'YOUR ACCESS TOKEN'
1613
+ end
1614
+
1615
+ api_instance = OrderCloud::MeApi.new
1616
+
1617
+ address_id = "address_id_example" # String | ID of the address.
1618
+
1619
+ address = OrderCloud::Address.new # Address |
1620
+
1621
+
1622
+ begin
1623
+ api_instance.patch_address(address_id, address)
1624
+ rescue OrderCloud::ApiError => e
1625
+ puts "Exception when calling MeApi->patch_address: #{e}"
1626
+ end
1627
+ ```
1628
+
1629
+ ### Parameters
1630
+
1631
+ Name | Type | Description | Notes
1632
+ ------------- | ------------- | ------------- | -------------
1633
+ **address_id** | **String**| ID of the address. |
1634
+ **address** | [**Address**](Address.md)| |
1635
+
1636
+ ### Return type
1637
+
1638
+ nil (empty response body)
1639
+
1640
+ ### Authorization
1641
+
1642
+ [oauth2](../README.md#oauth2)
1643
+
1644
+ ### HTTP request headers
1645
+
1646
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1647
+ - **Accept**: application/json
1648
+
1649
+
1650
+
1651
+ # **patch_credit_card**
1652
+ > patch_credit_card(creditcard_id, credit_card)
1653
+
1654
+
1655
+
1656
+ ### Example
1657
+ ```ruby
1658
+ # load the gem
1659
+ require 'order_cloud'
1660
+ # setup authorization
1661
+ OrderCloud.configure do |config|
1662
+ # Configure OAuth2 access token for authorization: oauth2
1663
+ config.access_token = 'YOUR ACCESS TOKEN'
1664
+ end
1665
+
1666
+ api_instance = OrderCloud::MeApi.new
1667
+
1668
+ creditcard_id = "creditcard_id_example" # String | ID of the creditcard.
1669
+
1670
+ credit_card = OrderCloud::CreditCard.new # CreditCard |
1671
+
1672
+
1673
+ begin
1674
+ api_instance.patch_credit_card(creditcard_id, credit_card)
1675
+ rescue OrderCloud::ApiError => e
1676
+ puts "Exception when calling MeApi->patch_credit_card: #{e}"
1677
+ end
1678
+ ```
1679
+
1680
+ ### Parameters
1681
+
1682
+ Name | Type | Description | Notes
1683
+ ------------- | ------------- | ------------- | -------------
1684
+ **creditcard_id** | **String**| ID of the creditcard. |
1685
+ **credit_card** | [**CreditCard**](CreditCard.md)| |
1686
+
1687
+ ### Return type
1688
+
1689
+ nil (empty response body)
1690
+
1691
+ ### Authorization
1692
+
1693
+ [oauth2](../README.md#oauth2)
1694
+
1695
+ ### HTTP request headers
1696
+
1697
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1698
+ - **Accept**: application/json
1699
+
1700
+
1701
+
1702
+ # **register**
1703
+ > Object register(anon_user_token, user)
1704
+
1705
+
1706
+
1707
+ ### Example
1708
+ ```ruby
1709
+ # load the gem
1710
+ require 'order_cloud'
1711
+ # setup authorization
1712
+ OrderCloud.configure do |config|
1713
+ # Configure OAuth2 access token for authorization: oauth2
1714
+ config.access_token = 'YOUR ACCESS TOKEN'
1715
+ end
1716
+
1717
+ api_instance = OrderCloud::MeApi.new
1718
+
1719
+ anon_user_token = "anon_user_token_example" # String | Anon user token of the me.
1720
+
1721
+ user = OrderCloud::User.new # User |
1722
+
1723
+
1724
+ begin
1725
+ result = api_instance.register(anon_user_token, user)
1726
+ p result
1727
+ rescue OrderCloud::ApiError => e
1728
+ puts "Exception when calling MeApi->register: #{e}"
1729
+ end
1730
+ ```
1731
+
1732
+ ### Parameters
1733
+
1734
+ Name | Type | Description | Notes
1735
+ ------------- | ------------- | ------------- | -------------
1736
+ **anon_user_token** | **String**| Anon user token of the me. |
1737
+ **user** | [**User**](User.md)| |
1738
+
1739
+ ### Return type
1740
+
1741
+ **Object**
1742
+
1743
+ ### Authorization
1744
+
1745
+ [oauth2](../README.md#oauth2)
1746
+
1747
+ ### HTTP request headers
1748
+
1749
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1750
+ - **Accept**: application/json
1751
+
1752
+
1753
+
1754
+ # **reset_password_by_token**
1755
+ > reset_password_by_token(reset)
1756
+
1757
+
1758
+
1759
+ ### Example
1760
+ ```ruby
1761
+ # load the gem
1762
+ require 'order_cloud'
1763
+ # setup authorization
1764
+ OrderCloud.configure do |config|
1765
+ # Configure OAuth2 access token for authorization: oauth2
1766
+ config.access_token = 'YOUR ACCESS TOKEN'
1767
+ end
1768
+
1769
+ api_instance = OrderCloud::MeApi.new
1770
+
1771
+ reset = OrderCloud::TokenPasswordReset.new # TokenPasswordReset |
1772
+
1773
+
1774
+ begin
1775
+ api_instance.reset_password_by_token(reset)
1776
+ rescue OrderCloud::ApiError => e
1777
+ puts "Exception when calling MeApi->reset_password_by_token: #{e}"
1778
+ end
1779
+ ```
1780
+
1781
+ ### Parameters
1782
+
1783
+ Name | Type | Description | Notes
1784
+ ------------- | ------------- | ------------- | -------------
1785
+ **reset** | [**TokenPasswordReset**](TokenPasswordReset.md)| |
1786
+
1787
+ ### Return type
1788
+
1789
+ nil (empty response body)
1790
+
1791
+ ### Authorization
1792
+
1793
+ [oauth2](../README.md#oauth2)
1794
+
1795
+ ### HTTP request headers
1796
+
1797
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1798
+ - **Accept**: application/json
1799
+
1800
+
1801
+
1802
+ # **transfer_anon_user_order**
1803
+ > transfer_anon_user_order(anon_user_token)
1804
+
1805
+
1806
+
1807
+ ### Example
1808
+ ```ruby
1809
+ # load the gem
1810
+ require 'order_cloud'
1811
+ # setup authorization
1812
+ OrderCloud.configure do |config|
1813
+ # Configure OAuth2 access token for authorization: oauth2
1814
+ config.access_token = 'YOUR ACCESS TOKEN'
1815
+ end
1816
+
1817
+ api_instance = OrderCloud::MeApi.new
1818
+
1819
+ anon_user_token = "anon_user_token_example" # String | Anon user token of the me.
1820
+
1821
+
1822
+ begin
1823
+ api_instance.transfer_anon_user_order(anon_user_token)
1824
+ rescue OrderCloud::ApiError => e
1825
+ puts "Exception when calling MeApi->transfer_anon_user_order: #{e}"
1826
+ end
1827
+ ```
1828
+
1829
+ ### Parameters
1830
+
1831
+ Name | Type | Description | Notes
1832
+ ------------- | ------------- | ------------- | -------------
1833
+ **anon_user_token** | **String**| Anon user token of the me. |
1834
+
1835
+ ### Return type
1836
+
1837
+ nil (empty response body)
1838
+
1839
+ ### Authorization
1840
+
1841
+ [oauth2](../README.md#oauth2)
1842
+
1843
+ ### HTTP request headers
1844
+
1845
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1846
+ - **Accept**: application/json
1847
+
1848
+
1849
+
1850
+ # **update**
1851
+ > MeUser update(user)
1852
+
1853
+
1854
+
1855
+ ### Example
1856
+ ```ruby
1857
+ # load the gem
1858
+ require 'order_cloud'
1859
+ # setup authorization
1860
+ OrderCloud.configure do |config|
1861
+ # Configure OAuth2 access token for authorization: oauth2
1862
+ config.access_token = 'YOUR ACCESS TOKEN'
1863
+ end
1864
+
1865
+ api_instance = OrderCloud::MeApi.new
1866
+
1867
+ user = OrderCloud::User.new # User |
1868
+
1869
+
1870
+ begin
1871
+ result = api_instance.update(user)
1872
+ p result
1873
+ rescue OrderCloud::ApiError => e
1874
+ puts "Exception when calling MeApi->update: #{e}"
1875
+ end
1876
+ ```
1877
+
1878
+ ### Parameters
1879
+
1880
+ Name | Type | Description | Notes
1881
+ ------------- | ------------- | ------------- | -------------
1882
+ **user** | [**User**](User.md)| |
1883
+
1884
+ ### Return type
1885
+
1886
+ [**MeUser**](MeUser.md)
1887
+
1888
+ ### Authorization
1889
+
1890
+ [oauth2](../README.md#oauth2)
1891
+
1892
+ ### HTTP request headers
1893
+
1894
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1895
+ - **Accept**: application/json
1896
+
1897
+
1898
+
1899
+ # **update_address**
1900
+ > BuyerAddress update_address(address_id, address)
1901
+
1902
+
1903
+
1904
+ ### Example
1905
+ ```ruby
1906
+ # load the gem
1907
+ require 'order_cloud'
1908
+ # setup authorization
1909
+ OrderCloud.configure do |config|
1910
+ # Configure OAuth2 access token for authorization: oauth2
1911
+ config.access_token = 'YOUR ACCESS TOKEN'
1912
+ end
1913
+
1914
+ api_instance = OrderCloud::MeApi.new
1915
+
1916
+ address_id = "address_id_example" # String | ID of the address.
1917
+
1918
+ address = OrderCloud::BuyerAddress.new # BuyerAddress |
1919
+
1920
+
1921
+ begin
1922
+ result = api_instance.update_address(address_id, address)
1923
+ p result
1924
+ rescue OrderCloud::ApiError => e
1925
+ puts "Exception when calling MeApi->update_address: #{e}"
1926
+ end
1927
+ ```
1928
+
1929
+ ### Parameters
1930
+
1931
+ Name | Type | Description | Notes
1932
+ ------------- | ------------- | ------------- | -------------
1933
+ **address_id** | **String**| ID of the address. |
1934
+ **address** | [**BuyerAddress**](BuyerAddress.md)| |
1935
+
1936
+ ### Return type
1937
+
1938
+ [**BuyerAddress**](BuyerAddress.md)
1939
+
1940
+ ### Authorization
1941
+
1942
+ [oauth2](../README.md#oauth2)
1943
+
1944
+ ### HTTP request headers
1945
+
1946
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1947
+ - **Accept**: application/json
1948
+
1949
+
1950
+
1951
+ # **update_credit_card**
1952
+ > BuyerCreditCard update_credit_card(creditcard_id, credit_card)
1953
+
1954
+
1955
+
1956
+ ### Example
1957
+ ```ruby
1958
+ # load the gem
1959
+ require 'order_cloud'
1960
+ # setup authorization
1961
+ OrderCloud.configure do |config|
1962
+ # Configure OAuth2 access token for authorization: oauth2
1963
+ config.access_token = 'YOUR ACCESS TOKEN'
1964
+ end
1965
+
1966
+ api_instance = OrderCloud::MeApi.new
1967
+
1968
+ creditcard_id = "creditcard_id_example" # String | ID of the creditcard.
1969
+
1970
+ credit_card = OrderCloud::BuyerCreditCard.new # BuyerCreditCard |
1971
+
1972
+
1973
+ begin
1974
+ result = api_instance.update_credit_card(creditcard_id, credit_card)
1975
+ p result
1976
+ rescue OrderCloud::ApiError => e
1977
+ puts "Exception when calling MeApi->update_credit_card: #{e}"
1978
+ end
1979
+ ```
1980
+
1981
+ ### Parameters
1982
+
1983
+ Name | Type | Description | Notes
1984
+ ------------- | ------------- | ------------- | -------------
1985
+ **creditcard_id** | **String**| ID of the creditcard. |
1986
+ **credit_card** | [**BuyerCreditCard**](BuyerCreditCard.md)| |
1987
+
1988
+ ### Return type
1989
+
1990
+ [**BuyerCreditCard**](BuyerCreditCard.md)
1991
+
1992
+ ### Authorization
1993
+
1994
+ [oauth2](../README.md#oauth2)
1995
+
1996
+ ### HTTP request headers
1997
+
1998
+ - **Content-Type**: application/json, text/plain; charset=utf-8
1999
+ - **Accept**: application/json
2000
+
2001
+
2002
+