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,9 @@
|
|
1
|
+
# OrderCloud::BuyerProduct
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**replenishment_price_schedule** | [**PriceSchedule**](PriceSchedule.md) | | [optional]
|
7
|
+
**standard_price_schedule** | [**PriceSchedule**](PriceSchedule.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/BuyerSpec.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# OrderCloud::BuyerSpec
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**options** | [**Array<SpecOption>**](SpecOption.md) | | [optional]
|
7
|
+
**defines_variant** | **BOOLEAN** | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/Category.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# OrderCloud::Category
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**name** | **String** | | [optional]
|
8
|
+
**description** | **String** | | [optional]
|
9
|
+
**xp** | **Object** | | [optional]
|
10
|
+
**list_order** | **Integer** | | [optional]
|
11
|
+
**active** | **BOOLEAN** | | [optional]
|
12
|
+
**parent_id** | **String** | | [optional]
|
13
|
+
**child_count** | **Integer** | | [optional]
|
14
|
+
|
15
|
+
|
data/docs/CategoryApi.md
ADDED
@@ -0,0 +1,684 @@
|
|
1
|
+
# OrderCloud::CategoryApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.ordercloud.io/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](CategoryApi.md#create) | **POST** /buyers/{buyerID}/categories |
|
8
|
+
[**delete**](CategoryApi.md#delete) | **DELETE** /buyers/{buyerID}/categories/{categoryID} |
|
9
|
+
[**delete_assignment**](CategoryApi.md#delete_assignment) | **DELETE** /buyers/{buyerID}/categories/{categoryID}/assignments |
|
10
|
+
[**delete_product_assignment**](CategoryApi.md#delete_product_assignment) | **DELETE** /buyers/{buyerID}/categories/{categoryID}/productassignments/{productID} |
|
11
|
+
[**get**](CategoryApi.md#get) | **GET** /buyers/{buyerID}/categories/{categoryID} |
|
12
|
+
[**list**](CategoryApi.md#list) | **GET** /buyers/{buyerID}/categories |
|
13
|
+
[**list_assignments**](CategoryApi.md#list_assignments) | **GET** /buyers/{buyerID}/categories/assignments |
|
14
|
+
[**list_product_assignments**](CategoryApi.md#list_product_assignments) | **GET** /buyers/{buyerID}/categories/productassignments |
|
15
|
+
[**patch**](CategoryApi.md#patch) | **PATCH** /buyers/{buyerID}/categories/{categoryID} |
|
16
|
+
[**save_assignment**](CategoryApi.md#save_assignment) | **POST** /buyers/{buyerID}/categories/assignments |
|
17
|
+
[**save_product_assignment**](CategoryApi.md#save_product_assignment) | **POST** /buyers/{buyerID}/categories/productassignments |
|
18
|
+
[**update**](CategoryApi.md#update) | **PUT** /buyers/{buyerID}/categories/{categoryID} |
|
19
|
+
|
20
|
+
|
21
|
+
# **create**
|
22
|
+
> Category create(buyer_id, category)
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
### Example
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'order_cloud'
|
30
|
+
# setup authorization
|
31
|
+
OrderCloud.configure do |config|
|
32
|
+
# Configure OAuth2 access token for authorization: oauth2
|
33
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = OrderCloud::CategoryApi.new
|
37
|
+
|
38
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
39
|
+
|
40
|
+
category = OrderCloud::Category.new # Category |
|
41
|
+
|
42
|
+
|
43
|
+
begin
|
44
|
+
result = api_instance.create(buyer_id, category)
|
45
|
+
p result
|
46
|
+
rescue OrderCloud::ApiError => e
|
47
|
+
puts "Exception when calling CategoryApi->create: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**buyer_id** | **String**| ID of the buyer. |
|
56
|
+
**category** | [**Category**](Category.md)| |
|
57
|
+
|
58
|
+
### Return type
|
59
|
+
|
60
|
+
[**Category**](Category.md)
|
61
|
+
|
62
|
+
### Authorization
|
63
|
+
|
64
|
+
[oauth2](../README.md#oauth2)
|
65
|
+
|
66
|
+
### HTTP request headers
|
67
|
+
|
68
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
69
|
+
- **Accept**: application/json
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
# **delete**
|
74
|
+
> delete(buyer_id, category_id)
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
### Example
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'order_cloud'
|
82
|
+
# setup authorization
|
83
|
+
OrderCloud.configure do |config|
|
84
|
+
# Configure OAuth2 access token for authorization: oauth2
|
85
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
86
|
+
end
|
87
|
+
|
88
|
+
api_instance = OrderCloud::CategoryApi.new
|
89
|
+
|
90
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
91
|
+
|
92
|
+
category_id = "category_id_example" # String | ID of the category.
|
93
|
+
|
94
|
+
|
95
|
+
begin
|
96
|
+
api_instance.delete(buyer_id, category_id)
|
97
|
+
rescue OrderCloud::ApiError => e
|
98
|
+
puts "Exception when calling CategoryApi->delete: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**buyer_id** | **String**| ID of the buyer. |
|
107
|
+
**category_id** | **String**| ID of the category. |
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
nil (empty response body)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[oauth2](../README.md#oauth2)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
# **delete_assignment**
|
125
|
+
> delete_assignment(buyer_id, category_id, opts)
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
### Example
|
130
|
+
```ruby
|
131
|
+
# load the gem
|
132
|
+
require 'order_cloud'
|
133
|
+
# setup authorization
|
134
|
+
OrderCloud.configure do |config|
|
135
|
+
# Configure OAuth2 access token for authorization: oauth2
|
136
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
137
|
+
end
|
138
|
+
|
139
|
+
api_instance = OrderCloud::CategoryApi.new
|
140
|
+
|
141
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
142
|
+
|
143
|
+
category_id = "category_id_example" # String | ID of the category.
|
144
|
+
|
145
|
+
opts = {
|
146
|
+
user_id: "user_id_example", # String | ID of the user.
|
147
|
+
user_group_id: "user_group_id_example" # String | ID of the user group.
|
148
|
+
}
|
149
|
+
|
150
|
+
begin
|
151
|
+
api_instance.delete_assignment(buyer_id, category_id, opts)
|
152
|
+
rescue OrderCloud::ApiError => e
|
153
|
+
puts "Exception when calling CategoryApi->delete_assignment: #{e}"
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
### Parameters
|
158
|
+
|
159
|
+
Name | Type | Description | Notes
|
160
|
+
------------- | ------------- | ------------- | -------------
|
161
|
+
**buyer_id** | **String**| ID of the buyer. |
|
162
|
+
**category_id** | **String**| ID of the category. |
|
163
|
+
**user_id** | **String**| ID of the user. | [optional]
|
164
|
+
**user_group_id** | **String**| ID of the user group. | [optional]
|
165
|
+
|
166
|
+
### Return type
|
167
|
+
|
168
|
+
nil (empty response body)
|
169
|
+
|
170
|
+
### Authorization
|
171
|
+
|
172
|
+
[oauth2](../README.md#oauth2)
|
173
|
+
|
174
|
+
### HTTP request headers
|
175
|
+
|
176
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
177
|
+
- **Accept**: application/json
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
# **delete_product_assignment**
|
182
|
+
> delete_product_assignment(buyer_id, category_id, product_id)
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
### Example
|
187
|
+
```ruby
|
188
|
+
# load the gem
|
189
|
+
require 'order_cloud'
|
190
|
+
# setup authorization
|
191
|
+
OrderCloud.configure do |config|
|
192
|
+
# Configure OAuth2 access token for authorization: oauth2
|
193
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
194
|
+
end
|
195
|
+
|
196
|
+
api_instance = OrderCloud::CategoryApi.new
|
197
|
+
|
198
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
199
|
+
|
200
|
+
category_id = "category_id_example" # String | ID of the category.
|
201
|
+
|
202
|
+
product_id = "product_id_example" # String | ID of the product.
|
203
|
+
|
204
|
+
|
205
|
+
begin
|
206
|
+
api_instance.delete_product_assignment(buyer_id, category_id, product_id)
|
207
|
+
rescue OrderCloud::ApiError => e
|
208
|
+
puts "Exception when calling CategoryApi->delete_product_assignment: #{e}"
|
209
|
+
end
|
210
|
+
```
|
211
|
+
|
212
|
+
### Parameters
|
213
|
+
|
214
|
+
Name | Type | Description | Notes
|
215
|
+
------------- | ------------- | ------------- | -------------
|
216
|
+
**buyer_id** | **String**| ID of the buyer. |
|
217
|
+
**category_id** | **String**| ID of the category. |
|
218
|
+
**product_id** | **String**| ID of the product. |
|
219
|
+
|
220
|
+
### Return type
|
221
|
+
|
222
|
+
nil (empty response body)
|
223
|
+
|
224
|
+
### Authorization
|
225
|
+
|
226
|
+
[oauth2](../README.md#oauth2)
|
227
|
+
|
228
|
+
### HTTP request headers
|
229
|
+
|
230
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
231
|
+
- **Accept**: application/json
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
# **get**
|
236
|
+
> Category get(buyer_id, category_id)
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
### Example
|
241
|
+
```ruby
|
242
|
+
# load the gem
|
243
|
+
require 'order_cloud'
|
244
|
+
# setup authorization
|
245
|
+
OrderCloud.configure do |config|
|
246
|
+
# Configure OAuth2 access token for authorization: oauth2
|
247
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
248
|
+
end
|
249
|
+
|
250
|
+
api_instance = OrderCloud::CategoryApi.new
|
251
|
+
|
252
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
253
|
+
|
254
|
+
category_id = "category_id_example" # String | ID of the category.
|
255
|
+
|
256
|
+
|
257
|
+
begin
|
258
|
+
result = api_instance.get(buyer_id, category_id)
|
259
|
+
p result
|
260
|
+
rescue OrderCloud::ApiError => e
|
261
|
+
puts "Exception when calling CategoryApi->get: #{e}"
|
262
|
+
end
|
263
|
+
```
|
264
|
+
|
265
|
+
### Parameters
|
266
|
+
|
267
|
+
Name | Type | Description | Notes
|
268
|
+
------------- | ------------- | ------------- | -------------
|
269
|
+
**buyer_id** | **String**| ID of the buyer. |
|
270
|
+
**category_id** | **String**| ID of the category. |
|
271
|
+
|
272
|
+
### Return type
|
273
|
+
|
274
|
+
[**Category**](Category.md)
|
275
|
+
|
276
|
+
### Authorization
|
277
|
+
|
278
|
+
[oauth2](../README.md#oauth2)
|
279
|
+
|
280
|
+
### HTTP request headers
|
281
|
+
|
282
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
283
|
+
- **Accept**: application/json
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
# **list**
|
288
|
+
> ListCategory list(buyer_id, opts)
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
### Example
|
293
|
+
```ruby
|
294
|
+
# load the gem
|
295
|
+
require 'order_cloud'
|
296
|
+
# setup authorization
|
297
|
+
OrderCloud.configure do |config|
|
298
|
+
# Configure OAuth2 access token for authorization: oauth2
|
299
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
300
|
+
end
|
301
|
+
|
302
|
+
api_instance = OrderCloud::CategoryApi.new
|
303
|
+
|
304
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
305
|
+
|
306
|
+
opts = {
|
307
|
+
depth: "depth_example", # String | Depth of the category.
|
308
|
+
search: "search_example", # String | Word or phrase to search for.
|
309
|
+
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
310
|
+
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
311
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
312
|
+
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
313
|
+
filters: {'key' => "filters_example"} # Hash<String, String> | 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.???'
|
314
|
+
}
|
315
|
+
|
316
|
+
begin
|
317
|
+
result = api_instance.list(buyer_id, opts)
|
318
|
+
p result
|
319
|
+
rescue OrderCloud::ApiError => e
|
320
|
+
puts "Exception when calling CategoryApi->list: #{e}"
|
321
|
+
end
|
322
|
+
```
|
323
|
+
|
324
|
+
### Parameters
|
325
|
+
|
326
|
+
Name | Type | Description | Notes
|
327
|
+
------------- | ------------- | ------------- | -------------
|
328
|
+
**buyer_id** | **String**| ID of the buyer. |
|
329
|
+
**depth** | **String**| Depth of the category. | [optional]
|
330
|
+
**search** | **String**| Word or phrase to search for. | [optional]
|
331
|
+
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
332
|
+
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
333
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
334
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
335
|
+
**filters** | [**Hash<String, String>**](String.md)| 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.???' | [optional]
|
336
|
+
|
337
|
+
### Return type
|
338
|
+
|
339
|
+
[**ListCategory**](ListCategory.md)
|
340
|
+
|
341
|
+
### Authorization
|
342
|
+
|
343
|
+
[oauth2](../README.md#oauth2)
|
344
|
+
|
345
|
+
### HTTP request headers
|
346
|
+
|
347
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
348
|
+
- **Accept**: application/json
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
# **list_assignments**
|
353
|
+
> ListCategoryAssignment list_assignments(buyer_id, opts)
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
### Example
|
358
|
+
```ruby
|
359
|
+
# load the gem
|
360
|
+
require 'order_cloud'
|
361
|
+
# setup authorization
|
362
|
+
OrderCloud.configure do |config|
|
363
|
+
# Configure OAuth2 access token for authorization: oauth2
|
364
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
365
|
+
end
|
366
|
+
|
367
|
+
api_instance = OrderCloud::CategoryApi.new
|
368
|
+
|
369
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
370
|
+
|
371
|
+
opts = {
|
372
|
+
category_id: "category_id_example", # String | ID of the category.
|
373
|
+
user_id: "user_id_example", # String | ID of the user.
|
374
|
+
user_group_id: "user_group_id_example", # String | ID of the user group.
|
375
|
+
level: "level_example", # String | Level of the category.
|
376
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
377
|
+
page_size: 56 # Integer | Number of results to return per page. Default: 20, max: 100.
|
378
|
+
}
|
379
|
+
|
380
|
+
begin
|
381
|
+
result = api_instance.list_assignments(buyer_id, opts)
|
382
|
+
p result
|
383
|
+
rescue OrderCloud::ApiError => e
|
384
|
+
puts "Exception when calling CategoryApi->list_assignments: #{e}"
|
385
|
+
end
|
386
|
+
```
|
387
|
+
|
388
|
+
### Parameters
|
389
|
+
|
390
|
+
Name | Type | Description | Notes
|
391
|
+
------------- | ------------- | ------------- | -------------
|
392
|
+
**buyer_id** | **String**| ID of the buyer. |
|
393
|
+
**category_id** | **String**| ID of the category. | [optional]
|
394
|
+
**user_id** | **String**| ID of the user. | [optional]
|
395
|
+
**user_group_id** | **String**| ID of the user group. | [optional]
|
396
|
+
**level** | **String**| Level of the category. | [optional]
|
397
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
398
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
399
|
+
|
400
|
+
### Return type
|
401
|
+
|
402
|
+
[**ListCategoryAssignment**](ListCategoryAssignment.md)
|
403
|
+
|
404
|
+
### Authorization
|
405
|
+
|
406
|
+
[oauth2](../README.md#oauth2)
|
407
|
+
|
408
|
+
### HTTP request headers
|
409
|
+
|
410
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
411
|
+
- **Accept**: application/json
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
# **list_product_assignments**
|
416
|
+
> ListCategoryProductAssignment list_product_assignments(buyer_id, opts)
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
### Example
|
421
|
+
```ruby
|
422
|
+
# load the gem
|
423
|
+
require 'order_cloud'
|
424
|
+
# setup authorization
|
425
|
+
OrderCloud.configure do |config|
|
426
|
+
# Configure OAuth2 access token for authorization: oauth2
|
427
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
428
|
+
end
|
429
|
+
|
430
|
+
api_instance = OrderCloud::CategoryApi.new
|
431
|
+
|
432
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
433
|
+
|
434
|
+
opts = {
|
435
|
+
category_id: "category_id_example", # String | ID of the category.
|
436
|
+
product_id: "product_id_example", # String | ID of the product.
|
437
|
+
page: 56, # Integer | Page of results to return. Default: 1
|
438
|
+
page_size: 56 # Integer | Number of results to return per page. Default: 20, max: 100.
|
439
|
+
}
|
440
|
+
|
441
|
+
begin
|
442
|
+
result = api_instance.list_product_assignments(buyer_id, opts)
|
443
|
+
p result
|
444
|
+
rescue OrderCloud::ApiError => e
|
445
|
+
puts "Exception when calling CategoryApi->list_product_assignments: #{e}"
|
446
|
+
end
|
447
|
+
```
|
448
|
+
|
449
|
+
### Parameters
|
450
|
+
|
451
|
+
Name | Type | Description | Notes
|
452
|
+
------------- | ------------- | ------------- | -------------
|
453
|
+
**buyer_id** | **String**| ID of the buyer. |
|
454
|
+
**category_id** | **String**| ID of the category. | [optional]
|
455
|
+
**product_id** | **String**| ID of the product. | [optional]
|
456
|
+
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
457
|
+
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
458
|
+
|
459
|
+
### Return type
|
460
|
+
|
461
|
+
[**ListCategoryProductAssignment**](ListCategoryProductAssignment.md)
|
462
|
+
|
463
|
+
### Authorization
|
464
|
+
|
465
|
+
[oauth2](../README.md#oauth2)
|
466
|
+
|
467
|
+
### HTTP request headers
|
468
|
+
|
469
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
470
|
+
- **Accept**: application/json
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
# **patch**
|
475
|
+
> patch(buyer_id, category_id, category)
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
### Example
|
480
|
+
```ruby
|
481
|
+
# load the gem
|
482
|
+
require 'order_cloud'
|
483
|
+
# setup authorization
|
484
|
+
OrderCloud.configure do |config|
|
485
|
+
# Configure OAuth2 access token for authorization: oauth2
|
486
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
487
|
+
end
|
488
|
+
|
489
|
+
api_instance = OrderCloud::CategoryApi.new
|
490
|
+
|
491
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
492
|
+
|
493
|
+
category_id = "category_id_example" # String | ID of the category.
|
494
|
+
|
495
|
+
category = OrderCloud::Category.new # Category |
|
496
|
+
|
497
|
+
|
498
|
+
begin
|
499
|
+
api_instance.patch(buyer_id, category_id, category)
|
500
|
+
rescue OrderCloud::ApiError => e
|
501
|
+
puts "Exception when calling CategoryApi->patch: #{e}"
|
502
|
+
end
|
503
|
+
```
|
504
|
+
|
505
|
+
### Parameters
|
506
|
+
|
507
|
+
Name | Type | Description | Notes
|
508
|
+
------------- | ------------- | ------------- | -------------
|
509
|
+
**buyer_id** | **String**| ID of the buyer. |
|
510
|
+
**category_id** | **String**| ID of the category. |
|
511
|
+
**category** | [**Category**](Category.md)| |
|
512
|
+
|
513
|
+
### Return type
|
514
|
+
|
515
|
+
nil (empty response body)
|
516
|
+
|
517
|
+
### Authorization
|
518
|
+
|
519
|
+
[oauth2](../README.md#oauth2)
|
520
|
+
|
521
|
+
### HTTP request headers
|
522
|
+
|
523
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
524
|
+
- **Accept**: application/json
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
# **save_assignment**
|
529
|
+
> save_assignment(buyer_id, category_assignment)
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
### Example
|
534
|
+
```ruby
|
535
|
+
# load the gem
|
536
|
+
require 'order_cloud'
|
537
|
+
# setup authorization
|
538
|
+
OrderCloud.configure do |config|
|
539
|
+
# Configure OAuth2 access token for authorization: oauth2
|
540
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
541
|
+
end
|
542
|
+
|
543
|
+
api_instance = OrderCloud::CategoryApi.new
|
544
|
+
|
545
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
546
|
+
|
547
|
+
category_assignment = OrderCloud::CategoryAssignment.new # CategoryAssignment |
|
548
|
+
|
549
|
+
|
550
|
+
begin
|
551
|
+
api_instance.save_assignment(buyer_id, category_assignment)
|
552
|
+
rescue OrderCloud::ApiError => e
|
553
|
+
puts "Exception when calling CategoryApi->save_assignment: #{e}"
|
554
|
+
end
|
555
|
+
```
|
556
|
+
|
557
|
+
### Parameters
|
558
|
+
|
559
|
+
Name | Type | Description | Notes
|
560
|
+
------------- | ------------- | ------------- | -------------
|
561
|
+
**buyer_id** | **String**| ID of the buyer. |
|
562
|
+
**category_assignment** | [**CategoryAssignment**](CategoryAssignment.md)| |
|
563
|
+
|
564
|
+
### Return type
|
565
|
+
|
566
|
+
nil (empty response body)
|
567
|
+
|
568
|
+
### Authorization
|
569
|
+
|
570
|
+
[oauth2](../README.md#oauth2)
|
571
|
+
|
572
|
+
### HTTP request headers
|
573
|
+
|
574
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
575
|
+
- **Accept**: application/json
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
# **save_product_assignment**
|
580
|
+
> save_product_assignment(buyer_id, product_assignment)
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
### Example
|
585
|
+
```ruby
|
586
|
+
# load the gem
|
587
|
+
require 'order_cloud'
|
588
|
+
# setup authorization
|
589
|
+
OrderCloud.configure do |config|
|
590
|
+
# Configure OAuth2 access token for authorization: oauth2
|
591
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
592
|
+
end
|
593
|
+
|
594
|
+
api_instance = OrderCloud::CategoryApi.new
|
595
|
+
|
596
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
597
|
+
|
598
|
+
product_assignment = OrderCloud::CategoryProductAssignment.new # CategoryProductAssignment |
|
599
|
+
|
600
|
+
|
601
|
+
begin
|
602
|
+
api_instance.save_product_assignment(buyer_id, product_assignment)
|
603
|
+
rescue OrderCloud::ApiError => e
|
604
|
+
puts "Exception when calling CategoryApi->save_product_assignment: #{e}"
|
605
|
+
end
|
606
|
+
```
|
607
|
+
|
608
|
+
### Parameters
|
609
|
+
|
610
|
+
Name | Type | Description | Notes
|
611
|
+
------------- | ------------- | ------------- | -------------
|
612
|
+
**buyer_id** | **String**| ID of the buyer. |
|
613
|
+
**product_assignment** | [**CategoryProductAssignment**](CategoryProductAssignment.md)| |
|
614
|
+
|
615
|
+
### Return type
|
616
|
+
|
617
|
+
nil (empty response body)
|
618
|
+
|
619
|
+
### Authorization
|
620
|
+
|
621
|
+
[oauth2](../README.md#oauth2)
|
622
|
+
|
623
|
+
### HTTP request headers
|
624
|
+
|
625
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
626
|
+
- **Accept**: application/json
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
# **update**
|
631
|
+
> Category update(buyer_id, category_id, category)
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
### Example
|
636
|
+
```ruby
|
637
|
+
# load the gem
|
638
|
+
require 'order_cloud'
|
639
|
+
# setup authorization
|
640
|
+
OrderCloud.configure do |config|
|
641
|
+
# Configure OAuth2 access token for authorization: oauth2
|
642
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
643
|
+
end
|
644
|
+
|
645
|
+
api_instance = OrderCloud::CategoryApi.new
|
646
|
+
|
647
|
+
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
648
|
+
|
649
|
+
category_id = "category_id_example" # String | ID of the category.
|
650
|
+
|
651
|
+
category = OrderCloud::Category.new # Category |
|
652
|
+
|
653
|
+
|
654
|
+
begin
|
655
|
+
result = api_instance.update(buyer_id, category_id, category)
|
656
|
+
p result
|
657
|
+
rescue OrderCloud::ApiError => e
|
658
|
+
puts "Exception when calling CategoryApi->update: #{e}"
|
659
|
+
end
|
660
|
+
```
|
661
|
+
|
662
|
+
### Parameters
|
663
|
+
|
664
|
+
Name | Type | Description | Notes
|
665
|
+
------------- | ------------- | ------------- | -------------
|
666
|
+
**buyer_id** | **String**| ID of the buyer. |
|
667
|
+
**category_id** | **String**| ID of the category. |
|
668
|
+
**category** | [**Category**](Category.md)| |
|
669
|
+
|
670
|
+
### Return type
|
671
|
+
|
672
|
+
[**Category**](Category.md)
|
673
|
+
|
674
|
+
### Authorization
|
675
|
+
|
676
|
+
[oauth2](../README.md#oauth2)
|
677
|
+
|
678
|
+
### HTTP request headers
|
679
|
+
|
680
|
+
- **Content-Type**: application/json, text/plain; charset=utf-8
|
681
|
+
- **Accept**: application/json
|
682
|
+
|
683
|
+
|
684
|
+
|