order_cloud 0.0.6 → 1.0.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (415) hide show
  1. checksums.yaml +5 -13
  2. metadata +45 -594
  3. data/Gemfile +0 -28
  4. data/Gemfile.lock +0 -34
  5. data/LICENSE +0 -201
  6. data/README.md +0 -498
  7. data/Rakefile +0 -31
  8. data/docs/AccessToken.md +0 -10
  9. data/docs/Address.md +0 -20
  10. data/docs/AddressApi.md +0 -520
  11. data/docs/AddressAssignment.md +0 -12
  12. data/docs/AdminAddressApi.md +0 -324
  13. data/docs/AdminCompany.md +0 -10
  14. data/docs/AdminModelOnView.md +0 -7
  15. data/docs/AdminUserApi.md +0 -323
  16. data/docs/AdminUserGroupApi.md +0 -482
  17. data/docs/ApprovalRule.md +0 -20
  18. data/docs/ApprovalRuleApi.md +0 -342
  19. data/docs/BaseSpec.md +0 -15
  20. data/docs/Buyer.md +0 -11
  21. data/docs/BuyerAddress.md +0 -11
  22. data/docs/BuyerApi.md +0 -324
  23. data/docs/BuyerCreditCard.md +0 -9
  24. data/docs/BuyerProduct.md +0 -9
  25. data/docs/BuyerSpec.md +0 -9
  26. data/docs/Category.md +0 -15
  27. data/docs/CategoryApi.md +0 -685
  28. data/docs/CategoryAssignment.md +0 -10
  29. data/docs/CategoryProductAssignment.md +0 -10
  30. data/docs/CostCenter.md +0 -11
  31. data/docs/CostCenterApi.md +0 -516
  32. data/docs/CostCenterAssignment.md +0 -10
  33. data/docs/CreditCard.md +0 -15
  34. data/docs/CreditCardApi.md +0 -516
  35. data/docs/CreditCardAssignment.md +0 -10
  36. data/docs/EmailTemplate.md +0 -12
  37. data/docs/EmailTemplateApi.md +0 -223
  38. data/docs/File.md +0 -10
  39. data/docs/ImpersonateTokenRequest.md +0 -9
  40. data/docs/Inventory.md +0 -12
  41. data/docs/LineItem.md +0 -23
  42. data/docs/LineItemApi.md +0 -478
  43. data/docs/LineItemSpec.md +0 -11
  44. data/docs/ListAddress.md +0 -9
  45. data/docs/ListAddressAssignment.md +0 -9
  46. data/docs/ListAdminCompany.md +0 -9
  47. data/docs/ListApprovalRule.md +0 -9
  48. data/docs/ListBuyer.md +0 -9
  49. data/docs/ListBuyerAddress.md +0 -9
  50. data/docs/ListBuyerCreditCard.md +0 -9
  51. data/docs/ListBuyerProduct.md +0 -9
  52. data/docs/ListBuyerSpec.md +0 -9
  53. data/docs/ListCategory.md +0 -9
  54. data/docs/ListCategoryAssignment.md +0 -9
  55. data/docs/ListCategoryProductAssignment.md +0 -9
  56. data/docs/ListCostCenter.md +0 -9
  57. data/docs/ListCostCenterAssignment.md +0 -9
  58. data/docs/ListCreditCard.md +0 -9
  59. data/docs/ListCreditCardAssignment.md +0 -9
  60. data/docs/ListFile.md +0 -9
  61. data/docs/ListInventory.md +0 -9
  62. data/docs/ListLineItem.md +0 -9
  63. data/docs/ListMessageCCListenerAssignment.md +0 -9
  64. data/docs/ListMessageConfig.md +0 -9
  65. data/docs/ListMessageSender.md +0 -9
  66. data/docs/ListMessageSenderAssignment.md +0 -9
  67. data/docs/ListOrder.md +0 -9
  68. data/docs/ListOrderApproval.md +0 -9
  69. data/docs/ListOrderPromotion.md +0 -9
  70. data/docs/ListPayment.md +0 -9
  71. data/docs/ListPriceSchedule.md +0 -9
  72. data/docs/ListProduct.md +0 -9
  73. data/docs/ListProductAssignment.md +0 -9
  74. data/docs/ListPromotion.md +0 -9
  75. data/docs/ListPromotionAssignment.md +0 -9
  76. data/docs/ListSecurityProfile.md +0 -9
  77. data/docs/ListSecurityProfileAssignment.md +0 -9
  78. data/docs/ListShipment.md +0 -9
  79. data/docs/ListSpec.md +0 -9
  80. data/docs/ListSpecOption.md +0 -9
  81. data/docs/ListSpecProductAssignment.md +0 -9
  82. data/docs/ListSpendingAccount.md +0 -9
  83. data/docs/ListSpendingAccountAssignment.md +0 -9
  84. data/docs/ListUser.md +0 -9
  85. data/docs/ListUserGroup.md +0 -9
  86. data/docs/ListUserGroupAssignment.md +0 -9
  87. data/docs/ListVariant.md +0 -9
  88. data/docs/ListWebHook.md +0 -9
  89. data/docs/ListWebHookRoute.md +0 -9
  90. data/docs/ListXpIndex.md +0 -9
  91. data/docs/MeApi.md +0 -1488
  92. data/docs/MessageCCListenerAssignment.md +0 -13
  93. data/docs/MessageConfig.md +0 -11
  94. data/docs/MessageSender.md +0 -10
  95. data/docs/MessageSenderAssignment.md +0 -12
  96. data/docs/MessageSendersApi.md +0 -398
  97. data/docs/Meta.md +0 -12
  98. data/docs/Order.md +0 -31
  99. data/docs/OrderApi.md +0 -1277
  100. data/docs/OrderApproval.md +0 -16
  101. data/docs/OrderPromotion.md +0 -8
  102. data/docs/PasswordReset.md +0 -10
  103. data/docs/PasswordResetApi.md +0 -109
  104. data/docs/PasswordResetRequest.md +0 -11
  105. data/docs/Payment.md +0 -16
  106. data/docs/PaymentApi.md +0 -601
  107. data/docs/PaymentTransaction.md +0 -15
  108. data/docs/PingResponse.md +0 -8
  109. data/docs/PriceBreak.md +0 -9
  110. data/docs/PriceSchedule.md +0 -18
  111. data/docs/PriceScheduleApi.md +0 -429
  112. data/docs/Product.md +0 -26
  113. data/docs/ProductApi.md +0 -1116
  114. data/docs/ProductAssignment.md +0 -13
  115. data/docs/Promotion.md +0 -21
  116. data/docs/PromotionApi.md +0 -495
  117. data/docs/PromotionAssignment.md +0 -11
  118. data/docs/SecurityProfile.md +0 -11
  119. data/docs/SecurityProfileApi.md +0 -290
  120. data/docs/SecurityProfileAssignment.md +0 -11
  121. data/docs/Shipment.md +0 -14
  122. data/docs/ShipmentApi.md +0 -459
  123. data/docs/ShipmentItem.md +0 -10
  124. data/docs/Spec.md +0 -8
  125. data/docs/SpecApi.md +0 -816
  126. data/docs/SpecOption.md +0 -14
  127. data/docs/SpecProductAssignment.md +0 -10
  128. data/docs/SpendingAccount.md +0 -15
  129. data/docs/SpendingAccountApi.md +0 -516
  130. data/docs/SpendingAccountAssignment.md +0 -11
  131. data/docs/User.md +0 -18
  132. data/docs/UserApi.md +0 -400
  133. data/docs/UserGroup.md +0 -11
  134. data/docs/UserGroupApi.md +0 -509
  135. data/docs/UserGroupAssignment.md +0 -9
  136. data/docs/Variant.md +0 -12
  137. data/docs/WebHook.md +0 -18
  138. data/docs/WebHookRoute.md +0 -10
  139. data/docs/XpIndex.md +0 -9
  140. data/git_push.sh +0 -67
  141. data/lib/order_cloud.rb +0 -183
  142. data/lib/order_cloud/api/address_api.rb +0 -628
  143. data/lib/order_cloud/api/admin_address_api.rb +0 -397
  144. data/lib/order_cloud/api/admin_user_api.rb +0 -396
  145. data/lib/order_cloud/api/admin_user_group_api.rb +0 -578
  146. data/lib/order_cloud/api/approval_rule_api.rb +0 -421
  147. data/lib/order_cloud/api/buyer_api.rb +0 -397
  148. data/lib/order_cloud/api/category_api.rb +0 -818
  149. data/lib/order_cloud/api/cost_center_api.rb +0 -622
  150. data/lib/order_cloud/api/credit_card_api.rb +0 -622
  151. data/lib/order_cloud/api/email_template_api.rb +0 -283
  152. data/lib/order_cloud/api/line_item_api.rb +0 -583
  153. data/lib/order_cloud/api/me_api.rb +0 -1747
  154. data/lib/order_cloud/api/message_senders_api.rb +0 -484
  155. data/lib/order_cloud/api/order_api.rb +0 -1509
  156. data/lib/order_cloud/api/password_reset_api.rb +0 -150
  157. data/lib/order_cloud/api/payment_api.rb +0 -728
  158. data/lib/order_cloud/api/price_schedule_api.rb +0 -519
  159. data/lib/order_cloud/api/product_api.rb +0 -1312
  160. data/lib/order_cloud/api/promotion_api.rb +0 -596
  161. data/lib/order_cloud/api/security_profile_api.rb +0 -361
  162. data/lib/order_cloud/api/shipment_api.rb +0 -558
  163. data/lib/order_cloud/api/spec_api.rb +0 -965
  164. data/lib/order_cloud/api/spending_account_api.rb +0 -622
  165. data/lib/order_cloud/api/user_api.rb +0 -489
  166. data/lib/order_cloud/api/user_group_api.rb +0 -614
  167. data/lib/order_cloud/api_auth.rb +0 -108
  168. data/lib/order_cloud/api_client.rb +0 -385
  169. data/lib/order_cloud/api_error.rb +0 -47
  170. data/lib/order_cloud/configuration.rb +0 -245
  171. data/lib/order_cloud/models/access_token.rb +0 -217
  172. data/lib/order_cloud/models/address.rb +0 -307
  173. data/lib/order_cloud/models/address_assignment.rb +0 -235
  174. data/lib/order_cloud/models/admin_company.rb +0 -217
  175. data/lib/order_cloud/models/admin_model_on_view.rb +0 -190
  176. data/lib/order_cloud/models/approval_rule.rb +0 -307
  177. data/lib/order_cloud/models/base_spec.rb +0 -262
  178. data/lib/order_cloud/models/buyer.rb +0 -226
  179. data/lib/order_cloud/models/buyer_address.rb +0 -226
  180. data/lib/order_cloud/models/buyer_credit_card.rb +0 -208
  181. data/lib/order_cloud/models/buyer_product.rb +0 -208
  182. data/lib/order_cloud/models/buyer_spec.rb +0 -210
  183. data/lib/order_cloud/models/category.rb +0 -262
  184. data/lib/order_cloud/models/category_assignment.rb +0 -217
  185. data/lib/order_cloud/models/category_product_assignment.rb +0 -217
  186. data/lib/order_cloud/models/cost_center.rb +0 -226
  187. data/lib/order_cloud/models/cost_center_assignment.rb +0 -217
  188. data/lib/order_cloud/models/credit_card.rb +0 -262
  189. data/lib/order_cloud/models/credit_card_assignment.rb +0 -217
  190. data/lib/order_cloud/models/email_template.rb +0 -235
  191. data/lib/order_cloud/models/file.rb +0 -217
  192. data/lib/order_cloud/models/impersonate_token_request.rb +0 -208
  193. data/lib/order_cloud/models/inventory.rb +0 -235
  194. data/lib/order_cloud/models/line_item.rb +0 -336
  195. data/lib/order_cloud/models/line_item_spec.rb +0 -226
  196. data/lib/order_cloud/models/list_address.rb +0 -210
  197. data/lib/order_cloud/models/list_address_assignment.rb +0 -210
  198. data/lib/order_cloud/models/list_admin_company.rb +0 -210
  199. data/lib/order_cloud/models/list_approval_rule.rb +0 -210
  200. data/lib/order_cloud/models/list_buyer.rb +0 -210
  201. data/lib/order_cloud/models/list_buyer_address.rb +0 -210
  202. data/lib/order_cloud/models/list_buyer_credit_card.rb +0 -210
  203. data/lib/order_cloud/models/list_buyer_product.rb +0 -210
  204. data/lib/order_cloud/models/list_buyer_spec.rb +0 -210
  205. data/lib/order_cloud/models/list_category.rb +0 -210
  206. data/lib/order_cloud/models/list_category_assignment.rb +0 -210
  207. data/lib/order_cloud/models/list_category_product_assignment.rb +0 -210
  208. data/lib/order_cloud/models/list_cost_center.rb +0 -210
  209. data/lib/order_cloud/models/list_cost_center_assignment.rb +0 -210
  210. data/lib/order_cloud/models/list_credit_card.rb +0 -210
  211. data/lib/order_cloud/models/list_credit_card_assignment.rb +0 -210
  212. data/lib/order_cloud/models/list_file.rb +0 -210
  213. data/lib/order_cloud/models/list_inventory.rb +0 -210
  214. data/lib/order_cloud/models/list_line_item.rb +0 -210
  215. data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +0 -210
  216. data/lib/order_cloud/models/list_message_config.rb +0 -210
  217. data/lib/order_cloud/models/list_message_sender.rb +0 -210
  218. data/lib/order_cloud/models/list_message_sender_assignment.rb +0 -210
  219. data/lib/order_cloud/models/list_order.rb +0 -210
  220. data/lib/order_cloud/models/list_order_approval.rb +0 -210
  221. data/lib/order_cloud/models/list_order_promotion.rb +0 -210
  222. data/lib/order_cloud/models/list_payment.rb +0 -210
  223. data/lib/order_cloud/models/list_price_schedule.rb +0 -210
  224. data/lib/order_cloud/models/list_product.rb +0 -210
  225. data/lib/order_cloud/models/list_product_assignment.rb +0 -210
  226. data/lib/order_cloud/models/list_promotion.rb +0 -210
  227. data/lib/order_cloud/models/list_promotion_assignment.rb +0 -210
  228. data/lib/order_cloud/models/list_security_profile.rb +0 -210
  229. data/lib/order_cloud/models/list_security_profile_assignment.rb +0 -210
  230. data/lib/order_cloud/models/list_shipment.rb +0 -210
  231. data/lib/order_cloud/models/list_spec.rb +0 -210
  232. data/lib/order_cloud/models/list_spec_option.rb +0 -210
  233. data/lib/order_cloud/models/list_spec_product_assignment.rb +0 -210
  234. data/lib/order_cloud/models/list_spending_account.rb +0 -210
  235. data/lib/order_cloud/models/list_spending_account_assignment.rb +0 -210
  236. data/lib/order_cloud/models/list_user.rb +0 -210
  237. data/lib/order_cloud/models/list_user_group.rb +0 -210
  238. data/lib/order_cloud/models/list_user_group_assignment.rb +0 -210
  239. data/lib/order_cloud/models/list_variant.rb +0 -210
  240. data/lib/order_cloud/models/list_web_hook.rb +0 -210
  241. data/lib/order_cloud/models/list_web_hook_route.rb +0 -210
  242. data/lib/order_cloud/models/list_xp_index.rb +0 -210
  243. data/lib/order_cloud/models/message_cc_listener_assignment.rb +0 -244
  244. data/lib/order_cloud/models/message_config.rb +0 -226
  245. data/lib/order_cloud/models/message_sender.rb +0 -217
  246. data/lib/order_cloud/models/message_sender_assignment.rb +0 -235
  247. data/lib/order_cloud/models/meta.rb +0 -237
  248. data/lib/order_cloud/models/order.rb +0 -406
  249. data/lib/order_cloud/models/order_approval.rb +0 -271
  250. data/lib/order_cloud/models/order_promotion.rb +0 -199
  251. data/lib/order_cloud/models/password_reset.rb +0 -217
  252. data/lib/order_cloud/models/password_reset_request.rb +0 -226
  253. data/lib/order_cloud/models/payment.rb +0 -273
  254. data/lib/order_cloud/models/payment_transaction.rb +0 -262
  255. data/lib/order_cloud/models/ping_response.rb +0 -199
  256. data/lib/order_cloud/models/price_break.rb +0 -208
  257. data/lib/order_cloud/models/price_schedule.rb +0 -291
  258. data/lib/order_cloud/models/product.rb +0 -361
  259. data/lib/order_cloud/models/product_assignment.rb +0 -244
  260. data/lib/order_cloud/models/promotion.rb +0 -316
  261. data/lib/order_cloud/models/promotion_assignment.rb +0 -226
  262. data/lib/order_cloud/models/security_profile.rb +0 -228
  263. data/lib/order_cloud/models/security_profile_assignment.rb +0 -226
  264. data/lib/order_cloud/models/shipment.rb +0 -255
  265. data/lib/order_cloud/models/shipment_item.rb +0 -217
  266. data/lib/order_cloud/models/spec.rb +0 -199
  267. data/lib/order_cloud/models/spec_option.rb +0 -253
  268. data/lib/order_cloud/models/spec_product_assignment.rb +0 -217
  269. data/lib/order_cloud/models/spending_account.rb +0 -262
  270. data/lib/order_cloud/models/spending_account_assignment.rb +0 -226
  271. data/lib/order_cloud/models/user.rb +0 -291
  272. data/lib/order_cloud/models/user_group.rb +0 -226
  273. data/lib/order_cloud/models/user_group_assignment.rb +0 -208
  274. data/lib/order_cloud/models/variant.rb +0 -235
  275. data/lib/order_cloud/models/web_hook.rb +0 -289
  276. data/lib/order_cloud/models/web_hook_route.rb +0 -217
  277. data/lib/order_cloud/models/xp_index.rb +0 -208
  278. data/lib/order_cloud/version.rb +0 -26
  279. data/order_cloud.gemspec +0 -56
  280. data/spec/api/address_api_spec.rb +0 -179
  281. data/spec/api/admin_address_api_spec.rb +0 -125
  282. data/spec/api/admin_user_api_spec.rb +0 -125
  283. data/spec/api/admin_user_group_api_spec.rb +0 -165
  284. data/spec/api/approval_rule_api_spec.rb +0 -131
  285. data/spec/api/buyer_api_spec.rb +0 -125
  286. data/spec/api/category_api_spec.rb +0 -221
  287. data/spec/api/cost_center_api_spec.rb +0 -177
  288. data/spec/api/credit_card_api_spec.rb +0 -177
  289. data/spec/api/email_template_api_spec.rb +0 -100
  290. data/spec/api/line_item_api_spec.rb +0 -167
  291. data/spec/api/me_api_spec.rb +0 -431
  292. data/spec/api/message_senders_api_spec.rb +0 -149
  293. data/spec/api/order_api_spec.rb +0 -375
  294. data/spec/api/password_reset_api_spec.rb +0 -71
  295. data/spec/api/payment_api_spec.rb +0 -199
  296. data/spec/api/price_schedule_api_spec.rb +0 -151
  297. data/spec/api/product_api_spec.rb +0 -330
  298. data/spec/api/promotion_api_spec.rb +0 -170
  299. data/spec/api/security_profile_api_spec.rb +0 -120
  300. data/spec/api/shipment_api_spec.rb +0 -161
  301. data/spec/api/spec_api_spec.rb +0 -250
  302. data/spec/api/spending_account_api_spec.rb +0 -177
  303. data/spec/api/user_api_spec.rb +0 -146
  304. data/spec/api/user_group_api_spec.rb +0 -174
  305. data/spec/api_auth_spec.rb +0 -165
  306. data/spec/api_client_spec.rb +0 -237
  307. data/spec/configuration_spec.rb +0 -80
  308. data/spec/models/access_token_spec.rb +0 -65
  309. data/spec/models/address_assignment_spec.rb +0 -77
  310. data/spec/models/address_spec.rb +0 -125
  311. data/spec/models/admin_company_spec.rb +0 -65
  312. data/spec/models/admin_model_on_view_spec.rb +0 -47
  313. data/spec/models/approval_rule_spec.rb +0 -125
  314. data/spec/models/base_spec_spec.rb +0 -95
  315. data/spec/models/buyer_address_spec.rb +0 -71
  316. data/spec/models/buyer_credit_card_spec.rb +0 -59
  317. data/spec/models/buyer_product_spec.rb +0 -59
  318. data/spec/models/buyer_spec.rb +0 -71
  319. data/spec/models/buyer_spec_spec.rb +0 -59
  320. data/spec/models/category_assignment_spec.rb +0 -65
  321. data/spec/models/category_product_assignment_spec.rb +0 -65
  322. data/spec/models/category_spec.rb +0 -95
  323. data/spec/models/cost_center_assignment_spec.rb +0 -65
  324. data/spec/models/cost_center_spec.rb +0 -71
  325. data/spec/models/credit_card_assignment_spec.rb +0 -65
  326. data/spec/models/credit_card_spec.rb +0 -95
  327. data/spec/models/email_template_spec.rb +0 -77
  328. data/spec/models/file_spec.rb +0 -65
  329. data/spec/models/impersonate_token_request_spec.rb +0 -59
  330. data/spec/models/inventory_spec.rb +0 -77
  331. data/spec/models/line_item_spec.rb +0 -143
  332. data/spec/models/line_item_spec_spec.rb +0 -71
  333. data/spec/models/list_address_assignment_spec.rb +0 -59
  334. data/spec/models/list_address_spec.rb +0 -59
  335. data/spec/models/list_admin_company_spec.rb +0 -59
  336. data/spec/models/list_approval_rule_spec.rb +0 -59
  337. data/spec/models/list_buyer_address_spec.rb +0 -59
  338. data/spec/models/list_buyer_credit_card_spec.rb +0 -59
  339. data/spec/models/list_buyer_product_spec.rb +0 -59
  340. data/spec/models/list_buyer_spec.rb +0 -59
  341. data/spec/models/list_buyer_spec_spec.rb +0 -59
  342. data/spec/models/list_category_assignment_spec.rb +0 -59
  343. data/spec/models/list_category_product_assignment_spec.rb +0 -59
  344. data/spec/models/list_category_spec.rb +0 -59
  345. data/spec/models/list_cost_center_assignment_spec.rb +0 -59
  346. data/spec/models/list_cost_center_spec.rb +0 -59
  347. data/spec/models/list_credit_card_assignment_spec.rb +0 -59
  348. data/spec/models/list_credit_card_spec.rb +0 -59
  349. data/spec/models/list_file_spec.rb +0 -59
  350. data/spec/models/list_inventory_spec.rb +0 -59
  351. data/spec/models/list_line_item_spec.rb +0 -59
  352. data/spec/models/list_message_cc_listener_assignment_spec.rb +0 -59
  353. data/spec/models/list_message_config_spec.rb +0 -59
  354. data/spec/models/list_message_sender_assignment_spec.rb +0 -59
  355. data/spec/models/list_message_sender_spec.rb +0 -59
  356. data/spec/models/list_order_approval_spec.rb +0 -59
  357. data/spec/models/list_order_promotion_spec.rb +0 -59
  358. data/spec/models/list_order_spec.rb +0 -59
  359. data/spec/models/list_payment_spec.rb +0 -59
  360. data/spec/models/list_price_schedule_spec.rb +0 -59
  361. data/spec/models/list_product_assignment_spec.rb +0 -59
  362. data/spec/models/list_product_spec.rb +0 -59
  363. data/spec/models/list_promotion_assignment_spec.rb +0 -59
  364. data/spec/models/list_promotion_spec.rb +0 -59
  365. data/spec/models/list_security_profile_assignment_spec.rb +0 -59
  366. data/spec/models/list_security_profile_spec.rb +0 -59
  367. data/spec/models/list_shipment_spec.rb +0 -59
  368. data/spec/models/list_spec_option_spec.rb +0 -59
  369. data/spec/models/list_spec_product_assignment_spec.rb +0 -59
  370. data/spec/models/list_spec_spec.rb +0 -59
  371. data/spec/models/list_spending_account_assignment_spec.rb +0 -59
  372. data/spec/models/list_spending_account_spec.rb +0 -59
  373. data/spec/models/list_user_group_assignment_spec.rb +0 -59
  374. data/spec/models/list_user_group_spec.rb +0 -59
  375. data/spec/models/list_user_spec.rb +0 -59
  376. data/spec/models/list_variant_spec.rb +0 -59
  377. data/spec/models/list_web_hook_route_spec.rb +0 -59
  378. data/spec/models/list_web_hook_spec.rb +0 -59
  379. data/spec/models/list_xp_index_spec.rb +0 -59
  380. data/spec/models/message_cc_listener_assignment_spec.rb +0 -83
  381. data/spec/models/message_config_spec.rb +0 -71
  382. data/spec/models/message_sender_assignment_spec.rb +0 -77
  383. data/spec/models/message_sender_spec.rb +0 -65
  384. data/spec/models/meta_spec.rb +0 -77
  385. data/spec/models/order_approval_spec.rb +0 -101
  386. data/spec/models/order_promotion_spec.rb +0 -53
  387. data/spec/models/order_spec.rb +0 -191
  388. data/spec/models/password_reset_request_spec.rb +0 -71
  389. data/spec/models/password_reset_spec.rb +0 -65
  390. data/spec/models/payment_spec.rb +0 -101
  391. data/spec/models/payment_transaction_spec.rb +0 -95
  392. data/spec/models/ping_response_spec.rb +0 -53
  393. data/spec/models/price_break_spec.rb +0 -59
  394. data/spec/models/price_schedule_spec.rb +0 -113
  395. data/spec/models/product_assignment_spec.rb +0 -83
  396. data/spec/models/product_spec.rb +0 -161
  397. data/spec/models/promotion_assignment_spec.rb +0 -71
  398. data/spec/models/promotion_spec.rb +0 -131
  399. data/spec/models/security_profile_assignment_spec.rb +0 -71
  400. data/spec/models/security_profile_spec.rb +0 -71
  401. data/spec/models/shipment_item_spec.rb +0 -65
  402. data/spec/models/shipment_spec.rb +0 -89
  403. data/spec/models/spec_option_spec.rb +0 -89
  404. data/spec/models/spec_product_assignment_spec.rb +0 -65
  405. data/spec/models/spec_spec.rb +0 -53
  406. data/spec/models/spending_account_assignment_spec.rb +0 -71
  407. data/spec/models/spending_account_spec.rb +0 -95
  408. data/spec/models/user_group_assignment_spec.rb +0 -59
  409. data/spec/models/user_group_spec.rb +0 -71
  410. data/spec/models/user_spec.rb +0 -113
  411. data/spec/models/variant_spec.rb +0 -77
  412. data/spec/models/web_hook_route_spec.rb +0 -65
  413. data/spec/models/web_hook_spec.rb +0 -113
  414. data/spec/models/xp_index_spec.rb +0 -59
  415. data/spec/spec_helper.rb +0 -122
@@ -1,965 +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 SpecApi
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 spec
37
- # @param [Hash] opts the optional parameters
38
- # @return [Spec]
39
- def create(spec, opts = {})
40
- data, _status_code, _headers = create_with_http_info(spec, opts)
41
- return data
42
- end
43
-
44
- #
45
- #
46
- # @param spec
47
- # @param [Hash] opts the optional parameters
48
- # @return [Array<(Spec, Fixnum, Hash)>] Spec data, response status code and response headers
49
- def create_with_http_info(spec, opts = {})
50
- if @api_client.config.debugging
51
- @api_client.config.logger.debug "Calling API: SpecApi.create ..."
52
- end
53
- # verify the required parameter 'spec' is set
54
- fail ArgumentError, "Missing the required parameter 'spec' when calling SpecApi.create" if spec.nil?
55
- # resource path
56
- local_var_path = "/specs".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(spec)
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 => 'Spec')
85
- if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: SpecApi#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 spec_id ID of the spec.
94
- # @param option
95
- # @param [Hash] opts the optional parameters
96
- # @return [SpecOption]
97
- def create_option(spec_id, option, opts = {})
98
- data, _status_code, _headers = create_option_with_http_info(spec_id, option, opts)
99
- return data
100
- end
101
-
102
- #
103
- #
104
- # @param spec_id ID of the spec.
105
- # @param option
106
- # @param [Hash] opts the optional parameters
107
- # @return [Array<(SpecOption, Fixnum, Hash)>] SpecOption data, response status code and response headers
108
- def create_option_with_http_info(spec_id, option, opts = {})
109
- if @api_client.config.debugging
110
- @api_client.config.logger.debug "Calling API: SpecApi.create_option ..."
111
- end
112
- # verify the required parameter 'spec_id' is set
113
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.create_option" if spec_id.nil?
114
- # verify the required parameter 'option' is set
115
- fail ArgumentError, "Missing the required parameter 'option' when calling SpecApi.create_option" if option.nil?
116
- # resource path
117
- local_var_path = "/specs/{specID}/options".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s)
118
-
119
- # query parameters
120
- query_params = {}
121
-
122
- # header parameters
123
- header_params = {}
124
-
125
- # HTTP header 'Accept' (if needed)
126
- local_header_accept = ['application/json']
127
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
128
-
129
- # HTTP header 'Content-Type'
130
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
131
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
132
-
133
- # form parameters
134
- form_params = {}
135
-
136
- # http body (model)
137
- post_body = @api_client.object_to_http_body(option)
138
- auth_names = ['oauth2']
139
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
140
- :header_params => header_params,
141
- :query_params => query_params,
142
- :form_params => form_params,
143
- :body => post_body,
144
- :auth_names => auth_names,
145
- :return_type => 'SpecOption')
146
- if @api_client.config.debugging
147
- @api_client.config.logger.debug "API called: SpecApi#create_option\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
- end
149
- return data, status_code, headers
150
- end
151
-
152
- #
153
- #
154
- # @param spec_id ID of the spec.
155
- # @param [Hash] opts the optional parameters
156
- # @return [nil]
157
- def delete(spec_id, opts = {})
158
- delete_with_http_info(spec_id, opts)
159
- return nil
160
- end
161
-
162
- #
163
- #
164
- # @param spec_id ID of the spec.
165
- # @param [Hash] opts the optional parameters
166
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
167
- def delete_with_http_info(spec_id, opts = {})
168
- if @api_client.config.debugging
169
- @api_client.config.logger.debug "Calling API: SpecApi.delete ..."
170
- end
171
- # verify the required parameter 'spec_id' is set
172
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.delete" if spec_id.nil?
173
- # resource path
174
- local_var_path = "/specs/{specID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s)
175
-
176
- # query parameters
177
- query_params = {}
178
-
179
- # header parameters
180
- header_params = {}
181
-
182
- # HTTP header 'Accept' (if needed)
183
- local_header_accept = ['application/json']
184
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
185
-
186
- # HTTP header 'Content-Type'
187
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
188
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
189
-
190
- # form parameters
191
- form_params = {}
192
-
193
- # http body (model)
194
- post_body = nil
195
- auth_names = ['oauth2']
196
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
197
- :header_params => header_params,
198
- :query_params => query_params,
199
- :form_params => form_params,
200
- :body => post_body,
201
- :auth_names => auth_names)
202
- if @api_client.config.debugging
203
- @api_client.config.logger.debug "API called: SpecApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
- end
205
- return data, status_code, headers
206
- end
207
-
208
- #
209
- #
210
- # @param spec_id ID of the spec.
211
- # @param option_id ID of the option.
212
- # @param [Hash] opts the optional parameters
213
- # @return [nil]
214
- def delete_option(spec_id, option_id, opts = {})
215
- delete_option_with_http_info(spec_id, option_id, opts)
216
- return nil
217
- end
218
-
219
- #
220
- #
221
- # @param spec_id ID of the spec.
222
- # @param option_id ID of the option.
223
- # @param [Hash] opts the optional parameters
224
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
225
- def delete_option_with_http_info(spec_id, option_id, opts = {})
226
- if @api_client.config.debugging
227
- @api_client.config.logger.debug "Calling API: SpecApi.delete_option ..."
228
- end
229
- # verify the required parameter 'spec_id' is set
230
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.delete_option" if spec_id.nil?
231
- # verify the required parameter 'option_id' is set
232
- fail ArgumentError, "Missing the required parameter 'option_id' when calling SpecApi.delete_option" if option_id.nil?
233
- # resource path
234
- local_var_path = "/specs/{specID}/options/{optionID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s).sub('{' + 'optionID' + '}', option_id.to_s)
235
-
236
- # query parameters
237
- query_params = {}
238
-
239
- # header parameters
240
- header_params = {}
241
-
242
- # HTTP header 'Accept' (if needed)
243
- local_header_accept = ['application/json']
244
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
245
-
246
- # HTTP header 'Content-Type'
247
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
248
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
249
-
250
- # form parameters
251
- form_params = {}
252
-
253
- # http body (model)
254
- post_body = nil
255
- auth_names = ['oauth2']
256
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
257
- :header_params => header_params,
258
- :query_params => query_params,
259
- :form_params => form_params,
260
- :body => post_body,
261
- :auth_names => auth_names)
262
- if @api_client.config.debugging
263
- @api_client.config.logger.debug "API called: SpecApi#delete_option\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
- end
265
- return data, status_code, headers
266
- end
267
-
268
- #
269
- #
270
- # @param spec_id ID of the spec.
271
- # @param product_id ID of the product.
272
- # @param [Hash] opts the optional parameters
273
- # @return [nil]
274
- def delete_product_assignment(spec_id, product_id, opts = {})
275
- delete_product_assignment_with_http_info(spec_id, product_id, opts)
276
- return nil
277
- end
278
-
279
- #
280
- #
281
- # @param spec_id ID of the spec.
282
- # @param product_id ID of the product.
283
- # @param [Hash] opts the optional parameters
284
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
285
- def delete_product_assignment_with_http_info(spec_id, product_id, opts = {})
286
- if @api_client.config.debugging
287
- @api_client.config.logger.debug "Calling API: SpecApi.delete_product_assignment ..."
288
- end
289
- # verify the required parameter 'spec_id' is set
290
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.delete_product_assignment" if spec_id.nil?
291
- # verify the required parameter 'product_id' is set
292
- fail ArgumentError, "Missing the required parameter 'product_id' when calling SpecApi.delete_product_assignment" if product_id.nil?
293
- # resource path
294
- local_var_path = "/specs/{specID}/productassignments/{productID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s).sub('{' + 'productID' + '}', product_id.to_s)
295
-
296
- # query parameters
297
- query_params = {}
298
-
299
- # header parameters
300
- header_params = {}
301
-
302
- # HTTP header 'Accept' (if needed)
303
- local_header_accept = ['application/json']
304
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
305
-
306
- # HTTP header 'Content-Type'
307
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
308
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
309
-
310
- # form parameters
311
- form_params = {}
312
-
313
- # http body (model)
314
- post_body = nil
315
- auth_names = ['oauth2']
316
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
317
- :header_params => header_params,
318
- :query_params => query_params,
319
- :form_params => form_params,
320
- :body => post_body,
321
- :auth_names => auth_names)
322
- if @api_client.config.debugging
323
- @api_client.config.logger.debug "API called: SpecApi#delete_product_assignment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
324
- end
325
- return data, status_code, headers
326
- end
327
-
328
- #
329
- #
330
- # @param spec_id ID of the spec.
331
- # @param [Hash] opts the optional parameters
332
- # @return [Spec]
333
- def get(spec_id, opts = {})
334
- data, _status_code, _headers = get_with_http_info(spec_id, opts)
335
- return data
336
- end
337
-
338
- #
339
- #
340
- # @param spec_id ID of the spec.
341
- # @param [Hash] opts the optional parameters
342
- # @return [Array<(Spec, Fixnum, Hash)>] Spec data, response status code and response headers
343
- def get_with_http_info(spec_id, opts = {})
344
- if @api_client.config.debugging
345
- @api_client.config.logger.debug "Calling API: SpecApi.get ..."
346
- end
347
- # verify the required parameter 'spec_id' is set
348
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.get" if spec_id.nil?
349
- # resource path
350
- local_var_path = "/specs/{specID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s)
351
-
352
- # query parameters
353
- query_params = {}
354
-
355
- # header parameters
356
- header_params = {}
357
-
358
- # HTTP header 'Accept' (if needed)
359
- local_header_accept = ['application/json']
360
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
361
-
362
- # HTTP header 'Content-Type'
363
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
364
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
365
-
366
- # form parameters
367
- form_params = {}
368
-
369
- # http body (model)
370
- post_body = nil
371
- auth_names = ['oauth2']
372
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
373
- :header_params => header_params,
374
- :query_params => query_params,
375
- :form_params => form_params,
376
- :body => post_body,
377
- :auth_names => auth_names,
378
- :return_type => 'Spec')
379
- if @api_client.config.debugging
380
- @api_client.config.logger.debug "API called: SpecApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
381
- end
382
- return data, status_code, headers
383
- end
384
-
385
- #
386
- #
387
- # @param spec_id ID of the spec.
388
- # @param option_id ID of the option.
389
- # @param [Hash] opts the optional parameters
390
- # @return [SpecOption]
391
- def get_option(spec_id, option_id, opts = {})
392
- data, _status_code, _headers = get_option_with_http_info(spec_id, option_id, opts)
393
- return data
394
- end
395
-
396
- #
397
- #
398
- # @param spec_id ID of the spec.
399
- # @param option_id ID of the option.
400
- # @param [Hash] opts the optional parameters
401
- # @return [Array<(SpecOption, Fixnum, Hash)>] SpecOption data, response status code and response headers
402
- def get_option_with_http_info(spec_id, option_id, opts = {})
403
- if @api_client.config.debugging
404
- @api_client.config.logger.debug "Calling API: SpecApi.get_option ..."
405
- end
406
- # verify the required parameter 'spec_id' is set
407
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.get_option" if spec_id.nil?
408
- # verify the required parameter 'option_id' is set
409
- fail ArgumentError, "Missing the required parameter 'option_id' when calling SpecApi.get_option" if option_id.nil?
410
- # resource path
411
- local_var_path = "/specs/{specID}/options/{optionID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s).sub('{' + 'optionID' + '}', option_id.to_s)
412
-
413
- # query parameters
414
- query_params = {}
415
-
416
- # header parameters
417
- header_params = {}
418
-
419
- # HTTP header 'Accept' (if needed)
420
- local_header_accept = ['application/json']
421
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
422
-
423
- # HTTP header 'Content-Type'
424
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
425
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
426
-
427
- # form parameters
428
- form_params = {}
429
-
430
- # http body (model)
431
- post_body = nil
432
- auth_names = ['oauth2']
433
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
434
- :header_params => header_params,
435
- :query_params => query_params,
436
- :form_params => form_params,
437
- :body => post_body,
438
- :auth_names => auth_names,
439
- :return_type => 'SpecOption')
440
- if @api_client.config.debugging
441
- @api_client.config.logger.debug "API called: SpecApi#get_option\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
442
- end
443
- return data, status_code, headers
444
- end
445
-
446
- #
447
- #
448
- # @param [Hash] opts the optional parameters
449
- # @option opts [String] :search Word or phrase to search for.
450
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
451
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
452
- # @option opts [Integer] :page Page of results to return. Default: 1
453
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
454
- # @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;
455
- # @return [ListSpec]
456
- def list(opts = {})
457
- data, _status_code, _headers = list_with_http_info(opts)
458
- return data
459
- end
460
-
461
- #
462
- #
463
- # @param [Hash] opts the optional parameters
464
- # @option opts [String] :search Word or phrase to search for.
465
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
466
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
467
- # @option opts [Integer] :page Page of results to return. Default: 1
468
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
469
- # @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;
470
- # @return [Array<(ListSpec, Fixnum, Hash)>] ListSpec data, response status code and response headers
471
- def list_with_http_info(opts = {})
472
- if @api_client.config.debugging
473
- @api_client.config.logger.debug "Calling API: SpecApi.list ..."
474
- end
475
- # resource path
476
- local_var_path = "/specs".sub('{format}','json')
477
-
478
- # query parameters
479
- query_params = {}
480
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
481
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
482
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
483
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
484
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
485
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
486
-
487
- # header parameters
488
- header_params = {}
489
-
490
- # HTTP header 'Accept' (if needed)
491
- local_header_accept = ['application/json']
492
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
493
-
494
- # HTTP header 'Content-Type'
495
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
496
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
497
-
498
- # form parameters
499
- form_params = {}
500
-
501
- # http body (model)
502
- post_body = nil
503
- auth_names = ['oauth2']
504
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
505
- :header_params => header_params,
506
- :query_params => query_params,
507
- :form_params => form_params,
508
- :body => post_body,
509
- :auth_names => auth_names,
510
- :return_type => 'ListSpec')
511
- if @api_client.config.debugging
512
- @api_client.config.logger.debug "API called: SpecApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
513
- end
514
- return data, status_code, headers
515
- end
516
-
517
- #
518
- #
519
- # @param spec_id ID of the spec.
520
- # @param [Hash] opts the optional parameters
521
- # @option opts [String] :search Word or phrase to search for.
522
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
523
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
524
- # @option opts [Integer] :page Page of results to return. Default: 1
525
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
526
- # @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;
527
- # @return [ListSpecOption]
528
- def list_options(spec_id, opts = {})
529
- data, _status_code, _headers = list_options_with_http_info(spec_id, opts)
530
- return data
531
- end
532
-
533
- #
534
- #
535
- # @param spec_id ID of the spec.
536
- # @param [Hash] opts the optional parameters
537
- # @option opts [String] :search Word or phrase to search for.
538
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
539
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
540
- # @option opts [Integer] :page Page of results to return. Default: 1
541
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
542
- # @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;
543
- # @return [Array<(ListSpecOption, Fixnum, Hash)>] ListSpecOption data, response status code and response headers
544
- def list_options_with_http_info(spec_id, opts = {})
545
- if @api_client.config.debugging
546
- @api_client.config.logger.debug "Calling API: SpecApi.list_options ..."
547
- end
548
- # verify the required parameter 'spec_id' is set
549
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.list_options" if spec_id.nil?
550
- # resource path
551
- local_var_path = "/specs/{specID}/options".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s)
552
-
553
- # query parameters
554
- query_params = {}
555
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
556
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
557
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
558
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
559
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
560
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
561
-
562
- # header parameters
563
- header_params = {}
564
-
565
- # HTTP header 'Accept' (if needed)
566
- local_header_accept = ['application/json']
567
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
568
-
569
- # HTTP header 'Content-Type'
570
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
571
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
572
-
573
- # form parameters
574
- form_params = {}
575
-
576
- # http body (model)
577
- post_body = nil
578
- auth_names = ['oauth2']
579
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
580
- :header_params => header_params,
581
- :query_params => query_params,
582
- :form_params => form_params,
583
- :body => post_body,
584
- :auth_names => auth_names,
585
- :return_type => 'ListSpecOption')
586
- if @api_client.config.debugging
587
- @api_client.config.logger.debug "API called: SpecApi#list_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
588
- end
589
- return data, status_code, headers
590
- end
591
-
592
- #
593
- #
594
- # @param [Hash] opts the optional parameters
595
- # @option opts [String] :spec_id ID of the spec.
596
- # @option opts [String] :product_id ID of the product.
597
- # @option opts [Integer] :page Page of results to return. Default: 1
598
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
599
- # @return [ListSpecProductAssignment]
600
- def list_product_assignments(opts = {})
601
- data, _status_code, _headers = list_product_assignments_with_http_info(opts)
602
- return data
603
- end
604
-
605
- #
606
- #
607
- # @param [Hash] opts the optional parameters
608
- # @option opts [String] :spec_id ID of the spec.
609
- # @option opts [String] :product_id ID of the product.
610
- # @option opts [Integer] :page Page of results to return. Default: 1
611
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
612
- # @return [Array<(ListSpecProductAssignment, Fixnum, Hash)>] ListSpecProductAssignment data, response status code and response headers
613
- def list_product_assignments_with_http_info(opts = {})
614
- if @api_client.config.debugging
615
- @api_client.config.logger.debug "Calling API: SpecApi.list_product_assignments ..."
616
- end
617
- # resource path
618
- local_var_path = "/specs/productassignments".sub('{format}','json')
619
-
620
- # query parameters
621
- query_params = {}
622
- query_params[:'specID'] = opts[:'spec_id'] if !opts[:'spec_id'].nil?
623
- query_params[:'productID'] = opts[:'product_id'] if !opts[:'product_id'].nil?
624
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
625
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
626
-
627
- # header parameters
628
- header_params = {}
629
-
630
- # HTTP header 'Accept' (if needed)
631
- local_header_accept = ['application/json']
632
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
633
-
634
- # HTTP header 'Content-Type'
635
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
636
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
637
-
638
- # form parameters
639
- form_params = {}
640
-
641
- # http body (model)
642
- post_body = nil
643
- auth_names = ['oauth2']
644
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
645
- :header_params => header_params,
646
- :query_params => query_params,
647
- :form_params => form_params,
648
- :body => post_body,
649
- :auth_names => auth_names,
650
- :return_type => 'ListSpecProductAssignment')
651
- if @api_client.config.debugging
652
- @api_client.config.logger.debug "API called: SpecApi#list_product_assignments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
653
- end
654
- return data, status_code, headers
655
- end
656
-
657
- #
658
- #
659
- # @param spec_id ID of the spec.
660
- # @param spec
661
- # @param [Hash] opts the optional parameters
662
- # @return [Spec]
663
- def patch(spec_id, spec, opts = {})
664
- data, _status_code, _headers = patch_with_http_info(spec_id, spec, opts)
665
- return data
666
- end
667
-
668
- #
669
- #
670
- # @param spec_id ID of the spec.
671
- # @param spec
672
- # @param [Hash] opts the optional parameters
673
- # @return [Array<(Spec, Fixnum, Hash)>] Spec data, response status code and response headers
674
- def patch_with_http_info(spec_id, spec, opts = {})
675
- if @api_client.config.debugging
676
- @api_client.config.logger.debug "Calling API: SpecApi.patch ..."
677
- end
678
- # verify the required parameter 'spec_id' is set
679
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.patch" if spec_id.nil?
680
- # verify the required parameter 'spec' is set
681
- fail ArgumentError, "Missing the required parameter 'spec' when calling SpecApi.patch" if spec.nil?
682
- # resource path
683
- local_var_path = "/specs/{specID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s)
684
-
685
- # query parameters
686
- query_params = {}
687
-
688
- # header parameters
689
- header_params = {}
690
-
691
- # HTTP header 'Accept' (if needed)
692
- local_header_accept = ['application/json']
693
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
694
-
695
- # HTTP header 'Content-Type'
696
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
697
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
698
-
699
- # form parameters
700
- form_params = {}
701
-
702
- # http body (model)
703
- post_body = @api_client.object_to_http_body(spec)
704
- auth_names = ['oauth2']
705
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
706
- :header_params => header_params,
707
- :query_params => query_params,
708
- :form_params => form_params,
709
- :body => post_body,
710
- :auth_names => auth_names,
711
- :return_type => 'Spec')
712
- if @api_client.config.debugging
713
- @api_client.config.logger.debug "API called: SpecApi#patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
714
- end
715
- return data, status_code, headers
716
- end
717
-
718
- #
719
- #
720
- # @param spec_id ID of the spec.
721
- # @param option_id ID of the option.
722
- # @param option
723
- # @param [Hash] opts the optional parameters
724
- # @return [SpecOption]
725
- def patch_option(spec_id, option_id, option, opts = {})
726
- data, _status_code, _headers = patch_option_with_http_info(spec_id, option_id, option, opts)
727
- return data
728
- end
729
-
730
- #
731
- #
732
- # @param spec_id ID of the spec.
733
- # @param option_id ID of the option.
734
- # @param option
735
- # @param [Hash] opts the optional parameters
736
- # @return [Array<(SpecOption, Fixnum, Hash)>] SpecOption data, response status code and response headers
737
- def patch_option_with_http_info(spec_id, option_id, option, opts = {})
738
- if @api_client.config.debugging
739
- @api_client.config.logger.debug "Calling API: SpecApi.patch_option ..."
740
- end
741
- # verify the required parameter 'spec_id' is set
742
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.patch_option" if spec_id.nil?
743
- # verify the required parameter 'option_id' is set
744
- fail ArgumentError, "Missing the required parameter 'option_id' when calling SpecApi.patch_option" if option_id.nil?
745
- # verify the required parameter 'option' is set
746
- fail ArgumentError, "Missing the required parameter 'option' when calling SpecApi.patch_option" if option.nil?
747
- # resource path
748
- local_var_path = "/specs/{specID}/options/{optionID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s).sub('{' + 'optionID' + '}', option_id.to_s)
749
-
750
- # query parameters
751
- query_params = {}
752
-
753
- # header parameters
754
- header_params = {}
755
-
756
- # HTTP header 'Accept' (if needed)
757
- local_header_accept = ['application/json']
758
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
759
-
760
- # HTTP header 'Content-Type'
761
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
762
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
763
-
764
- # form parameters
765
- form_params = {}
766
-
767
- # http body (model)
768
- post_body = @api_client.object_to_http_body(option)
769
- auth_names = ['oauth2']
770
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
771
- :header_params => header_params,
772
- :query_params => query_params,
773
- :form_params => form_params,
774
- :body => post_body,
775
- :auth_names => auth_names,
776
- :return_type => 'SpecOption')
777
- if @api_client.config.debugging
778
- @api_client.config.logger.debug "API called: SpecApi#patch_option\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
779
- end
780
- return data, status_code, headers
781
- end
782
-
783
- #
784
- #
785
- # @param product_assignment
786
- # @param [Hash] opts the optional parameters
787
- # @return [nil]
788
- def save_product_assignment(product_assignment, opts = {})
789
- save_product_assignment_with_http_info(product_assignment, opts)
790
- return nil
791
- end
792
-
793
- #
794
- #
795
- # @param product_assignment
796
- # @param [Hash] opts the optional parameters
797
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
798
- def save_product_assignment_with_http_info(product_assignment, opts = {})
799
- if @api_client.config.debugging
800
- @api_client.config.logger.debug "Calling API: SpecApi.save_product_assignment ..."
801
- end
802
- # verify the required parameter 'product_assignment' is set
803
- fail ArgumentError, "Missing the required parameter 'product_assignment' when calling SpecApi.save_product_assignment" if product_assignment.nil?
804
- # resource path
805
- local_var_path = "/specs/productassignments".sub('{format}','json')
806
-
807
- # query parameters
808
- query_params = {}
809
-
810
- # header parameters
811
- header_params = {}
812
-
813
- # HTTP header 'Accept' (if needed)
814
- local_header_accept = ['application/json']
815
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
816
-
817
- # HTTP header 'Content-Type'
818
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
819
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
820
-
821
- # form parameters
822
- form_params = {}
823
-
824
- # http body (model)
825
- post_body = @api_client.object_to_http_body(product_assignment)
826
- auth_names = ['oauth2']
827
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
828
- :header_params => header_params,
829
- :query_params => query_params,
830
- :form_params => form_params,
831
- :body => post_body,
832
- :auth_names => auth_names)
833
- if @api_client.config.debugging
834
- @api_client.config.logger.debug "API called: SpecApi#save_product_assignment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
835
- end
836
- return data, status_code, headers
837
- end
838
-
839
- #
840
- #
841
- # @param spec_id ID of the spec.
842
- # @param spec
843
- # @param [Hash] opts the optional parameters
844
- # @return [Spec]
845
- def update(spec_id, spec, opts = {})
846
- data, _status_code, _headers = update_with_http_info(spec_id, spec, opts)
847
- return data
848
- end
849
-
850
- #
851
- #
852
- # @param spec_id ID of the spec.
853
- # @param spec
854
- # @param [Hash] opts the optional parameters
855
- # @return [Array<(Spec, Fixnum, Hash)>] Spec data, response status code and response headers
856
- def update_with_http_info(spec_id, spec, opts = {})
857
- if @api_client.config.debugging
858
- @api_client.config.logger.debug "Calling API: SpecApi.update ..."
859
- end
860
- # verify the required parameter 'spec_id' is set
861
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.update" if spec_id.nil?
862
- # verify the required parameter 'spec' is set
863
- fail ArgumentError, "Missing the required parameter 'spec' when calling SpecApi.update" if spec.nil?
864
- # resource path
865
- local_var_path = "/specs/{specID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s)
866
-
867
- # query parameters
868
- query_params = {}
869
-
870
- # header parameters
871
- header_params = {}
872
-
873
- # HTTP header 'Accept' (if needed)
874
- local_header_accept = ['application/json']
875
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
876
-
877
- # HTTP header 'Content-Type'
878
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
879
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
880
-
881
- # form parameters
882
- form_params = {}
883
-
884
- # http body (model)
885
- post_body = @api_client.object_to_http_body(spec)
886
- auth_names = ['oauth2']
887
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
888
- :header_params => header_params,
889
- :query_params => query_params,
890
- :form_params => form_params,
891
- :body => post_body,
892
- :auth_names => auth_names,
893
- :return_type => 'Spec')
894
- if @api_client.config.debugging
895
- @api_client.config.logger.debug "API called: SpecApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
896
- end
897
- return data, status_code, headers
898
- end
899
-
900
- #
901
- #
902
- # @param spec_id ID of the spec.
903
- # @param option_id ID of the option.
904
- # @param option
905
- # @param [Hash] opts the optional parameters
906
- # @return [SpecOption]
907
- def update_option(spec_id, option_id, option, opts = {})
908
- data, _status_code, _headers = update_option_with_http_info(spec_id, option_id, option, opts)
909
- return data
910
- end
911
-
912
- #
913
- #
914
- # @param spec_id ID of the spec.
915
- # @param option_id ID of the option.
916
- # @param option
917
- # @param [Hash] opts the optional parameters
918
- # @return [Array<(SpecOption, Fixnum, Hash)>] SpecOption data, response status code and response headers
919
- def update_option_with_http_info(spec_id, option_id, option, opts = {})
920
- if @api_client.config.debugging
921
- @api_client.config.logger.debug "Calling API: SpecApi.update_option ..."
922
- end
923
- # verify the required parameter 'spec_id' is set
924
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling SpecApi.update_option" if spec_id.nil?
925
- # verify the required parameter 'option_id' is set
926
- fail ArgumentError, "Missing the required parameter 'option_id' when calling SpecApi.update_option" if option_id.nil?
927
- # verify the required parameter 'option' is set
928
- fail ArgumentError, "Missing the required parameter 'option' when calling SpecApi.update_option" if option.nil?
929
- # resource path
930
- local_var_path = "/specs/{specID}/options/{optionID}".sub('{format}','json').sub('{' + 'specID' + '}', spec_id.to_s).sub('{' + 'optionID' + '}', option_id.to_s)
931
-
932
- # query parameters
933
- query_params = {}
934
-
935
- # header parameters
936
- header_params = {}
937
-
938
- # HTTP header 'Accept' (if needed)
939
- local_header_accept = ['application/json']
940
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
941
-
942
- # HTTP header 'Content-Type'
943
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
944
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
945
-
946
- # form parameters
947
- form_params = {}
948
-
949
- # http body (model)
950
- post_body = @api_client.object_to_http_body(option)
951
- auth_names = ['oauth2']
952
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
953
- :header_params => header_params,
954
- :query_params => query_params,
955
- :form_params => form_params,
956
- :body => post_body,
957
- :auth_names => auth_names,
958
- :return_type => 'SpecOption')
959
- if @api_client.config.debugging
960
- @api_client.config.logger.debug "API called: SpecApi#update_option\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
961
- end
962
- return data, status_code, headers
963
- end
964
- end
965
- end