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