order_cloud 0.0.6 → 1.0.43

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 (415) hide show
  1. checksums.yaml +5 -13
  2. metadata +45 -594
  3. data/Gemfile +0 -28
  4. data/Gemfile.lock +0 -34
  5. data/LICENSE +0 -201
  6. data/README.md +0 -498
  7. data/Rakefile +0 -31
  8. data/docs/AccessToken.md +0 -10
  9. data/docs/Address.md +0 -20
  10. data/docs/AddressApi.md +0 -520
  11. data/docs/AddressAssignment.md +0 -12
  12. data/docs/AdminAddressApi.md +0 -324
  13. data/docs/AdminCompany.md +0 -10
  14. data/docs/AdminModelOnView.md +0 -7
  15. data/docs/AdminUserApi.md +0 -323
  16. data/docs/AdminUserGroupApi.md +0 -482
  17. data/docs/ApprovalRule.md +0 -20
  18. data/docs/ApprovalRuleApi.md +0 -342
  19. data/docs/BaseSpec.md +0 -15
  20. data/docs/Buyer.md +0 -11
  21. data/docs/BuyerAddress.md +0 -11
  22. data/docs/BuyerApi.md +0 -324
  23. data/docs/BuyerCreditCard.md +0 -9
  24. data/docs/BuyerProduct.md +0 -9
  25. data/docs/BuyerSpec.md +0 -9
  26. data/docs/Category.md +0 -15
  27. data/docs/CategoryApi.md +0 -685
  28. data/docs/CategoryAssignment.md +0 -10
  29. data/docs/CategoryProductAssignment.md +0 -10
  30. data/docs/CostCenter.md +0 -11
  31. data/docs/CostCenterApi.md +0 -516
  32. data/docs/CostCenterAssignment.md +0 -10
  33. data/docs/CreditCard.md +0 -15
  34. data/docs/CreditCardApi.md +0 -516
  35. data/docs/CreditCardAssignment.md +0 -10
  36. data/docs/EmailTemplate.md +0 -12
  37. data/docs/EmailTemplateApi.md +0 -223
  38. data/docs/File.md +0 -10
  39. data/docs/ImpersonateTokenRequest.md +0 -9
  40. data/docs/Inventory.md +0 -12
  41. data/docs/LineItem.md +0 -23
  42. data/docs/LineItemApi.md +0 -478
  43. data/docs/LineItemSpec.md +0 -11
  44. data/docs/ListAddress.md +0 -9
  45. data/docs/ListAddressAssignment.md +0 -9
  46. data/docs/ListAdminCompany.md +0 -9
  47. data/docs/ListApprovalRule.md +0 -9
  48. data/docs/ListBuyer.md +0 -9
  49. data/docs/ListBuyerAddress.md +0 -9
  50. data/docs/ListBuyerCreditCard.md +0 -9
  51. data/docs/ListBuyerProduct.md +0 -9
  52. data/docs/ListBuyerSpec.md +0 -9
  53. data/docs/ListCategory.md +0 -9
  54. data/docs/ListCategoryAssignment.md +0 -9
  55. data/docs/ListCategoryProductAssignment.md +0 -9
  56. data/docs/ListCostCenter.md +0 -9
  57. data/docs/ListCostCenterAssignment.md +0 -9
  58. data/docs/ListCreditCard.md +0 -9
  59. data/docs/ListCreditCardAssignment.md +0 -9
  60. data/docs/ListFile.md +0 -9
  61. data/docs/ListInventory.md +0 -9
  62. data/docs/ListLineItem.md +0 -9
  63. data/docs/ListMessageCCListenerAssignment.md +0 -9
  64. data/docs/ListMessageConfig.md +0 -9
  65. data/docs/ListMessageSender.md +0 -9
  66. data/docs/ListMessageSenderAssignment.md +0 -9
  67. data/docs/ListOrder.md +0 -9
  68. data/docs/ListOrderApproval.md +0 -9
  69. data/docs/ListOrderPromotion.md +0 -9
  70. data/docs/ListPayment.md +0 -9
  71. data/docs/ListPriceSchedule.md +0 -9
  72. data/docs/ListProduct.md +0 -9
  73. data/docs/ListProductAssignment.md +0 -9
  74. data/docs/ListPromotion.md +0 -9
  75. data/docs/ListPromotionAssignment.md +0 -9
  76. data/docs/ListSecurityProfile.md +0 -9
  77. data/docs/ListSecurityProfileAssignment.md +0 -9
  78. data/docs/ListShipment.md +0 -9
  79. data/docs/ListSpec.md +0 -9
  80. data/docs/ListSpecOption.md +0 -9
  81. data/docs/ListSpecProductAssignment.md +0 -9
  82. data/docs/ListSpendingAccount.md +0 -9
  83. data/docs/ListSpendingAccountAssignment.md +0 -9
  84. data/docs/ListUser.md +0 -9
  85. data/docs/ListUserGroup.md +0 -9
  86. data/docs/ListUserGroupAssignment.md +0 -9
  87. data/docs/ListVariant.md +0 -9
  88. data/docs/ListWebHook.md +0 -9
  89. data/docs/ListWebHookRoute.md +0 -9
  90. data/docs/ListXpIndex.md +0 -9
  91. data/docs/MeApi.md +0 -1488
  92. data/docs/MessageCCListenerAssignment.md +0 -13
  93. data/docs/MessageConfig.md +0 -11
  94. data/docs/MessageSender.md +0 -10
  95. data/docs/MessageSenderAssignment.md +0 -12
  96. data/docs/MessageSendersApi.md +0 -398
  97. data/docs/Meta.md +0 -12
  98. data/docs/Order.md +0 -31
  99. data/docs/OrderApi.md +0 -1277
  100. data/docs/OrderApproval.md +0 -16
  101. data/docs/OrderPromotion.md +0 -8
  102. data/docs/PasswordReset.md +0 -10
  103. data/docs/PasswordResetApi.md +0 -109
  104. data/docs/PasswordResetRequest.md +0 -11
  105. data/docs/Payment.md +0 -16
  106. data/docs/PaymentApi.md +0 -601
  107. data/docs/PaymentTransaction.md +0 -15
  108. data/docs/PingResponse.md +0 -8
  109. data/docs/PriceBreak.md +0 -9
  110. data/docs/PriceSchedule.md +0 -18
  111. data/docs/PriceScheduleApi.md +0 -429
  112. data/docs/Product.md +0 -26
  113. data/docs/ProductApi.md +0 -1116
  114. data/docs/ProductAssignment.md +0 -13
  115. data/docs/Promotion.md +0 -21
  116. data/docs/PromotionApi.md +0 -495
  117. data/docs/PromotionAssignment.md +0 -11
  118. data/docs/SecurityProfile.md +0 -11
  119. data/docs/SecurityProfileApi.md +0 -290
  120. data/docs/SecurityProfileAssignment.md +0 -11
  121. data/docs/Shipment.md +0 -14
  122. data/docs/ShipmentApi.md +0 -459
  123. data/docs/ShipmentItem.md +0 -10
  124. data/docs/Spec.md +0 -8
  125. data/docs/SpecApi.md +0 -816
  126. data/docs/SpecOption.md +0 -14
  127. data/docs/SpecProductAssignment.md +0 -10
  128. data/docs/SpendingAccount.md +0 -15
  129. data/docs/SpendingAccountApi.md +0 -516
  130. data/docs/SpendingAccountAssignment.md +0 -11
  131. data/docs/User.md +0 -18
  132. data/docs/UserApi.md +0 -400
  133. data/docs/UserGroup.md +0 -11
  134. data/docs/UserGroupApi.md +0 -509
  135. data/docs/UserGroupAssignment.md +0 -9
  136. data/docs/Variant.md +0 -12
  137. data/docs/WebHook.md +0 -18
  138. data/docs/WebHookRoute.md +0 -10
  139. data/docs/XpIndex.md +0 -9
  140. data/git_push.sh +0 -67
  141. data/lib/order_cloud.rb +0 -183
  142. data/lib/order_cloud/api/address_api.rb +0 -628
  143. data/lib/order_cloud/api/admin_address_api.rb +0 -397
  144. data/lib/order_cloud/api/admin_user_api.rb +0 -396
  145. data/lib/order_cloud/api/admin_user_group_api.rb +0 -578
  146. data/lib/order_cloud/api/approval_rule_api.rb +0 -421
  147. data/lib/order_cloud/api/buyer_api.rb +0 -397
  148. data/lib/order_cloud/api/category_api.rb +0 -818
  149. data/lib/order_cloud/api/cost_center_api.rb +0 -622
  150. data/lib/order_cloud/api/credit_card_api.rb +0 -622
  151. data/lib/order_cloud/api/email_template_api.rb +0 -283
  152. data/lib/order_cloud/api/line_item_api.rb +0 -583
  153. data/lib/order_cloud/api/me_api.rb +0 -1747
  154. data/lib/order_cloud/api/message_senders_api.rb +0 -484
  155. data/lib/order_cloud/api/order_api.rb +0 -1509
  156. data/lib/order_cloud/api/password_reset_api.rb +0 -150
  157. data/lib/order_cloud/api/payment_api.rb +0 -728
  158. data/lib/order_cloud/api/price_schedule_api.rb +0 -519
  159. data/lib/order_cloud/api/product_api.rb +0 -1312
  160. data/lib/order_cloud/api/promotion_api.rb +0 -596
  161. data/lib/order_cloud/api/security_profile_api.rb +0 -361
  162. data/lib/order_cloud/api/shipment_api.rb +0 -558
  163. data/lib/order_cloud/api/spec_api.rb +0 -965
  164. data/lib/order_cloud/api/spending_account_api.rb +0 -622
  165. data/lib/order_cloud/api/user_api.rb +0 -489
  166. data/lib/order_cloud/api/user_group_api.rb +0 -614
  167. data/lib/order_cloud/api_auth.rb +0 -108
  168. data/lib/order_cloud/api_client.rb +0 -385
  169. data/lib/order_cloud/api_error.rb +0 -47
  170. data/lib/order_cloud/configuration.rb +0 -245
  171. data/lib/order_cloud/models/access_token.rb +0 -217
  172. data/lib/order_cloud/models/address.rb +0 -307
  173. data/lib/order_cloud/models/address_assignment.rb +0 -235
  174. data/lib/order_cloud/models/admin_company.rb +0 -217
  175. data/lib/order_cloud/models/admin_model_on_view.rb +0 -190
  176. data/lib/order_cloud/models/approval_rule.rb +0 -307
  177. data/lib/order_cloud/models/base_spec.rb +0 -262
  178. data/lib/order_cloud/models/buyer.rb +0 -226
  179. data/lib/order_cloud/models/buyer_address.rb +0 -226
  180. data/lib/order_cloud/models/buyer_credit_card.rb +0 -208
  181. data/lib/order_cloud/models/buyer_product.rb +0 -208
  182. data/lib/order_cloud/models/buyer_spec.rb +0 -210
  183. data/lib/order_cloud/models/category.rb +0 -262
  184. data/lib/order_cloud/models/category_assignment.rb +0 -217
  185. data/lib/order_cloud/models/category_product_assignment.rb +0 -217
  186. data/lib/order_cloud/models/cost_center.rb +0 -226
  187. data/lib/order_cloud/models/cost_center_assignment.rb +0 -217
  188. data/lib/order_cloud/models/credit_card.rb +0 -262
  189. data/lib/order_cloud/models/credit_card_assignment.rb +0 -217
  190. data/lib/order_cloud/models/email_template.rb +0 -235
  191. data/lib/order_cloud/models/file.rb +0 -217
  192. data/lib/order_cloud/models/impersonate_token_request.rb +0 -208
  193. data/lib/order_cloud/models/inventory.rb +0 -235
  194. data/lib/order_cloud/models/line_item.rb +0 -336
  195. data/lib/order_cloud/models/line_item_spec.rb +0 -226
  196. data/lib/order_cloud/models/list_address.rb +0 -210
  197. data/lib/order_cloud/models/list_address_assignment.rb +0 -210
  198. data/lib/order_cloud/models/list_admin_company.rb +0 -210
  199. data/lib/order_cloud/models/list_approval_rule.rb +0 -210
  200. data/lib/order_cloud/models/list_buyer.rb +0 -210
  201. data/lib/order_cloud/models/list_buyer_address.rb +0 -210
  202. data/lib/order_cloud/models/list_buyer_credit_card.rb +0 -210
  203. data/lib/order_cloud/models/list_buyer_product.rb +0 -210
  204. data/lib/order_cloud/models/list_buyer_spec.rb +0 -210
  205. data/lib/order_cloud/models/list_category.rb +0 -210
  206. data/lib/order_cloud/models/list_category_assignment.rb +0 -210
  207. data/lib/order_cloud/models/list_category_product_assignment.rb +0 -210
  208. data/lib/order_cloud/models/list_cost_center.rb +0 -210
  209. data/lib/order_cloud/models/list_cost_center_assignment.rb +0 -210
  210. data/lib/order_cloud/models/list_credit_card.rb +0 -210
  211. data/lib/order_cloud/models/list_credit_card_assignment.rb +0 -210
  212. data/lib/order_cloud/models/list_file.rb +0 -210
  213. data/lib/order_cloud/models/list_inventory.rb +0 -210
  214. data/lib/order_cloud/models/list_line_item.rb +0 -210
  215. data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +0 -210
  216. data/lib/order_cloud/models/list_message_config.rb +0 -210
  217. data/lib/order_cloud/models/list_message_sender.rb +0 -210
  218. data/lib/order_cloud/models/list_message_sender_assignment.rb +0 -210
  219. data/lib/order_cloud/models/list_order.rb +0 -210
  220. data/lib/order_cloud/models/list_order_approval.rb +0 -210
  221. data/lib/order_cloud/models/list_order_promotion.rb +0 -210
  222. data/lib/order_cloud/models/list_payment.rb +0 -210
  223. data/lib/order_cloud/models/list_price_schedule.rb +0 -210
  224. data/lib/order_cloud/models/list_product.rb +0 -210
  225. data/lib/order_cloud/models/list_product_assignment.rb +0 -210
  226. data/lib/order_cloud/models/list_promotion.rb +0 -210
  227. data/lib/order_cloud/models/list_promotion_assignment.rb +0 -210
  228. data/lib/order_cloud/models/list_security_profile.rb +0 -210
  229. data/lib/order_cloud/models/list_security_profile_assignment.rb +0 -210
  230. data/lib/order_cloud/models/list_shipment.rb +0 -210
  231. data/lib/order_cloud/models/list_spec.rb +0 -210
  232. data/lib/order_cloud/models/list_spec_option.rb +0 -210
  233. data/lib/order_cloud/models/list_spec_product_assignment.rb +0 -210
  234. data/lib/order_cloud/models/list_spending_account.rb +0 -210
  235. data/lib/order_cloud/models/list_spending_account_assignment.rb +0 -210
  236. data/lib/order_cloud/models/list_user.rb +0 -210
  237. data/lib/order_cloud/models/list_user_group.rb +0 -210
  238. data/lib/order_cloud/models/list_user_group_assignment.rb +0 -210
  239. data/lib/order_cloud/models/list_variant.rb +0 -210
  240. data/lib/order_cloud/models/list_web_hook.rb +0 -210
  241. data/lib/order_cloud/models/list_web_hook_route.rb +0 -210
  242. data/lib/order_cloud/models/list_xp_index.rb +0 -210
  243. data/lib/order_cloud/models/message_cc_listener_assignment.rb +0 -244
  244. data/lib/order_cloud/models/message_config.rb +0 -226
  245. data/lib/order_cloud/models/message_sender.rb +0 -217
  246. data/lib/order_cloud/models/message_sender_assignment.rb +0 -235
  247. data/lib/order_cloud/models/meta.rb +0 -237
  248. data/lib/order_cloud/models/order.rb +0 -406
  249. data/lib/order_cloud/models/order_approval.rb +0 -271
  250. data/lib/order_cloud/models/order_promotion.rb +0 -199
  251. data/lib/order_cloud/models/password_reset.rb +0 -217
  252. data/lib/order_cloud/models/password_reset_request.rb +0 -226
  253. data/lib/order_cloud/models/payment.rb +0 -273
  254. data/lib/order_cloud/models/payment_transaction.rb +0 -262
  255. data/lib/order_cloud/models/ping_response.rb +0 -199
  256. data/lib/order_cloud/models/price_break.rb +0 -208
  257. data/lib/order_cloud/models/price_schedule.rb +0 -291
  258. data/lib/order_cloud/models/product.rb +0 -361
  259. data/lib/order_cloud/models/product_assignment.rb +0 -244
  260. data/lib/order_cloud/models/promotion.rb +0 -316
  261. data/lib/order_cloud/models/promotion_assignment.rb +0 -226
  262. data/lib/order_cloud/models/security_profile.rb +0 -228
  263. data/lib/order_cloud/models/security_profile_assignment.rb +0 -226
  264. data/lib/order_cloud/models/shipment.rb +0 -255
  265. data/lib/order_cloud/models/shipment_item.rb +0 -217
  266. data/lib/order_cloud/models/spec.rb +0 -199
  267. data/lib/order_cloud/models/spec_option.rb +0 -253
  268. data/lib/order_cloud/models/spec_product_assignment.rb +0 -217
  269. data/lib/order_cloud/models/spending_account.rb +0 -262
  270. data/lib/order_cloud/models/spending_account_assignment.rb +0 -226
  271. data/lib/order_cloud/models/user.rb +0 -291
  272. data/lib/order_cloud/models/user_group.rb +0 -226
  273. data/lib/order_cloud/models/user_group_assignment.rb +0 -208
  274. data/lib/order_cloud/models/variant.rb +0 -235
  275. data/lib/order_cloud/models/web_hook.rb +0 -289
  276. data/lib/order_cloud/models/web_hook_route.rb +0 -217
  277. data/lib/order_cloud/models/xp_index.rb +0 -208
  278. data/lib/order_cloud/version.rb +0 -26
  279. data/order_cloud.gemspec +0 -56
  280. data/spec/api/address_api_spec.rb +0 -179
  281. data/spec/api/admin_address_api_spec.rb +0 -125
  282. data/spec/api/admin_user_api_spec.rb +0 -125
  283. data/spec/api/admin_user_group_api_spec.rb +0 -165
  284. data/spec/api/approval_rule_api_spec.rb +0 -131
  285. data/spec/api/buyer_api_spec.rb +0 -125
  286. data/spec/api/category_api_spec.rb +0 -221
  287. data/spec/api/cost_center_api_spec.rb +0 -177
  288. data/spec/api/credit_card_api_spec.rb +0 -177
  289. data/spec/api/email_template_api_spec.rb +0 -100
  290. data/spec/api/line_item_api_spec.rb +0 -167
  291. data/spec/api/me_api_spec.rb +0 -431
  292. data/spec/api/message_senders_api_spec.rb +0 -149
  293. data/spec/api/order_api_spec.rb +0 -375
  294. data/spec/api/password_reset_api_spec.rb +0 -71
  295. data/spec/api/payment_api_spec.rb +0 -199
  296. data/spec/api/price_schedule_api_spec.rb +0 -151
  297. data/spec/api/product_api_spec.rb +0 -330
  298. data/spec/api/promotion_api_spec.rb +0 -170
  299. data/spec/api/security_profile_api_spec.rb +0 -120
  300. data/spec/api/shipment_api_spec.rb +0 -161
  301. data/spec/api/spec_api_spec.rb +0 -250
  302. data/spec/api/spending_account_api_spec.rb +0 -177
  303. data/spec/api/user_api_spec.rb +0 -146
  304. data/spec/api/user_group_api_spec.rb +0 -174
  305. data/spec/api_auth_spec.rb +0 -165
  306. data/spec/api_client_spec.rb +0 -237
  307. data/spec/configuration_spec.rb +0 -80
  308. data/spec/models/access_token_spec.rb +0 -65
  309. data/spec/models/address_assignment_spec.rb +0 -77
  310. data/spec/models/address_spec.rb +0 -125
  311. data/spec/models/admin_company_spec.rb +0 -65
  312. data/spec/models/admin_model_on_view_spec.rb +0 -47
  313. data/spec/models/approval_rule_spec.rb +0 -125
  314. data/spec/models/base_spec_spec.rb +0 -95
  315. data/spec/models/buyer_address_spec.rb +0 -71
  316. data/spec/models/buyer_credit_card_spec.rb +0 -59
  317. data/spec/models/buyer_product_spec.rb +0 -59
  318. data/spec/models/buyer_spec.rb +0 -71
  319. data/spec/models/buyer_spec_spec.rb +0 -59
  320. data/spec/models/category_assignment_spec.rb +0 -65
  321. data/spec/models/category_product_assignment_spec.rb +0 -65
  322. data/spec/models/category_spec.rb +0 -95
  323. data/spec/models/cost_center_assignment_spec.rb +0 -65
  324. data/spec/models/cost_center_spec.rb +0 -71
  325. data/spec/models/credit_card_assignment_spec.rb +0 -65
  326. data/spec/models/credit_card_spec.rb +0 -95
  327. data/spec/models/email_template_spec.rb +0 -77
  328. data/spec/models/file_spec.rb +0 -65
  329. data/spec/models/impersonate_token_request_spec.rb +0 -59
  330. data/spec/models/inventory_spec.rb +0 -77
  331. data/spec/models/line_item_spec.rb +0 -143
  332. data/spec/models/line_item_spec_spec.rb +0 -71
  333. data/spec/models/list_address_assignment_spec.rb +0 -59
  334. data/spec/models/list_address_spec.rb +0 -59
  335. data/spec/models/list_admin_company_spec.rb +0 -59
  336. data/spec/models/list_approval_rule_spec.rb +0 -59
  337. data/spec/models/list_buyer_address_spec.rb +0 -59
  338. data/spec/models/list_buyer_credit_card_spec.rb +0 -59
  339. data/spec/models/list_buyer_product_spec.rb +0 -59
  340. data/spec/models/list_buyer_spec.rb +0 -59
  341. data/spec/models/list_buyer_spec_spec.rb +0 -59
  342. data/spec/models/list_category_assignment_spec.rb +0 -59
  343. data/spec/models/list_category_product_assignment_spec.rb +0 -59
  344. data/spec/models/list_category_spec.rb +0 -59
  345. data/spec/models/list_cost_center_assignment_spec.rb +0 -59
  346. data/spec/models/list_cost_center_spec.rb +0 -59
  347. data/spec/models/list_credit_card_assignment_spec.rb +0 -59
  348. data/spec/models/list_credit_card_spec.rb +0 -59
  349. data/spec/models/list_file_spec.rb +0 -59
  350. data/spec/models/list_inventory_spec.rb +0 -59
  351. data/spec/models/list_line_item_spec.rb +0 -59
  352. data/spec/models/list_message_cc_listener_assignment_spec.rb +0 -59
  353. data/spec/models/list_message_config_spec.rb +0 -59
  354. data/spec/models/list_message_sender_assignment_spec.rb +0 -59
  355. data/spec/models/list_message_sender_spec.rb +0 -59
  356. data/spec/models/list_order_approval_spec.rb +0 -59
  357. data/spec/models/list_order_promotion_spec.rb +0 -59
  358. data/spec/models/list_order_spec.rb +0 -59
  359. data/spec/models/list_payment_spec.rb +0 -59
  360. data/spec/models/list_price_schedule_spec.rb +0 -59
  361. data/spec/models/list_product_assignment_spec.rb +0 -59
  362. data/spec/models/list_product_spec.rb +0 -59
  363. data/spec/models/list_promotion_assignment_spec.rb +0 -59
  364. data/spec/models/list_promotion_spec.rb +0 -59
  365. data/spec/models/list_security_profile_assignment_spec.rb +0 -59
  366. data/spec/models/list_security_profile_spec.rb +0 -59
  367. data/spec/models/list_shipment_spec.rb +0 -59
  368. data/spec/models/list_spec_option_spec.rb +0 -59
  369. data/spec/models/list_spec_product_assignment_spec.rb +0 -59
  370. data/spec/models/list_spec_spec.rb +0 -59
  371. data/spec/models/list_spending_account_assignment_spec.rb +0 -59
  372. data/spec/models/list_spending_account_spec.rb +0 -59
  373. data/spec/models/list_user_group_assignment_spec.rb +0 -59
  374. data/spec/models/list_user_group_spec.rb +0 -59
  375. data/spec/models/list_user_spec.rb +0 -59
  376. data/spec/models/list_variant_spec.rb +0 -59
  377. data/spec/models/list_web_hook_route_spec.rb +0 -59
  378. data/spec/models/list_web_hook_spec.rb +0 -59
  379. data/spec/models/list_xp_index_spec.rb +0 -59
  380. data/spec/models/message_cc_listener_assignment_spec.rb +0 -83
  381. data/spec/models/message_config_spec.rb +0 -71
  382. data/spec/models/message_sender_assignment_spec.rb +0 -77
  383. data/spec/models/message_sender_spec.rb +0 -65
  384. data/spec/models/meta_spec.rb +0 -77
  385. data/spec/models/order_approval_spec.rb +0 -101
  386. data/spec/models/order_promotion_spec.rb +0 -53
  387. data/spec/models/order_spec.rb +0 -191
  388. data/spec/models/password_reset_request_spec.rb +0 -71
  389. data/spec/models/password_reset_spec.rb +0 -65
  390. data/spec/models/payment_spec.rb +0 -101
  391. data/spec/models/payment_transaction_spec.rb +0 -95
  392. data/spec/models/ping_response_spec.rb +0 -53
  393. data/spec/models/price_break_spec.rb +0 -59
  394. data/spec/models/price_schedule_spec.rb +0 -113
  395. data/spec/models/product_assignment_spec.rb +0 -83
  396. data/spec/models/product_spec.rb +0 -161
  397. data/spec/models/promotion_assignment_spec.rb +0 -71
  398. data/spec/models/promotion_spec.rb +0 -131
  399. data/spec/models/security_profile_assignment_spec.rb +0 -71
  400. data/spec/models/security_profile_spec.rb +0 -71
  401. data/spec/models/shipment_item_spec.rb +0 -65
  402. data/spec/models/shipment_spec.rb +0 -89
  403. data/spec/models/spec_option_spec.rb +0 -89
  404. data/spec/models/spec_product_assignment_spec.rb +0 -65
  405. data/spec/models/spec_spec.rb +0 -53
  406. data/spec/models/spending_account_assignment_spec.rb +0 -71
  407. data/spec/models/spending_account_spec.rb +0 -95
  408. data/spec/models/user_group_assignment_spec.rb +0 -59
  409. data/spec/models/user_group_spec.rb +0 -71
  410. data/spec/models/user_spec.rb +0 -113
  411. data/spec/models/variant_spec.rb +0 -77
  412. data/spec/models/web_hook_route_spec.rb +0 -65
  413. data/spec/models/web_hook_spec.rb +0 -113
  414. data/spec/models/xp_index_spec.rb +0 -59
  415. data/spec/spec_helper.rb +0 -122
@@ -1,421 +0,0 @@
1
- =begin
2
- #OrderCloud
3
-
4
- #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
-
6
- OpenAPI spec version: 1.0
7
- Contact: ordercloud@four51.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
21
-
22
- =end
23
-
24
- require "uri"
25
-
26
- module OrderCloud
27
- class ApprovalRuleApi
28
- attr_accessor :api_client
29
-
30
- def initialize(api_client = ApiClient.default)
31
- @api_client = api_client
32
- end
33
-
34
- #
35
- #
36
- # @param buyer_id ID of the buyer.
37
- # @param approval_rule
38
- # @param [Hash] opts the optional parameters
39
- # @return [ApprovalRule]
40
- def create(buyer_id, approval_rule, opts = {})
41
- data, _status_code, _headers = create_with_http_info(buyer_id, approval_rule, opts)
42
- return data
43
- end
44
-
45
- #
46
- #
47
- # @param buyer_id ID of the buyer.
48
- # @param approval_rule
49
- # @param [Hash] opts the optional parameters
50
- # @return [Array<(ApprovalRule, Fixnum, Hash)>] ApprovalRule data, response status code and response headers
51
- def create_with_http_info(buyer_id, approval_rule, opts = {})
52
- if @api_client.config.debugging
53
- @api_client.config.logger.debug "Calling API: ApprovalRuleApi.create ..."
54
- end
55
- # verify the required parameter 'buyer_id' is set
56
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling ApprovalRuleApi.create" if buyer_id.nil?
57
- # verify the required parameter 'approval_rule' is set
58
- fail ArgumentError, "Missing the required parameter 'approval_rule' when calling ApprovalRuleApi.create" if approval_rule.nil?
59
- # resource path
60
- local_var_path = "/buyers/{buyerID}/approvalrules".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
61
-
62
- # query parameters
63
- query_params = {}
64
-
65
- # header parameters
66
- header_params = {}
67
-
68
- # HTTP header 'Accept' (if needed)
69
- local_header_accept = ['application/json']
70
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
71
-
72
- # HTTP header 'Content-Type'
73
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
74
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
75
-
76
- # form parameters
77
- form_params = {}
78
-
79
- # http body (model)
80
- post_body = @api_client.object_to_http_body(approval_rule)
81
- auth_names = ['oauth2']
82
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
83
- :header_params => header_params,
84
- :query_params => query_params,
85
- :form_params => form_params,
86
- :body => post_body,
87
- :auth_names => auth_names,
88
- :return_type => 'ApprovalRule')
89
- if @api_client.config.debugging
90
- @api_client.config.logger.debug "API called: ApprovalRuleApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
- end
92
- return data, status_code, headers
93
- end
94
-
95
- #
96
- #
97
- # @param buyer_id ID of the buyer.
98
- # @param approval_rule_id ID of the approval rule.
99
- # @param [Hash] opts the optional parameters
100
- # @return [nil]
101
- def delete(buyer_id, approval_rule_id, opts = {})
102
- delete_with_http_info(buyer_id, approval_rule_id, opts)
103
- return nil
104
- end
105
-
106
- #
107
- #
108
- # @param buyer_id ID of the buyer.
109
- # @param approval_rule_id ID of the approval rule.
110
- # @param [Hash] opts the optional parameters
111
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
112
- def delete_with_http_info(buyer_id, approval_rule_id, opts = {})
113
- if @api_client.config.debugging
114
- @api_client.config.logger.debug "Calling API: ApprovalRuleApi.delete ..."
115
- end
116
- # verify the required parameter 'buyer_id' is set
117
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling ApprovalRuleApi.delete" if buyer_id.nil?
118
- # verify the required parameter 'approval_rule_id' is set
119
- fail ArgumentError, "Missing the required parameter 'approval_rule_id' when calling ApprovalRuleApi.delete" if approval_rule_id.nil?
120
- # resource path
121
- local_var_path = "/buyers/{buyerID}/approvalrules/{approvalRuleID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'approvalRuleID' + '}', approval_rule_id.to_s)
122
-
123
- # query parameters
124
- query_params = {}
125
-
126
- # header parameters
127
- header_params = {}
128
-
129
- # HTTP header 'Accept' (if needed)
130
- local_header_accept = ['application/json']
131
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
132
-
133
- # HTTP header 'Content-Type'
134
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
135
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
136
-
137
- # form parameters
138
- form_params = {}
139
-
140
- # http body (model)
141
- post_body = nil
142
- auth_names = ['oauth2']
143
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
144
- :header_params => header_params,
145
- :query_params => query_params,
146
- :form_params => form_params,
147
- :body => post_body,
148
- :auth_names => auth_names)
149
- if @api_client.config.debugging
150
- @api_client.config.logger.debug "API called: ApprovalRuleApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
- end
152
- return data, status_code, headers
153
- end
154
-
155
- #
156
- #
157
- # @param buyer_id ID of the buyer.
158
- # @param approval_rule_id ID of the approval rule.
159
- # @param [Hash] opts the optional parameters
160
- # @return [ApprovalRule]
161
- def get(buyer_id, approval_rule_id, opts = {})
162
- data, _status_code, _headers = get_with_http_info(buyer_id, approval_rule_id, opts)
163
- return data
164
- end
165
-
166
- #
167
- #
168
- # @param buyer_id ID of the buyer.
169
- # @param approval_rule_id ID of the approval rule.
170
- # @param [Hash] opts the optional parameters
171
- # @return [Array<(ApprovalRule, Fixnum, Hash)>] ApprovalRule data, response status code and response headers
172
- def get_with_http_info(buyer_id, approval_rule_id, opts = {})
173
- if @api_client.config.debugging
174
- @api_client.config.logger.debug "Calling API: ApprovalRuleApi.get ..."
175
- end
176
- # verify the required parameter 'buyer_id' is set
177
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling ApprovalRuleApi.get" if buyer_id.nil?
178
- # verify the required parameter 'approval_rule_id' is set
179
- fail ArgumentError, "Missing the required parameter 'approval_rule_id' when calling ApprovalRuleApi.get" if approval_rule_id.nil?
180
- # resource path
181
- local_var_path = "/buyers/{buyerID}/approvalrules/{approvalRuleID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'approvalRuleID' + '}', approval_rule_id.to_s)
182
-
183
- # query parameters
184
- query_params = {}
185
-
186
- # header parameters
187
- header_params = {}
188
-
189
- # HTTP header 'Accept' (if needed)
190
- local_header_accept = ['application/json']
191
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
192
-
193
- # HTTP header 'Content-Type'
194
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
195
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
196
-
197
- # form parameters
198
- form_params = {}
199
-
200
- # http body (model)
201
- post_body = nil
202
- auth_names = ['oauth2']
203
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
204
- :header_params => header_params,
205
- :query_params => query_params,
206
- :form_params => form_params,
207
- :body => post_body,
208
- :auth_names => auth_names,
209
- :return_type => 'ApprovalRule')
210
- if @api_client.config.debugging
211
- @api_client.config.logger.debug "API called: ApprovalRuleApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
- end
213
- return data, status_code, headers
214
- end
215
-
216
- #
217
- #
218
- # @param buyer_id ID of the buyer.
219
- # @param [Hash] opts the optional parameters
220
- # @option opts [String] :search Word or phrase to search for.
221
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
222
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
223
- # @option opts [Integer] :page Page of results to return. Default: 1
224
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
225
- # @option opts [Hash<String, String>] :filters 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;
226
- # @return [ListApprovalRule]
227
- def list(buyer_id, opts = {})
228
- data, _status_code, _headers = list_with_http_info(buyer_id, opts)
229
- return data
230
- end
231
-
232
- #
233
- #
234
- # @param buyer_id ID of the buyer.
235
- # @param [Hash] opts the optional parameters
236
- # @option opts [String] :search Word or phrase to search for.
237
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
238
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
239
- # @option opts [Integer] :page Page of results to return. Default: 1
240
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
241
- # @option opts [Hash<String, String>] :filters 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;
242
- # @return [Array<(ListApprovalRule, Fixnum, Hash)>] ListApprovalRule data, response status code and response headers
243
- def list_with_http_info(buyer_id, opts = {})
244
- if @api_client.config.debugging
245
- @api_client.config.logger.debug "Calling API: ApprovalRuleApi.list ..."
246
- end
247
- # verify the required parameter 'buyer_id' is set
248
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling ApprovalRuleApi.list" if buyer_id.nil?
249
- # resource path
250
- local_var_path = "/buyers/{buyerID}/approvalrules".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
251
-
252
- # query parameters
253
- query_params = {}
254
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
255
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
256
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
257
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
258
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
259
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
260
-
261
- # header parameters
262
- header_params = {}
263
-
264
- # HTTP header 'Accept' (if needed)
265
- local_header_accept = ['application/json']
266
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
267
-
268
- # HTTP header 'Content-Type'
269
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
270
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
271
-
272
- # form parameters
273
- form_params = {}
274
-
275
- # http body (model)
276
- post_body = nil
277
- auth_names = ['oauth2']
278
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
279
- :header_params => header_params,
280
- :query_params => query_params,
281
- :form_params => form_params,
282
- :body => post_body,
283
- :auth_names => auth_names,
284
- :return_type => 'ListApprovalRule')
285
- if @api_client.config.debugging
286
- @api_client.config.logger.debug "API called: ApprovalRuleApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
287
- end
288
- return data, status_code, headers
289
- end
290
-
291
- #
292
- #
293
- # @param buyer_id ID of the buyer.
294
- # @param approval_rule_id ID of the approval rule.
295
- # @param partial_approval_rule
296
- # @param [Hash] opts the optional parameters
297
- # @return [ApprovalRule]
298
- def patch(buyer_id, approval_rule_id, partial_approval_rule, opts = {})
299
- data, _status_code, _headers = patch_with_http_info(buyer_id, approval_rule_id, partial_approval_rule, opts)
300
- return data
301
- end
302
-
303
- #
304
- #
305
- # @param buyer_id ID of the buyer.
306
- # @param approval_rule_id ID of the approval rule.
307
- # @param partial_approval_rule
308
- # @param [Hash] opts the optional parameters
309
- # @return [Array<(ApprovalRule, Fixnum, Hash)>] ApprovalRule data, response status code and response headers
310
- def patch_with_http_info(buyer_id, approval_rule_id, partial_approval_rule, opts = {})
311
- if @api_client.config.debugging
312
- @api_client.config.logger.debug "Calling API: ApprovalRuleApi.patch ..."
313
- end
314
- # verify the required parameter 'buyer_id' is set
315
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling ApprovalRuleApi.patch" if buyer_id.nil?
316
- # verify the required parameter 'approval_rule_id' is set
317
- fail ArgumentError, "Missing the required parameter 'approval_rule_id' when calling ApprovalRuleApi.patch" if approval_rule_id.nil?
318
- # verify the required parameter 'partial_approval_rule' is set
319
- fail ArgumentError, "Missing the required parameter 'partial_approval_rule' when calling ApprovalRuleApi.patch" if partial_approval_rule.nil?
320
- # resource path
321
- local_var_path = "/buyers/{buyerID}/approvalrules/{approvalRuleID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'approvalRuleID' + '}', approval_rule_id.to_s)
322
-
323
- # query parameters
324
- query_params = {}
325
-
326
- # header parameters
327
- header_params = {}
328
-
329
- # HTTP header 'Accept' (if needed)
330
- local_header_accept = ['application/json']
331
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
332
-
333
- # HTTP header 'Content-Type'
334
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
335
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
336
-
337
- # form parameters
338
- form_params = {}
339
-
340
- # http body (model)
341
- post_body = @api_client.object_to_http_body(partial_approval_rule)
342
- auth_names = ['oauth2']
343
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
344
- :header_params => header_params,
345
- :query_params => query_params,
346
- :form_params => form_params,
347
- :body => post_body,
348
- :auth_names => auth_names,
349
- :return_type => 'ApprovalRule')
350
- if @api_client.config.debugging
351
- @api_client.config.logger.debug "API called: ApprovalRuleApi#patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
352
- end
353
- return data, status_code, headers
354
- end
355
-
356
- #
357
- #
358
- # @param buyer_id ID of the buyer.
359
- # @param approval_rule_id ID of the approval rule.
360
- # @param approval_rule
361
- # @param [Hash] opts the optional parameters
362
- # @return [ApprovalRule]
363
- def update(buyer_id, approval_rule_id, approval_rule, opts = {})
364
- data, _status_code, _headers = update_with_http_info(buyer_id, approval_rule_id, approval_rule, opts)
365
- return data
366
- end
367
-
368
- #
369
- #
370
- # @param buyer_id ID of the buyer.
371
- # @param approval_rule_id ID of the approval rule.
372
- # @param approval_rule
373
- # @param [Hash] opts the optional parameters
374
- # @return [Array<(ApprovalRule, Fixnum, Hash)>] ApprovalRule data, response status code and response headers
375
- def update_with_http_info(buyer_id, approval_rule_id, approval_rule, opts = {})
376
- if @api_client.config.debugging
377
- @api_client.config.logger.debug "Calling API: ApprovalRuleApi.update ..."
378
- end
379
- # verify the required parameter 'buyer_id' is set
380
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling ApprovalRuleApi.update" if buyer_id.nil?
381
- # verify the required parameter 'approval_rule_id' is set
382
- fail ArgumentError, "Missing the required parameter 'approval_rule_id' when calling ApprovalRuleApi.update" if approval_rule_id.nil?
383
- # verify the required parameter 'approval_rule' is set
384
- fail ArgumentError, "Missing the required parameter 'approval_rule' when calling ApprovalRuleApi.update" if approval_rule.nil?
385
- # resource path
386
- local_var_path = "/buyers/{buyerID}/approvalrules/{approvalRuleID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'approvalRuleID' + '}', approval_rule_id.to_s)
387
-
388
- # query parameters
389
- query_params = {}
390
-
391
- # header parameters
392
- header_params = {}
393
-
394
- # HTTP header 'Accept' (if needed)
395
- local_header_accept = ['application/json']
396
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
397
-
398
- # HTTP header 'Content-Type'
399
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
400
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
401
-
402
- # form parameters
403
- form_params = {}
404
-
405
- # http body (model)
406
- post_body = @api_client.object_to_http_body(approval_rule)
407
- auth_names = ['oauth2']
408
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
409
- :header_params => header_params,
410
- :query_params => query_params,
411
- :form_params => form_params,
412
- :body => post_body,
413
- :auth_names => auth_names,
414
- :return_type => 'ApprovalRule')
415
- if @api_client.config.debugging
416
- @api_client.config.logger.debug "API called: ApprovalRuleApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
417
- end
418
- return data, status_code, headers
419
- end
420
- end
421
- end
@@ -1,397 +0,0 @@
1
- =begin
2
- #OrderCloud
3
-
4
- #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
-
6
- OpenAPI spec version: 1.0
7
- Contact: ordercloud@four51.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
21
-
22
- =end
23
-
24
- require "uri"
25
-
26
- module OrderCloud
27
- class BuyerApi
28
- attr_accessor :api_client
29
-
30
- def initialize(api_client = ApiClient.default)
31
- @api_client = api_client
32
- end
33
-
34
- #
35
- #
36
- # @param company
37
- # @param [Hash] opts the optional parameters
38
- # @return [Buyer]
39
- def create(company, opts = {})
40
- data, _status_code, _headers = create_with_http_info(company, opts)
41
- return data
42
- end
43
-
44
- #
45
- #
46
- # @param company
47
- # @param [Hash] opts the optional parameters
48
- # @return [Array<(Buyer, Fixnum, Hash)>] Buyer data, response status code and response headers
49
- def create_with_http_info(company, opts = {})
50
- if @api_client.config.debugging
51
- @api_client.config.logger.debug "Calling API: BuyerApi.create ..."
52
- end
53
- # verify the required parameter 'company' is set
54
- fail ArgumentError, "Missing the required parameter 'company' when calling BuyerApi.create" if company.nil?
55
- # resource path
56
- local_var_path = "/buyers".sub('{format}','json')
57
-
58
- # query parameters
59
- query_params = {}
60
-
61
- # header parameters
62
- header_params = {}
63
-
64
- # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['application/json']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
68
- # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
-
72
- # form parameters
73
- form_params = {}
74
-
75
- # http body (model)
76
- post_body = @api_client.object_to_http_body(company)
77
- auth_names = ['oauth2']
78
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
79
- :header_params => header_params,
80
- :query_params => query_params,
81
- :form_params => form_params,
82
- :body => post_body,
83
- :auth_names => auth_names,
84
- :return_type => 'Buyer')
85
- if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: BuyerApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
- end
88
- return data, status_code, headers
89
- end
90
-
91
- #
92
- #
93
- # @param buyer_id ID of the buyer.
94
- # @param [Hash] opts the optional parameters
95
- # @return [nil]
96
- def delete(buyer_id, opts = {})
97
- delete_with_http_info(buyer_id, opts)
98
- return nil
99
- end
100
-
101
- #
102
- #
103
- # @param buyer_id ID of the buyer.
104
- # @param [Hash] opts the optional parameters
105
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
106
- def delete_with_http_info(buyer_id, opts = {})
107
- if @api_client.config.debugging
108
- @api_client.config.logger.debug "Calling API: BuyerApi.delete ..."
109
- end
110
- # verify the required parameter 'buyer_id' is set
111
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling BuyerApi.delete" if buyer_id.nil?
112
- # resource path
113
- local_var_path = "/buyers/{buyerID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
114
-
115
- # query parameters
116
- query_params = {}
117
-
118
- # header parameters
119
- header_params = {}
120
-
121
- # HTTP header 'Accept' (if needed)
122
- local_header_accept = ['application/json']
123
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
124
-
125
- # HTTP header 'Content-Type'
126
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
127
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
128
-
129
- # form parameters
130
- form_params = {}
131
-
132
- # http body (model)
133
- post_body = nil
134
- auth_names = ['oauth2']
135
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
136
- :header_params => header_params,
137
- :query_params => query_params,
138
- :form_params => form_params,
139
- :body => post_body,
140
- :auth_names => auth_names)
141
- if @api_client.config.debugging
142
- @api_client.config.logger.debug "API called: BuyerApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
143
- end
144
- return data, status_code, headers
145
- end
146
-
147
- #
148
- #
149
- # @param buyer_id ID of the buyer.
150
- # @param [Hash] opts the optional parameters
151
- # @return [Buyer]
152
- def get(buyer_id, opts = {})
153
- data, _status_code, _headers = get_with_http_info(buyer_id, opts)
154
- return data
155
- end
156
-
157
- #
158
- #
159
- # @param buyer_id ID of the buyer.
160
- # @param [Hash] opts the optional parameters
161
- # @return [Array<(Buyer, Fixnum, Hash)>] Buyer data, response status code and response headers
162
- def get_with_http_info(buyer_id, opts = {})
163
- if @api_client.config.debugging
164
- @api_client.config.logger.debug "Calling API: BuyerApi.get ..."
165
- end
166
- # verify the required parameter 'buyer_id' is set
167
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling BuyerApi.get" if buyer_id.nil?
168
- # resource path
169
- local_var_path = "/buyers/{buyerID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
170
-
171
- # query parameters
172
- query_params = {}
173
-
174
- # header parameters
175
- header_params = {}
176
-
177
- # HTTP header 'Accept' (if needed)
178
- local_header_accept = ['application/json']
179
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
180
-
181
- # HTTP header 'Content-Type'
182
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
183
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
184
-
185
- # form parameters
186
- form_params = {}
187
-
188
- # http body (model)
189
- post_body = nil
190
- auth_names = ['oauth2']
191
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
192
- :header_params => header_params,
193
- :query_params => query_params,
194
- :form_params => form_params,
195
- :body => post_body,
196
- :auth_names => auth_names,
197
- :return_type => 'Buyer')
198
- if @api_client.config.debugging
199
- @api_client.config.logger.debug "API called: BuyerApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
200
- end
201
- return data, status_code, headers
202
- end
203
-
204
- #
205
- #
206
- # @param [Hash] opts the optional parameters
207
- # @option opts [String] :search Word or phrase to search for.
208
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
209
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
210
- # @option opts [Integer] :page Page of results to return. Default: 1
211
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
212
- # @option opts [Hash<String, String>] :filters 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;
213
- # @return [ListBuyer]
214
- def list(opts = {})
215
- data, _status_code, _headers = list_with_http_info(opts)
216
- return data
217
- end
218
-
219
- #
220
- #
221
- # @param [Hash] opts the optional parameters
222
- # @option opts [String] :search Word or phrase to search for.
223
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
224
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
225
- # @option opts [Integer] :page Page of results to return. Default: 1
226
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
227
- # @option opts [Hash<String, String>] :filters 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;
228
- # @return [Array<(ListBuyer, Fixnum, Hash)>] ListBuyer data, response status code and response headers
229
- def list_with_http_info(opts = {})
230
- if @api_client.config.debugging
231
- @api_client.config.logger.debug "Calling API: BuyerApi.list ..."
232
- end
233
- # resource path
234
- local_var_path = "/buyers".sub('{format}','json')
235
-
236
- # query parameters
237
- query_params = {}
238
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
239
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
240
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
241
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
242
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
243
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
244
-
245
- # header parameters
246
- header_params = {}
247
-
248
- # HTTP header 'Accept' (if needed)
249
- local_header_accept = ['application/json']
250
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
251
-
252
- # HTTP header 'Content-Type'
253
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
254
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
255
-
256
- # form parameters
257
- form_params = {}
258
-
259
- # http body (model)
260
- post_body = nil
261
- auth_names = ['oauth2']
262
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
263
- :header_params => header_params,
264
- :query_params => query_params,
265
- :form_params => form_params,
266
- :body => post_body,
267
- :auth_names => auth_names,
268
- :return_type => 'ListBuyer')
269
- if @api_client.config.debugging
270
- @api_client.config.logger.debug "API called: BuyerApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
- end
272
- return data, status_code, headers
273
- end
274
-
275
- #
276
- #
277
- # @param buyer_id ID of the buyer.
278
- # @param company
279
- # @param [Hash] opts the optional parameters
280
- # @return [Buyer]
281
- def patch(buyer_id, company, opts = {})
282
- data, _status_code, _headers = patch_with_http_info(buyer_id, company, opts)
283
- return data
284
- end
285
-
286
- #
287
- #
288
- # @param buyer_id ID of the buyer.
289
- # @param company
290
- # @param [Hash] opts the optional parameters
291
- # @return [Array<(Buyer, Fixnum, Hash)>] Buyer data, response status code and response headers
292
- def patch_with_http_info(buyer_id, company, opts = {})
293
- if @api_client.config.debugging
294
- @api_client.config.logger.debug "Calling API: BuyerApi.patch ..."
295
- end
296
- # verify the required parameter 'buyer_id' is set
297
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling BuyerApi.patch" if buyer_id.nil?
298
- # verify the required parameter 'company' is set
299
- fail ArgumentError, "Missing the required parameter 'company' when calling BuyerApi.patch" if company.nil?
300
- # resource path
301
- local_var_path = "/buyers/{buyerID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
302
-
303
- # query parameters
304
- query_params = {}
305
-
306
- # header parameters
307
- header_params = {}
308
-
309
- # HTTP header 'Accept' (if needed)
310
- local_header_accept = ['application/json']
311
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
312
-
313
- # HTTP header 'Content-Type'
314
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
315
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
316
-
317
- # form parameters
318
- form_params = {}
319
-
320
- # http body (model)
321
- post_body = @api_client.object_to_http_body(company)
322
- auth_names = ['oauth2']
323
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
324
- :header_params => header_params,
325
- :query_params => query_params,
326
- :form_params => form_params,
327
- :body => post_body,
328
- :auth_names => auth_names,
329
- :return_type => 'Buyer')
330
- if @api_client.config.debugging
331
- @api_client.config.logger.debug "API called: BuyerApi#patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
- end
333
- return data, status_code, headers
334
- end
335
-
336
- #
337
- #
338
- # @param buyer_id ID of the buyer.
339
- # @param company
340
- # @param [Hash] opts the optional parameters
341
- # @return [Buyer]
342
- def update(buyer_id, company, opts = {})
343
- data, _status_code, _headers = update_with_http_info(buyer_id, company, opts)
344
- return data
345
- end
346
-
347
- #
348
- #
349
- # @param buyer_id ID of the buyer.
350
- # @param company
351
- # @param [Hash] opts the optional parameters
352
- # @return [Array<(Buyer, Fixnum, Hash)>] Buyer data, response status code and response headers
353
- def update_with_http_info(buyer_id, company, opts = {})
354
- if @api_client.config.debugging
355
- @api_client.config.logger.debug "Calling API: BuyerApi.update ..."
356
- end
357
- # verify the required parameter 'buyer_id' is set
358
- fail ArgumentError, "Missing the required parameter 'buyer_id' when calling BuyerApi.update" if buyer_id.nil?
359
- # verify the required parameter 'company' is set
360
- fail ArgumentError, "Missing the required parameter 'company' when calling BuyerApi.update" if company.nil?
361
- # resource path
362
- local_var_path = "/buyers/{buyerID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s)
363
-
364
- # query parameters
365
- query_params = {}
366
-
367
- # header parameters
368
- header_params = {}
369
-
370
- # HTTP header 'Accept' (if needed)
371
- local_header_accept = ['application/json']
372
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
373
-
374
- # HTTP header 'Content-Type'
375
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
376
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
377
-
378
- # form parameters
379
- form_params = {}
380
-
381
- # http body (model)
382
- post_body = @api_client.object_to_http_body(company)
383
- auth_names = ['oauth2']
384
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
385
- :header_params => header_params,
386
- :query_params => query_params,
387
- :form_params => form_params,
388
- :body => post_body,
389
- :auth_names => auth_names,
390
- :return_type => 'Buyer')
391
- if @api_client.config.debugging
392
- @api_client.config.logger.debug "API called: BuyerApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
393
- end
394
- return data, status_code, headers
395
- end
396
- end
397
- end