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