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,1747 +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 MeApi
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 address
37
- # @param [Hash] opts the optional parameters
38
- # @return [BuyerAddress]
39
- def create_address(address, opts = {})
40
- data, _status_code, _headers = create_address_with_http_info(address, opts)
41
- return data
42
- end
43
-
44
- #
45
- #
46
- # @param address
47
- # @param [Hash] opts the optional parameters
48
- # @return [Array<(BuyerAddress, Fixnum, Hash)>] BuyerAddress data, response status code and response headers
49
- def create_address_with_http_info(address, opts = {})
50
- if @api_client.config.debugging
51
- @api_client.config.logger.debug "Calling API: MeApi.create_address ..."
52
- end
53
- # verify the required parameter 'address' is set
54
- fail ArgumentError, "Missing the required parameter 'address' when calling MeApi.create_address" if address.nil?
55
- # resource path
56
- local_var_path = "/me/addresses".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(address)
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 => 'BuyerAddress')
85
- if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: MeApi#create_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
- end
88
- return data, status_code, headers
89
- end
90
-
91
- #
92
- #
93
- # @param credit_card
94
- # @param [Hash] opts the optional parameters
95
- # @return [BuyerCreditCard]
96
- def create_credit_card(credit_card, opts = {})
97
- data, _status_code, _headers = create_credit_card_with_http_info(credit_card, opts)
98
- return data
99
- end
100
-
101
- #
102
- #
103
- # @param credit_card
104
- # @param [Hash] opts the optional parameters
105
- # @return [Array<(BuyerCreditCard, Fixnum, Hash)>] BuyerCreditCard data, response status code and response headers
106
- def create_credit_card_with_http_info(credit_card, opts = {})
107
- if @api_client.config.debugging
108
- @api_client.config.logger.debug "Calling API: MeApi.create_credit_card ..."
109
- end
110
- # verify the required parameter 'credit_card' is set
111
- fail ArgumentError, "Missing the required parameter 'credit_card' when calling MeApi.create_credit_card" if credit_card.nil?
112
- # resource path
113
- local_var_path = "/me/creditcards".sub('{format}','json')
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 = @api_client.object_to_http_body(credit_card)
134
- auth_names = ['oauth2']
135
- data, status_code, headers = @api_client.call_api(:POST, 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
- :return_type => 'BuyerCreditCard')
142
- if @api_client.config.debugging
143
- @api_client.config.logger.debug "API called: MeApi#create_credit_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
- end
145
- return data, status_code, headers
146
- end
147
-
148
- #
149
- #
150
- # @param address_id ID of the address.
151
- # @param [Hash] opts the optional parameters
152
- # @return [nil]
153
- def delete_address(address_id, opts = {})
154
- delete_address_with_http_info(address_id, opts)
155
- return nil
156
- end
157
-
158
- #
159
- #
160
- # @param address_id ID of the address.
161
- # @param [Hash] opts the optional parameters
162
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
163
- def delete_address_with_http_info(address_id, opts = {})
164
- if @api_client.config.debugging
165
- @api_client.config.logger.debug "Calling API: MeApi.delete_address ..."
166
- end
167
- # verify the required parameter 'address_id' is set
168
- fail ArgumentError, "Missing the required parameter 'address_id' when calling MeApi.delete_address" if address_id.nil?
169
- # resource path
170
- local_var_path = "/me/addresses/{addressID}".sub('{format}','json').sub('{' + 'addressID' + '}', address_id.to_s)
171
-
172
- # query parameters
173
- query_params = {}
174
-
175
- # header parameters
176
- header_params = {}
177
-
178
- # HTTP header 'Accept' (if needed)
179
- local_header_accept = ['application/json']
180
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
181
-
182
- # HTTP header 'Content-Type'
183
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
184
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
185
-
186
- # form parameters
187
- form_params = {}
188
-
189
- # http body (model)
190
- post_body = nil
191
- auth_names = ['oauth2']
192
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
193
- :header_params => header_params,
194
- :query_params => query_params,
195
- :form_params => form_params,
196
- :body => post_body,
197
- :auth_names => auth_names)
198
- if @api_client.config.debugging
199
- @api_client.config.logger.debug "API called: MeApi#delete_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
200
- end
201
- return data, status_code, headers
202
- end
203
-
204
- #
205
- #
206
- # @param creditcard_id ID of the creditcard.
207
- # @param [Hash] opts the optional parameters
208
- # @return [nil]
209
- def delete_credit_card(creditcard_id, opts = {})
210
- delete_credit_card_with_http_info(creditcard_id, opts)
211
- return nil
212
- end
213
-
214
- #
215
- #
216
- # @param creditcard_id ID of the creditcard.
217
- # @param [Hash] opts the optional parameters
218
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
219
- def delete_credit_card_with_http_info(creditcard_id, opts = {})
220
- if @api_client.config.debugging
221
- @api_client.config.logger.debug "Calling API: MeApi.delete_credit_card ..."
222
- end
223
- # verify the required parameter 'creditcard_id' is set
224
- fail ArgumentError, "Missing the required parameter 'creditcard_id' when calling MeApi.delete_credit_card" if creditcard_id.nil?
225
- # resource path
226
- local_var_path = "/me/creditcards/{creditcardID}".sub('{format}','json').sub('{' + 'creditcardID' + '}', creditcard_id.to_s)
227
-
228
- # query parameters
229
- query_params = {}
230
-
231
- # header parameters
232
- header_params = {}
233
-
234
- # HTTP header 'Accept' (if needed)
235
- local_header_accept = ['application/json']
236
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
237
-
238
- # HTTP header 'Content-Type'
239
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
240
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
241
-
242
- # form parameters
243
- form_params = {}
244
-
245
- # http body (model)
246
- post_body = nil
247
- auth_names = ['oauth2']
248
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
249
- :header_params => header_params,
250
- :query_params => query_params,
251
- :form_params => form_params,
252
- :body => post_body,
253
- :auth_names => auth_names)
254
- if @api_client.config.debugging
255
- @api_client.config.logger.debug "API called: MeApi#delete_credit_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
256
- end
257
- return data, status_code, headers
258
- end
259
-
260
- #
261
- #
262
- # @param [Hash] opts the optional parameters
263
- # @return [User]
264
- def get(opts = {})
265
- data, _status_code, _headers = get_with_http_info(opts)
266
- return data
267
- end
268
-
269
- #
270
- #
271
- # @param [Hash] opts the optional parameters
272
- # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
273
- def get_with_http_info(opts = {})
274
- if @api_client.config.debugging
275
- @api_client.config.logger.debug "Calling API: MeApi.get ..."
276
- end
277
- # resource path
278
- local_var_path = "/me".sub('{format}','json')
279
-
280
- # query parameters
281
- query_params = {}
282
-
283
- # header parameters
284
- header_params = {}
285
-
286
- # HTTP header 'Accept' (if needed)
287
- local_header_accept = ['application/json']
288
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
289
-
290
- # HTTP header 'Content-Type'
291
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
292
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
293
-
294
- # form parameters
295
- form_params = {}
296
-
297
- # http body (model)
298
- post_body = nil
299
- auth_names = ['oauth2']
300
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
301
- :header_params => header_params,
302
- :query_params => query_params,
303
- :form_params => form_params,
304
- :body => post_body,
305
- :auth_names => auth_names,
306
- :return_type => 'User')
307
- if @api_client.config.debugging
308
- @api_client.config.logger.debug "API called: MeApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
309
- end
310
- return data, status_code, headers
311
- end
312
-
313
- #
314
- #
315
- # @param address_id ID of the address.
316
- # @param [Hash] opts the optional parameters
317
- # @return [BuyerAddress]
318
- def get_address(address_id, opts = {})
319
- data, _status_code, _headers = get_address_with_http_info(address_id, opts)
320
- return data
321
- end
322
-
323
- #
324
- #
325
- # @param address_id ID of the address.
326
- # @param [Hash] opts the optional parameters
327
- # @return [Array<(BuyerAddress, Fixnum, Hash)>] BuyerAddress data, response status code and response headers
328
- def get_address_with_http_info(address_id, opts = {})
329
- if @api_client.config.debugging
330
- @api_client.config.logger.debug "Calling API: MeApi.get_address ..."
331
- end
332
- # verify the required parameter 'address_id' is set
333
- fail ArgumentError, "Missing the required parameter 'address_id' when calling MeApi.get_address" if address_id.nil?
334
- # resource path
335
- local_var_path = "/me/addresses/{addressID}".sub('{format}','json').sub('{' + 'addressID' + '}', address_id.to_s)
336
-
337
- # query parameters
338
- query_params = {}
339
-
340
- # header parameters
341
- header_params = {}
342
-
343
- # HTTP header 'Accept' (if needed)
344
- local_header_accept = ['application/json']
345
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
346
-
347
- # HTTP header 'Content-Type'
348
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
349
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
350
-
351
- # form parameters
352
- form_params = {}
353
-
354
- # http body (model)
355
- post_body = nil
356
- auth_names = ['oauth2']
357
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
358
- :header_params => header_params,
359
- :query_params => query_params,
360
- :form_params => form_params,
361
- :body => post_body,
362
- :auth_names => auth_names,
363
- :return_type => 'BuyerAddress')
364
- if @api_client.config.debugging
365
- @api_client.config.logger.debug "API called: MeApi#get_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
366
- end
367
- return data, status_code, headers
368
- end
369
-
370
- #
371
- #
372
- # @param creditcard_id ID of the creditcard.
373
- # @param [Hash] opts the optional parameters
374
- # @return [BuyerCreditCard]
375
- def get_credit_card(creditcard_id, opts = {})
376
- data, _status_code, _headers = get_credit_card_with_http_info(creditcard_id, opts)
377
- return data
378
- end
379
-
380
- #
381
- #
382
- # @param creditcard_id ID of the creditcard.
383
- # @param [Hash] opts the optional parameters
384
- # @return [Array<(BuyerCreditCard, Fixnum, Hash)>] BuyerCreditCard data, response status code and response headers
385
- def get_credit_card_with_http_info(creditcard_id, opts = {})
386
- if @api_client.config.debugging
387
- @api_client.config.logger.debug "Calling API: MeApi.get_credit_card ..."
388
- end
389
- # verify the required parameter 'creditcard_id' is set
390
- fail ArgumentError, "Missing the required parameter 'creditcard_id' when calling MeApi.get_credit_card" if creditcard_id.nil?
391
- # resource path
392
- local_var_path = "/me/creditcards/{creditcardID}".sub('{format}','json').sub('{' + 'creditcardID' + '}', creditcard_id.to_s)
393
-
394
- # query parameters
395
- query_params = {}
396
-
397
- # header parameters
398
- header_params = {}
399
-
400
- # HTTP header 'Accept' (if needed)
401
- local_header_accept = ['application/json']
402
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
403
-
404
- # HTTP header 'Content-Type'
405
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
406
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
407
-
408
- # form parameters
409
- form_params = {}
410
-
411
- # http body (model)
412
- post_body = nil
413
- auth_names = ['oauth2']
414
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
415
- :header_params => header_params,
416
- :query_params => query_params,
417
- :form_params => form_params,
418
- :body => post_body,
419
- :auth_names => auth_names,
420
- :return_type => 'BuyerCreditCard')
421
- if @api_client.config.debugging
422
- @api_client.config.logger.debug "API called: MeApi#get_credit_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
423
- end
424
- return data, status_code, headers
425
- end
426
-
427
- #
428
- #
429
- # @param order_id ID of the order.
430
- # @param [Hash] opts the optional parameters
431
- # @return [Order]
432
- def get_order(order_id, opts = {})
433
- data, _status_code, _headers = get_order_with_http_info(order_id, opts)
434
- return data
435
- end
436
-
437
- #
438
- #
439
- # @param order_id ID of the order.
440
- # @param [Hash] opts the optional parameters
441
- # @return [Array<(Order, Fixnum, Hash)>] Order data, response status code and response headers
442
- def get_order_with_http_info(order_id, opts = {})
443
- if @api_client.config.debugging
444
- @api_client.config.logger.debug "Calling API: MeApi.get_order ..."
445
- end
446
- # verify the required parameter 'order_id' is set
447
- fail ArgumentError, "Missing the required parameter 'order_id' when calling MeApi.get_order" if order_id.nil?
448
- # resource path
449
- local_var_path = "/me/orders/{orderID}".sub('{format}','json').sub('{' + 'orderID' + '}', order_id.to_s)
450
-
451
- # query parameters
452
- query_params = {}
453
-
454
- # header parameters
455
- header_params = {}
456
-
457
- # HTTP header 'Accept' (if needed)
458
- local_header_accept = ['application/json']
459
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
460
-
461
- # HTTP header 'Content-Type'
462
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
463
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
464
-
465
- # form parameters
466
- form_params = {}
467
-
468
- # http body (model)
469
- post_body = nil
470
- auth_names = ['oauth2']
471
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
472
- :header_params => header_params,
473
- :query_params => query_params,
474
- :form_params => form_params,
475
- :body => post_body,
476
- :auth_names => auth_names,
477
- :return_type => 'Order')
478
- if @api_client.config.debugging
479
- @api_client.config.logger.debug "API called: MeApi#get_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
480
- end
481
- return data, status_code, headers
482
- end
483
-
484
- #
485
- #
486
- # @param product_id ID of the product.
487
- # @param [Hash] opts the optional parameters
488
- # @return [BuyerProduct]
489
- def get_product(product_id, opts = {})
490
- data, _status_code, _headers = get_product_with_http_info(product_id, opts)
491
- return data
492
- end
493
-
494
- #
495
- #
496
- # @param product_id ID of the product.
497
- # @param [Hash] opts the optional parameters
498
- # @return [Array<(BuyerProduct, Fixnum, Hash)>] BuyerProduct data, response status code and response headers
499
- def get_product_with_http_info(product_id, opts = {})
500
- if @api_client.config.debugging
501
- @api_client.config.logger.debug "Calling API: MeApi.get_product ..."
502
- end
503
- # verify the required parameter 'product_id' is set
504
- fail ArgumentError, "Missing the required parameter 'product_id' when calling MeApi.get_product" if product_id.nil?
505
- # resource path
506
- local_var_path = "/me/products/{productID}".sub('{format}','json').sub('{' + 'productID' + '}', product_id.to_s)
507
-
508
- # query parameters
509
- query_params = {}
510
-
511
- # header parameters
512
- header_params = {}
513
-
514
- # HTTP header 'Accept' (if needed)
515
- local_header_accept = ['application/json']
516
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
517
-
518
- # HTTP header 'Content-Type'
519
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
520
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
521
-
522
- # form parameters
523
- form_params = {}
524
-
525
- # http body (model)
526
- post_body = nil
527
- auth_names = ['oauth2']
528
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
529
- :header_params => header_params,
530
- :query_params => query_params,
531
- :form_params => form_params,
532
- :body => post_body,
533
- :auth_names => auth_names,
534
- :return_type => 'BuyerProduct')
535
- if @api_client.config.debugging
536
- @api_client.config.logger.debug "API called: MeApi#get_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
537
- end
538
- return data, status_code, headers
539
- end
540
-
541
- #
542
- #
543
- # @param promotion_id ID of the promotion.
544
- # @param [Hash] opts the optional parameters
545
- # @return [Promotion]
546
- def get_promotion(promotion_id, opts = {})
547
- data, _status_code, _headers = get_promotion_with_http_info(promotion_id, opts)
548
- return data
549
- end
550
-
551
- #
552
- #
553
- # @param promotion_id ID of the promotion.
554
- # @param [Hash] opts the optional parameters
555
- # @return [Array<(Promotion, Fixnum, Hash)>] Promotion data, response status code and response headers
556
- def get_promotion_with_http_info(promotion_id, opts = {})
557
- if @api_client.config.debugging
558
- @api_client.config.logger.debug "Calling API: MeApi.get_promotion ..."
559
- end
560
- # verify the required parameter 'promotion_id' is set
561
- fail ArgumentError, "Missing the required parameter 'promotion_id' when calling MeApi.get_promotion" if promotion_id.nil?
562
- # resource path
563
- local_var_path = "/me/promotions/{promotionID}".sub('{format}','json').sub('{' + 'promotionID' + '}', promotion_id.to_s)
564
-
565
- # query parameters
566
- query_params = {}
567
-
568
- # header parameters
569
- header_params = {}
570
-
571
- # HTTP header 'Accept' (if needed)
572
- local_header_accept = ['application/json']
573
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
574
-
575
- # HTTP header 'Content-Type'
576
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
577
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
578
-
579
- # form parameters
580
- form_params = {}
581
-
582
- # http body (model)
583
- post_body = nil
584
- auth_names = ['oauth2']
585
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
586
- :header_params => header_params,
587
- :query_params => query_params,
588
- :form_params => form_params,
589
- :body => post_body,
590
- :auth_names => auth_names,
591
- :return_type => 'Promotion')
592
- if @api_client.config.debugging
593
- @api_client.config.logger.debug "API called: MeApi#get_promotion\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
594
- end
595
- return data, status_code, headers
596
- end
597
-
598
- #
599
- #
600
- # @param product_id ID of the product.
601
- # @param spec_id ID of the spec.
602
- # @param [Hash] opts the optional parameters
603
- # @return [BuyerSpec]
604
- def get_spec(product_id, spec_id, opts = {})
605
- data, _status_code, _headers = get_spec_with_http_info(product_id, spec_id, opts)
606
- return data
607
- end
608
-
609
- #
610
- #
611
- # @param product_id ID of the product.
612
- # @param spec_id ID of the spec.
613
- # @param [Hash] opts the optional parameters
614
- # @return [Array<(BuyerSpec, Fixnum, Hash)>] BuyerSpec data, response status code and response headers
615
- def get_spec_with_http_info(product_id, spec_id, opts = {})
616
- if @api_client.config.debugging
617
- @api_client.config.logger.debug "Calling API: MeApi.get_spec ..."
618
- end
619
- # verify the required parameter 'product_id' is set
620
- fail ArgumentError, "Missing the required parameter 'product_id' when calling MeApi.get_spec" if product_id.nil?
621
- # verify the required parameter 'spec_id' is set
622
- fail ArgumentError, "Missing the required parameter 'spec_id' when calling MeApi.get_spec" if spec_id.nil?
623
- # resource path
624
- local_var_path = "/me/products/{productID}/specs/{specID}".sub('{format}','json').sub('{' + 'productID' + '}', product_id.to_s).sub('{' + 'specID' + '}', spec_id.to_s)
625
-
626
- # query parameters
627
- query_params = {}
628
-
629
- # header parameters
630
- header_params = {}
631
-
632
- # HTTP header 'Accept' (if needed)
633
- local_header_accept = ['application/json']
634
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
635
-
636
- # HTTP header 'Content-Type'
637
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
638
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
639
-
640
- # form parameters
641
- form_params = {}
642
-
643
- # http body (model)
644
- post_body = nil
645
- auth_names = ['oauth2']
646
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
647
- :header_params => header_params,
648
- :query_params => query_params,
649
- :form_params => form_params,
650
- :body => post_body,
651
- :auth_names => auth_names,
652
- :return_type => 'BuyerSpec')
653
- if @api_client.config.debugging
654
- @api_client.config.logger.debug "API called: MeApi#get_spec\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
655
- end
656
- return data, status_code, headers
657
- end
658
-
659
- #
660
- #
661
- # @param [Hash] opts the optional parameters
662
- # @option opts [String] :search Word or phrase to search for.
663
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
664
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
665
- # @option opts [Integer] :page Page of results to return. Default: 1
666
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
667
- # @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;
668
- # @return [ListBuyerAddress]
669
- def list_addresses(opts = {})
670
- data, _status_code, _headers = list_addresses_with_http_info(opts)
671
- return data
672
- end
673
-
674
- #
675
- #
676
- # @param [Hash] opts the optional parameters
677
- # @option opts [String] :search Word or phrase to search for.
678
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
679
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
680
- # @option opts [Integer] :page Page of results to return. Default: 1
681
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
682
- # @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;
683
- # @return [Array<(ListBuyerAddress, Fixnum, Hash)>] ListBuyerAddress data, response status code and response headers
684
- def list_addresses_with_http_info(opts = {})
685
- if @api_client.config.debugging
686
- @api_client.config.logger.debug "Calling API: MeApi.list_addresses ..."
687
- end
688
- # resource path
689
- local_var_path = "/me/addresses".sub('{format}','json')
690
-
691
- # query parameters
692
- query_params = {}
693
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
694
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
695
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
696
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
697
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
698
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
699
-
700
- # header parameters
701
- header_params = {}
702
-
703
- # HTTP header 'Accept' (if needed)
704
- local_header_accept = ['application/json']
705
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
706
-
707
- # HTTP header 'Content-Type'
708
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
709
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
710
-
711
- # form parameters
712
- form_params = {}
713
-
714
- # http body (model)
715
- post_body = nil
716
- auth_names = ['oauth2']
717
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
718
- :header_params => header_params,
719
- :query_params => query_params,
720
- :form_params => form_params,
721
- :body => post_body,
722
- :auth_names => auth_names,
723
- :return_type => 'ListBuyerAddress')
724
- if @api_client.config.debugging
725
- @api_client.config.logger.debug "API called: MeApi#list_addresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
726
- end
727
- return data, status_code, headers
728
- end
729
-
730
- #
731
- #
732
- # @param [Hash] opts the optional parameters
733
- # @option opts [String] :depth Depth of the category.
734
- # @option opts [String] :search Word or phrase to search for.
735
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
736
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
737
- # @option opts [Integer] :page Page of results to return. Default: 1
738
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
739
- # @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;
740
- # @return [ListCategory]
741
- def list_categories(opts = {})
742
- data, _status_code, _headers = list_categories_with_http_info(opts)
743
- return data
744
- end
745
-
746
- #
747
- #
748
- # @param [Hash] opts the optional parameters
749
- # @option opts [String] :depth Depth of the category.
750
- # @option opts [String] :search Word or phrase to search for.
751
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
752
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
753
- # @option opts [Integer] :page Page of results to return. Default: 1
754
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
755
- # @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;
756
- # @return [Array<(ListCategory, Fixnum, Hash)>] ListCategory data, response status code and response headers
757
- def list_categories_with_http_info(opts = {})
758
- if @api_client.config.debugging
759
- @api_client.config.logger.debug "Calling API: MeApi.list_categories ..."
760
- end
761
- # resource path
762
- local_var_path = "/me/categories".sub('{format}','json')
763
-
764
- # query parameters
765
- query_params = {}
766
- query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
767
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
768
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
769
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
770
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
771
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
772
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
773
-
774
- # header parameters
775
- header_params = {}
776
-
777
- # HTTP header 'Accept' (if needed)
778
- local_header_accept = ['application/json']
779
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
780
-
781
- # HTTP header 'Content-Type'
782
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
783
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
784
-
785
- # form parameters
786
- form_params = {}
787
-
788
- # http body (model)
789
- post_body = nil
790
- auth_names = ['oauth2']
791
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
792
- :header_params => header_params,
793
- :query_params => query_params,
794
- :form_params => form_params,
795
- :body => post_body,
796
- :auth_names => auth_names,
797
- :return_type => 'ListCategory')
798
- if @api_client.config.debugging
799
- @api_client.config.logger.debug "API called: MeApi#list_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
800
- end
801
- return data, status_code, headers
802
- end
803
-
804
- #
805
- #
806
- # @param [Hash] opts the optional parameters
807
- # @option opts [String] :search Word or phrase to search for.
808
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
809
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
810
- # @option opts [Integer] :page Page of results to return. Default: 1
811
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
812
- # @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;
813
- # @return [ListCostCenter]
814
- def list_cost_centers(opts = {})
815
- data, _status_code, _headers = list_cost_centers_with_http_info(opts)
816
- return data
817
- end
818
-
819
- #
820
- #
821
- # @param [Hash] opts the optional parameters
822
- # @option opts [String] :search Word or phrase to search for.
823
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
824
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
825
- # @option opts [Integer] :page Page of results to return. Default: 1
826
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
827
- # @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;
828
- # @return [Array<(ListCostCenter, Fixnum, Hash)>] ListCostCenter data, response status code and response headers
829
- def list_cost_centers_with_http_info(opts = {})
830
- if @api_client.config.debugging
831
- @api_client.config.logger.debug "Calling API: MeApi.list_cost_centers ..."
832
- end
833
- # resource path
834
- local_var_path = "/me/costcenters".sub('{format}','json')
835
-
836
- # query parameters
837
- query_params = {}
838
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
839
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
840
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
841
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
842
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
843
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
844
-
845
- # header parameters
846
- header_params = {}
847
-
848
- # HTTP header 'Accept' (if needed)
849
- local_header_accept = ['application/json']
850
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
851
-
852
- # HTTP header 'Content-Type'
853
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
854
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
855
-
856
- # form parameters
857
- form_params = {}
858
-
859
- # http body (model)
860
- post_body = nil
861
- auth_names = ['oauth2']
862
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
863
- :header_params => header_params,
864
- :query_params => query_params,
865
- :form_params => form_params,
866
- :body => post_body,
867
- :auth_names => auth_names,
868
- :return_type => 'ListCostCenter')
869
- if @api_client.config.debugging
870
- @api_client.config.logger.debug "API called: MeApi#list_cost_centers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
871
- end
872
- return data, status_code, headers
873
- end
874
-
875
- #
876
- #
877
- # @param [Hash] opts the optional parameters
878
- # @option opts [String] :search Word or phrase to search for.
879
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
880
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
881
- # @option opts [Integer] :page Page of results to return. Default: 1
882
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
883
- # @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;
884
- # @return [ListBuyerCreditCard]
885
- def list_credit_cards(opts = {})
886
- data, _status_code, _headers = list_credit_cards_with_http_info(opts)
887
- return data
888
- end
889
-
890
- #
891
- #
892
- # @param [Hash] opts the optional parameters
893
- # @option opts [String] :search Word or phrase to search for.
894
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
895
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
896
- # @option opts [Integer] :page Page of results to return. Default: 1
897
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
898
- # @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;
899
- # @return [Array<(ListBuyerCreditCard, Fixnum, Hash)>] ListBuyerCreditCard data, response status code and response headers
900
- def list_credit_cards_with_http_info(opts = {})
901
- if @api_client.config.debugging
902
- @api_client.config.logger.debug "Calling API: MeApi.list_credit_cards ..."
903
- end
904
- # resource path
905
- local_var_path = "/me/creditcards".sub('{format}','json')
906
-
907
- # query parameters
908
- query_params = {}
909
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
910
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
911
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
912
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
913
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
914
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
915
-
916
- # header parameters
917
- header_params = {}
918
-
919
- # HTTP header 'Accept' (if needed)
920
- local_header_accept = ['application/json']
921
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
922
-
923
- # HTTP header 'Content-Type'
924
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
925
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
926
-
927
- # form parameters
928
- form_params = {}
929
-
930
- # http body (model)
931
- post_body = nil
932
- auth_names = ['oauth2']
933
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
934
- :header_params => header_params,
935
- :query_params => query_params,
936
- :form_params => form_params,
937
- :body => post_body,
938
- :auth_names => auth_names,
939
- :return_type => 'ListBuyerCreditCard')
940
- if @api_client.config.debugging
941
- @api_client.config.logger.debug "API called: MeApi#list_credit_cards\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
- end
943
- return data, status_code, headers
944
- end
945
-
946
- #
947
- #
948
- # @param [Hash] opts the optional parameters
949
- # @option opts [String] :from Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
950
- # @option opts [String] :to Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
951
- # @option opts [String] :search Word or phrase to search for.
952
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
953
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
954
- # @option opts [Integer] :page Page of results to return. Default: 1
955
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
956
- # @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;
957
- # @return [ListOrder]
958
- def list_incoming_orders(opts = {})
959
- data, _status_code, _headers = list_incoming_orders_with_http_info(opts)
960
- return data
961
- end
962
-
963
- #
964
- #
965
- # @param [Hash] opts the optional parameters
966
- # @option opts [String] :from Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
967
- # @option opts [String] :to Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
968
- # @option opts [String] :search Word or phrase to search for.
969
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
970
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
971
- # @option opts [Integer] :page Page of results to return. Default: 1
972
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
973
- # @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;
974
- # @return [Array<(ListOrder, Fixnum, Hash)>] ListOrder data, response status code and response headers
975
- def list_incoming_orders_with_http_info(opts = {})
976
- if @api_client.config.debugging
977
- @api_client.config.logger.debug "Calling API: MeApi.list_incoming_orders ..."
978
- end
979
- # resource path
980
- local_var_path = "/me/orders/incoming".sub('{format}','json')
981
-
982
- # query parameters
983
- query_params = {}
984
- query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
985
- query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
986
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
987
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
988
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
989
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
990
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
991
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
992
-
993
- # header parameters
994
- header_params = {}
995
-
996
- # HTTP header 'Accept' (if needed)
997
- local_header_accept = ['application/json']
998
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
999
-
1000
- # HTTP header 'Content-Type'
1001
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1002
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1003
-
1004
- # form parameters
1005
- form_params = {}
1006
-
1007
- # http body (model)
1008
- post_body = nil
1009
- auth_names = ['oauth2']
1010
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1011
- :header_params => header_params,
1012
- :query_params => query_params,
1013
- :form_params => form_params,
1014
- :body => post_body,
1015
- :auth_names => auth_names,
1016
- :return_type => 'ListOrder')
1017
- if @api_client.config.debugging
1018
- @api_client.config.logger.debug "API called: MeApi#list_incoming_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1019
- end
1020
- return data, status_code, headers
1021
- end
1022
-
1023
- #
1024
- #
1025
- # @param [Hash] opts the optional parameters
1026
- # @option opts [String] :from Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
1027
- # @option opts [String] :to Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
1028
- # @option opts [String] :search Word or phrase to search for.
1029
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1030
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1031
- # @option opts [Integer] :page Page of results to return. Default: 1
1032
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1033
- # @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;
1034
- # @return [ListOrder]
1035
- def list_outgoing_orders(opts = {})
1036
- data, _status_code, _headers = list_outgoing_orders_with_http_info(opts)
1037
- return data
1038
- end
1039
-
1040
- #
1041
- #
1042
- # @param [Hash] opts the optional parameters
1043
- # @option opts [String] :from Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
1044
- # @option opts [String] :to Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
1045
- # @option opts [String] :search Word or phrase to search for.
1046
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1047
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1048
- # @option opts [Integer] :page Page of results to return. Default: 1
1049
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1050
- # @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;
1051
- # @return [Array<(ListOrder, Fixnum, Hash)>] ListOrder data, response status code and response headers
1052
- def list_outgoing_orders_with_http_info(opts = {})
1053
- if @api_client.config.debugging
1054
- @api_client.config.logger.debug "Calling API: MeApi.list_outgoing_orders ..."
1055
- end
1056
- # resource path
1057
- local_var_path = "/me/orders/outgoing".sub('{format}','json')
1058
-
1059
- # query parameters
1060
- query_params = {}
1061
- query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
1062
- query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
1063
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1064
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
1065
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
1066
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1067
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1068
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
1069
-
1070
- # header parameters
1071
- header_params = {}
1072
-
1073
- # HTTP header 'Accept' (if needed)
1074
- local_header_accept = ['application/json']
1075
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1076
-
1077
- # HTTP header 'Content-Type'
1078
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1079
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1080
-
1081
- # form parameters
1082
- form_params = {}
1083
-
1084
- # http body (model)
1085
- post_body = nil
1086
- auth_names = ['oauth2']
1087
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1088
- :header_params => header_params,
1089
- :query_params => query_params,
1090
- :form_params => form_params,
1091
- :body => post_body,
1092
- :auth_names => auth_names,
1093
- :return_type => 'ListOrder')
1094
- if @api_client.config.debugging
1095
- @api_client.config.logger.debug "API called: MeApi#list_outgoing_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1096
- end
1097
- return data, status_code, headers
1098
- end
1099
-
1100
- #
1101
- #
1102
- # @param [Hash] opts the optional parameters
1103
- # @option opts [String] :category_id ID of the category.
1104
- # @option opts [String] :search Word or phrase to search for.
1105
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1106
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1107
- # @option opts [Integer] :page Page of results to return. Default: 1
1108
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1109
- # @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;
1110
- # @return [ListBuyerProduct]
1111
- def list_products(opts = {})
1112
- data, _status_code, _headers = list_products_with_http_info(opts)
1113
- return data
1114
- end
1115
-
1116
- #
1117
- #
1118
- # @param [Hash] opts the optional parameters
1119
- # @option opts [String] :category_id ID of the category.
1120
- # @option opts [String] :search Word or phrase to search for.
1121
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1122
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1123
- # @option opts [Integer] :page Page of results to return. Default: 1
1124
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1125
- # @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;
1126
- # @return [Array<(ListBuyerProduct, Fixnum, Hash)>] ListBuyerProduct data, response status code and response headers
1127
- def list_products_with_http_info(opts = {})
1128
- if @api_client.config.debugging
1129
- @api_client.config.logger.debug "Calling API: MeApi.list_products ..."
1130
- end
1131
- # resource path
1132
- local_var_path = "/me/products".sub('{format}','json')
1133
-
1134
- # query parameters
1135
- query_params = {}
1136
- query_params[:'categoryID'] = opts[:'category_id'] if !opts[:'category_id'].nil?
1137
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1138
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
1139
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
1140
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1141
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1142
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
1143
-
1144
- # header parameters
1145
- header_params = {}
1146
-
1147
- # HTTP header 'Accept' (if needed)
1148
- local_header_accept = ['application/json']
1149
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1150
-
1151
- # HTTP header 'Content-Type'
1152
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1153
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1154
-
1155
- # form parameters
1156
- form_params = {}
1157
-
1158
- # http body (model)
1159
- post_body = nil
1160
- auth_names = ['oauth2']
1161
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1162
- :header_params => header_params,
1163
- :query_params => query_params,
1164
- :form_params => form_params,
1165
- :body => post_body,
1166
- :auth_names => auth_names,
1167
- :return_type => 'ListBuyerProduct')
1168
- if @api_client.config.debugging
1169
- @api_client.config.logger.debug "API called: MeApi#list_products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1170
- end
1171
- return data, status_code, headers
1172
- end
1173
-
1174
- #
1175
- #
1176
- # @param [Hash] opts the optional parameters
1177
- # @option opts [String] :search Word or phrase to search for.
1178
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1179
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1180
- # @option opts [Integer] :page Page of results to return. Default: 1
1181
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1182
- # @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;
1183
- # @return [ListPromotion]
1184
- def list_promotions(opts = {})
1185
- data, _status_code, _headers = list_promotions_with_http_info(opts)
1186
- return data
1187
- end
1188
-
1189
- #
1190
- #
1191
- # @param [Hash] opts the optional parameters
1192
- # @option opts [String] :search Word or phrase to search for.
1193
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1194
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1195
- # @option opts [Integer] :page Page of results to return. Default: 1
1196
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1197
- # @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;
1198
- # @return [Array<(ListPromotion, Fixnum, Hash)>] ListPromotion data, response status code and response headers
1199
- def list_promotions_with_http_info(opts = {})
1200
- if @api_client.config.debugging
1201
- @api_client.config.logger.debug "Calling API: MeApi.list_promotions ..."
1202
- end
1203
- # resource path
1204
- local_var_path = "/me/promotions".sub('{format}','json')
1205
-
1206
- # query parameters
1207
- query_params = {}
1208
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1209
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
1210
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
1211
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1212
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1213
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
1214
-
1215
- # header parameters
1216
- header_params = {}
1217
-
1218
- # HTTP header 'Accept' (if needed)
1219
- local_header_accept = ['application/json']
1220
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1221
-
1222
- # HTTP header 'Content-Type'
1223
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1224
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1225
-
1226
- # form parameters
1227
- form_params = {}
1228
-
1229
- # http body (model)
1230
- post_body = nil
1231
- auth_names = ['oauth2']
1232
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1233
- :header_params => header_params,
1234
- :query_params => query_params,
1235
- :form_params => form_params,
1236
- :body => post_body,
1237
- :auth_names => auth_names,
1238
- :return_type => 'ListPromotion')
1239
- if @api_client.config.debugging
1240
- @api_client.config.logger.debug "API called: MeApi#list_promotions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1241
- end
1242
- return data, status_code, headers
1243
- end
1244
-
1245
- #
1246
- #
1247
- # @param product_id ID of the product.
1248
- # @param [Hash] opts the optional parameters
1249
- # @option opts [String] :search Word or phrase to search for.
1250
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1251
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1252
- # @option opts [Integer] :page Page of results to return. Default: 1
1253
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1254
- # @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;
1255
- # @return [ListBuyerSpec]
1256
- def list_specs(product_id, opts = {})
1257
- data, _status_code, _headers = list_specs_with_http_info(product_id, opts)
1258
- return data
1259
- end
1260
-
1261
- #
1262
- #
1263
- # @param product_id ID of the product.
1264
- # @param [Hash] opts the optional parameters
1265
- # @option opts [String] :search Word or phrase to search for.
1266
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1267
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1268
- # @option opts [Integer] :page Page of results to return. Default: 1
1269
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1270
- # @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;
1271
- # @return [Array<(ListBuyerSpec, Fixnum, Hash)>] ListBuyerSpec data, response status code and response headers
1272
- def list_specs_with_http_info(product_id, opts = {})
1273
- if @api_client.config.debugging
1274
- @api_client.config.logger.debug "Calling API: MeApi.list_specs ..."
1275
- end
1276
- # verify the required parameter 'product_id' is set
1277
- fail ArgumentError, "Missing the required parameter 'product_id' when calling MeApi.list_specs" if product_id.nil?
1278
- # resource path
1279
- local_var_path = "/me/products/{productID}/specs".sub('{format}','json').sub('{' + 'productID' + '}', product_id.to_s)
1280
-
1281
- # query parameters
1282
- query_params = {}
1283
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1284
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
1285
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
1286
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1287
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1288
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
1289
-
1290
- # header parameters
1291
- header_params = {}
1292
-
1293
- # HTTP header 'Accept' (if needed)
1294
- local_header_accept = ['application/json']
1295
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1296
-
1297
- # HTTP header 'Content-Type'
1298
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1299
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1300
-
1301
- # form parameters
1302
- form_params = {}
1303
-
1304
- # http body (model)
1305
- post_body = nil
1306
- auth_names = ['oauth2']
1307
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1308
- :header_params => header_params,
1309
- :query_params => query_params,
1310
- :form_params => form_params,
1311
- :body => post_body,
1312
- :auth_names => auth_names,
1313
- :return_type => 'ListBuyerSpec')
1314
- if @api_client.config.debugging
1315
- @api_client.config.logger.debug "API called: MeApi#list_specs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1316
- end
1317
- return data, status_code, headers
1318
- end
1319
-
1320
- #
1321
- #
1322
- # @param [Hash] opts the optional parameters
1323
- # @option opts [String] :search Word or phrase to search for.
1324
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1325
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1326
- # @option opts [Integer] :page Page of results to return. Default: 1
1327
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1328
- # @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;
1329
- # @return [ListUserGroup]
1330
- def list_user_groups(opts = {})
1331
- data, _status_code, _headers = list_user_groups_with_http_info(opts)
1332
- return data
1333
- end
1334
-
1335
- #
1336
- #
1337
- # @param [Hash] opts the optional parameters
1338
- # @option opts [String] :search Word or phrase to search for.
1339
- # @option opts [String] :search_on Comma-delimited list of fields to search on.
1340
- # @option opts [String] :sort_by Comma-delimited list of fields to sort by.
1341
- # @option opts [Integer] :page Page of results to return. Default: 1
1342
- # @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
1343
- # @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;
1344
- # @return [Array<(ListUserGroup, Fixnum, Hash)>] ListUserGroup data, response status code and response headers
1345
- def list_user_groups_with_http_info(opts = {})
1346
- if @api_client.config.debugging
1347
- @api_client.config.logger.debug "Calling API: MeApi.list_user_groups ..."
1348
- end
1349
- # resource path
1350
- local_var_path = "/me/usergroups".sub('{format}','json')
1351
-
1352
- # query parameters
1353
- query_params = {}
1354
- query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
1355
- query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
1356
- query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
1357
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1358
- query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1359
- query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
1360
-
1361
- # header parameters
1362
- header_params = {}
1363
-
1364
- # HTTP header 'Accept' (if needed)
1365
- local_header_accept = ['application/json']
1366
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1367
-
1368
- # HTTP header 'Content-Type'
1369
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1370
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1371
-
1372
- # form parameters
1373
- form_params = {}
1374
-
1375
- # http body (model)
1376
- post_body = nil
1377
- auth_names = ['oauth2']
1378
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1379
- :header_params => header_params,
1380
- :query_params => query_params,
1381
- :form_params => form_params,
1382
- :body => post_body,
1383
- :auth_names => auth_names,
1384
- :return_type => 'ListUserGroup')
1385
- if @api_client.config.debugging
1386
- @api_client.config.logger.debug "API called: MeApi#list_user_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1387
- end
1388
- return data, status_code, headers
1389
- end
1390
-
1391
- #
1392
- #
1393
- # @param user
1394
- # @param [Hash] opts the optional parameters
1395
- # @return [User]
1396
- def patch(user, opts = {})
1397
- data, _status_code, _headers = patch_with_http_info(user, opts)
1398
- return data
1399
- end
1400
-
1401
- #
1402
- #
1403
- # @param user
1404
- # @param [Hash] opts the optional parameters
1405
- # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
1406
- def patch_with_http_info(user, opts = {})
1407
- if @api_client.config.debugging
1408
- @api_client.config.logger.debug "Calling API: MeApi.patch ..."
1409
- end
1410
- # verify the required parameter 'user' is set
1411
- fail ArgumentError, "Missing the required parameter 'user' when calling MeApi.patch" if user.nil?
1412
- # resource path
1413
- local_var_path = "/me".sub('{format}','json')
1414
-
1415
- # query parameters
1416
- query_params = {}
1417
-
1418
- # header parameters
1419
- header_params = {}
1420
-
1421
- # HTTP header 'Accept' (if needed)
1422
- local_header_accept = ['application/json']
1423
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1424
-
1425
- # HTTP header 'Content-Type'
1426
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1427
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1428
-
1429
- # form parameters
1430
- form_params = {}
1431
-
1432
- # http body (model)
1433
- post_body = @api_client.object_to_http_body(user)
1434
- auth_names = ['oauth2']
1435
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1436
- :header_params => header_params,
1437
- :query_params => query_params,
1438
- :form_params => form_params,
1439
- :body => post_body,
1440
- :auth_names => auth_names,
1441
- :return_type => 'User')
1442
- if @api_client.config.debugging
1443
- @api_client.config.logger.debug "API called: MeApi#patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1444
- end
1445
- return data, status_code, headers
1446
- end
1447
-
1448
- #
1449
- #
1450
- # @param address_id ID of the address.
1451
- # @param address
1452
- # @param [Hash] opts the optional parameters
1453
- # @return [nil]
1454
- def patch_address(address_id, address, opts = {})
1455
- patch_address_with_http_info(address_id, address, opts)
1456
- return nil
1457
- end
1458
-
1459
- #
1460
- #
1461
- # @param address_id ID of the address.
1462
- # @param address
1463
- # @param [Hash] opts the optional parameters
1464
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1465
- def patch_address_with_http_info(address_id, address, opts = {})
1466
- if @api_client.config.debugging
1467
- @api_client.config.logger.debug "Calling API: MeApi.patch_address ..."
1468
- end
1469
- # verify the required parameter 'address_id' is set
1470
- fail ArgumentError, "Missing the required parameter 'address_id' when calling MeApi.patch_address" if address_id.nil?
1471
- # verify the required parameter 'address' is set
1472
- fail ArgumentError, "Missing the required parameter 'address' when calling MeApi.patch_address" if address.nil?
1473
- # resource path
1474
- local_var_path = "/me/addresses/{addressID}".sub('{format}','json').sub('{' + 'addressID' + '}', address_id.to_s)
1475
-
1476
- # query parameters
1477
- query_params = {}
1478
-
1479
- # header parameters
1480
- header_params = {}
1481
-
1482
- # HTTP header 'Accept' (if needed)
1483
- local_header_accept = ['application/json']
1484
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1485
-
1486
- # HTTP header 'Content-Type'
1487
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1488
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1489
-
1490
- # form parameters
1491
- form_params = {}
1492
-
1493
- # http body (model)
1494
- post_body = @api_client.object_to_http_body(address)
1495
- auth_names = ['oauth2']
1496
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1497
- :header_params => header_params,
1498
- :query_params => query_params,
1499
- :form_params => form_params,
1500
- :body => post_body,
1501
- :auth_names => auth_names)
1502
- if @api_client.config.debugging
1503
- @api_client.config.logger.debug "API called: MeApi#patch_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1504
- end
1505
- return data, status_code, headers
1506
- end
1507
-
1508
- #
1509
- #
1510
- # @param creditcard_id ID of the creditcard.
1511
- # @param credit_card
1512
- # @param [Hash] opts the optional parameters
1513
- # @return [nil]
1514
- def patch_credit_card(creditcard_id, credit_card, opts = {})
1515
- patch_credit_card_with_http_info(creditcard_id, credit_card, opts)
1516
- return nil
1517
- end
1518
-
1519
- #
1520
- #
1521
- # @param creditcard_id ID of the creditcard.
1522
- # @param credit_card
1523
- # @param [Hash] opts the optional parameters
1524
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1525
- def patch_credit_card_with_http_info(creditcard_id, credit_card, opts = {})
1526
- if @api_client.config.debugging
1527
- @api_client.config.logger.debug "Calling API: MeApi.patch_credit_card ..."
1528
- end
1529
- # verify the required parameter 'creditcard_id' is set
1530
- fail ArgumentError, "Missing the required parameter 'creditcard_id' when calling MeApi.patch_credit_card" if creditcard_id.nil?
1531
- # verify the required parameter 'credit_card' is set
1532
- fail ArgumentError, "Missing the required parameter 'credit_card' when calling MeApi.patch_credit_card" if credit_card.nil?
1533
- # resource path
1534
- local_var_path = "/me/creditcards/{creditcardID}".sub('{format}','json').sub('{' + 'creditcardID' + '}', creditcard_id.to_s)
1535
-
1536
- # query parameters
1537
- query_params = {}
1538
-
1539
- # header parameters
1540
- header_params = {}
1541
-
1542
- # HTTP header 'Accept' (if needed)
1543
- local_header_accept = ['application/json']
1544
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1545
-
1546
- # HTTP header 'Content-Type'
1547
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1548
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1549
-
1550
- # form parameters
1551
- form_params = {}
1552
-
1553
- # http body (model)
1554
- post_body = @api_client.object_to_http_body(credit_card)
1555
- auth_names = ['oauth2']
1556
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1557
- :header_params => header_params,
1558
- :query_params => query_params,
1559
- :form_params => form_params,
1560
- :body => post_body,
1561
- :auth_names => auth_names)
1562
- if @api_client.config.debugging
1563
- @api_client.config.logger.debug "API called: MeApi#patch_credit_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1564
- end
1565
- return data, status_code, headers
1566
- end
1567
-
1568
- #
1569
- #
1570
- # @param user
1571
- # @param [Hash] opts the optional parameters
1572
- # @return [User]
1573
- def update(user, opts = {})
1574
- data, _status_code, _headers = update_with_http_info(user, opts)
1575
- return data
1576
- end
1577
-
1578
- #
1579
- #
1580
- # @param user
1581
- # @param [Hash] opts the optional parameters
1582
- # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
1583
- def update_with_http_info(user, opts = {})
1584
- if @api_client.config.debugging
1585
- @api_client.config.logger.debug "Calling API: MeApi.update ..."
1586
- end
1587
- # verify the required parameter 'user' is set
1588
- fail ArgumentError, "Missing the required parameter 'user' when calling MeApi.update" if user.nil?
1589
- # resource path
1590
- local_var_path = "/me".sub('{format}','json')
1591
-
1592
- # query parameters
1593
- query_params = {}
1594
-
1595
- # header parameters
1596
- header_params = {}
1597
-
1598
- # HTTP header 'Accept' (if needed)
1599
- local_header_accept = ['application/json']
1600
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1601
-
1602
- # HTTP header 'Content-Type'
1603
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1604
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1605
-
1606
- # form parameters
1607
- form_params = {}
1608
-
1609
- # http body (model)
1610
- post_body = @api_client.object_to_http_body(user)
1611
- auth_names = ['oauth2']
1612
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1613
- :header_params => header_params,
1614
- :query_params => query_params,
1615
- :form_params => form_params,
1616
- :body => post_body,
1617
- :auth_names => auth_names,
1618
- :return_type => 'User')
1619
- if @api_client.config.debugging
1620
- @api_client.config.logger.debug "API called: MeApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1621
- end
1622
- return data, status_code, headers
1623
- end
1624
-
1625
- #
1626
- #
1627
- # @param address_id ID of the address.
1628
- # @param address
1629
- # @param [Hash] opts the optional parameters
1630
- # @return [BuyerAddress]
1631
- def update_address(address_id, address, opts = {})
1632
- data, _status_code, _headers = update_address_with_http_info(address_id, address, opts)
1633
- return data
1634
- end
1635
-
1636
- #
1637
- #
1638
- # @param address_id ID of the address.
1639
- # @param address
1640
- # @param [Hash] opts the optional parameters
1641
- # @return [Array<(BuyerAddress, Fixnum, Hash)>] BuyerAddress data, response status code and response headers
1642
- def update_address_with_http_info(address_id, address, opts = {})
1643
- if @api_client.config.debugging
1644
- @api_client.config.logger.debug "Calling API: MeApi.update_address ..."
1645
- end
1646
- # verify the required parameter 'address_id' is set
1647
- fail ArgumentError, "Missing the required parameter 'address_id' when calling MeApi.update_address" if address_id.nil?
1648
- # verify the required parameter 'address' is set
1649
- fail ArgumentError, "Missing the required parameter 'address' when calling MeApi.update_address" if address.nil?
1650
- # resource path
1651
- local_var_path = "/me/addresses/{addressID}".sub('{format}','json').sub('{' + 'addressID' + '}', address_id.to_s)
1652
-
1653
- # query parameters
1654
- query_params = {}
1655
-
1656
- # header parameters
1657
- header_params = {}
1658
-
1659
- # HTTP header 'Accept' (if needed)
1660
- local_header_accept = ['application/json']
1661
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1662
-
1663
- # HTTP header 'Content-Type'
1664
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1665
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1666
-
1667
- # form parameters
1668
- form_params = {}
1669
-
1670
- # http body (model)
1671
- post_body = @api_client.object_to_http_body(address)
1672
- auth_names = ['oauth2']
1673
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1674
- :header_params => header_params,
1675
- :query_params => query_params,
1676
- :form_params => form_params,
1677
- :body => post_body,
1678
- :auth_names => auth_names,
1679
- :return_type => 'BuyerAddress')
1680
- if @api_client.config.debugging
1681
- @api_client.config.logger.debug "API called: MeApi#update_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1682
- end
1683
- return data, status_code, headers
1684
- end
1685
-
1686
- #
1687
- #
1688
- # @param creditcard_id ID of the creditcard.
1689
- # @param credit_card
1690
- # @param [Hash] opts the optional parameters
1691
- # @return [BuyerCreditCard]
1692
- def update_credit_card(creditcard_id, credit_card, opts = {})
1693
- data, _status_code, _headers = update_credit_card_with_http_info(creditcard_id, credit_card, opts)
1694
- return data
1695
- end
1696
-
1697
- #
1698
- #
1699
- # @param creditcard_id ID of the creditcard.
1700
- # @param credit_card
1701
- # @param [Hash] opts the optional parameters
1702
- # @return [Array<(BuyerCreditCard, Fixnum, Hash)>] BuyerCreditCard data, response status code and response headers
1703
- def update_credit_card_with_http_info(creditcard_id, credit_card, opts = {})
1704
- if @api_client.config.debugging
1705
- @api_client.config.logger.debug "Calling API: MeApi.update_credit_card ..."
1706
- end
1707
- # verify the required parameter 'creditcard_id' is set
1708
- fail ArgumentError, "Missing the required parameter 'creditcard_id' when calling MeApi.update_credit_card" if creditcard_id.nil?
1709
- # verify the required parameter 'credit_card' is set
1710
- fail ArgumentError, "Missing the required parameter 'credit_card' when calling MeApi.update_credit_card" if credit_card.nil?
1711
- # resource path
1712
- local_var_path = "/me/creditcards/{creditcardID}".sub('{format}','json').sub('{' + 'creditcardID' + '}', creditcard_id.to_s)
1713
-
1714
- # query parameters
1715
- query_params = {}
1716
-
1717
- # header parameters
1718
- header_params = {}
1719
-
1720
- # HTTP header 'Accept' (if needed)
1721
- local_header_accept = ['application/json']
1722
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1723
-
1724
- # HTTP header 'Content-Type'
1725
- local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
1726
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1727
-
1728
- # form parameters
1729
- form_params = {}
1730
-
1731
- # http body (model)
1732
- post_body = @api_client.object_to_http_body(credit_card)
1733
- auth_names = ['oauth2']
1734
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1735
- :header_params => header_params,
1736
- :query_params => query_params,
1737
- :form_params => form_params,
1738
- :body => post_body,
1739
- :auth_names => auth_names,
1740
- :return_type => 'BuyerCreditCard')
1741
- if @api_client.config.debugging
1742
- @api_client.config.logger.debug "API called: MeApi#update_credit_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1743
- end
1744
- return data, status_code, headers
1745
- end
1746
- end
1747
- end