order_cloud 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +476 -0
  4. data/Rakefile +31 -0
  5. data/docs/AccessToken.md +10 -0
  6. data/docs/Address.md +20 -0
  7. data/docs/AddressApi.md +520 -0
  8. data/docs/AddressAssignment.md +12 -0
  9. data/docs/AdminAddressApi.md +324 -0
  10. data/docs/AdminCompany.md +10 -0
  11. data/docs/AdminModelOnView.md +7 -0
  12. data/docs/AdminUserApi.md +323 -0
  13. data/docs/ApprovalRule.md +20 -0
  14. data/docs/ApprovalRuleApi.md +342 -0
  15. data/docs/BaseSpec.md +15 -0
  16. data/docs/Buyer.md +11 -0
  17. data/docs/BuyerAddress.md +11 -0
  18. data/docs/BuyerApi.md +324 -0
  19. data/docs/BuyerCreditCard.md +9 -0
  20. data/docs/BuyerProduct.md +9 -0
  21. data/docs/BuyerSpec.md +9 -0
  22. data/docs/Category.md +15 -0
  23. data/docs/CategoryApi.md +684 -0
  24. data/docs/CategoryAssignment.md +10 -0
  25. data/docs/CategoryProductAssignment.md +10 -0
  26. data/docs/CostCenter.md +11 -0
  27. data/docs/CostCenterApi.md +516 -0
  28. data/docs/CostCenterAssignment.md +10 -0
  29. data/docs/CreditCard.md +15 -0
  30. data/docs/CreditCardApi.md +516 -0
  31. data/docs/CreditCardAssignment.md +10 -0
  32. data/docs/EmailTemplate.md +12 -0
  33. data/docs/EmailTemplateApi.md +223 -0
  34. data/docs/File.md +10 -0
  35. data/docs/FileApi.md +162 -0
  36. data/docs/ImpersonateTokenRequest.md +9 -0
  37. data/docs/Inventory.md +12 -0
  38. data/docs/LineItem.md +23 -0
  39. data/docs/LineItemApi.md +478 -0
  40. data/docs/LineItemSpec.md +11 -0
  41. data/docs/ListAddress.md +9 -0
  42. data/docs/ListAddressAssignment.md +9 -0
  43. data/docs/ListAdminCompany.md +9 -0
  44. data/docs/ListApiClient.md +9 -0
  45. data/docs/ListApprovalRule.md +9 -0
  46. data/docs/ListBuyer.md +9 -0
  47. data/docs/ListBuyerAddress.md +9 -0
  48. data/docs/ListBuyerCreditCard.md +9 -0
  49. data/docs/ListBuyerProduct.md +9 -0
  50. data/docs/ListBuyerSpec.md +9 -0
  51. data/docs/ListCategory.md +9 -0
  52. data/docs/ListCategoryAssignment.md +9 -0
  53. data/docs/ListCategoryProductAssignment.md +9 -0
  54. data/docs/ListCostCenter.md +9 -0
  55. data/docs/ListCostCenterAssignment.md +9 -0
  56. data/docs/ListCreditCard.md +9 -0
  57. data/docs/ListCreditCardAssignment.md +9 -0
  58. data/docs/ListDevAccessibleCompany.md +9 -0
  59. data/docs/ListFile.md +9 -0
  60. data/docs/ListInventory.md +9 -0
  61. data/docs/ListLineItem.md +9 -0
  62. data/docs/ListOrder.md +9 -0
  63. data/docs/ListOrderApproval.md +9 -0
  64. data/docs/ListOrderPromotion.md +9 -0
  65. data/docs/ListPayment.md +9 -0
  66. data/docs/ListPriceSchedule.md +9 -0
  67. data/docs/ListProduct.md +9 -0
  68. data/docs/ListProductAssignment.md +9 -0
  69. data/docs/ListPromotion.md +9 -0
  70. data/docs/ListPromotionAssignment.md +9 -0
  71. data/docs/ListSecurityProfile.md +9 -0
  72. data/docs/ListSecurityProfileAssignment.md +9 -0
  73. data/docs/ListShipment.md +9 -0
  74. data/docs/ListSpec.md +9 -0
  75. data/docs/ListSpecOption.md +9 -0
  76. data/docs/ListSpecProductAssignment.md +9 -0
  77. data/docs/ListSpendingAccount.md +9 -0
  78. data/docs/ListSpendingAccountAssignment.md +9 -0
  79. data/docs/ListUser.md +9 -0
  80. data/docs/ListUserGroup.md +9 -0
  81. data/docs/ListUserGroupAssignment.md +9 -0
  82. data/docs/ListVariant.md +9 -0
  83. data/docs/ListWebHook.md +9 -0
  84. data/docs/ListWebHookRoute.md +9 -0
  85. data/docs/ListXpIndex.md +9 -0
  86. data/docs/MeApi.md +1488 -0
  87. data/docs/Meta.md +12 -0
  88. data/docs/Order.md +31 -0
  89. data/docs/OrderApi.md +1277 -0
  90. data/docs/OrderApproval.md +16 -0
  91. data/docs/OrderPromotion.md +8 -0
  92. data/docs/PasswordReset.md +10 -0
  93. data/docs/PasswordResetApi.md +109 -0
  94. data/docs/PasswordResetRequest.md +11 -0
  95. data/docs/Payment.md +16 -0
  96. data/docs/PaymentApi.md +601 -0
  97. data/docs/PaymentTransaction.md +15 -0
  98. data/docs/PingResponse.md +8 -0
  99. data/docs/PriceBreak.md +9 -0
  100. data/docs/PriceSchedule.md +18 -0
  101. data/docs/PriceScheduleApi.md +429 -0
  102. data/docs/Product.md +22 -0
  103. data/docs/ProductApi.md +1115 -0
  104. data/docs/ProductAssignment.md +13 -0
  105. data/docs/Promotion.md +21 -0
  106. data/docs/PromotionApi.md +495 -0
  107. data/docs/PromotionAssignment.md +11 -0
  108. data/docs/SecurityProfile.md +11 -0
  109. data/docs/SecurityProfileApi.md +290 -0
  110. data/docs/SecurityProfileAssignment.md +11 -0
  111. data/docs/Shipment.md +14 -0
  112. data/docs/ShipmentApi.md +459 -0
  113. data/docs/ShipmentItem.md +10 -0
  114. data/docs/Spec.md +8 -0
  115. data/docs/SpecApi.md +816 -0
  116. data/docs/SpecOption.md +14 -0
  117. data/docs/SpecProductAssignment.md +10 -0
  118. data/docs/SpendingAccount.md +15 -0
  119. data/docs/SpendingAccountApi.md +516 -0
  120. data/docs/SpendingAccountAssignment.md +11 -0
  121. data/docs/User.md +17 -0
  122. data/docs/UserApi.md +399 -0
  123. data/docs/UserGroup.md +11 -0
  124. data/docs/UserGroupApi.md +508 -0
  125. data/docs/UserGroupAssignment.md +9 -0
  126. data/docs/Variant.md +12 -0
  127. data/docs/WebHook.md +18 -0
  128. data/docs/WebHookRoute.md +10 -0
  129. data/docs/XpIndex.md +9 -0
  130. data/git_push.sh +67 -0
  131. data/lib/order_cloud.rb +176 -0
  132. data/lib/order_cloud/api/address_api.rb +628 -0
  133. data/lib/order_cloud/api/admin_address_api.rb +397 -0
  134. data/lib/order_cloud/api/admin_user_api.rb +396 -0
  135. data/lib/order_cloud/api/approval_rule_api.rb +421 -0
  136. data/lib/order_cloud/api/buyer_api.rb +397 -0
  137. data/lib/order_cloud/api/category_api.rb +817 -0
  138. data/lib/order_cloud/api/cost_center_api.rb +622 -0
  139. data/lib/order_cloud/api/credit_card_api.rb +622 -0
  140. data/lib/order_cloud/api/email_template_api.rb +283 -0
  141. data/lib/order_cloud/api/file_api.rb +206 -0
  142. data/lib/order_cloud/api/line_item_api.rb +583 -0
  143. data/lib/order_cloud/api/me_api.rb +1747 -0
  144. data/lib/order_cloud/api/order_api.rb +1509 -0
  145. data/lib/order_cloud/api/password_reset_api.rb +150 -0
  146. data/lib/order_cloud/api/payment_api.rb +728 -0
  147. data/lib/order_cloud/api/price_schedule_api.rb +519 -0
  148. data/lib/order_cloud/api/product_api.rb +1311 -0
  149. data/lib/order_cloud/api/promotion_api.rb +596 -0
  150. data/lib/order_cloud/api/security_profile_api.rb +361 -0
  151. data/lib/order_cloud/api/shipment_api.rb +558 -0
  152. data/lib/order_cloud/api/spec_api.rb +965 -0
  153. data/lib/order_cloud/api/spending_account_api.rb +622 -0
  154. data/lib/order_cloud/api/user_api.rb +488 -0
  155. data/lib/order_cloud/api/user_group_api.rb +613 -0
  156. data/lib/order_cloud/api_auth.rb +99 -0
  157. data/lib/order_cloud/api_client.rb +385 -0
  158. data/lib/order_cloud/api_error.rb +47 -0
  159. data/lib/order_cloud/configuration.rb +244 -0
  160. data/lib/order_cloud/models/access_token.rb +217 -0
  161. data/lib/order_cloud/models/address.rb +307 -0
  162. data/lib/order_cloud/models/address_assignment.rb +235 -0
  163. data/lib/order_cloud/models/admin_company.rb +217 -0
  164. data/lib/order_cloud/models/admin_model_on_view.rb +190 -0
  165. data/lib/order_cloud/models/approval_rule.rb +307 -0
  166. data/lib/order_cloud/models/base_spec.rb +262 -0
  167. data/lib/order_cloud/models/buyer.rb +226 -0
  168. data/lib/order_cloud/models/buyer_address.rb +226 -0
  169. data/lib/order_cloud/models/buyer_credit_card.rb +208 -0
  170. data/lib/order_cloud/models/buyer_product.rb +208 -0
  171. data/lib/order_cloud/models/buyer_spec.rb +210 -0
  172. data/lib/order_cloud/models/category.rb +262 -0
  173. data/lib/order_cloud/models/category_assignment.rb +217 -0
  174. data/lib/order_cloud/models/category_product_assignment.rb +217 -0
  175. data/lib/order_cloud/models/cost_center.rb +226 -0
  176. data/lib/order_cloud/models/cost_center_assignment.rb +217 -0
  177. data/lib/order_cloud/models/credit_card.rb +262 -0
  178. data/lib/order_cloud/models/credit_card_assignment.rb +217 -0
  179. data/lib/order_cloud/models/email_template.rb +235 -0
  180. data/lib/order_cloud/models/file.rb +217 -0
  181. data/lib/order_cloud/models/impersonate_token_request.rb +208 -0
  182. data/lib/order_cloud/models/inventory.rb +235 -0
  183. data/lib/order_cloud/models/line_item.rb +336 -0
  184. data/lib/order_cloud/models/line_item_spec.rb +226 -0
  185. data/lib/order_cloud/models/list_address.rb +210 -0
  186. data/lib/order_cloud/models/list_address_assignment.rb +210 -0
  187. data/lib/order_cloud/models/list_admin_company.rb +210 -0
  188. data/lib/order_cloud/models/list_api_client.rb +210 -0
  189. data/lib/order_cloud/models/list_approval_rule.rb +210 -0
  190. data/lib/order_cloud/models/list_buyer.rb +210 -0
  191. data/lib/order_cloud/models/list_buyer_address.rb +210 -0
  192. data/lib/order_cloud/models/list_buyer_credit_card.rb +210 -0
  193. data/lib/order_cloud/models/list_buyer_product.rb +210 -0
  194. data/lib/order_cloud/models/list_buyer_spec.rb +210 -0
  195. data/lib/order_cloud/models/list_category.rb +210 -0
  196. data/lib/order_cloud/models/list_category_assignment.rb +210 -0
  197. data/lib/order_cloud/models/list_category_product_assignment.rb +210 -0
  198. data/lib/order_cloud/models/list_cost_center.rb +210 -0
  199. data/lib/order_cloud/models/list_cost_center_assignment.rb +210 -0
  200. data/lib/order_cloud/models/list_credit_card.rb +210 -0
  201. data/lib/order_cloud/models/list_credit_card_assignment.rb +210 -0
  202. data/lib/order_cloud/models/list_dev_accessible_company.rb +210 -0
  203. data/lib/order_cloud/models/list_file.rb +210 -0
  204. data/lib/order_cloud/models/list_inventory.rb +210 -0
  205. data/lib/order_cloud/models/list_line_item.rb +210 -0
  206. data/lib/order_cloud/models/list_order.rb +210 -0
  207. data/lib/order_cloud/models/list_order_approval.rb +210 -0
  208. data/lib/order_cloud/models/list_order_promotion.rb +210 -0
  209. data/lib/order_cloud/models/list_payment.rb +210 -0
  210. data/lib/order_cloud/models/list_price_schedule.rb +210 -0
  211. data/lib/order_cloud/models/list_product.rb +210 -0
  212. data/lib/order_cloud/models/list_product_assignment.rb +210 -0
  213. data/lib/order_cloud/models/list_promotion.rb +210 -0
  214. data/lib/order_cloud/models/list_promotion_assignment.rb +210 -0
  215. data/lib/order_cloud/models/list_security_profile.rb +210 -0
  216. data/lib/order_cloud/models/list_security_profile_assignment.rb +210 -0
  217. data/lib/order_cloud/models/list_shipment.rb +210 -0
  218. data/lib/order_cloud/models/list_spec.rb +210 -0
  219. data/lib/order_cloud/models/list_spec_option.rb +210 -0
  220. data/lib/order_cloud/models/list_spec_product_assignment.rb +210 -0
  221. data/lib/order_cloud/models/list_spending_account.rb +210 -0
  222. data/lib/order_cloud/models/list_spending_account_assignment.rb +210 -0
  223. data/lib/order_cloud/models/list_user.rb +210 -0
  224. data/lib/order_cloud/models/list_user_group.rb +210 -0
  225. data/lib/order_cloud/models/list_user_group_assignment.rb +210 -0
  226. data/lib/order_cloud/models/list_variant.rb +210 -0
  227. data/lib/order_cloud/models/list_web_hook.rb +210 -0
  228. data/lib/order_cloud/models/list_web_hook_route.rb +210 -0
  229. data/lib/order_cloud/models/list_xp_index.rb +210 -0
  230. data/lib/order_cloud/models/meta.rb +237 -0
  231. data/lib/order_cloud/models/order.rb +406 -0
  232. data/lib/order_cloud/models/order_approval.rb +271 -0
  233. data/lib/order_cloud/models/order_promotion.rb +199 -0
  234. data/lib/order_cloud/models/password_reset.rb +217 -0
  235. data/lib/order_cloud/models/password_reset_request.rb +226 -0
  236. data/lib/order_cloud/models/payment.rb +273 -0
  237. data/lib/order_cloud/models/payment_transaction.rb +262 -0
  238. data/lib/order_cloud/models/ping_response.rb +199 -0
  239. data/lib/order_cloud/models/price_break.rb +208 -0
  240. data/lib/order_cloud/models/price_schedule.rb +291 -0
  241. data/lib/order_cloud/models/product.rb +325 -0
  242. data/lib/order_cloud/models/product_assignment.rb +244 -0
  243. data/lib/order_cloud/models/promotion.rb +316 -0
  244. data/lib/order_cloud/models/promotion_assignment.rb +226 -0
  245. data/lib/order_cloud/models/security_profile.rb +228 -0
  246. data/lib/order_cloud/models/security_profile_assignment.rb +226 -0
  247. data/lib/order_cloud/models/shipment.rb +255 -0
  248. data/lib/order_cloud/models/shipment_item.rb +217 -0
  249. data/lib/order_cloud/models/spec.rb +199 -0
  250. data/lib/order_cloud/models/spec_option.rb +253 -0
  251. data/lib/order_cloud/models/spec_product_assignment.rb +217 -0
  252. data/lib/order_cloud/models/spending_account.rb +262 -0
  253. data/lib/order_cloud/models/spending_account_assignment.rb +226 -0
  254. data/lib/order_cloud/models/user.rb +280 -0
  255. data/lib/order_cloud/models/user_group.rb +226 -0
  256. data/lib/order_cloud/models/user_group_assignment.rb +208 -0
  257. data/lib/order_cloud/models/variant.rb +235 -0
  258. data/lib/order_cloud/models/web_hook.rb +289 -0
  259. data/lib/order_cloud/models/web_hook_route.rb +217 -0
  260. data/lib/order_cloud/models/xp_index.rb +208 -0
  261. data/lib/order_cloud/version.rb +26 -0
  262. data/order_cloud.gemspec +56 -0
  263. data/spec/api/address_api_spec.rb +179 -0
  264. data/spec/api/admin_address_api_spec.rb +125 -0
  265. data/spec/api/admin_user_api_spec.rb +125 -0
  266. data/spec/api/approval_rule_api_spec.rb +131 -0
  267. data/spec/api/buyer_api_spec.rb +125 -0
  268. data/spec/api/category_api_spec.rb +221 -0
  269. data/spec/api/cost_center_api_spec.rb +177 -0
  270. data/spec/api/credit_card_api_spec.rb +177 -0
  271. data/spec/api/email_template_api_spec.rb +100 -0
  272. data/spec/api/file_api_spec.rb +83 -0
  273. data/spec/api/line_item_api_spec.rb +167 -0
  274. data/spec/api/me_api_spec.rb +431 -0
  275. data/spec/api/order_api_spec.rb +375 -0
  276. data/spec/api/password_reset_api_spec.rb +71 -0
  277. data/spec/api/payment_api_spec.rb +199 -0
  278. data/spec/api/price_schedule_api_spec.rb +151 -0
  279. data/spec/api/product_api_spec.rb +330 -0
  280. data/spec/api/promotion_api_spec.rb +170 -0
  281. data/spec/api/security_profile_api_spec.rb +120 -0
  282. data/spec/api/shipment_api_spec.rb +161 -0
  283. data/spec/api/spec_api_spec.rb +250 -0
  284. data/spec/api/spending_account_api_spec.rb +177 -0
  285. data/spec/api/user_api_spec.rb +146 -0
  286. data/spec/api/user_group_api_spec.rb +174 -0
  287. data/spec/api_auth_spec.rb +165 -0
  288. data/spec/api_client_spec.rb +237 -0
  289. data/spec/configuration_spec.rb +80 -0
  290. data/spec/models/access_token_spec.rb +65 -0
  291. data/spec/models/address_assignment_spec.rb +77 -0
  292. data/spec/models/address_spec.rb +125 -0
  293. data/spec/models/admin_company_spec.rb +65 -0
  294. data/spec/models/admin_model_on_view_spec.rb +47 -0
  295. data/spec/models/approval_rule_spec.rb +125 -0
  296. data/spec/models/base_spec_spec.rb +95 -0
  297. data/spec/models/buyer_address_spec.rb +71 -0
  298. data/spec/models/buyer_credit_card_spec.rb +59 -0
  299. data/spec/models/buyer_product_spec.rb +59 -0
  300. data/spec/models/buyer_spec.rb +71 -0
  301. data/spec/models/buyer_spec_spec.rb +59 -0
  302. data/spec/models/category_assignment_spec.rb +65 -0
  303. data/spec/models/category_product_assignment_spec.rb +65 -0
  304. data/spec/models/category_spec.rb +95 -0
  305. data/spec/models/cost_center_assignment_spec.rb +65 -0
  306. data/spec/models/cost_center_spec.rb +71 -0
  307. data/spec/models/credit_card_assignment_spec.rb +65 -0
  308. data/spec/models/credit_card_spec.rb +95 -0
  309. data/spec/models/email_template_spec.rb +77 -0
  310. data/spec/models/file_spec.rb +65 -0
  311. data/spec/models/impersonate_token_request_spec.rb +59 -0
  312. data/spec/models/inventory_spec.rb +77 -0
  313. data/spec/models/line_item_spec.rb +143 -0
  314. data/spec/models/line_item_spec_spec.rb +71 -0
  315. data/spec/models/list_address_assignment_spec.rb +59 -0
  316. data/spec/models/list_address_spec.rb +59 -0
  317. data/spec/models/list_admin_company_spec.rb +59 -0
  318. data/spec/models/list_api_client_spec.rb +59 -0
  319. data/spec/models/list_approval_rule_spec.rb +59 -0
  320. data/spec/models/list_buyer_address_spec.rb +59 -0
  321. data/spec/models/list_buyer_credit_card_spec.rb +59 -0
  322. data/spec/models/list_buyer_product_spec.rb +59 -0
  323. data/spec/models/list_buyer_spec.rb +59 -0
  324. data/spec/models/list_buyer_spec_spec.rb +59 -0
  325. data/spec/models/list_category_assignment_spec.rb +59 -0
  326. data/spec/models/list_category_product_assignment_spec.rb +59 -0
  327. data/spec/models/list_category_spec.rb +59 -0
  328. data/spec/models/list_cost_center_assignment_spec.rb +59 -0
  329. data/spec/models/list_cost_center_spec.rb +59 -0
  330. data/spec/models/list_credit_card_assignment_spec.rb +59 -0
  331. data/spec/models/list_credit_card_spec.rb +59 -0
  332. data/spec/models/list_dev_accessible_company_spec.rb +59 -0
  333. data/spec/models/list_file_spec.rb +59 -0
  334. data/spec/models/list_inventory_spec.rb +59 -0
  335. data/spec/models/list_line_item_spec.rb +59 -0
  336. data/spec/models/list_order_approval_spec.rb +59 -0
  337. data/spec/models/list_order_promotion_spec.rb +59 -0
  338. data/spec/models/list_order_spec.rb +59 -0
  339. data/spec/models/list_payment_spec.rb +59 -0
  340. data/spec/models/list_price_schedule_spec.rb +59 -0
  341. data/spec/models/list_product_assignment_spec.rb +59 -0
  342. data/spec/models/list_product_spec.rb +59 -0
  343. data/spec/models/list_promotion_assignment_spec.rb +59 -0
  344. data/spec/models/list_promotion_spec.rb +59 -0
  345. data/spec/models/list_security_profile_assignment_spec.rb +59 -0
  346. data/spec/models/list_security_profile_spec.rb +59 -0
  347. data/spec/models/list_shipment_spec.rb +59 -0
  348. data/spec/models/list_spec_option_spec.rb +59 -0
  349. data/spec/models/list_spec_product_assignment_spec.rb +59 -0
  350. data/spec/models/list_spec_spec.rb +59 -0
  351. data/spec/models/list_spending_account_assignment_spec.rb +59 -0
  352. data/spec/models/list_spending_account_spec.rb +59 -0
  353. data/spec/models/list_user_group_assignment_spec.rb +59 -0
  354. data/spec/models/list_user_group_spec.rb +59 -0
  355. data/spec/models/list_user_spec.rb +59 -0
  356. data/spec/models/list_variant_spec.rb +59 -0
  357. data/spec/models/list_web_hook_route_spec.rb +59 -0
  358. data/spec/models/list_web_hook_spec.rb +59 -0
  359. data/spec/models/list_xp_index_spec.rb +59 -0
  360. data/spec/models/meta_spec.rb +77 -0
  361. data/spec/models/order_approval_spec.rb +101 -0
  362. data/spec/models/order_promotion_spec.rb +53 -0
  363. data/spec/models/order_spec.rb +191 -0
  364. data/spec/models/password_reset_request_spec.rb +71 -0
  365. data/spec/models/password_reset_spec.rb +65 -0
  366. data/spec/models/payment_spec.rb +101 -0
  367. data/spec/models/payment_transaction_spec.rb +95 -0
  368. data/spec/models/ping_response_spec.rb +53 -0
  369. data/spec/models/price_break_spec.rb +59 -0
  370. data/spec/models/price_schedule_spec.rb +113 -0
  371. data/spec/models/product_assignment_spec.rb +83 -0
  372. data/spec/models/product_spec.rb +137 -0
  373. data/spec/models/promotion_assignment_spec.rb +71 -0
  374. data/spec/models/promotion_spec.rb +131 -0
  375. data/spec/models/security_profile_assignment_spec.rb +71 -0
  376. data/spec/models/security_profile_spec.rb +71 -0
  377. data/spec/models/shipment_item_spec.rb +65 -0
  378. data/spec/models/shipment_spec.rb +89 -0
  379. data/spec/models/spec_option_spec.rb +89 -0
  380. data/spec/models/spec_product_assignment_spec.rb +65 -0
  381. data/spec/models/spec_spec.rb +53 -0
  382. data/spec/models/spending_account_assignment_spec.rb +71 -0
  383. data/spec/models/spending_account_spec.rb +95 -0
  384. data/spec/models/user_group_assignment_spec.rb +59 -0
  385. data/spec/models/user_group_spec.rb +71 -0
  386. data/spec/models/user_spec.rb +107 -0
  387. data/spec/models/variant_spec.rb +77 -0
  388. data/spec/models/web_hook_route_spec.rb +65 -0
  389. data/spec/models/web_hook_spec.rb +113 -0
  390. data/spec/models/xp_index_spec.rb +59 -0
  391. data/spec/spec_helper.rb +122 -0
  392. metadata +757 -0
@@ -0,0 +1,16 @@
1
+ # OrderCloud::OrderApproval
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **approval_rule_id** | **String** | | [optional]
7
+ **approving_group_id** | **String** | | [optional]
8
+ **status** | **String** | | [optional]
9
+ **date_created** | **String** | | [optional]
10
+ **date_completed** | **String** | | [optional]
11
+ **approver_id** | **String** | | [optional]
12
+ **approver_user_name** | **String** | | [optional]
13
+ **approver_email** | **String** | | [optional]
14
+ **comments** | **String** | | [optional]
15
+
16
+
@@ -0,0 +1,8 @@
1
+ # OrderCloud::OrderPromotion
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **amount** | **Float** | | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # OrderCloud::PasswordReset
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **client_id** | **String** | | [optional]
7
+ **username** | **String** | | [optional]
8
+ **password** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,109 @@
1
+ # OrderCloud::PasswordResetApi
2
+
3
+ All URIs are relative to *https://api.ordercloud.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**reset_password**](PasswordResetApi.md#reset_password) | **PUT** /password/reset/{verificationCode} |
8
+ [**send_verification_code**](PasswordResetApi.md#send_verification_code) | **POST** /password/reset |
9
+
10
+
11
+ # **reset_password**
12
+ > reset_password(verification_code, password_reset)
13
+
14
+
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'order_cloud'
20
+ # setup authorization
21
+ OrderCloud.configure do |config|
22
+ # Configure OAuth2 access token for authorization: oauth2
23
+ config.access_token = 'YOUR ACCESS TOKEN'
24
+ end
25
+
26
+ api_instance = OrderCloud::PasswordResetApi.new
27
+
28
+ verification_code = "verification_code_example" # String | Verification code of the forgotten password.
29
+
30
+ password_reset = OrderCloud::PasswordReset.new # PasswordReset |
31
+
32
+
33
+ begin
34
+ api_instance.reset_password(verification_code, password_reset)
35
+ rescue OrderCloud::ApiError => e
36
+ puts "Exception when calling PasswordResetApi->reset_password: #{e}"
37
+ end
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ Name | Type | Description | Notes
43
+ ------------- | ------------- | ------------- | -------------
44
+ **verification_code** | **String**| Verification code of the forgotten password. |
45
+ **password_reset** | [**PasswordReset**](PasswordReset.md)| |
46
+
47
+ ### Return type
48
+
49
+ nil (empty response body)
50
+
51
+ ### Authorization
52
+
53
+ [oauth2](../README.md#oauth2)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json, text/plain; charset=utf-8
58
+ - **Accept**: application/json
59
+
60
+
61
+
62
+ # **send_verification_code**
63
+ > send_verification_code(password_reset_request)
64
+
65
+
66
+
67
+ ### Example
68
+ ```ruby
69
+ # load the gem
70
+ require 'order_cloud'
71
+ # setup authorization
72
+ OrderCloud.configure do |config|
73
+ # Configure OAuth2 access token for authorization: oauth2
74
+ config.access_token = 'YOUR ACCESS TOKEN'
75
+ end
76
+
77
+ api_instance = OrderCloud::PasswordResetApi.new
78
+
79
+ password_reset_request = OrderCloud::PasswordResetRequest.new # PasswordResetRequest |
80
+
81
+
82
+ begin
83
+ api_instance.send_verification_code(password_reset_request)
84
+ rescue OrderCloud::ApiError => e
85
+ puts "Exception when calling PasswordResetApi->send_verification_code: #{e}"
86
+ end
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ Name | Type | Description | Notes
92
+ ------------- | ------------- | ------------- | -------------
93
+ **password_reset_request** | [**PasswordResetRequest**](PasswordResetRequest.md)| |
94
+
95
+ ### Return type
96
+
97
+ nil (empty response body)
98
+
99
+ ### Authorization
100
+
101
+ [oauth2](../README.md#oauth2)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: application/json, text/plain; charset=utf-8
106
+ - **Accept**: application/json
107
+
108
+
109
+
@@ -0,0 +1,11 @@
1
+ # OrderCloud::PasswordResetRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **client_id** | **String** | | [optional]
7
+ **email** | **String** | | [optional]
8
+ **username** | **String** | | [optional]
9
+ **url** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,16 @@
1
+ # OrderCloud::Payment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **type** | **String** | | [optional]
8
+ **date_created** | **String** | | [optional]
9
+ **credit_card_id** | **String** | | [optional]
10
+ **spending_account_id** | **String** | | [optional]
11
+ **description** | **String** | | [optional]
12
+ **amount** | **Float** | | [optional]
13
+ **xp** | **Object** | | [optional]
14
+ **transactions** | [**Array<PaymentTransaction>**](PaymentTransaction.md) | | [optional]
15
+
16
+
@@ -0,0 +1,601 @@
1
+ # OrderCloud::PaymentApi
2
+
3
+ All URIs are relative to *https://api.ordercloud.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](PaymentApi.md#create) | **POST** /buyers/{buyerID}/orders/{orderID}/payments |
8
+ [**create_transaction**](PaymentApi.md#create_transaction) | **POST** /buyers/{buyerID}/orders/{orderID}/payments/{paymentID}/transactions |
9
+ [**delete**](PaymentApi.md#delete) | **DELETE** /buyers/{buyerID}/orders/{orderID}/payments/{paymentID} |
10
+ [**delete_transaction**](PaymentApi.md#delete_transaction) | **DELETE** /buyers/{buyerID}/orders/{orderID}/payments/{paymentID}/transactions/{transactionID} |
11
+ [**get**](PaymentApi.md#get) | **GET** /buyers/{buyerID}/orders/{orderID}/payments/{paymentID} |
12
+ [**list**](PaymentApi.md#list) | **GET** /buyers/{buyerID}/orders/{orderID}/payments |
13
+ [**patch**](PaymentApi.md#patch) | **PATCH** /buyers/{buyerID}/orders/{orderID}/payments/{paymentID} |
14
+ [**patch_transaction**](PaymentApi.md#patch_transaction) | **PATCH** /buyers/{buyerID}/orders/{orderID}/payments/{paymentID}/transactions/{transactionID} |
15
+ [**update**](PaymentApi.md#update) | **PUT** /buyers/{buyerID}/orders/{orderID}/payments/{paymentID} |
16
+ [**update_transaction**](PaymentApi.md#update_transaction) | **PUT** /buyers/{buyerID}/orders/{orderID}/payments/{paymentID}/transactions/{transactionID} |
17
+
18
+
19
+ # **create**
20
+ > Payment create(buyer_id, order_id, payment)
21
+
22
+
23
+
24
+ ### Example
25
+ ```ruby
26
+ # load the gem
27
+ require 'order_cloud'
28
+ # setup authorization
29
+ OrderCloud.configure do |config|
30
+ # Configure OAuth2 access token for authorization: oauth2
31
+ config.access_token = 'YOUR ACCESS TOKEN'
32
+ end
33
+
34
+ api_instance = OrderCloud::PaymentApi.new
35
+
36
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
37
+
38
+ order_id = "order_id_example" # String | ID of the order.
39
+
40
+ payment = OrderCloud::Payment.new # Payment |
41
+
42
+
43
+ begin
44
+ result = api_instance.create(buyer_id, order_id, payment)
45
+ p result
46
+ rescue OrderCloud::ApiError => e
47
+ puts "Exception when calling PaymentApi->create: #{e}"
48
+ end
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+ Name | Type | Description | Notes
54
+ ------------- | ------------- | ------------- | -------------
55
+ **buyer_id** | **String**| ID of the buyer. |
56
+ **order_id** | **String**| ID of the order. |
57
+ **payment** | [**Payment**](Payment.md)| |
58
+
59
+ ### Return type
60
+
61
+ [**Payment**](Payment.md)
62
+
63
+ ### Authorization
64
+
65
+ [oauth2](../README.md#oauth2)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: application/json, text/plain; charset=utf-8
70
+ - **Accept**: application/json
71
+
72
+
73
+
74
+ # **create_transaction**
75
+ > Payment create_transaction(buyer_id, order_id, payment_id, transaction)
76
+
77
+
78
+
79
+ ### Example
80
+ ```ruby
81
+ # load the gem
82
+ require 'order_cloud'
83
+ # setup authorization
84
+ OrderCloud.configure do |config|
85
+ # Configure OAuth2 access token for authorization: oauth2
86
+ config.access_token = 'YOUR ACCESS TOKEN'
87
+ end
88
+
89
+ api_instance = OrderCloud::PaymentApi.new
90
+
91
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
92
+
93
+ order_id = "order_id_example" # String | ID of the order.
94
+
95
+ payment_id = "payment_id_example" # String | ID of the payment.
96
+
97
+ transaction = OrderCloud::PaymentTransaction.new # PaymentTransaction |
98
+
99
+
100
+ begin
101
+ result = api_instance.create_transaction(buyer_id, order_id, payment_id, transaction)
102
+ p result
103
+ rescue OrderCloud::ApiError => e
104
+ puts "Exception when calling PaymentApi->create_transaction: #{e}"
105
+ end
106
+ ```
107
+
108
+ ### Parameters
109
+
110
+ Name | Type | Description | Notes
111
+ ------------- | ------------- | ------------- | -------------
112
+ **buyer_id** | **String**| ID of the buyer. |
113
+ **order_id** | **String**| ID of the order. |
114
+ **payment_id** | **String**| ID of the payment. |
115
+ **transaction** | [**PaymentTransaction**](PaymentTransaction.md)| |
116
+
117
+ ### Return type
118
+
119
+ [**Payment**](Payment.md)
120
+
121
+ ### Authorization
122
+
123
+ [oauth2](../README.md#oauth2)
124
+
125
+ ### HTTP request headers
126
+
127
+ - **Content-Type**: application/json, text/plain; charset=utf-8
128
+ - **Accept**: application/json
129
+
130
+
131
+
132
+ # **delete**
133
+ > delete(buyer_id, order_id, payment_id)
134
+
135
+
136
+
137
+ ### Example
138
+ ```ruby
139
+ # load the gem
140
+ require 'order_cloud'
141
+ # setup authorization
142
+ OrderCloud.configure do |config|
143
+ # Configure OAuth2 access token for authorization: oauth2
144
+ config.access_token = 'YOUR ACCESS TOKEN'
145
+ end
146
+
147
+ api_instance = OrderCloud::PaymentApi.new
148
+
149
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
150
+
151
+ order_id = "order_id_example" # String | ID of the order.
152
+
153
+ payment_id = "payment_id_example" # String | ID of the payment.
154
+
155
+
156
+ begin
157
+ api_instance.delete(buyer_id, order_id, payment_id)
158
+ rescue OrderCloud::ApiError => e
159
+ puts "Exception when calling PaymentApi->delete: #{e}"
160
+ end
161
+ ```
162
+
163
+ ### Parameters
164
+
165
+ Name | Type | Description | Notes
166
+ ------------- | ------------- | ------------- | -------------
167
+ **buyer_id** | **String**| ID of the buyer. |
168
+ **order_id** | **String**| ID of the order. |
169
+ **payment_id** | **String**| ID of the payment. |
170
+
171
+ ### Return type
172
+
173
+ nil (empty response body)
174
+
175
+ ### Authorization
176
+
177
+ [oauth2](../README.md#oauth2)
178
+
179
+ ### HTTP request headers
180
+
181
+ - **Content-Type**: application/json, text/plain; charset=utf-8
182
+ - **Accept**: application/json
183
+
184
+
185
+
186
+ # **delete_transaction**
187
+ > delete_transaction(buyer_id, order_id, payment_id, transaction_id)
188
+
189
+
190
+
191
+ ### Example
192
+ ```ruby
193
+ # load the gem
194
+ require 'order_cloud'
195
+ # setup authorization
196
+ OrderCloud.configure do |config|
197
+ # Configure OAuth2 access token for authorization: oauth2
198
+ config.access_token = 'YOUR ACCESS TOKEN'
199
+ end
200
+
201
+ api_instance = OrderCloud::PaymentApi.new
202
+
203
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
204
+
205
+ order_id = "order_id_example" # String | ID of the order.
206
+
207
+ payment_id = "payment_id_example" # String | ID of the payment.
208
+
209
+ transaction_id = "transaction_id_example" # String | ID of the transaction.
210
+
211
+
212
+ begin
213
+ api_instance.delete_transaction(buyer_id, order_id, payment_id, transaction_id)
214
+ rescue OrderCloud::ApiError => e
215
+ puts "Exception when calling PaymentApi->delete_transaction: #{e}"
216
+ end
217
+ ```
218
+
219
+ ### Parameters
220
+
221
+ Name | Type | Description | Notes
222
+ ------------- | ------------- | ------------- | -------------
223
+ **buyer_id** | **String**| ID of the buyer. |
224
+ **order_id** | **String**| ID of the order. |
225
+ **payment_id** | **String**| ID of the payment. |
226
+ **transaction_id** | **String**| ID of the transaction. |
227
+
228
+ ### Return type
229
+
230
+ nil (empty response body)
231
+
232
+ ### Authorization
233
+
234
+ [oauth2](../README.md#oauth2)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: application/json, text/plain; charset=utf-8
239
+ - **Accept**: application/json
240
+
241
+
242
+
243
+ # **get**
244
+ > Payment get(buyer_id, order_id, payment_id)
245
+
246
+
247
+
248
+ ### Example
249
+ ```ruby
250
+ # load the gem
251
+ require 'order_cloud'
252
+ # setup authorization
253
+ OrderCloud.configure do |config|
254
+ # Configure OAuth2 access token for authorization: oauth2
255
+ config.access_token = 'YOUR ACCESS TOKEN'
256
+ end
257
+
258
+ api_instance = OrderCloud::PaymentApi.new
259
+
260
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
261
+
262
+ order_id = "order_id_example" # String | ID of the order.
263
+
264
+ payment_id = "payment_id_example" # String | ID of the payment.
265
+
266
+
267
+ begin
268
+ result = api_instance.get(buyer_id, order_id, payment_id)
269
+ p result
270
+ rescue OrderCloud::ApiError => e
271
+ puts "Exception when calling PaymentApi->get: #{e}"
272
+ end
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ Name | Type | Description | Notes
278
+ ------------- | ------------- | ------------- | -------------
279
+ **buyer_id** | **String**| ID of the buyer. |
280
+ **order_id** | **String**| ID of the order. |
281
+ **payment_id** | **String**| ID of the payment. |
282
+
283
+ ### Return type
284
+
285
+ [**Payment**](Payment.md)
286
+
287
+ ### Authorization
288
+
289
+ [oauth2](../README.md#oauth2)
290
+
291
+ ### HTTP request headers
292
+
293
+ - **Content-Type**: application/json, text/plain; charset=utf-8
294
+ - **Accept**: application/json
295
+
296
+
297
+
298
+ # **list**
299
+ > ListPayment list(buyer_id, order_id, opts)
300
+
301
+
302
+
303
+ ### Example
304
+ ```ruby
305
+ # load the gem
306
+ require 'order_cloud'
307
+ # setup authorization
308
+ OrderCloud.configure do |config|
309
+ # Configure OAuth2 access token for authorization: oauth2
310
+ config.access_token = 'YOUR ACCESS TOKEN'
311
+ end
312
+
313
+ api_instance = OrderCloud::PaymentApi.new
314
+
315
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
316
+
317
+ order_id = "order_id_example" # String | ID of the order.
318
+
319
+ opts = {
320
+ search: "search_example", # String | Word or phrase to search for.
321
+ search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
322
+ sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
323
+ page: 56, # Integer | Page of results to return. Default: 1
324
+ page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
325
+ 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.???'
326
+ }
327
+
328
+ begin
329
+ result = api_instance.list(buyer_id, order_id, opts)
330
+ p result
331
+ rescue OrderCloud::ApiError => e
332
+ puts "Exception when calling PaymentApi->list: #{e}"
333
+ end
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+ Name | Type | Description | Notes
339
+ ------------- | ------------- | ------------- | -------------
340
+ **buyer_id** | **String**| ID of the buyer. |
341
+ **order_id** | **String**| ID of the order. |
342
+ **search** | **String**| Word or phrase to search for. | [optional]
343
+ **search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
344
+ **sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
345
+ **page** | **Integer**| Page of results to return. Default: 1 | [optional]
346
+ **page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
347
+ **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]
348
+
349
+ ### Return type
350
+
351
+ [**ListPayment**](ListPayment.md)
352
+
353
+ ### Authorization
354
+
355
+ [oauth2](../README.md#oauth2)
356
+
357
+ ### HTTP request headers
358
+
359
+ - **Content-Type**: application/json, text/plain; charset=utf-8
360
+ - **Accept**: application/json
361
+
362
+
363
+
364
+ # **patch**
365
+ > Payment patch(buyer_id, order_id, payment_id, partial_payment)
366
+
367
+
368
+
369
+ ### Example
370
+ ```ruby
371
+ # load the gem
372
+ require 'order_cloud'
373
+ # setup authorization
374
+ OrderCloud.configure do |config|
375
+ # Configure OAuth2 access token for authorization: oauth2
376
+ config.access_token = 'YOUR ACCESS TOKEN'
377
+ end
378
+
379
+ api_instance = OrderCloud::PaymentApi.new
380
+
381
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
382
+
383
+ order_id = "order_id_example" # String | ID of the order.
384
+
385
+ payment_id = "payment_id_example" # String | ID of the payment.
386
+
387
+ partial_payment = OrderCloud::Payment.new # Payment |
388
+
389
+
390
+ begin
391
+ result = api_instance.patch(buyer_id, order_id, payment_id, partial_payment)
392
+ p result
393
+ rescue OrderCloud::ApiError => e
394
+ puts "Exception when calling PaymentApi->patch: #{e}"
395
+ end
396
+ ```
397
+
398
+ ### Parameters
399
+
400
+ Name | Type | Description | Notes
401
+ ------------- | ------------- | ------------- | -------------
402
+ **buyer_id** | **String**| ID of the buyer. |
403
+ **order_id** | **String**| ID of the order. |
404
+ **payment_id** | **String**| ID of the payment. |
405
+ **partial_payment** | [**Payment**](Payment.md)| |
406
+
407
+ ### Return type
408
+
409
+ [**Payment**](Payment.md)
410
+
411
+ ### Authorization
412
+
413
+ [oauth2](../README.md#oauth2)
414
+
415
+ ### HTTP request headers
416
+
417
+ - **Content-Type**: application/json, text/plain; charset=utf-8
418
+ - **Accept**: application/json
419
+
420
+
421
+
422
+ # **patch_transaction**
423
+ > Payment patch_transaction(buyer_id, order_id, payment_id, transaction_id, partial_transaction)
424
+
425
+
426
+
427
+ ### Example
428
+ ```ruby
429
+ # load the gem
430
+ require 'order_cloud'
431
+ # setup authorization
432
+ OrderCloud.configure do |config|
433
+ # Configure OAuth2 access token for authorization: oauth2
434
+ config.access_token = 'YOUR ACCESS TOKEN'
435
+ end
436
+
437
+ api_instance = OrderCloud::PaymentApi.new
438
+
439
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
440
+
441
+ order_id = "order_id_example" # String | ID of the order.
442
+
443
+ payment_id = "payment_id_example" # String | ID of the payment.
444
+
445
+ transaction_id = "transaction_id_example" # String | ID of the transaction.
446
+
447
+ partial_transaction = OrderCloud::PaymentTransaction.new # PaymentTransaction |
448
+
449
+
450
+ begin
451
+ result = api_instance.patch_transaction(buyer_id, order_id, payment_id, transaction_id, partial_transaction)
452
+ p result
453
+ rescue OrderCloud::ApiError => e
454
+ puts "Exception when calling PaymentApi->patch_transaction: #{e}"
455
+ end
456
+ ```
457
+
458
+ ### Parameters
459
+
460
+ Name | Type | Description | Notes
461
+ ------------- | ------------- | ------------- | -------------
462
+ **buyer_id** | **String**| ID of the buyer. |
463
+ **order_id** | **String**| ID of the order. |
464
+ **payment_id** | **String**| ID of the payment. |
465
+ **transaction_id** | **String**| ID of the transaction. |
466
+ **partial_transaction** | [**PaymentTransaction**](PaymentTransaction.md)| |
467
+
468
+ ### Return type
469
+
470
+ [**Payment**](Payment.md)
471
+
472
+ ### Authorization
473
+
474
+ [oauth2](../README.md#oauth2)
475
+
476
+ ### HTTP request headers
477
+
478
+ - **Content-Type**: application/json, text/plain; charset=utf-8
479
+ - **Accept**: application/json
480
+
481
+
482
+
483
+ # **update**
484
+ > Payment update(buyer_id, order_id, payment_id, payment)
485
+
486
+
487
+
488
+ ### Example
489
+ ```ruby
490
+ # load the gem
491
+ require 'order_cloud'
492
+ # setup authorization
493
+ OrderCloud.configure do |config|
494
+ # Configure OAuth2 access token for authorization: oauth2
495
+ config.access_token = 'YOUR ACCESS TOKEN'
496
+ end
497
+
498
+ api_instance = OrderCloud::PaymentApi.new
499
+
500
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
501
+
502
+ order_id = "order_id_example" # String | ID of the order.
503
+
504
+ payment_id = "payment_id_example" # String | ID of the payment.
505
+
506
+ payment = OrderCloud::Payment.new # Payment |
507
+
508
+
509
+ begin
510
+ result = api_instance.update(buyer_id, order_id, payment_id, payment)
511
+ p result
512
+ rescue OrderCloud::ApiError => e
513
+ puts "Exception when calling PaymentApi->update: #{e}"
514
+ end
515
+ ```
516
+
517
+ ### Parameters
518
+
519
+ Name | Type | Description | Notes
520
+ ------------- | ------------- | ------------- | -------------
521
+ **buyer_id** | **String**| ID of the buyer. |
522
+ **order_id** | **String**| ID of the order. |
523
+ **payment_id** | **String**| ID of the payment. |
524
+ **payment** | [**Payment**](Payment.md)| |
525
+
526
+ ### Return type
527
+
528
+ [**Payment**](Payment.md)
529
+
530
+ ### Authorization
531
+
532
+ [oauth2](../README.md#oauth2)
533
+
534
+ ### HTTP request headers
535
+
536
+ - **Content-Type**: application/json, text/plain; charset=utf-8
537
+ - **Accept**: application/json
538
+
539
+
540
+
541
+ # **update_transaction**
542
+ > Payment update_transaction(buyer_id, order_id, payment_id, transaction_id, transaction)
543
+
544
+
545
+
546
+ ### Example
547
+ ```ruby
548
+ # load the gem
549
+ require 'order_cloud'
550
+ # setup authorization
551
+ OrderCloud.configure do |config|
552
+ # Configure OAuth2 access token for authorization: oauth2
553
+ config.access_token = 'YOUR ACCESS TOKEN'
554
+ end
555
+
556
+ api_instance = OrderCloud::PaymentApi.new
557
+
558
+ buyer_id = "buyer_id_example" # String | ID of the buyer.
559
+
560
+ order_id = "order_id_example" # String | ID of the order.
561
+
562
+ payment_id = "payment_id_example" # String | ID of the payment.
563
+
564
+ transaction_id = "transaction_id_example" # String | ID of the transaction.
565
+
566
+ transaction = OrderCloud::PaymentTransaction.new # PaymentTransaction |
567
+
568
+
569
+ begin
570
+ result = api_instance.update_transaction(buyer_id, order_id, payment_id, transaction_id, transaction)
571
+ p result
572
+ rescue OrderCloud::ApiError => e
573
+ puts "Exception when calling PaymentApi->update_transaction: #{e}"
574
+ end
575
+ ```
576
+
577
+ ### Parameters
578
+
579
+ Name | Type | Description | Notes
580
+ ------------- | ------------- | ------------- | -------------
581
+ **buyer_id** | **String**| ID of the buyer. |
582
+ **order_id** | **String**| ID of the order. |
583
+ **payment_id** | **String**| ID of the payment. |
584
+ **transaction_id** | **String**| ID of the transaction. |
585
+ **transaction** | [**PaymentTransaction**](PaymentTransaction.md)| |
586
+
587
+ ### Return type
588
+
589
+ [**Payment**](Payment.md)
590
+
591
+ ### Authorization
592
+
593
+ [oauth2](../README.md#oauth2)
594
+
595
+ ### HTTP request headers
596
+
597
+ - **Content-Type**: application/json, text/plain; charset=utf-8
598
+ - **Accept**: application/json
599
+
600
+
601
+