order_cloud 1.0.45.pre.staging → 1.0.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +28 -0
- data/Gemfile.lock +34 -0
- data/LICENSE +201 -0
- data/README.md +552 -0
- data/Rakefile +31 -0
- data/docs/AccessToken.md +11 -0
- data/docs/Address.md +20 -0
- data/docs/AddressApi.md +520 -0
- data/docs/AddressAssignment.md +12 -0
- data/docs/AdminAddressApi.md +324 -0
- data/docs/AdminUserApi.md +324 -0
- data/docs/AdminUserGroupApi.md +482 -0
- data/docs/ApprovalRule.md +13 -0
- data/docs/ApprovalRuleApi.md +342 -0
- data/docs/BaseSpec.md +16 -0
- data/docs/Buyer.md +12 -0
- data/docs/BuyerAddress.md +23 -0
- data/docs/BuyerApi.md +324 -0
- data/docs/BuyerCreditCard.md +16 -0
- data/docs/BuyerProduct.md +23 -0
- data/docs/BuyerShipment.md +19 -0
- data/docs/BuyerSpec.md +17 -0
- data/docs/Catalog.md +13 -0
- data/docs/CatalogApi.md +640 -0
- data/docs/CatalogAssignment.md +11 -0
- data/docs/Category.md +15 -0
- data/docs/CategoryApi.md +690 -0
- data/docs/CategoryAssignment.md +12 -0
- data/docs/CategoryProductAssignment.md +10 -0
- data/docs/CostCenter.md +11 -0
- data/docs/CostCenterApi.md +516 -0
- data/docs/CostCenterAssignment.md +9 -0
- data/docs/CreditCard.md +15 -0
- data/docs/CreditCardApi.md +516 -0
- data/docs/CreditCardAssignment.md +10 -0
- data/docs/ImpersonateTokenRequest.md +9 -0
- data/docs/ImpersonationConfig.md +16 -0
- data/docs/ImpersonationConfigApi.md +324 -0
- data/docs/Inventory.md +13 -0
- data/docs/LineItem.md +24 -0
- data/docs/LineItemApi.md +478 -0
- data/docs/LineItemProduct.md +16 -0
- data/docs/LineItemSpec.md +11 -0
- data/docs/ListAddress.md +9 -0
- data/docs/ListAddressAssignment.md +9 -0
- data/docs/ListApprovalRule.md +9 -0
- data/docs/ListArgs.md +13 -0
- data/docs/ListBuyer.md +9 -0
- data/docs/ListBuyerAddress.md +9 -0
- data/docs/ListBuyerCreditCard.md +9 -0
- data/docs/ListBuyerProduct.md +9 -0
- data/docs/ListBuyerShipment.md +9 -0
- data/docs/ListBuyerSpec.md +9 -0
- data/docs/ListCatalog.md +9 -0
- data/docs/ListCatalogAssignment.md +9 -0
- data/docs/ListCategory.md +9 -0
- data/docs/ListCategoryAssignment.md +9 -0
- data/docs/ListCategoryProductAssignment.md +9 -0
- data/docs/ListCostCenter.md +9 -0
- data/docs/ListCostCenterAssignment.md +9 -0
- data/docs/ListCreditCard.md +9 -0
- data/docs/ListCreditCardAssignment.md +9 -0
- data/docs/ListImpersonationConfig.md +9 -0
- data/docs/ListLineItem.md +9 -0
- data/docs/ListMessageCCListenerAssignment.md +9 -0
- data/docs/ListMessageConfig.md +9 -0
- data/docs/ListMessageSender.md +9 -0
- data/docs/ListMessageSenderAssignment.md +9 -0
- data/docs/ListOrder.md +9 -0
- data/docs/ListOrderApproval.md +9 -0
- data/docs/ListOrderPromotion.md +9 -0
- data/docs/ListPayment.md +9 -0
- data/docs/ListPriceSchedule.md +9 -0
- data/docs/ListProduct.md +9 -0
- data/docs/ListProductAssignment.md +9 -0
- data/docs/ListProductCatalogAssignment.md +9 -0
- data/docs/ListPromotion.md +9 -0
- data/docs/ListPromotionAssignment.md +9 -0
- data/docs/ListSecurityProfile.md +9 -0
- data/docs/ListSecurityProfileAssignment.md +9 -0
- data/docs/ListShipment.md +9 -0
- data/docs/ListShipmentItem.md +9 -0
- data/docs/ListSpec.md +9 -0
- data/docs/ListSpecOption.md +9 -0
- data/docs/ListSpecProductAssignment.md +9 -0
- data/docs/ListSpendingAccount.md +9 -0
- data/docs/ListSpendingAccountAssignment.md +9 -0
- data/docs/ListSupplier.md +9 -0
- data/docs/ListUser.md +9 -0
- data/docs/ListUserGroup.md +9 -0
- data/docs/ListUserGroupAssignment.md +9 -0
- data/docs/ListVariant.md +9 -0
- data/docs/MeApi.md +2002 -0
- data/docs/MeBuyer.md +9 -0
- data/docs/MeUser.md +19 -0
- data/docs/MessageCCListenerAssignment.md +13 -0
- data/docs/MessageConfig.md +14 -0
- data/docs/MessageSender.md +10 -0
- data/docs/MessageSenderAssignment.md +11 -0
- data/docs/MessageSendersApi.md +398 -0
- data/docs/Meta.md +12 -0
- data/docs/Order.md +30 -0
- data/docs/OrderApi.md +1161 -0
- data/docs/OrderApproval.md +14 -0
- data/docs/OrderApprovalInfo.md +9 -0
- data/docs/OrderPromotion.md +22 -0
- data/docs/PasswordReset.md +10 -0
- data/docs/PasswordResetApi.md +109 -0
- data/docs/PasswordResetRequest.md +11 -0
- data/docs/Payment.md +17 -0
- data/docs/PaymentApi.md +418 -0
- data/docs/PaymentTransaction.md +15 -0
- data/docs/PriceBreak.md +9 -0
- data/docs/PriceSchedule.md +17 -0
- data/docs/PriceScheduleApi.md +429 -0
- data/docs/Product.md +23 -0
- data/docs/ProductApi.md +953 -0
- data/docs/ProductAssignment.md +11 -0
- data/docs/ProductBase.md +22 -0
- data/docs/ProductCatalogAssignment.md +9 -0
- data/docs/Promotion.md +21 -0
- data/docs/PromotionApi.md +494 -0
- data/docs/PromotionAssignment.md +10 -0
- data/docs/SecurityProfile.md +10 -0
- data/docs/SecurityProfileApi.md +292 -0
- data/docs/SecurityProfileAssignment.md +12 -0
- data/docs/Shipment.md +20 -0
- data/docs/ShipmentApi.md +554 -0
- data/docs/ShipmentItem.md +16 -0
- data/docs/Spec.md +17 -0
- data/docs/SpecApi.md +820 -0
- data/docs/SpecOption.md +14 -0
- data/docs/SpecProductAssignment.md +11 -0
- data/docs/SpendingAccount.md +15 -0
- data/docs/SpendingAccountApi.md +516 -0
- data/docs/SpendingAccountAssignment.md +11 -0
- data/docs/Supplier.md +11 -0
- data/docs/SupplierApi.md +324 -0
- data/docs/SupplierUserApi.md +400 -0
- data/docs/SupplierUserGroupApi.md +509 -0
- data/docs/TokenPasswordReset.md +8 -0
- data/docs/User.md +18 -0
- data/docs/UserApi.md +400 -0
- data/docs/UserGroup.md +11 -0
- data/docs/UserGroupApi.md +509 -0
- data/docs/UserGroupAssignment.md +9 -0
- data/docs/Variant.md +12 -0
- data/git_push.sh +67 -0
- data/lib/order_cloud.rb +193 -0
- data/lib/order_cloud/api/address_api.rb +628 -0
- data/lib/order_cloud/api/admin_address_api.rb +397 -0
- data/lib/order_cloud/api/admin_user_api.rb +397 -0
- data/lib/order_cloud/api/admin_user_group_api.rb +578 -0
- data/lib/order_cloud/api/approval_rule_api.rb +421 -0
- data/lib/order_cloud/api/auth_api.rb +138 -0
- data/lib/order_cloud/api/buyer_api.rb +397 -0
- data/lib/order_cloud/api/catalog_api.rb +760 -0
- data/lib/order_cloud/api/category_api.rb +826 -0
- data/lib/order_cloud/api/cost_center_api.rb +622 -0
- data/lib/order_cloud/api/credit_card_api.rb +622 -0
- data/lib/order_cloud/api/impersonation_config_api.rb +397 -0
- data/lib/order_cloud/api/line_item_api.rb +583 -0
- data/lib/order_cloud/api/me_api.rb +2345 -0
- data/lib/order_cloud/api/message_senders_api.rb +484 -0
- data/lib/order_cloud/api/order_api.rb +1377 -0
- data/lib/order_cloud/api/password_reset_api.rb +150 -0
- data/lib/order_cloud/api/payment_api.rb +513 -0
- data/lib/order_cloud/api/price_schedule_api.rb +519 -0
- data/lib/order_cloud/api/product_api.rb +1126 -0
- data/lib/order_cloud/api/promotion_api.rb +594 -0
- data/lib/order_cloud/api/security_profile_api.rb +363 -0
- data/lib/order_cloud/api/shipment_api.rb +665 -0
- data/lib/order_cloud/api/spec_api.rb +971 -0
- data/lib/order_cloud/api/spending_account_api.rb +622 -0
- data/lib/order_cloud/api/supplier_api.rb +397 -0
- data/lib/order_cloud/api/supplier_user_api.rb +489 -0
- data/lib/order_cloud/api/supplier_user_group_api.rb +614 -0
- data/lib/order_cloud/api/user_api.rb +489 -0
- data/lib/order_cloud/api/user_group_api.rb +614 -0
- data/lib/order_cloud/api_client.rb +385 -0
- data/lib/order_cloud/api_error.rb +47 -0
- data/lib/order_cloud/configuration.rb +245 -0
- data/lib/order_cloud/models/access_token.rb +226 -0
- data/lib/order_cloud/models/address.rb +307 -0
- data/lib/order_cloud/models/address_assignment.rb +235 -0
- data/lib/order_cloud/models/approval_rule.rb +244 -0
- data/lib/order_cloud/models/base_spec.rb +271 -0
- data/lib/order_cloud/models/buyer.rb +235 -0
- data/lib/order_cloud/models/buyer_address.rb +334 -0
- data/lib/order_cloud/models/buyer_credit_card.rb +271 -0
- data/lib/order_cloud/models/buyer_product.rb +334 -0
- data/lib/order_cloud/models/buyer_shipment.rb +298 -0
- data/lib/order_cloud/models/buyer_spec.rb +282 -0
- data/lib/order_cloud/models/catalog.rb +244 -0
- data/lib/order_cloud/models/catalog_assignment.rb +226 -0
- data/lib/order_cloud/models/category.rb +262 -0
- data/lib/order_cloud/models/category_assignment.rb +235 -0
- data/lib/order_cloud/models/category_product_assignment.rb +217 -0
- data/lib/order_cloud/models/cost_center.rb +226 -0
- data/lib/order_cloud/models/cost_center_assignment.rb +208 -0
- data/lib/order_cloud/models/credit_card.rb +262 -0
- data/lib/order_cloud/models/credit_card_assignment.rb +217 -0
- data/lib/order_cloud/models/impersonate_token_request.rb +210 -0
- data/lib/order_cloud/models/impersonation_config.rb +271 -0
- data/lib/order_cloud/models/inventory.rb +244 -0
- data/lib/order_cloud/models/line_item.rb +345 -0
- data/lib/order_cloud/models/line_item_product.rb +271 -0
- data/lib/order_cloud/models/line_item_spec.rb +226 -0
- data/lib/order_cloud/models/list_address.rb +210 -0
- data/lib/order_cloud/models/list_address_assignment.rb +210 -0
- data/lib/order_cloud/models/list_approval_rule.rb +210 -0
- data/lib/order_cloud/models/list_args.rb +248 -0
- data/lib/order_cloud/models/list_buyer.rb +210 -0
- data/lib/order_cloud/models/list_buyer_address.rb +210 -0
- data/lib/order_cloud/models/list_buyer_credit_card.rb +210 -0
- data/lib/order_cloud/models/list_buyer_product.rb +210 -0
- data/lib/order_cloud/models/list_buyer_shipment.rb +210 -0
- data/lib/order_cloud/models/list_buyer_spec.rb +210 -0
- data/lib/order_cloud/models/list_catalog.rb +210 -0
- data/lib/order_cloud/models/list_catalog_assignment.rb +210 -0
- data/lib/order_cloud/models/list_category.rb +210 -0
- data/lib/order_cloud/models/list_category_assignment.rb +210 -0
- data/lib/order_cloud/models/list_category_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_cost_center.rb +210 -0
- data/lib/order_cloud/models/list_cost_center_assignment.rb +210 -0
- data/lib/order_cloud/models/list_credit_card.rb +210 -0
- data/lib/order_cloud/models/list_credit_card_assignment.rb +210 -0
- data/lib/order_cloud/models/list_impersonation_config.rb +210 -0
- data/lib/order_cloud/models/list_line_item.rb +210 -0
- data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +210 -0
- data/lib/order_cloud/models/list_message_config.rb +210 -0
- data/lib/order_cloud/models/list_message_sender.rb +210 -0
- data/lib/order_cloud/models/list_message_sender_assignment.rb +210 -0
- data/lib/order_cloud/models/list_order.rb +210 -0
- data/lib/order_cloud/models/list_order_approval.rb +210 -0
- data/lib/order_cloud/models/list_order_promotion.rb +210 -0
- data/lib/order_cloud/models/list_payment.rb +210 -0
- data/lib/order_cloud/models/list_price_schedule.rb +210 -0
- data/lib/order_cloud/models/list_product.rb +210 -0
- data/lib/order_cloud/models/list_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_product_catalog_assignment.rb +210 -0
- data/lib/order_cloud/models/list_promotion.rb +210 -0
- data/lib/order_cloud/models/list_promotion_assignment.rb +210 -0
- data/lib/order_cloud/models/list_security_profile.rb +210 -0
- data/lib/order_cloud/models/list_security_profile_assignment.rb +210 -0
- data/lib/order_cloud/models/list_shipment.rb +210 -0
- data/lib/order_cloud/models/list_shipment_item.rb +210 -0
- data/lib/order_cloud/models/list_spec.rb +210 -0
- data/lib/order_cloud/models/list_spec_option.rb +210 -0
- data/lib/order_cloud/models/list_spec_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_spending_account.rb +210 -0
- data/lib/order_cloud/models/list_spending_account_assignment.rb +210 -0
- data/lib/order_cloud/models/list_supplier.rb +210 -0
- data/lib/order_cloud/models/list_user.rb +210 -0
- data/lib/order_cloud/models/list_user_group.rb +210 -0
- data/lib/order_cloud/models/list_user_group_assignment.rb +210 -0
- data/lib/order_cloud/models/list_variant.rb +210 -0
- data/lib/order_cloud/models/me_buyer.rb +208 -0
- data/lib/order_cloud/models/me_user.rb +300 -0
- data/lib/order_cloud/models/message_cc_listener_assignment.rb +244 -0
- data/lib/order_cloud/models/message_config.rb +255 -0
- data/lib/order_cloud/models/message_sender.rb +219 -0
- data/lib/order_cloud/models/message_sender_assignment.rb +226 -0
- data/lib/order_cloud/models/meta.rb +237 -0
- data/lib/order_cloud/models/order.rb +397 -0
- data/lib/order_cloud/models/order_approval.rb +253 -0
- data/lib/order_cloud/models/order_approval_info.rb +208 -0
- data/lib/order_cloud/models/order_promotion.rb +325 -0
- data/lib/order_cloud/models/password_reset.rb +217 -0
- data/lib/order_cloud/models/password_reset_request.rb +226 -0
- data/lib/order_cloud/models/payment.rb +282 -0
- data/lib/order_cloud/models/payment_transaction.rb +262 -0
- data/lib/order_cloud/models/price_break.rb +208 -0
- data/lib/order_cloud/models/price_schedule.rb +282 -0
- data/lib/order_cloud/models/product.rb +334 -0
- data/lib/order_cloud/models/product_assignment.rb +226 -0
- data/lib/order_cloud/models/product_base.rb +325 -0
- data/lib/order_cloud/models/product_catalog_assignment.rb +208 -0
- data/lib/order_cloud/models/promotion.rb +316 -0
- data/lib/order_cloud/models/promotion_assignment.rb +217 -0
- data/lib/order_cloud/models/security_profile.rb +219 -0
- data/lib/order_cloud/models/security_profile_assignment.rb +235 -0
- data/lib/order_cloud/models/shipment.rb +307 -0
- data/lib/order_cloud/models/shipment_item.rb +273 -0
- data/lib/order_cloud/models/spec.rb +280 -0
- data/lib/order_cloud/models/spec_option.rb +253 -0
- data/lib/order_cloud/models/spec_product_assignment.rb +226 -0
- data/lib/order_cloud/models/spending_account.rb +262 -0
- data/lib/order_cloud/models/spending_account_assignment.rb +226 -0
- data/lib/order_cloud/models/supplier.rb +226 -0
- data/lib/order_cloud/models/token_password_reset.rb +199 -0
- data/lib/order_cloud/models/user.rb +291 -0
- data/lib/order_cloud/models/user_group.rb +226 -0
- data/lib/order_cloud/models/user_group_assignment.rb +208 -0
- data/lib/order_cloud/models/variant.rb +235 -0
- data/lib/order_cloud/version.rb +26 -0
- data/order_cloud-1.0.56.gem +0 -0
- data/order_cloud.gemspec +56 -0
- data/spec/api/address_api_spec.rb +179 -0
- data/spec/api/admin_address_api_spec.rb +125 -0
- data/spec/api/admin_user_api_spec.rb +125 -0
- data/spec/api/admin_user_group_api_spec.rb +165 -0
- data/spec/api/approval_rule_api_spec.rb +131 -0
- data/spec/api/auth_api_spec.rb +165 -0
- data/spec/api/buyer_api_spec.rb +125 -0
- data/spec/api/catalog_api_spec.rb +205 -0
- data/spec/api/category_api_spec.rb +223 -0
- data/spec/api/cost_center_api_spec.rb +177 -0
- data/spec/api/credit_card_api_spec.rb +177 -0
- data/spec/api/impersonation_config_api_spec.rb +125 -0
- data/spec/api/line_item_api_spec.rb +167 -0
- data/spec/api/me_api_spec.rb +568 -0
- data/spec/api/message_senders_api_spec.rb +149 -0
- data/spec/api/order_api_spec.rb +344 -0
- data/spec/api/password_reset_api_spec.rb +71 -0
- data/spec/api/payment_api_spec.rb +152 -0
- data/spec/api/price_schedule_api_spec.rb +151 -0
- data/spec/api/product_api_spec.rb +290 -0
- data/spec/api/promotion_api_spec.rb +170 -0
- data/spec/api/security_profile_api_spec.rb +122 -0
- data/spec/api/shipment_api_spec.rb +185 -0
- data/spec/api/spec_api_spec.rb +252 -0
- data/spec/api/spending_account_api_spec.rb +177 -0
- data/spec/api/supplier_api_spec.rb +125 -0
- data/spec/api/supplier_user_api_spec.rb +146 -0
- data/spec/api/supplier_user_group_api_spec.rb +174 -0
- data/spec/api/user_api_spec.rb +146 -0
- data/spec/api/user_group_api_spec.rb +174 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +80 -0
- data/spec/models/access_token_spec.rb +71 -0
- data/spec/models/address_assignment_spec.rb +77 -0
- data/spec/models/address_spec.rb +125 -0
- data/spec/models/approval_rule_spec.rb +83 -0
- data/spec/models/base_spec_spec.rb +101 -0
- data/spec/models/buyer_address_spec.rb +143 -0
- data/spec/models/buyer_credit_card_spec.rb +101 -0
- data/spec/models/buyer_product_spec.rb +143 -0
- data/spec/models/buyer_shipment_spec.rb +119 -0
- data/spec/models/buyer_spec.rb +77 -0
- data/spec/models/buyer_spec_spec.rb +107 -0
- data/spec/models/catalog_assignment_spec.rb +71 -0
- data/spec/models/catalog_spec.rb +83 -0
- data/spec/models/category_assignment_spec.rb +77 -0
- data/spec/models/category_product_assignment_spec.rb +65 -0
- data/spec/models/category_spec.rb +95 -0
- data/spec/models/cost_center_assignment_spec.rb +59 -0
- data/spec/models/cost_center_spec.rb +71 -0
- data/spec/models/credit_card_assignment_spec.rb +65 -0
- data/spec/models/credit_card_spec.rb +95 -0
- data/spec/models/impersonate_token_request_spec.rb +59 -0
- data/spec/models/impersonation_config_spec.rb +101 -0
- data/spec/models/inventory_spec.rb +83 -0
- data/spec/models/line_item_product_spec.rb +101 -0
- data/spec/models/line_item_spec.rb +149 -0
- data/spec/models/line_item_spec_spec.rb +71 -0
- data/spec/models/list_address_assignment_spec.rb +59 -0
- data/spec/models/list_address_spec.rb +59 -0
- data/spec/models/list_approval_rule_spec.rb +59 -0
- data/spec/models/list_args_spec.rb +83 -0
- data/spec/models/list_buyer_address_spec.rb +59 -0
- data/spec/models/list_buyer_credit_card_spec.rb +59 -0
- data/spec/models/list_buyer_product_spec.rb +59 -0
- data/spec/models/list_buyer_shipment_spec.rb +59 -0
- data/spec/models/list_buyer_spec.rb +59 -0
- data/spec/models/list_buyer_spec_spec.rb +59 -0
- data/spec/models/list_catalog_assignment_spec.rb +59 -0
- data/spec/models/list_catalog_spec.rb +59 -0
- data/spec/models/list_category_assignment_spec.rb +59 -0
- data/spec/models/list_category_product_assignment_spec.rb +59 -0
- data/spec/models/list_category_spec.rb +59 -0
- data/spec/models/list_cost_center_assignment_spec.rb +59 -0
- data/spec/models/list_cost_center_spec.rb +59 -0
- data/spec/models/list_credit_card_assignment_spec.rb +59 -0
- data/spec/models/list_credit_card_spec.rb +59 -0
- data/spec/models/list_impersonation_config_spec.rb +59 -0
- data/spec/models/list_line_item_spec.rb +59 -0
- data/spec/models/list_message_cc_listener_assignment_spec.rb +59 -0
- data/spec/models/list_message_config_spec.rb +59 -0
- data/spec/models/list_message_sender_assignment_spec.rb +59 -0
- data/spec/models/list_message_sender_spec.rb +59 -0
- data/spec/models/list_order_approval_spec.rb +59 -0
- data/spec/models/list_order_promotion_spec.rb +59 -0
- data/spec/models/list_order_spec.rb +59 -0
- data/spec/models/list_payment_spec.rb +59 -0
- data/spec/models/list_price_schedule_spec.rb +59 -0
- data/spec/models/list_product_assignment_spec.rb +59 -0
- data/spec/models/list_product_catalog_assignment_spec.rb +59 -0
- data/spec/models/list_product_spec.rb +59 -0
- data/spec/models/list_promotion_assignment_spec.rb +59 -0
- data/spec/models/list_promotion_spec.rb +59 -0
- data/spec/models/list_security_profile_assignment_spec.rb +59 -0
- data/spec/models/list_security_profile_spec.rb +59 -0
- data/spec/models/list_shipment_item_spec.rb +59 -0
- data/spec/models/list_shipment_spec.rb +59 -0
- data/spec/models/list_spec_option_spec.rb +59 -0
- data/spec/models/list_spec_product_assignment_spec.rb +59 -0
- data/spec/models/list_spec_spec.rb +59 -0
- data/spec/models/list_spending_account_assignment_spec.rb +59 -0
- data/spec/models/list_spending_account_spec.rb +59 -0
- data/spec/models/list_supplier_spec.rb +59 -0
- data/spec/models/list_user_group_assignment_spec.rb +59 -0
- data/spec/models/list_user_group_spec.rb +59 -0
- data/spec/models/list_user_spec.rb +59 -0
- data/spec/models/list_variant_spec.rb +59 -0
- data/spec/models/me_buyer_spec.rb +59 -0
- data/spec/models/me_user_spec.rb +119 -0
- data/spec/models/message_cc_listener_assignment_spec.rb +83 -0
- data/spec/models/message_config_spec.rb +89 -0
- data/spec/models/message_sender_assignment_spec.rb +71 -0
- data/spec/models/message_sender_spec.rb +65 -0
- data/spec/models/meta_spec.rb +77 -0
- data/spec/models/order_approval_info_spec.rb +59 -0
- data/spec/models/order_approval_spec.rb +89 -0
- data/spec/models/order_promotion_spec.rb +137 -0
- data/spec/models/order_spec.rb +185 -0
- data/spec/models/password_reset_request_spec.rb +71 -0
- data/spec/models/password_reset_spec.rb +65 -0
- data/spec/models/payment_spec.rb +107 -0
- data/spec/models/payment_transaction_spec.rb +95 -0
- data/spec/models/price_break_spec.rb +59 -0
- data/spec/models/price_schedule_spec.rb +107 -0
- data/spec/models/product_assignment_spec.rb +71 -0
- data/spec/models/product_base_spec.rb +137 -0
- data/spec/models/product_catalog_assignment_spec.rb +59 -0
- data/spec/models/product_spec.rb +143 -0
- data/spec/models/promotion_assignment_spec.rb +65 -0
- data/spec/models/promotion_spec.rb +131 -0
- data/spec/models/security_profile_assignment_spec.rb +77 -0
- data/spec/models/security_profile_spec.rb +65 -0
- data/spec/models/shipment_item_spec.rb +101 -0
- data/spec/models/shipment_spec.rb +125 -0
- data/spec/models/spec_option_spec.rb +89 -0
- data/spec/models/spec_product_assignment_spec.rb +71 -0
- data/spec/models/spec_spec.rb +107 -0
- data/spec/models/spending_account_assignment_spec.rb +71 -0
- data/spec/models/spending_account_spec.rb +95 -0
- data/spec/models/supplier_spec.rb +71 -0
- data/spec/models/token_password_reset_spec.rb +53 -0
- data/spec/models/user_group_assignment_spec.rb +59 -0
- data/spec/models/user_group_spec.rb +71 -0
- data/spec/models/user_spec.rb +113 -0
- data/spec/models/variant_spec.rb +77 -0
- data/spec/spec_helper.rb +122 -0
- metadata +596 -6
@@ -0,0 +1,2345 @@
|
|
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 [MeUser]
|
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<(MeUser, Fixnum, Hash)>] MeUser 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 => 'MeUser')
|
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 catalog_id ID of the catalog.
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @return [Catalog]
|
375
|
+
def get_catalog(catalog_id, opts = {})
|
376
|
+
data, _status_code, _headers = get_catalog_with_http_info(catalog_id, opts)
|
377
|
+
return data
|
378
|
+
end
|
379
|
+
|
380
|
+
#
|
381
|
+
#
|
382
|
+
# @param catalog_id ID of the catalog.
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @return [Array<(Catalog, Fixnum, Hash)>] Catalog data, response status code and response headers
|
385
|
+
def get_catalog_with_http_info(catalog_id, opts = {})
|
386
|
+
if @api_client.config.debugging
|
387
|
+
@api_client.config.logger.debug "Calling API: MeApi.get_catalog ..."
|
388
|
+
end
|
389
|
+
# verify the required parameter 'catalog_id' is set
|
390
|
+
fail ArgumentError, "Missing the required parameter 'catalog_id' when calling MeApi.get_catalog" if catalog_id.nil?
|
391
|
+
# resource path
|
392
|
+
local_var_path = "/me/catalogs/{catalogID}".sub('{format}','json').sub('{' + 'catalogID' + '}', catalog_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 => 'Catalog')
|
421
|
+
if @api_client.config.debugging
|
422
|
+
@api_client.config.logger.debug "API called: MeApi#get_catalog\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
423
|
+
end
|
424
|
+
return data, status_code, headers
|
425
|
+
end
|
426
|
+
|
427
|
+
#
|
428
|
+
#
|
429
|
+
# @param creditcard_id ID of the creditcard.
|
430
|
+
# @param [Hash] opts the optional parameters
|
431
|
+
# @return [BuyerCreditCard]
|
432
|
+
def get_credit_card(creditcard_id, opts = {})
|
433
|
+
data, _status_code, _headers = get_credit_card_with_http_info(creditcard_id, opts)
|
434
|
+
return data
|
435
|
+
end
|
436
|
+
|
437
|
+
#
|
438
|
+
#
|
439
|
+
# @param creditcard_id ID of the creditcard.
|
440
|
+
# @param [Hash] opts the optional parameters
|
441
|
+
# @return [Array<(BuyerCreditCard, Fixnum, Hash)>] BuyerCreditCard data, response status code and response headers
|
442
|
+
def get_credit_card_with_http_info(creditcard_id, opts = {})
|
443
|
+
if @api_client.config.debugging
|
444
|
+
@api_client.config.logger.debug "Calling API: MeApi.get_credit_card ..."
|
445
|
+
end
|
446
|
+
# verify the required parameter 'creditcard_id' is set
|
447
|
+
fail ArgumentError, "Missing the required parameter 'creditcard_id' when calling MeApi.get_credit_card" if creditcard_id.nil?
|
448
|
+
# resource path
|
449
|
+
local_var_path = "/me/creditcards/{creditcardID}".sub('{format}','json').sub('{' + 'creditcardID' + '}', creditcard_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 => 'BuyerCreditCard')
|
478
|
+
if @api_client.config.debugging
|
479
|
+
@api_client.config.logger.debug "API called: MeApi#get_credit_card\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 shipment_id ID of the shipment.
|
601
|
+
# @param [Hash] opts the optional parameters
|
602
|
+
# @return [BuyerShipment]
|
603
|
+
def get_shipment(shipment_id, opts = {})
|
604
|
+
data, _status_code, _headers = get_shipment_with_http_info(shipment_id, opts)
|
605
|
+
return data
|
606
|
+
end
|
607
|
+
|
608
|
+
#
|
609
|
+
#
|
610
|
+
# @param shipment_id ID of the shipment.
|
611
|
+
# @param [Hash] opts the optional parameters
|
612
|
+
# @return [Array<(BuyerShipment, Fixnum, Hash)>] BuyerShipment data, response status code and response headers
|
613
|
+
def get_shipment_with_http_info(shipment_id, opts = {})
|
614
|
+
if @api_client.config.debugging
|
615
|
+
@api_client.config.logger.debug "Calling API: MeApi.get_shipment ..."
|
616
|
+
end
|
617
|
+
# verify the required parameter 'shipment_id' is set
|
618
|
+
fail ArgumentError, "Missing the required parameter 'shipment_id' when calling MeApi.get_shipment" if shipment_id.nil?
|
619
|
+
# resource path
|
620
|
+
local_var_path = "/me/shipments/{shipmentID}".sub('{format}','json').sub('{' + 'shipmentID' + '}', shipment_id.to_s)
|
621
|
+
|
622
|
+
# query parameters
|
623
|
+
query_params = {}
|
624
|
+
|
625
|
+
# header parameters
|
626
|
+
header_params = {}
|
627
|
+
|
628
|
+
# HTTP header 'Accept' (if needed)
|
629
|
+
local_header_accept = ['application/json']
|
630
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
631
|
+
|
632
|
+
# HTTP header 'Content-Type'
|
633
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
634
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
635
|
+
|
636
|
+
# form parameters
|
637
|
+
form_params = {}
|
638
|
+
|
639
|
+
# http body (model)
|
640
|
+
post_body = nil
|
641
|
+
auth_names = ['oauth2']
|
642
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
643
|
+
:header_params => header_params,
|
644
|
+
:query_params => query_params,
|
645
|
+
:form_params => form_params,
|
646
|
+
:body => post_body,
|
647
|
+
:auth_names => auth_names,
|
648
|
+
:return_type => 'BuyerShipment')
|
649
|
+
if @api_client.config.debugging
|
650
|
+
@api_client.config.logger.debug "API called: MeApi#get_shipment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
651
|
+
end
|
652
|
+
return data, status_code, headers
|
653
|
+
end
|
654
|
+
|
655
|
+
#
|
656
|
+
#
|
657
|
+
# @param product_id ID of the product.
|
658
|
+
# @param spec_id ID of the spec.
|
659
|
+
# @param [Hash] opts the optional parameters
|
660
|
+
# @option opts [String] :catalog_id ID of the catalog.
|
661
|
+
# @return [BuyerSpec]
|
662
|
+
def get_spec(product_id, spec_id, opts = {})
|
663
|
+
data, _status_code, _headers = get_spec_with_http_info(product_id, spec_id, opts)
|
664
|
+
return data
|
665
|
+
end
|
666
|
+
|
667
|
+
#
|
668
|
+
#
|
669
|
+
# @param product_id ID of the product.
|
670
|
+
# @param spec_id ID of the spec.
|
671
|
+
# @param [Hash] opts the optional parameters
|
672
|
+
# @option opts [String] :catalog_id ID of the catalog.
|
673
|
+
# @return [Array<(BuyerSpec, Fixnum, Hash)>] BuyerSpec data, response status code and response headers
|
674
|
+
def get_spec_with_http_info(product_id, spec_id, opts = {})
|
675
|
+
if @api_client.config.debugging
|
676
|
+
@api_client.config.logger.debug "Calling API: MeApi.get_spec ..."
|
677
|
+
end
|
678
|
+
# verify the required parameter 'product_id' is set
|
679
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling MeApi.get_spec" if product_id.nil?
|
680
|
+
# verify the required parameter 'spec_id' is set
|
681
|
+
fail ArgumentError, "Missing the required parameter 'spec_id' when calling MeApi.get_spec" if spec_id.nil?
|
682
|
+
# resource path
|
683
|
+
local_var_path = "/me/products/{productID}/specs/{specID}".sub('{format}','json').sub('{' + 'productID' + '}', product_id.to_s).sub('{' + 'specID' + '}', spec_id.to_s)
|
684
|
+
|
685
|
+
# query parameters
|
686
|
+
query_params = {}
|
687
|
+
query_params[:'catalogID'] = opts[:'catalog_id'] if !opts[:'catalog_id'].nil?
|
688
|
+
|
689
|
+
# header parameters
|
690
|
+
header_params = {}
|
691
|
+
|
692
|
+
# HTTP header 'Accept' (if needed)
|
693
|
+
local_header_accept = ['application/json']
|
694
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
695
|
+
|
696
|
+
# HTTP header 'Content-Type'
|
697
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
698
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
699
|
+
|
700
|
+
# form parameters
|
701
|
+
form_params = {}
|
702
|
+
|
703
|
+
# http body (model)
|
704
|
+
post_body = nil
|
705
|
+
auth_names = ['oauth2']
|
706
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
707
|
+
:header_params => header_params,
|
708
|
+
:query_params => query_params,
|
709
|
+
:form_params => form_params,
|
710
|
+
:body => post_body,
|
711
|
+
:auth_names => auth_names,
|
712
|
+
:return_type => 'BuyerSpec')
|
713
|
+
if @api_client.config.debugging
|
714
|
+
@api_client.config.logger.debug "API called: MeApi#get_spec\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
715
|
+
end
|
716
|
+
return data, status_code, headers
|
717
|
+
end
|
718
|
+
|
719
|
+
#
|
720
|
+
#
|
721
|
+
# @param spending_account_id ID of the spending account.
|
722
|
+
# @param [Hash] opts the optional parameters
|
723
|
+
# @return [SpendingAccount]
|
724
|
+
def get_spending_account(spending_account_id, opts = {})
|
725
|
+
data, _status_code, _headers = get_spending_account_with_http_info(spending_account_id, opts)
|
726
|
+
return data
|
727
|
+
end
|
728
|
+
|
729
|
+
#
|
730
|
+
#
|
731
|
+
# @param spending_account_id ID of the spending account.
|
732
|
+
# @param [Hash] opts the optional parameters
|
733
|
+
# @return [Array<(SpendingAccount, Fixnum, Hash)>] SpendingAccount data, response status code and response headers
|
734
|
+
def get_spending_account_with_http_info(spending_account_id, opts = {})
|
735
|
+
if @api_client.config.debugging
|
736
|
+
@api_client.config.logger.debug "Calling API: MeApi.get_spending_account ..."
|
737
|
+
end
|
738
|
+
# verify the required parameter 'spending_account_id' is set
|
739
|
+
fail ArgumentError, "Missing the required parameter 'spending_account_id' when calling MeApi.get_spending_account" if spending_account_id.nil?
|
740
|
+
# resource path
|
741
|
+
local_var_path = "/me/spendingaccounts/{spendingAccountID}".sub('{format}','json').sub('{' + 'spendingAccountID' + '}', spending_account_id.to_s)
|
742
|
+
|
743
|
+
# query parameters
|
744
|
+
query_params = {}
|
745
|
+
|
746
|
+
# header parameters
|
747
|
+
header_params = {}
|
748
|
+
|
749
|
+
# HTTP header 'Accept' (if needed)
|
750
|
+
local_header_accept = ['application/json']
|
751
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
752
|
+
|
753
|
+
# HTTP header 'Content-Type'
|
754
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
755
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
756
|
+
|
757
|
+
# form parameters
|
758
|
+
form_params = {}
|
759
|
+
|
760
|
+
# http body (model)
|
761
|
+
post_body = nil
|
762
|
+
auth_names = ['oauth2']
|
763
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
764
|
+
:header_params => header_params,
|
765
|
+
:query_params => query_params,
|
766
|
+
:form_params => form_params,
|
767
|
+
:body => post_body,
|
768
|
+
:auth_names => auth_names,
|
769
|
+
:return_type => 'SpendingAccount')
|
770
|
+
if @api_client.config.debugging
|
771
|
+
@api_client.config.logger.debug "API called: MeApi#get_spending_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
772
|
+
end
|
773
|
+
return data, status_code, headers
|
774
|
+
end
|
775
|
+
|
776
|
+
#
|
777
|
+
#
|
778
|
+
# @param [Hash] opts the optional parameters
|
779
|
+
# @option opts [String] :search Search of the address.
|
780
|
+
# @option opts [Array<String>] :search_on Search on of the address.
|
781
|
+
# @option opts [Array<String>] :sort_by Sort by of the address.
|
782
|
+
# @option opts [Integer] :page Page of the address.
|
783
|
+
# @option opts [Integer] :page_size Page size of the address.
|
784
|
+
# @option opts [Hash<String, String>] :filters Filters of the address.
|
785
|
+
# @return [ListBuyerAddress]
|
786
|
+
def list_addresses(opts = {})
|
787
|
+
data, _status_code, _headers = list_addresses_with_http_info(opts)
|
788
|
+
return data
|
789
|
+
end
|
790
|
+
|
791
|
+
#
|
792
|
+
#
|
793
|
+
# @param [Hash] opts the optional parameters
|
794
|
+
# @option opts [String] :search Search of the address.
|
795
|
+
# @option opts [Array<String>] :search_on Search on of the address.
|
796
|
+
# @option opts [Array<String>] :sort_by Sort by of the address.
|
797
|
+
# @option opts [Integer] :page Page of the address.
|
798
|
+
# @option opts [Integer] :page_size Page size of the address.
|
799
|
+
# @option opts [Hash<String, String>] :filters Filters of the address.
|
800
|
+
# @return [Array<(ListBuyerAddress, Fixnum, Hash)>] ListBuyerAddress data, response status code and response headers
|
801
|
+
def list_addresses_with_http_info(opts = {})
|
802
|
+
if @api_client.config.debugging
|
803
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_addresses ..."
|
804
|
+
end
|
805
|
+
# resource path
|
806
|
+
local_var_path = "/me/addresses".sub('{format}','json')
|
807
|
+
|
808
|
+
# query parameters
|
809
|
+
query_params = {}
|
810
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
811
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
812
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
813
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
814
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
815
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
816
|
+
|
817
|
+
# header parameters
|
818
|
+
header_params = {}
|
819
|
+
|
820
|
+
# HTTP header 'Accept' (if needed)
|
821
|
+
local_header_accept = ['application/json']
|
822
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
823
|
+
|
824
|
+
# HTTP header 'Content-Type'
|
825
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
826
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
827
|
+
|
828
|
+
# form parameters
|
829
|
+
form_params = {}
|
830
|
+
|
831
|
+
# http body (model)
|
832
|
+
post_body = nil
|
833
|
+
auth_names = ['oauth2']
|
834
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
835
|
+
:header_params => header_params,
|
836
|
+
:query_params => query_params,
|
837
|
+
:form_params => form_params,
|
838
|
+
:body => post_body,
|
839
|
+
:auth_names => auth_names,
|
840
|
+
:return_type => 'ListBuyerAddress')
|
841
|
+
if @api_client.config.debugging
|
842
|
+
@api_client.config.logger.debug "API called: MeApi#list_addresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
843
|
+
end
|
844
|
+
return data, status_code, headers
|
845
|
+
end
|
846
|
+
|
847
|
+
#
|
848
|
+
#
|
849
|
+
# @param [Hash] opts the optional parameters
|
850
|
+
# @option opts [String] :from Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
|
851
|
+
# @option opts [String] :to Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
|
852
|
+
# @option opts [String] :search Search of the order.
|
853
|
+
# @option opts [Array<String>] :search_on Search on of the order.
|
854
|
+
# @option opts [Array<String>] :sort_by Sort by of the order.
|
855
|
+
# @option opts [Integer] :page Page of the order.
|
856
|
+
# @option opts [Integer] :page_size Page size of the order.
|
857
|
+
# @option opts [Hash<String, String>] :filters Filters of the order.
|
858
|
+
# @return [ListOrder]
|
859
|
+
def list_approvable_orders(opts = {})
|
860
|
+
data, _status_code, _headers = list_approvable_orders_with_http_info(opts)
|
861
|
+
return data
|
862
|
+
end
|
863
|
+
|
864
|
+
#
|
865
|
+
#
|
866
|
+
# @param [Hash] opts the optional parameters
|
867
|
+
# @option opts [String] :from Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
|
868
|
+
# @option opts [String] :to Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
|
869
|
+
# @option opts [String] :search Search of the order.
|
870
|
+
# @option opts [Array<String>] :search_on Search on of the order.
|
871
|
+
# @option opts [Array<String>] :sort_by Sort by of the order.
|
872
|
+
# @option opts [Integer] :page Page of the order.
|
873
|
+
# @option opts [Integer] :page_size Page size of the order.
|
874
|
+
# @option opts [Hash<String, String>] :filters Filters of the order.
|
875
|
+
# @return [Array<(ListOrder, Fixnum, Hash)>] ListOrder data, response status code and response headers
|
876
|
+
def list_approvable_orders_with_http_info(opts = {})
|
877
|
+
if @api_client.config.debugging
|
878
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_approvable_orders ..."
|
879
|
+
end
|
880
|
+
# resource path
|
881
|
+
local_var_path = "/me/orders/approvable".sub('{format}','json')
|
882
|
+
|
883
|
+
# query parameters
|
884
|
+
query_params = {}
|
885
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
886
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
887
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
888
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
889
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
890
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
891
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
892
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
893
|
+
|
894
|
+
# header parameters
|
895
|
+
header_params = {}
|
896
|
+
|
897
|
+
# HTTP header 'Accept' (if needed)
|
898
|
+
local_header_accept = ['application/json']
|
899
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
900
|
+
|
901
|
+
# HTTP header 'Content-Type'
|
902
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
903
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
904
|
+
|
905
|
+
# form parameters
|
906
|
+
form_params = {}
|
907
|
+
|
908
|
+
# http body (model)
|
909
|
+
post_body = nil
|
910
|
+
auth_names = ['oauth2']
|
911
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
912
|
+
:header_params => header_params,
|
913
|
+
:query_params => query_params,
|
914
|
+
:form_params => form_params,
|
915
|
+
:body => post_body,
|
916
|
+
:auth_names => auth_names,
|
917
|
+
:return_type => 'ListOrder')
|
918
|
+
if @api_client.config.debugging
|
919
|
+
@api_client.config.logger.debug "API called: MeApi#list_approvable_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
920
|
+
end
|
921
|
+
return data, status_code, headers
|
922
|
+
end
|
923
|
+
|
924
|
+
#
|
925
|
+
#
|
926
|
+
# @param [Hash] opts the optional parameters
|
927
|
+
# @option opts [String] :search Search of the catalog.
|
928
|
+
# @option opts [Array<String>] :search_on Search on of the catalog.
|
929
|
+
# @option opts [Array<String>] :sort_by Sort by of the catalog.
|
930
|
+
# @option opts [Integer] :page Page of the catalog.
|
931
|
+
# @option opts [Integer] :page_size Page size of the catalog.
|
932
|
+
# @option opts [Hash<String, String>] :filters Filters of the catalog.
|
933
|
+
# @return [ListCatalog]
|
934
|
+
def list_catalogs(opts = {})
|
935
|
+
data, _status_code, _headers = list_catalogs_with_http_info(opts)
|
936
|
+
return data
|
937
|
+
end
|
938
|
+
|
939
|
+
#
|
940
|
+
#
|
941
|
+
# @param [Hash] opts the optional parameters
|
942
|
+
# @option opts [String] :search Search of the catalog.
|
943
|
+
# @option opts [Array<String>] :search_on Search on of the catalog.
|
944
|
+
# @option opts [Array<String>] :sort_by Sort by of the catalog.
|
945
|
+
# @option opts [Integer] :page Page of the catalog.
|
946
|
+
# @option opts [Integer] :page_size Page size of the catalog.
|
947
|
+
# @option opts [Hash<String, String>] :filters Filters of the catalog.
|
948
|
+
# @return [Array<(ListCatalog, Fixnum, Hash)>] ListCatalog data, response status code and response headers
|
949
|
+
def list_catalogs_with_http_info(opts = {})
|
950
|
+
if @api_client.config.debugging
|
951
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_catalogs ..."
|
952
|
+
end
|
953
|
+
# resource path
|
954
|
+
local_var_path = "/me/catalogs".sub('{format}','json')
|
955
|
+
|
956
|
+
# query parameters
|
957
|
+
query_params = {}
|
958
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
959
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
960
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
961
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
962
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
963
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
964
|
+
|
965
|
+
# header parameters
|
966
|
+
header_params = {}
|
967
|
+
|
968
|
+
# HTTP header 'Accept' (if needed)
|
969
|
+
local_header_accept = ['application/json']
|
970
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
971
|
+
|
972
|
+
# HTTP header 'Content-Type'
|
973
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
974
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
975
|
+
|
976
|
+
# form parameters
|
977
|
+
form_params = {}
|
978
|
+
|
979
|
+
# http body (model)
|
980
|
+
post_body = nil
|
981
|
+
auth_names = ['oauth2']
|
982
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
983
|
+
:header_params => header_params,
|
984
|
+
:query_params => query_params,
|
985
|
+
:form_params => form_params,
|
986
|
+
:body => post_body,
|
987
|
+
:auth_names => auth_names,
|
988
|
+
:return_type => 'ListCatalog')
|
989
|
+
if @api_client.config.debugging
|
990
|
+
@api_client.config.logger.debug "API called: MeApi#list_catalogs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
991
|
+
end
|
992
|
+
return data, status_code, headers
|
993
|
+
end
|
994
|
+
|
995
|
+
#
|
996
|
+
#
|
997
|
+
# @param [Hash] opts the optional parameters
|
998
|
+
# @option opts [String] :depth Depth of the category.
|
999
|
+
# @option opts [String] :catalog_id ID of the catalog.
|
1000
|
+
# @option opts [String] :search Search of the category.
|
1001
|
+
# @option opts [Array<String>] :search_on Search on of the category.
|
1002
|
+
# @option opts [Array<String>] :sort_by Sort by of the category.
|
1003
|
+
# @option opts [Integer] :page Page of the category.
|
1004
|
+
# @option opts [Integer] :page_size Page size of the category.
|
1005
|
+
# @option opts [Hash<String, String>] :filters Filters of the category.
|
1006
|
+
# @return [ListCategory]
|
1007
|
+
def list_categories(opts = {})
|
1008
|
+
data, _status_code, _headers = list_categories_with_http_info(opts)
|
1009
|
+
return data
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
#
|
1013
|
+
#
|
1014
|
+
# @param [Hash] opts the optional parameters
|
1015
|
+
# @option opts [String] :depth Depth of the category.
|
1016
|
+
# @option opts [String] :catalog_id ID of the catalog.
|
1017
|
+
# @option opts [String] :search Search of the category.
|
1018
|
+
# @option opts [Array<String>] :search_on Search on of the category.
|
1019
|
+
# @option opts [Array<String>] :sort_by Sort by of the category.
|
1020
|
+
# @option opts [Integer] :page Page of the category.
|
1021
|
+
# @option opts [Integer] :page_size Page size of the category.
|
1022
|
+
# @option opts [Hash<String, String>] :filters Filters of the category.
|
1023
|
+
# @return [Array<(ListCategory, Fixnum, Hash)>] ListCategory data, response status code and response headers
|
1024
|
+
def list_categories_with_http_info(opts = {})
|
1025
|
+
if @api_client.config.debugging
|
1026
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_categories ..."
|
1027
|
+
end
|
1028
|
+
# resource path
|
1029
|
+
local_var_path = "/me/categories".sub('{format}','json')
|
1030
|
+
|
1031
|
+
# query parameters
|
1032
|
+
query_params = {}
|
1033
|
+
query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
|
1034
|
+
query_params[:'catalogID'] = opts[:'catalog_id'] if !opts[:'catalog_id'].nil?
|
1035
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1036
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1037
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1038
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1039
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1040
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1041
|
+
|
1042
|
+
# header parameters
|
1043
|
+
header_params = {}
|
1044
|
+
|
1045
|
+
# HTTP header 'Accept' (if needed)
|
1046
|
+
local_header_accept = ['application/json']
|
1047
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1048
|
+
|
1049
|
+
# HTTP header 'Content-Type'
|
1050
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1051
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1052
|
+
|
1053
|
+
# form parameters
|
1054
|
+
form_params = {}
|
1055
|
+
|
1056
|
+
# http body (model)
|
1057
|
+
post_body = nil
|
1058
|
+
auth_names = ['oauth2']
|
1059
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1060
|
+
:header_params => header_params,
|
1061
|
+
:query_params => query_params,
|
1062
|
+
:form_params => form_params,
|
1063
|
+
:body => post_body,
|
1064
|
+
:auth_names => auth_names,
|
1065
|
+
:return_type => 'ListCategory')
|
1066
|
+
if @api_client.config.debugging
|
1067
|
+
@api_client.config.logger.debug "API called: MeApi#list_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1068
|
+
end
|
1069
|
+
return data, status_code, headers
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
#
|
1073
|
+
#
|
1074
|
+
# @param [Hash] opts the optional parameters
|
1075
|
+
# @option opts [String] :search Search of the cost center.
|
1076
|
+
# @option opts [Array<String>] :search_on Search on of the cost center.
|
1077
|
+
# @option opts [Array<String>] :sort_by Sort by of the cost center.
|
1078
|
+
# @option opts [Integer] :page Page of the cost center.
|
1079
|
+
# @option opts [Integer] :page_size Page size of the cost center.
|
1080
|
+
# @option opts [Hash<String, String>] :filters Filters of the cost center.
|
1081
|
+
# @return [ListCostCenter]
|
1082
|
+
def list_cost_centers(opts = {})
|
1083
|
+
data, _status_code, _headers = list_cost_centers_with_http_info(opts)
|
1084
|
+
return data
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
#
|
1088
|
+
#
|
1089
|
+
# @param [Hash] opts the optional parameters
|
1090
|
+
# @option opts [String] :search Search of the cost center.
|
1091
|
+
# @option opts [Array<String>] :search_on Search on of the cost center.
|
1092
|
+
# @option opts [Array<String>] :sort_by Sort by of the cost center.
|
1093
|
+
# @option opts [Integer] :page Page of the cost center.
|
1094
|
+
# @option opts [Integer] :page_size Page size of the cost center.
|
1095
|
+
# @option opts [Hash<String, String>] :filters Filters of the cost center.
|
1096
|
+
# @return [Array<(ListCostCenter, Fixnum, Hash)>] ListCostCenter data, response status code and response headers
|
1097
|
+
def list_cost_centers_with_http_info(opts = {})
|
1098
|
+
if @api_client.config.debugging
|
1099
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_cost_centers ..."
|
1100
|
+
end
|
1101
|
+
# resource path
|
1102
|
+
local_var_path = "/me/costcenters".sub('{format}','json')
|
1103
|
+
|
1104
|
+
# query parameters
|
1105
|
+
query_params = {}
|
1106
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1107
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1108
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1109
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1110
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1111
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1112
|
+
|
1113
|
+
# header parameters
|
1114
|
+
header_params = {}
|
1115
|
+
|
1116
|
+
# HTTP header 'Accept' (if needed)
|
1117
|
+
local_header_accept = ['application/json']
|
1118
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1119
|
+
|
1120
|
+
# HTTP header 'Content-Type'
|
1121
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1122
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1123
|
+
|
1124
|
+
# form parameters
|
1125
|
+
form_params = {}
|
1126
|
+
|
1127
|
+
# http body (model)
|
1128
|
+
post_body = nil
|
1129
|
+
auth_names = ['oauth2']
|
1130
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1131
|
+
:header_params => header_params,
|
1132
|
+
:query_params => query_params,
|
1133
|
+
:form_params => form_params,
|
1134
|
+
:body => post_body,
|
1135
|
+
:auth_names => auth_names,
|
1136
|
+
:return_type => 'ListCostCenter')
|
1137
|
+
if @api_client.config.debugging
|
1138
|
+
@api_client.config.logger.debug "API called: MeApi#list_cost_centers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1139
|
+
end
|
1140
|
+
return data, status_code, headers
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
#
|
1144
|
+
#
|
1145
|
+
# @param [Hash] opts the optional parameters
|
1146
|
+
# @option opts [String] :search Search of the credit card.
|
1147
|
+
# @option opts [Array<String>] :search_on Search on of the credit card.
|
1148
|
+
# @option opts [Array<String>] :sort_by Sort by of the credit card.
|
1149
|
+
# @option opts [Integer] :page Page of the credit card.
|
1150
|
+
# @option opts [Integer] :page_size Page size of the credit card.
|
1151
|
+
# @option opts [Hash<String, String>] :filters Filters of the credit card.
|
1152
|
+
# @return [ListBuyerCreditCard]
|
1153
|
+
def list_credit_cards(opts = {})
|
1154
|
+
data, _status_code, _headers = list_credit_cards_with_http_info(opts)
|
1155
|
+
return data
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
#
|
1159
|
+
#
|
1160
|
+
# @param [Hash] opts the optional parameters
|
1161
|
+
# @option opts [String] :search Search of the credit card.
|
1162
|
+
# @option opts [Array<String>] :search_on Search on of the credit card.
|
1163
|
+
# @option opts [Array<String>] :sort_by Sort by of the credit card.
|
1164
|
+
# @option opts [Integer] :page Page of the credit card.
|
1165
|
+
# @option opts [Integer] :page_size Page size of the credit card.
|
1166
|
+
# @option opts [Hash<String, String>] :filters Filters of the credit card.
|
1167
|
+
# @return [Array<(ListBuyerCreditCard, Fixnum, Hash)>] ListBuyerCreditCard data, response status code and response headers
|
1168
|
+
def list_credit_cards_with_http_info(opts = {})
|
1169
|
+
if @api_client.config.debugging
|
1170
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_credit_cards ..."
|
1171
|
+
end
|
1172
|
+
# resource path
|
1173
|
+
local_var_path = "/me/creditcards".sub('{format}','json')
|
1174
|
+
|
1175
|
+
# query parameters
|
1176
|
+
query_params = {}
|
1177
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1178
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1179
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1180
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1181
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1182
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1183
|
+
|
1184
|
+
# header parameters
|
1185
|
+
header_params = {}
|
1186
|
+
|
1187
|
+
# HTTP header 'Accept' (if needed)
|
1188
|
+
local_header_accept = ['application/json']
|
1189
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1190
|
+
|
1191
|
+
# HTTP header 'Content-Type'
|
1192
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1193
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1194
|
+
|
1195
|
+
# form parameters
|
1196
|
+
form_params = {}
|
1197
|
+
|
1198
|
+
# http body (model)
|
1199
|
+
post_body = nil
|
1200
|
+
auth_names = ['oauth2']
|
1201
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1202
|
+
:header_params => header_params,
|
1203
|
+
:query_params => query_params,
|
1204
|
+
:form_params => form_params,
|
1205
|
+
:body => post_body,
|
1206
|
+
:auth_names => auth_names,
|
1207
|
+
:return_type => 'ListBuyerCreditCard')
|
1208
|
+
if @api_client.config.debugging
|
1209
|
+
@api_client.config.logger.debug "API called: MeApi#list_credit_cards\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1210
|
+
end
|
1211
|
+
return data, status_code, headers
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
#
|
1215
|
+
#
|
1216
|
+
# @param [Hash] opts the optional parameters
|
1217
|
+
# @option opts [String] :from Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
|
1218
|
+
# @option opts [String] :to Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
|
1219
|
+
# @option opts [String] :search Search of the order.
|
1220
|
+
# @option opts [Array<String>] :search_on Search on of the order.
|
1221
|
+
# @option opts [Array<String>] :sort_by Sort by of the order.
|
1222
|
+
# @option opts [Integer] :page Page of the order.
|
1223
|
+
# @option opts [Integer] :page_size Page size of the order.
|
1224
|
+
# @option opts [Hash<String, String>] :filters Filters of the order.
|
1225
|
+
# @return [ListOrder]
|
1226
|
+
def list_orders(opts = {})
|
1227
|
+
data, _status_code, _headers = list_orders_with_http_info(opts)
|
1228
|
+
return data
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
#
|
1232
|
+
#
|
1233
|
+
# @param [Hash] opts the optional parameters
|
1234
|
+
# @option opts [String] :from Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).
|
1235
|
+
# @option opts [String] :to Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).
|
1236
|
+
# @option opts [String] :search Search of the order.
|
1237
|
+
# @option opts [Array<String>] :search_on Search on of the order.
|
1238
|
+
# @option opts [Array<String>] :sort_by Sort by of the order.
|
1239
|
+
# @option opts [Integer] :page Page of the order.
|
1240
|
+
# @option opts [Integer] :page_size Page size of the order.
|
1241
|
+
# @option opts [Hash<String, String>] :filters Filters of the order.
|
1242
|
+
# @return [Array<(ListOrder, Fixnum, Hash)>] ListOrder data, response status code and response headers
|
1243
|
+
def list_orders_with_http_info(opts = {})
|
1244
|
+
if @api_client.config.debugging
|
1245
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_orders ..."
|
1246
|
+
end
|
1247
|
+
# resource path
|
1248
|
+
local_var_path = "/me/orders".sub('{format}','json')
|
1249
|
+
|
1250
|
+
# query parameters
|
1251
|
+
query_params = {}
|
1252
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
1253
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
1254
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1255
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1256
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1257
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1258
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1259
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1260
|
+
|
1261
|
+
# header parameters
|
1262
|
+
header_params = {}
|
1263
|
+
|
1264
|
+
# HTTP header 'Accept' (if needed)
|
1265
|
+
local_header_accept = ['application/json']
|
1266
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1267
|
+
|
1268
|
+
# HTTP header 'Content-Type'
|
1269
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1270
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1271
|
+
|
1272
|
+
# form parameters
|
1273
|
+
form_params = {}
|
1274
|
+
|
1275
|
+
# http body (model)
|
1276
|
+
post_body = nil
|
1277
|
+
auth_names = ['oauth2']
|
1278
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1279
|
+
:header_params => header_params,
|
1280
|
+
:query_params => query_params,
|
1281
|
+
:form_params => form_params,
|
1282
|
+
:body => post_body,
|
1283
|
+
:auth_names => auth_names,
|
1284
|
+
:return_type => 'ListOrder')
|
1285
|
+
if @api_client.config.debugging
|
1286
|
+
@api_client.config.logger.debug "API called: MeApi#list_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1287
|
+
end
|
1288
|
+
return data, status_code, headers
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
#
|
1292
|
+
#
|
1293
|
+
# @param [Hash] opts the optional parameters
|
1294
|
+
# @option opts [String] :catalog_id ID of the catalog.
|
1295
|
+
# @option opts [String] :category_id ID of the category.
|
1296
|
+
# @option opts [String] :depth Depth of the product.
|
1297
|
+
# @option opts [String] :search Search of the product.
|
1298
|
+
# @option opts [Array<String>] :search_on Search on of the product.
|
1299
|
+
# @option opts [Array<String>] :sort_by Sort by of the product.
|
1300
|
+
# @option opts [Integer] :page Page of the product.
|
1301
|
+
# @option opts [Integer] :page_size Page size of the product.
|
1302
|
+
# @option opts [Hash<String, String>] :filters Filters of the product.
|
1303
|
+
# @return [ListBuyerProduct]
|
1304
|
+
def list_products(opts = {})
|
1305
|
+
data, _status_code, _headers = list_products_with_http_info(opts)
|
1306
|
+
return data
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
#
|
1310
|
+
#
|
1311
|
+
# @param [Hash] opts the optional parameters
|
1312
|
+
# @option opts [String] :catalog_id ID of the catalog.
|
1313
|
+
# @option opts [String] :category_id ID of the category.
|
1314
|
+
# @option opts [String] :depth Depth of the product.
|
1315
|
+
# @option opts [String] :search Search of the product.
|
1316
|
+
# @option opts [Array<String>] :search_on Search on of the product.
|
1317
|
+
# @option opts [Array<String>] :sort_by Sort by of the product.
|
1318
|
+
# @option opts [Integer] :page Page of the product.
|
1319
|
+
# @option opts [Integer] :page_size Page size of the product.
|
1320
|
+
# @option opts [Hash<String, String>] :filters Filters of the product.
|
1321
|
+
# @return [Array<(ListBuyerProduct, Fixnum, Hash)>] ListBuyerProduct data, response status code and response headers
|
1322
|
+
def list_products_with_http_info(opts = {})
|
1323
|
+
if @api_client.config.debugging
|
1324
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_products ..."
|
1325
|
+
end
|
1326
|
+
# resource path
|
1327
|
+
local_var_path = "/me/products".sub('{format}','json')
|
1328
|
+
|
1329
|
+
# query parameters
|
1330
|
+
query_params = {}
|
1331
|
+
query_params[:'catalogID'] = opts[:'catalog_id'] if !opts[:'catalog_id'].nil?
|
1332
|
+
query_params[:'categoryID'] = opts[:'category_id'] if !opts[:'category_id'].nil?
|
1333
|
+
query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
|
1334
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1335
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1336
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1337
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1338
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1339
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1340
|
+
|
1341
|
+
# header parameters
|
1342
|
+
header_params = {}
|
1343
|
+
|
1344
|
+
# HTTP header 'Accept' (if needed)
|
1345
|
+
local_header_accept = ['application/json']
|
1346
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1347
|
+
|
1348
|
+
# HTTP header 'Content-Type'
|
1349
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1350
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1351
|
+
|
1352
|
+
# form parameters
|
1353
|
+
form_params = {}
|
1354
|
+
|
1355
|
+
# http body (model)
|
1356
|
+
post_body = nil
|
1357
|
+
auth_names = ['oauth2']
|
1358
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1359
|
+
:header_params => header_params,
|
1360
|
+
:query_params => query_params,
|
1361
|
+
:form_params => form_params,
|
1362
|
+
:body => post_body,
|
1363
|
+
:auth_names => auth_names,
|
1364
|
+
:return_type => 'ListBuyerProduct')
|
1365
|
+
if @api_client.config.debugging
|
1366
|
+
@api_client.config.logger.debug "API called: MeApi#list_products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1367
|
+
end
|
1368
|
+
return data, status_code, headers
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
#
|
1372
|
+
#
|
1373
|
+
# @param [Hash] opts the optional parameters
|
1374
|
+
# @option opts [String] :search Search of the promotion.
|
1375
|
+
# @option opts [Array<String>] :search_on Search on of the promotion.
|
1376
|
+
# @option opts [Array<String>] :sort_by Sort by of the promotion.
|
1377
|
+
# @option opts [Integer] :page Page of the promotion.
|
1378
|
+
# @option opts [Integer] :page_size Page size of the promotion.
|
1379
|
+
# @option opts [Hash<String, String>] :filters Filters of the promotion.
|
1380
|
+
# @return [ListPromotion]
|
1381
|
+
def list_promotions(opts = {})
|
1382
|
+
data, _status_code, _headers = list_promotions_with_http_info(opts)
|
1383
|
+
return data
|
1384
|
+
end
|
1385
|
+
|
1386
|
+
#
|
1387
|
+
#
|
1388
|
+
# @param [Hash] opts the optional parameters
|
1389
|
+
# @option opts [String] :search Search of the promotion.
|
1390
|
+
# @option opts [Array<String>] :search_on Search on of the promotion.
|
1391
|
+
# @option opts [Array<String>] :sort_by Sort by of the promotion.
|
1392
|
+
# @option opts [Integer] :page Page of the promotion.
|
1393
|
+
# @option opts [Integer] :page_size Page size of the promotion.
|
1394
|
+
# @option opts [Hash<String, String>] :filters Filters of the promotion.
|
1395
|
+
# @return [Array<(ListPromotion, Fixnum, Hash)>] ListPromotion data, response status code and response headers
|
1396
|
+
def list_promotions_with_http_info(opts = {})
|
1397
|
+
if @api_client.config.debugging
|
1398
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_promotions ..."
|
1399
|
+
end
|
1400
|
+
# resource path
|
1401
|
+
local_var_path = "/me/promotions".sub('{format}','json')
|
1402
|
+
|
1403
|
+
# query parameters
|
1404
|
+
query_params = {}
|
1405
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1406
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1407
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1408
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1409
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1410
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1411
|
+
|
1412
|
+
# header parameters
|
1413
|
+
header_params = {}
|
1414
|
+
|
1415
|
+
# HTTP header 'Accept' (if needed)
|
1416
|
+
local_header_accept = ['application/json']
|
1417
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1418
|
+
|
1419
|
+
# HTTP header 'Content-Type'
|
1420
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1421
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1422
|
+
|
1423
|
+
# form parameters
|
1424
|
+
form_params = {}
|
1425
|
+
|
1426
|
+
# http body (model)
|
1427
|
+
post_body = nil
|
1428
|
+
auth_names = ['oauth2']
|
1429
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1430
|
+
:header_params => header_params,
|
1431
|
+
:query_params => query_params,
|
1432
|
+
:form_params => form_params,
|
1433
|
+
:body => post_body,
|
1434
|
+
:auth_names => auth_names,
|
1435
|
+
:return_type => 'ListPromotion')
|
1436
|
+
if @api_client.config.debugging
|
1437
|
+
@api_client.config.logger.debug "API called: MeApi#list_promotions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1438
|
+
end
|
1439
|
+
return data, status_code, headers
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
#
|
1443
|
+
#
|
1444
|
+
# @param shipment_id ID of the shipment.
|
1445
|
+
# @param [Hash] opts the optional parameters
|
1446
|
+
# @option opts [String] :order_id ID of the order.
|
1447
|
+
# @option opts [String] :search Search of the shipment.
|
1448
|
+
# @option opts [Array<String>] :search_on Search on of the shipment.
|
1449
|
+
# @option opts [Array<String>] :sort_by Sort by of the shipment.
|
1450
|
+
# @option opts [Integer] :page Page of the shipment.
|
1451
|
+
# @option opts [Integer] :page_size Page size of the shipment.
|
1452
|
+
# @option opts [Hash<String, String>] :filters Filters of the shipment.
|
1453
|
+
# @return [ListShipmentItem]
|
1454
|
+
def list_shipment_items(shipment_id, opts = {})
|
1455
|
+
data, _status_code, _headers = list_shipment_items_with_http_info(shipment_id, opts)
|
1456
|
+
return data
|
1457
|
+
end
|
1458
|
+
|
1459
|
+
#
|
1460
|
+
#
|
1461
|
+
# @param shipment_id ID of the shipment.
|
1462
|
+
# @param [Hash] opts the optional parameters
|
1463
|
+
# @option opts [String] :order_id ID of the order.
|
1464
|
+
# @option opts [String] :search Search of the shipment.
|
1465
|
+
# @option opts [Array<String>] :search_on Search on of the shipment.
|
1466
|
+
# @option opts [Array<String>] :sort_by Sort by of the shipment.
|
1467
|
+
# @option opts [Integer] :page Page of the shipment.
|
1468
|
+
# @option opts [Integer] :page_size Page size of the shipment.
|
1469
|
+
# @option opts [Hash<String, String>] :filters Filters of the shipment.
|
1470
|
+
# @return [Array<(ListShipmentItem, Fixnum, Hash)>] ListShipmentItem data, response status code and response headers
|
1471
|
+
def list_shipment_items_with_http_info(shipment_id, opts = {})
|
1472
|
+
if @api_client.config.debugging
|
1473
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_shipment_items ..."
|
1474
|
+
end
|
1475
|
+
# verify the required parameter 'shipment_id' is set
|
1476
|
+
fail ArgumentError, "Missing the required parameter 'shipment_id' when calling MeApi.list_shipment_items" if shipment_id.nil?
|
1477
|
+
# resource path
|
1478
|
+
local_var_path = "/me/shipments/{shipmentID}/items".sub('{format}','json').sub('{' + 'shipmentID' + '}', shipment_id.to_s)
|
1479
|
+
|
1480
|
+
# query parameters
|
1481
|
+
query_params = {}
|
1482
|
+
query_params[:'orderID'] = opts[:'order_id'] if !opts[:'order_id'].nil?
|
1483
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1484
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1485
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1486
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1487
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1488
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1489
|
+
|
1490
|
+
# header parameters
|
1491
|
+
header_params = {}
|
1492
|
+
|
1493
|
+
# HTTP header 'Accept' (if needed)
|
1494
|
+
local_header_accept = ['application/json']
|
1495
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1496
|
+
|
1497
|
+
# HTTP header 'Content-Type'
|
1498
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1499
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1500
|
+
|
1501
|
+
# form parameters
|
1502
|
+
form_params = {}
|
1503
|
+
|
1504
|
+
# http body (model)
|
1505
|
+
post_body = nil
|
1506
|
+
auth_names = ['oauth2']
|
1507
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1508
|
+
:header_params => header_params,
|
1509
|
+
:query_params => query_params,
|
1510
|
+
:form_params => form_params,
|
1511
|
+
:body => post_body,
|
1512
|
+
:auth_names => auth_names,
|
1513
|
+
:return_type => 'ListShipmentItem')
|
1514
|
+
if @api_client.config.debugging
|
1515
|
+
@api_client.config.logger.debug "API called: MeApi#list_shipment_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1516
|
+
end
|
1517
|
+
return data, status_code, headers
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
#
|
1521
|
+
#
|
1522
|
+
# @param [Hash] opts the optional parameters
|
1523
|
+
# @option opts [String] :order_id ID of the order.
|
1524
|
+
# @option opts [String] :search Search of the shipment.
|
1525
|
+
# @option opts [Array<String>] :search_on Search on of the shipment.
|
1526
|
+
# @option opts [Array<String>] :sort_by Sort by of the shipment.
|
1527
|
+
# @option opts [Integer] :page Page of the shipment.
|
1528
|
+
# @option opts [Integer] :page_size Page size of the shipment.
|
1529
|
+
# @option opts [Hash<String, String>] :filters Filters of the shipment.
|
1530
|
+
# @return [ListBuyerShipment]
|
1531
|
+
def list_shipments(opts = {})
|
1532
|
+
data, _status_code, _headers = list_shipments_with_http_info(opts)
|
1533
|
+
return data
|
1534
|
+
end
|
1535
|
+
|
1536
|
+
#
|
1537
|
+
#
|
1538
|
+
# @param [Hash] opts the optional parameters
|
1539
|
+
# @option opts [String] :order_id ID of the order.
|
1540
|
+
# @option opts [String] :search Search of the shipment.
|
1541
|
+
# @option opts [Array<String>] :search_on Search on of the shipment.
|
1542
|
+
# @option opts [Array<String>] :sort_by Sort by of the shipment.
|
1543
|
+
# @option opts [Integer] :page Page of the shipment.
|
1544
|
+
# @option opts [Integer] :page_size Page size of the shipment.
|
1545
|
+
# @option opts [Hash<String, String>] :filters Filters of the shipment.
|
1546
|
+
# @return [Array<(ListBuyerShipment, Fixnum, Hash)>] ListBuyerShipment data, response status code and response headers
|
1547
|
+
def list_shipments_with_http_info(opts = {})
|
1548
|
+
if @api_client.config.debugging
|
1549
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_shipments ..."
|
1550
|
+
end
|
1551
|
+
# resource path
|
1552
|
+
local_var_path = "/me/shipments".sub('{format}','json')
|
1553
|
+
|
1554
|
+
# query parameters
|
1555
|
+
query_params = {}
|
1556
|
+
query_params[:'orderID'] = opts[:'order_id'] if !opts[:'order_id'].nil?
|
1557
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1558
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1559
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1560
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1561
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1562
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1563
|
+
|
1564
|
+
# header parameters
|
1565
|
+
header_params = {}
|
1566
|
+
|
1567
|
+
# HTTP header 'Accept' (if needed)
|
1568
|
+
local_header_accept = ['application/json']
|
1569
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1570
|
+
|
1571
|
+
# HTTP header 'Content-Type'
|
1572
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1573
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1574
|
+
|
1575
|
+
# form parameters
|
1576
|
+
form_params = {}
|
1577
|
+
|
1578
|
+
# http body (model)
|
1579
|
+
post_body = nil
|
1580
|
+
auth_names = ['oauth2']
|
1581
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1582
|
+
:header_params => header_params,
|
1583
|
+
:query_params => query_params,
|
1584
|
+
:form_params => form_params,
|
1585
|
+
:body => post_body,
|
1586
|
+
:auth_names => auth_names,
|
1587
|
+
:return_type => 'ListBuyerShipment')
|
1588
|
+
if @api_client.config.debugging
|
1589
|
+
@api_client.config.logger.debug "API called: MeApi#list_shipments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1590
|
+
end
|
1591
|
+
return data, status_code, headers
|
1592
|
+
end
|
1593
|
+
|
1594
|
+
#
|
1595
|
+
#
|
1596
|
+
# @param product_id ID of the product.
|
1597
|
+
# @param [Hash] opts the optional parameters
|
1598
|
+
# @option opts [String] :catalog_id ID of the catalog.
|
1599
|
+
# @option opts [String] :search Search of the product.
|
1600
|
+
# @option opts [Array<String>] :search_on Search on of the product.
|
1601
|
+
# @option opts [Array<String>] :sort_by Sort by of the product.
|
1602
|
+
# @option opts [Integer] :page Page of the product.
|
1603
|
+
# @option opts [Integer] :page_size Page size of the product.
|
1604
|
+
# @option opts [Hash<String, String>] :filters Filters of the product.
|
1605
|
+
# @return [ListBuyerSpec]
|
1606
|
+
def list_specs(product_id, opts = {})
|
1607
|
+
data, _status_code, _headers = list_specs_with_http_info(product_id, opts)
|
1608
|
+
return data
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
#
|
1612
|
+
#
|
1613
|
+
# @param product_id ID of the product.
|
1614
|
+
# @param [Hash] opts the optional parameters
|
1615
|
+
# @option opts [String] :catalog_id ID of the catalog.
|
1616
|
+
# @option opts [String] :search Search of the product.
|
1617
|
+
# @option opts [Array<String>] :search_on Search on of the product.
|
1618
|
+
# @option opts [Array<String>] :sort_by Sort by of the product.
|
1619
|
+
# @option opts [Integer] :page Page of the product.
|
1620
|
+
# @option opts [Integer] :page_size Page size of the product.
|
1621
|
+
# @option opts [Hash<String, String>] :filters Filters of the product.
|
1622
|
+
# @return [Array<(ListBuyerSpec, Fixnum, Hash)>] ListBuyerSpec data, response status code and response headers
|
1623
|
+
def list_specs_with_http_info(product_id, opts = {})
|
1624
|
+
if @api_client.config.debugging
|
1625
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_specs ..."
|
1626
|
+
end
|
1627
|
+
# verify the required parameter 'product_id' is set
|
1628
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling MeApi.list_specs" if product_id.nil?
|
1629
|
+
# resource path
|
1630
|
+
local_var_path = "/me/products/{productID}/specs".sub('{format}','json').sub('{' + 'productID' + '}', product_id.to_s)
|
1631
|
+
|
1632
|
+
# query parameters
|
1633
|
+
query_params = {}
|
1634
|
+
query_params[:'catalogID'] = opts[:'catalog_id'] if !opts[:'catalog_id'].nil?
|
1635
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1636
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1637
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1638
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1639
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1640
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1641
|
+
|
1642
|
+
# header parameters
|
1643
|
+
header_params = {}
|
1644
|
+
|
1645
|
+
# HTTP header 'Accept' (if needed)
|
1646
|
+
local_header_accept = ['application/json']
|
1647
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1648
|
+
|
1649
|
+
# HTTP header 'Content-Type'
|
1650
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1651
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1652
|
+
|
1653
|
+
# form parameters
|
1654
|
+
form_params = {}
|
1655
|
+
|
1656
|
+
# http body (model)
|
1657
|
+
post_body = nil
|
1658
|
+
auth_names = ['oauth2']
|
1659
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1660
|
+
:header_params => header_params,
|
1661
|
+
:query_params => query_params,
|
1662
|
+
:form_params => form_params,
|
1663
|
+
:body => post_body,
|
1664
|
+
:auth_names => auth_names,
|
1665
|
+
:return_type => 'ListBuyerSpec')
|
1666
|
+
if @api_client.config.debugging
|
1667
|
+
@api_client.config.logger.debug "API called: MeApi#list_specs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1668
|
+
end
|
1669
|
+
return data, status_code, headers
|
1670
|
+
end
|
1671
|
+
|
1672
|
+
#
|
1673
|
+
#
|
1674
|
+
# @param [Hash] opts the optional parameters
|
1675
|
+
# @option opts [String] :search Search of the spending account.
|
1676
|
+
# @option opts [Array<String>] :search_on Search on of the spending account.
|
1677
|
+
# @option opts [Array<String>] :sort_by Sort by of the spending account.
|
1678
|
+
# @option opts [Integer] :page Page of the spending account.
|
1679
|
+
# @option opts [Integer] :page_size Page size of the spending account.
|
1680
|
+
# @option opts [Hash<String, String>] :filters Filters of the spending account.
|
1681
|
+
# @return [ListSpendingAccount]
|
1682
|
+
def list_spending_accounts(opts = {})
|
1683
|
+
data, _status_code, _headers = list_spending_accounts_with_http_info(opts)
|
1684
|
+
return data
|
1685
|
+
end
|
1686
|
+
|
1687
|
+
#
|
1688
|
+
#
|
1689
|
+
# @param [Hash] opts the optional parameters
|
1690
|
+
# @option opts [String] :search Search of the spending account.
|
1691
|
+
# @option opts [Array<String>] :search_on Search on of the spending account.
|
1692
|
+
# @option opts [Array<String>] :sort_by Sort by of the spending account.
|
1693
|
+
# @option opts [Integer] :page Page of the spending account.
|
1694
|
+
# @option opts [Integer] :page_size Page size of the spending account.
|
1695
|
+
# @option opts [Hash<String, String>] :filters Filters of the spending account.
|
1696
|
+
# @return [Array<(ListSpendingAccount, Fixnum, Hash)>] ListSpendingAccount data, response status code and response headers
|
1697
|
+
def list_spending_accounts_with_http_info(opts = {})
|
1698
|
+
if @api_client.config.debugging
|
1699
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_spending_accounts ..."
|
1700
|
+
end
|
1701
|
+
# resource path
|
1702
|
+
local_var_path = "/me/spendingAccounts".sub('{format}','json')
|
1703
|
+
|
1704
|
+
# query parameters
|
1705
|
+
query_params = {}
|
1706
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1707
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1708
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1709
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1710
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1711
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1712
|
+
|
1713
|
+
# header parameters
|
1714
|
+
header_params = {}
|
1715
|
+
|
1716
|
+
# HTTP header 'Accept' (if needed)
|
1717
|
+
local_header_accept = ['application/json']
|
1718
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1719
|
+
|
1720
|
+
# HTTP header 'Content-Type'
|
1721
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1722
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1723
|
+
|
1724
|
+
# form parameters
|
1725
|
+
form_params = {}
|
1726
|
+
|
1727
|
+
# http body (model)
|
1728
|
+
post_body = nil
|
1729
|
+
auth_names = ['oauth2']
|
1730
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1731
|
+
:header_params => header_params,
|
1732
|
+
:query_params => query_params,
|
1733
|
+
:form_params => form_params,
|
1734
|
+
:body => post_body,
|
1735
|
+
:auth_names => auth_names,
|
1736
|
+
:return_type => 'ListSpendingAccount')
|
1737
|
+
if @api_client.config.debugging
|
1738
|
+
@api_client.config.logger.debug "API called: MeApi#list_spending_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1739
|
+
end
|
1740
|
+
return data, status_code, headers
|
1741
|
+
end
|
1742
|
+
|
1743
|
+
#
|
1744
|
+
#
|
1745
|
+
# @param [Hash] opts the optional parameters
|
1746
|
+
# @option opts [String] :search Search of the user group.
|
1747
|
+
# @option opts [Array<String>] :search_on Search on of the user group.
|
1748
|
+
# @option opts [Array<String>] :sort_by Sort by of the user group.
|
1749
|
+
# @option opts [Integer] :page Page of the user group.
|
1750
|
+
# @option opts [Integer] :page_size Page size of the user group.
|
1751
|
+
# @option opts [Hash<String, String>] :filters Filters of the user group.
|
1752
|
+
# @return [ListUserGroup]
|
1753
|
+
def list_user_groups(opts = {})
|
1754
|
+
data, _status_code, _headers = list_user_groups_with_http_info(opts)
|
1755
|
+
return data
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
#
|
1759
|
+
#
|
1760
|
+
# @param [Hash] opts the optional parameters
|
1761
|
+
# @option opts [String] :search Search of the user group.
|
1762
|
+
# @option opts [Array<String>] :search_on Search on of the user group.
|
1763
|
+
# @option opts [Array<String>] :sort_by Sort by of the user group.
|
1764
|
+
# @option opts [Integer] :page Page of the user group.
|
1765
|
+
# @option opts [Integer] :page_size Page size of the user group.
|
1766
|
+
# @option opts [Hash<String, String>] :filters Filters of the user group.
|
1767
|
+
# @return [Array<(ListUserGroup, Fixnum, Hash)>] ListUserGroup data, response status code and response headers
|
1768
|
+
def list_user_groups_with_http_info(opts = {})
|
1769
|
+
if @api_client.config.debugging
|
1770
|
+
@api_client.config.logger.debug "Calling API: MeApi.list_user_groups ..."
|
1771
|
+
end
|
1772
|
+
# resource path
|
1773
|
+
local_var_path = "/me/usergroups".sub('{format}','json')
|
1774
|
+
|
1775
|
+
# query parameters
|
1776
|
+
query_params = {}
|
1777
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
1778
|
+
query_params[:'searchOn'] = @api_client.build_collection_param(opts[:'search_on'], :csv) if !opts[:'search_on'].nil?
|
1779
|
+
query_params[:'sortBy'] = @api_client.build_collection_param(opts[:'sort_by'], :csv) if !opts[:'sort_by'].nil?
|
1780
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1781
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1782
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
1783
|
+
|
1784
|
+
# header parameters
|
1785
|
+
header_params = {}
|
1786
|
+
|
1787
|
+
# HTTP header 'Accept' (if needed)
|
1788
|
+
local_header_accept = ['application/json']
|
1789
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1790
|
+
|
1791
|
+
# HTTP header 'Content-Type'
|
1792
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1793
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1794
|
+
|
1795
|
+
# form parameters
|
1796
|
+
form_params = {}
|
1797
|
+
|
1798
|
+
# http body (model)
|
1799
|
+
post_body = nil
|
1800
|
+
auth_names = ['oauth2']
|
1801
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1802
|
+
:header_params => header_params,
|
1803
|
+
:query_params => query_params,
|
1804
|
+
:form_params => form_params,
|
1805
|
+
:body => post_body,
|
1806
|
+
:auth_names => auth_names,
|
1807
|
+
:return_type => 'ListUserGroup')
|
1808
|
+
if @api_client.config.debugging
|
1809
|
+
@api_client.config.logger.debug "API called: MeApi#list_user_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1810
|
+
end
|
1811
|
+
return data, status_code, headers
|
1812
|
+
end
|
1813
|
+
|
1814
|
+
#
|
1815
|
+
#
|
1816
|
+
# @param user
|
1817
|
+
# @param [Hash] opts the optional parameters
|
1818
|
+
# @return [MeUser]
|
1819
|
+
def patch(user, opts = {})
|
1820
|
+
data, _status_code, _headers = patch_with_http_info(user, opts)
|
1821
|
+
return data
|
1822
|
+
end
|
1823
|
+
|
1824
|
+
#
|
1825
|
+
#
|
1826
|
+
# @param user
|
1827
|
+
# @param [Hash] opts the optional parameters
|
1828
|
+
# @return [Array<(MeUser, Fixnum, Hash)>] MeUser data, response status code and response headers
|
1829
|
+
def patch_with_http_info(user, opts = {})
|
1830
|
+
if @api_client.config.debugging
|
1831
|
+
@api_client.config.logger.debug "Calling API: MeApi.patch ..."
|
1832
|
+
end
|
1833
|
+
# verify the required parameter 'user' is set
|
1834
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling MeApi.patch" if user.nil?
|
1835
|
+
# resource path
|
1836
|
+
local_var_path = "/me".sub('{format}','json')
|
1837
|
+
|
1838
|
+
# query parameters
|
1839
|
+
query_params = {}
|
1840
|
+
|
1841
|
+
# header parameters
|
1842
|
+
header_params = {}
|
1843
|
+
|
1844
|
+
# HTTP header 'Accept' (if needed)
|
1845
|
+
local_header_accept = ['application/json']
|
1846
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1847
|
+
|
1848
|
+
# HTTP header 'Content-Type'
|
1849
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1850
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1851
|
+
|
1852
|
+
# form parameters
|
1853
|
+
form_params = {}
|
1854
|
+
|
1855
|
+
# http body (model)
|
1856
|
+
post_body = @api_client.object_to_http_body(user)
|
1857
|
+
auth_names = ['oauth2']
|
1858
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1859
|
+
:header_params => header_params,
|
1860
|
+
:query_params => query_params,
|
1861
|
+
:form_params => form_params,
|
1862
|
+
:body => post_body,
|
1863
|
+
:auth_names => auth_names,
|
1864
|
+
:return_type => 'MeUser')
|
1865
|
+
if @api_client.config.debugging
|
1866
|
+
@api_client.config.logger.debug "API called: MeApi#patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1867
|
+
end
|
1868
|
+
return data, status_code, headers
|
1869
|
+
end
|
1870
|
+
|
1871
|
+
#
|
1872
|
+
#
|
1873
|
+
# @param address_id ID of the address.
|
1874
|
+
# @param address
|
1875
|
+
# @param [Hash] opts the optional parameters
|
1876
|
+
# @return [nil]
|
1877
|
+
def patch_address(address_id, address, opts = {})
|
1878
|
+
patch_address_with_http_info(address_id, address, opts)
|
1879
|
+
return nil
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
#
|
1883
|
+
#
|
1884
|
+
# @param address_id ID of the address.
|
1885
|
+
# @param address
|
1886
|
+
# @param [Hash] opts the optional parameters
|
1887
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1888
|
+
def patch_address_with_http_info(address_id, address, opts = {})
|
1889
|
+
if @api_client.config.debugging
|
1890
|
+
@api_client.config.logger.debug "Calling API: MeApi.patch_address ..."
|
1891
|
+
end
|
1892
|
+
# verify the required parameter 'address_id' is set
|
1893
|
+
fail ArgumentError, "Missing the required parameter 'address_id' when calling MeApi.patch_address" if address_id.nil?
|
1894
|
+
# verify the required parameter 'address' is set
|
1895
|
+
fail ArgumentError, "Missing the required parameter 'address' when calling MeApi.patch_address" if address.nil?
|
1896
|
+
# resource path
|
1897
|
+
local_var_path = "/me/addresses/{addressID}".sub('{format}','json').sub('{' + 'addressID' + '}', address_id.to_s)
|
1898
|
+
|
1899
|
+
# query parameters
|
1900
|
+
query_params = {}
|
1901
|
+
|
1902
|
+
# header parameters
|
1903
|
+
header_params = {}
|
1904
|
+
|
1905
|
+
# HTTP header 'Accept' (if needed)
|
1906
|
+
local_header_accept = ['application/json']
|
1907
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1908
|
+
|
1909
|
+
# HTTP header 'Content-Type'
|
1910
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1911
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1912
|
+
|
1913
|
+
# form parameters
|
1914
|
+
form_params = {}
|
1915
|
+
|
1916
|
+
# http body (model)
|
1917
|
+
post_body = @api_client.object_to_http_body(address)
|
1918
|
+
auth_names = ['oauth2']
|
1919
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1920
|
+
:header_params => header_params,
|
1921
|
+
:query_params => query_params,
|
1922
|
+
:form_params => form_params,
|
1923
|
+
:body => post_body,
|
1924
|
+
:auth_names => auth_names)
|
1925
|
+
if @api_client.config.debugging
|
1926
|
+
@api_client.config.logger.debug "API called: MeApi#patch_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1927
|
+
end
|
1928
|
+
return data, status_code, headers
|
1929
|
+
end
|
1930
|
+
|
1931
|
+
#
|
1932
|
+
#
|
1933
|
+
# @param creditcard_id ID of the creditcard.
|
1934
|
+
# @param credit_card
|
1935
|
+
# @param [Hash] opts the optional parameters
|
1936
|
+
# @return [nil]
|
1937
|
+
def patch_credit_card(creditcard_id, credit_card, opts = {})
|
1938
|
+
patch_credit_card_with_http_info(creditcard_id, credit_card, opts)
|
1939
|
+
return nil
|
1940
|
+
end
|
1941
|
+
|
1942
|
+
#
|
1943
|
+
#
|
1944
|
+
# @param creditcard_id ID of the creditcard.
|
1945
|
+
# @param credit_card
|
1946
|
+
# @param [Hash] opts the optional parameters
|
1947
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1948
|
+
def patch_credit_card_with_http_info(creditcard_id, credit_card, opts = {})
|
1949
|
+
if @api_client.config.debugging
|
1950
|
+
@api_client.config.logger.debug "Calling API: MeApi.patch_credit_card ..."
|
1951
|
+
end
|
1952
|
+
# verify the required parameter 'creditcard_id' is set
|
1953
|
+
fail ArgumentError, "Missing the required parameter 'creditcard_id' when calling MeApi.patch_credit_card" if creditcard_id.nil?
|
1954
|
+
# verify the required parameter 'credit_card' is set
|
1955
|
+
fail ArgumentError, "Missing the required parameter 'credit_card' when calling MeApi.patch_credit_card" if credit_card.nil?
|
1956
|
+
# resource path
|
1957
|
+
local_var_path = "/me/creditcards/{creditcardID}".sub('{format}','json').sub('{' + 'creditcardID' + '}', creditcard_id.to_s)
|
1958
|
+
|
1959
|
+
# query parameters
|
1960
|
+
query_params = {}
|
1961
|
+
|
1962
|
+
# header parameters
|
1963
|
+
header_params = {}
|
1964
|
+
|
1965
|
+
# HTTP header 'Accept' (if needed)
|
1966
|
+
local_header_accept = ['application/json']
|
1967
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1968
|
+
|
1969
|
+
# HTTP header 'Content-Type'
|
1970
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
1971
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1972
|
+
|
1973
|
+
# form parameters
|
1974
|
+
form_params = {}
|
1975
|
+
|
1976
|
+
# http body (model)
|
1977
|
+
post_body = @api_client.object_to_http_body(credit_card)
|
1978
|
+
auth_names = ['oauth2']
|
1979
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1980
|
+
:header_params => header_params,
|
1981
|
+
:query_params => query_params,
|
1982
|
+
:form_params => form_params,
|
1983
|
+
:body => post_body,
|
1984
|
+
:auth_names => auth_names)
|
1985
|
+
if @api_client.config.debugging
|
1986
|
+
@api_client.config.logger.debug "API called: MeApi#patch_credit_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1987
|
+
end
|
1988
|
+
return data, status_code, headers
|
1989
|
+
end
|
1990
|
+
|
1991
|
+
#
|
1992
|
+
#
|
1993
|
+
# @param anon_user_token Anon user token of the me.
|
1994
|
+
# @param user
|
1995
|
+
# @param [Hash] opts the optional parameters
|
1996
|
+
# @return [Object]
|
1997
|
+
def register(anon_user_token, user, opts = {})
|
1998
|
+
data, _status_code, _headers = register_with_http_info(anon_user_token, user, opts)
|
1999
|
+
return data
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
#
|
2003
|
+
#
|
2004
|
+
# @param anon_user_token Anon user token of the me.
|
2005
|
+
# @param user
|
2006
|
+
# @param [Hash] opts the optional parameters
|
2007
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
2008
|
+
def register_with_http_info(anon_user_token, user, opts = {})
|
2009
|
+
if @api_client.config.debugging
|
2010
|
+
@api_client.config.logger.debug "Calling API: MeApi.register ..."
|
2011
|
+
end
|
2012
|
+
# verify the required parameter 'anon_user_token' is set
|
2013
|
+
fail ArgumentError, "Missing the required parameter 'anon_user_token' when calling MeApi.register" if anon_user_token.nil?
|
2014
|
+
# verify the required parameter 'user' is set
|
2015
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling MeApi.register" if user.nil?
|
2016
|
+
# resource path
|
2017
|
+
local_var_path = "/me/register".sub('{format}','json')
|
2018
|
+
|
2019
|
+
# query parameters
|
2020
|
+
query_params = {}
|
2021
|
+
query_params[:'anonUserToken'] = anon_user_token
|
2022
|
+
|
2023
|
+
# header parameters
|
2024
|
+
header_params = {}
|
2025
|
+
|
2026
|
+
# HTTP header 'Accept' (if needed)
|
2027
|
+
local_header_accept = ['application/json']
|
2028
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2029
|
+
|
2030
|
+
# HTTP header 'Content-Type'
|
2031
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
2032
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2033
|
+
|
2034
|
+
# form parameters
|
2035
|
+
form_params = {}
|
2036
|
+
|
2037
|
+
# http body (model)
|
2038
|
+
post_body = @api_client.object_to_http_body(user)
|
2039
|
+
auth_names = ['oauth2']
|
2040
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2041
|
+
:header_params => header_params,
|
2042
|
+
:query_params => query_params,
|
2043
|
+
:form_params => form_params,
|
2044
|
+
:body => post_body,
|
2045
|
+
:auth_names => auth_names,
|
2046
|
+
:return_type => 'Object')
|
2047
|
+
if @api_client.config.debugging
|
2048
|
+
@api_client.config.logger.debug "API called: MeApi#register\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2049
|
+
end
|
2050
|
+
return data, status_code, headers
|
2051
|
+
end
|
2052
|
+
|
2053
|
+
#
|
2054
|
+
#
|
2055
|
+
# @param reset
|
2056
|
+
# @param [Hash] opts the optional parameters
|
2057
|
+
# @return [nil]
|
2058
|
+
def reset_password_by_token(reset, opts = {})
|
2059
|
+
reset_password_by_token_with_http_info(reset, opts)
|
2060
|
+
return nil
|
2061
|
+
end
|
2062
|
+
|
2063
|
+
#
|
2064
|
+
#
|
2065
|
+
# @param reset
|
2066
|
+
# @param [Hash] opts the optional parameters
|
2067
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
2068
|
+
def reset_password_by_token_with_http_info(reset, opts = {})
|
2069
|
+
if @api_client.config.debugging
|
2070
|
+
@api_client.config.logger.debug "Calling API: MeApi.reset_password_by_token ..."
|
2071
|
+
end
|
2072
|
+
# verify the required parameter 'reset' is set
|
2073
|
+
fail ArgumentError, "Missing the required parameter 'reset' when calling MeApi.reset_password_by_token" if reset.nil?
|
2074
|
+
# resource path
|
2075
|
+
local_var_path = "/me/password".sub('{format}','json')
|
2076
|
+
|
2077
|
+
# query parameters
|
2078
|
+
query_params = {}
|
2079
|
+
|
2080
|
+
# header parameters
|
2081
|
+
header_params = {}
|
2082
|
+
|
2083
|
+
# HTTP header 'Accept' (if needed)
|
2084
|
+
local_header_accept = ['application/json']
|
2085
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2086
|
+
|
2087
|
+
# HTTP header 'Content-Type'
|
2088
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
2089
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2090
|
+
|
2091
|
+
# form parameters
|
2092
|
+
form_params = {}
|
2093
|
+
|
2094
|
+
# http body (model)
|
2095
|
+
post_body = @api_client.object_to_http_body(reset)
|
2096
|
+
auth_names = ['oauth2']
|
2097
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2098
|
+
:header_params => header_params,
|
2099
|
+
:query_params => query_params,
|
2100
|
+
:form_params => form_params,
|
2101
|
+
:body => post_body,
|
2102
|
+
:auth_names => auth_names)
|
2103
|
+
if @api_client.config.debugging
|
2104
|
+
@api_client.config.logger.debug "API called: MeApi#reset_password_by_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2105
|
+
end
|
2106
|
+
return data, status_code, headers
|
2107
|
+
end
|
2108
|
+
|
2109
|
+
#
|
2110
|
+
#
|
2111
|
+
# @param anon_user_token Anon user token of the me.
|
2112
|
+
# @param [Hash] opts the optional parameters
|
2113
|
+
# @return [nil]
|
2114
|
+
def transfer_anon_user_order(anon_user_token, opts = {})
|
2115
|
+
transfer_anon_user_order_with_http_info(anon_user_token, opts)
|
2116
|
+
return nil
|
2117
|
+
end
|
2118
|
+
|
2119
|
+
#
|
2120
|
+
#
|
2121
|
+
# @param anon_user_token Anon user token of the me.
|
2122
|
+
# @param [Hash] opts the optional parameters
|
2123
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
2124
|
+
def transfer_anon_user_order_with_http_info(anon_user_token, opts = {})
|
2125
|
+
if @api_client.config.debugging
|
2126
|
+
@api_client.config.logger.debug "Calling API: MeApi.transfer_anon_user_order ..."
|
2127
|
+
end
|
2128
|
+
# verify the required parameter 'anon_user_token' is set
|
2129
|
+
fail ArgumentError, "Missing the required parameter 'anon_user_token' when calling MeApi.transfer_anon_user_order" if anon_user_token.nil?
|
2130
|
+
# resource path
|
2131
|
+
local_var_path = "/me/orders".sub('{format}','json')
|
2132
|
+
|
2133
|
+
# query parameters
|
2134
|
+
query_params = {}
|
2135
|
+
query_params[:'anonUserToken'] = anon_user_token
|
2136
|
+
|
2137
|
+
# header parameters
|
2138
|
+
header_params = {}
|
2139
|
+
|
2140
|
+
# HTTP header 'Accept' (if needed)
|
2141
|
+
local_header_accept = ['application/json']
|
2142
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2143
|
+
|
2144
|
+
# HTTP header 'Content-Type'
|
2145
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
2146
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2147
|
+
|
2148
|
+
# form parameters
|
2149
|
+
form_params = {}
|
2150
|
+
|
2151
|
+
# http body (model)
|
2152
|
+
post_body = nil
|
2153
|
+
auth_names = ['oauth2']
|
2154
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2155
|
+
:header_params => header_params,
|
2156
|
+
:query_params => query_params,
|
2157
|
+
:form_params => form_params,
|
2158
|
+
:body => post_body,
|
2159
|
+
:auth_names => auth_names)
|
2160
|
+
if @api_client.config.debugging
|
2161
|
+
@api_client.config.logger.debug "API called: MeApi#transfer_anon_user_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2162
|
+
end
|
2163
|
+
return data, status_code, headers
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
#
|
2167
|
+
#
|
2168
|
+
# @param user
|
2169
|
+
# @param [Hash] opts the optional parameters
|
2170
|
+
# @return [MeUser]
|
2171
|
+
def update(user, opts = {})
|
2172
|
+
data, _status_code, _headers = update_with_http_info(user, opts)
|
2173
|
+
return data
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
#
|
2177
|
+
#
|
2178
|
+
# @param user
|
2179
|
+
# @param [Hash] opts the optional parameters
|
2180
|
+
# @return [Array<(MeUser, Fixnum, Hash)>] MeUser data, response status code and response headers
|
2181
|
+
def update_with_http_info(user, opts = {})
|
2182
|
+
if @api_client.config.debugging
|
2183
|
+
@api_client.config.logger.debug "Calling API: MeApi.update ..."
|
2184
|
+
end
|
2185
|
+
# verify the required parameter 'user' is set
|
2186
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling MeApi.update" if user.nil?
|
2187
|
+
# resource path
|
2188
|
+
local_var_path = "/me".sub('{format}','json')
|
2189
|
+
|
2190
|
+
# query parameters
|
2191
|
+
query_params = {}
|
2192
|
+
|
2193
|
+
# header parameters
|
2194
|
+
header_params = {}
|
2195
|
+
|
2196
|
+
# HTTP header 'Accept' (if needed)
|
2197
|
+
local_header_accept = ['application/json']
|
2198
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2199
|
+
|
2200
|
+
# HTTP header 'Content-Type'
|
2201
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
2202
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2203
|
+
|
2204
|
+
# form parameters
|
2205
|
+
form_params = {}
|
2206
|
+
|
2207
|
+
# http body (model)
|
2208
|
+
post_body = @api_client.object_to_http_body(user)
|
2209
|
+
auth_names = ['oauth2']
|
2210
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2211
|
+
:header_params => header_params,
|
2212
|
+
:query_params => query_params,
|
2213
|
+
:form_params => form_params,
|
2214
|
+
:body => post_body,
|
2215
|
+
:auth_names => auth_names,
|
2216
|
+
:return_type => 'MeUser')
|
2217
|
+
if @api_client.config.debugging
|
2218
|
+
@api_client.config.logger.debug "API called: MeApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2219
|
+
end
|
2220
|
+
return data, status_code, headers
|
2221
|
+
end
|
2222
|
+
|
2223
|
+
#
|
2224
|
+
#
|
2225
|
+
# @param address_id ID of the address.
|
2226
|
+
# @param address
|
2227
|
+
# @param [Hash] opts the optional parameters
|
2228
|
+
# @return [BuyerAddress]
|
2229
|
+
def update_address(address_id, address, opts = {})
|
2230
|
+
data, _status_code, _headers = update_address_with_http_info(address_id, address, opts)
|
2231
|
+
return data
|
2232
|
+
end
|
2233
|
+
|
2234
|
+
#
|
2235
|
+
#
|
2236
|
+
# @param address_id ID of the address.
|
2237
|
+
# @param address
|
2238
|
+
# @param [Hash] opts the optional parameters
|
2239
|
+
# @return [Array<(BuyerAddress, Fixnum, Hash)>] BuyerAddress data, response status code and response headers
|
2240
|
+
def update_address_with_http_info(address_id, address, opts = {})
|
2241
|
+
if @api_client.config.debugging
|
2242
|
+
@api_client.config.logger.debug "Calling API: MeApi.update_address ..."
|
2243
|
+
end
|
2244
|
+
# verify the required parameter 'address_id' is set
|
2245
|
+
fail ArgumentError, "Missing the required parameter 'address_id' when calling MeApi.update_address" if address_id.nil?
|
2246
|
+
# verify the required parameter 'address' is set
|
2247
|
+
fail ArgumentError, "Missing the required parameter 'address' when calling MeApi.update_address" if address.nil?
|
2248
|
+
# resource path
|
2249
|
+
local_var_path = "/me/addresses/{addressID}".sub('{format}','json').sub('{' + 'addressID' + '}', address_id.to_s)
|
2250
|
+
|
2251
|
+
# query parameters
|
2252
|
+
query_params = {}
|
2253
|
+
|
2254
|
+
# header parameters
|
2255
|
+
header_params = {}
|
2256
|
+
|
2257
|
+
# HTTP header 'Accept' (if needed)
|
2258
|
+
local_header_accept = ['application/json']
|
2259
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2260
|
+
|
2261
|
+
# HTTP header 'Content-Type'
|
2262
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
2263
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2264
|
+
|
2265
|
+
# form parameters
|
2266
|
+
form_params = {}
|
2267
|
+
|
2268
|
+
# http body (model)
|
2269
|
+
post_body = @api_client.object_to_http_body(address)
|
2270
|
+
auth_names = ['oauth2']
|
2271
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2272
|
+
:header_params => header_params,
|
2273
|
+
:query_params => query_params,
|
2274
|
+
:form_params => form_params,
|
2275
|
+
:body => post_body,
|
2276
|
+
:auth_names => auth_names,
|
2277
|
+
:return_type => 'BuyerAddress')
|
2278
|
+
if @api_client.config.debugging
|
2279
|
+
@api_client.config.logger.debug "API called: MeApi#update_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2280
|
+
end
|
2281
|
+
return data, status_code, headers
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
#
|
2285
|
+
#
|
2286
|
+
# @param creditcard_id ID of the creditcard.
|
2287
|
+
# @param credit_card
|
2288
|
+
# @param [Hash] opts the optional parameters
|
2289
|
+
# @return [BuyerCreditCard]
|
2290
|
+
def update_credit_card(creditcard_id, credit_card, opts = {})
|
2291
|
+
data, _status_code, _headers = update_credit_card_with_http_info(creditcard_id, credit_card, opts)
|
2292
|
+
return data
|
2293
|
+
end
|
2294
|
+
|
2295
|
+
#
|
2296
|
+
#
|
2297
|
+
# @param creditcard_id ID of the creditcard.
|
2298
|
+
# @param credit_card
|
2299
|
+
# @param [Hash] opts the optional parameters
|
2300
|
+
# @return [Array<(BuyerCreditCard, Fixnum, Hash)>] BuyerCreditCard data, response status code and response headers
|
2301
|
+
def update_credit_card_with_http_info(creditcard_id, credit_card, opts = {})
|
2302
|
+
if @api_client.config.debugging
|
2303
|
+
@api_client.config.logger.debug "Calling API: MeApi.update_credit_card ..."
|
2304
|
+
end
|
2305
|
+
# verify the required parameter 'creditcard_id' is set
|
2306
|
+
fail ArgumentError, "Missing the required parameter 'creditcard_id' when calling MeApi.update_credit_card" if creditcard_id.nil?
|
2307
|
+
# verify the required parameter 'credit_card' is set
|
2308
|
+
fail ArgumentError, "Missing the required parameter 'credit_card' when calling MeApi.update_credit_card" if credit_card.nil?
|
2309
|
+
# resource path
|
2310
|
+
local_var_path = "/me/creditcards/{creditcardID}".sub('{format}','json').sub('{' + 'creditcardID' + '}', creditcard_id.to_s)
|
2311
|
+
|
2312
|
+
# query parameters
|
2313
|
+
query_params = {}
|
2314
|
+
|
2315
|
+
# header parameters
|
2316
|
+
header_params = {}
|
2317
|
+
|
2318
|
+
# HTTP header 'Accept' (if needed)
|
2319
|
+
local_header_accept = ['application/json']
|
2320
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2321
|
+
|
2322
|
+
# HTTP header 'Content-Type'
|
2323
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
2324
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2325
|
+
|
2326
|
+
# form parameters
|
2327
|
+
form_params = {}
|
2328
|
+
|
2329
|
+
# http body (model)
|
2330
|
+
post_body = @api_client.object_to_http_body(credit_card)
|
2331
|
+
auth_names = ['oauth2']
|
2332
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2333
|
+
:header_params => header_params,
|
2334
|
+
:query_params => query_params,
|
2335
|
+
:form_params => form_params,
|
2336
|
+
:body => post_body,
|
2337
|
+
:auth_names => auth_names,
|
2338
|
+
:return_type => 'BuyerCreditCard')
|
2339
|
+
if @api_client.config.debugging
|
2340
|
+
@api_client.config.logger.debug "API called: MeApi#update_credit_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2341
|
+
end
|
2342
|
+
return data, status_code, headers
|
2343
|
+
end
|
2344
|
+
end
|
2345
|
+
end
|