order_cloud 0.0.6 → 1.0.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- metadata +45 -594
- data/Gemfile +0 -28
- data/Gemfile.lock +0 -34
- data/LICENSE +0 -201
- data/README.md +0 -498
- data/Rakefile +0 -31
- data/docs/AccessToken.md +0 -10
- data/docs/Address.md +0 -20
- data/docs/AddressApi.md +0 -520
- data/docs/AddressAssignment.md +0 -12
- data/docs/AdminAddressApi.md +0 -324
- data/docs/AdminCompany.md +0 -10
- data/docs/AdminModelOnView.md +0 -7
- data/docs/AdminUserApi.md +0 -323
- data/docs/AdminUserGroupApi.md +0 -482
- data/docs/ApprovalRule.md +0 -20
- data/docs/ApprovalRuleApi.md +0 -342
- data/docs/BaseSpec.md +0 -15
- data/docs/Buyer.md +0 -11
- data/docs/BuyerAddress.md +0 -11
- data/docs/BuyerApi.md +0 -324
- data/docs/BuyerCreditCard.md +0 -9
- data/docs/BuyerProduct.md +0 -9
- data/docs/BuyerSpec.md +0 -9
- data/docs/Category.md +0 -15
- data/docs/CategoryApi.md +0 -685
- data/docs/CategoryAssignment.md +0 -10
- data/docs/CategoryProductAssignment.md +0 -10
- data/docs/CostCenter.md +0 -11
- data/docs/CostCenterApi.md +0 -516
- data/docs/CostCenterAssignment.md +0 -10
- data/docs/CreditCard.md +0 -15
- data/docs/CreditCardApi.md +0 -516
- data/docs/CreditCardAssignment.md +0 -10
- data/docs/EmailTemplate.md +0 -12
- data/docs/EmailTemplateApi.md +0 -223
- data/docs/File.md +0 -10
- data/docs/ImpersonateTokenRequest.md +0 -9
- data/docs/Inventory.md +0 -12
- data/docs/LineItem.md +0 -23
- data/docs/LineItemApi.md +0 -478
- data/docs/LineItemSpec.md +0 -11
- data/docs/ListAddress.md +0 -9
- data/docs/ListAddressAssignment.md +0 -9
- data/docs/ListAdminCompany.md +0 -9
- data/docs/ListApprovalRule.md +0 -9
- data/docs/ListBuyer.md +0 -9
- data/docs/ListBuyerAddress.md +0 -9
- data/docs/ListBuyerCreditCard.md +0 -9
- data/docs/ListBuyerProduct.md +0 -9
- data/docs/ListBuyerSpec.md +0 -9
- data/docs/ListCategory.md +0 -9
- data/docs/ListCategoryAssignment.md +0 -9
- data/docs/ListCategoryProductAssignment.md +0 -9
- data/docs/ListCostCenter.md +0 -9
- data/docs/ListCostCenterAssignment.md +0 -9
- data/docs/ListCreditCard.md +0 -9
- data/docs/ListCreditCardAssignment.md +0 -9
- data/docs/ListFile.md +0 -9
- data/docs/ListInventory.md +0 -9
- data/docs/ListLineItem.md +0 -9
- data/docs/ListMessageCCListenerAssignment.md +0 -9
- data/docs/ListMessageConfig.md +0 -9
- data/docs/ListMessageSender.md +0 -9
- data/docs/ListMessageSenderAssignment.md +0 -9
- data/docs/ListOrder.md +0 -9
- data/docs/ListOrderApproval.md +0 -9
- data/docs/ListOrderPromotion.md +0 -9
- data/docs/ListPayment.md +0 -9
- data/docs/ListPriceSchedule.md +0 -9
- data/docs/ListProduct.md +0 -9
- data/docs/ListProductAssignment.md +0 -9
- data/docs/ListPromotion.md +0 -9
- data/docs/ListPromotionAssignment.md +0 -9
- data/docs/ListSecurityProfile.md +0 -9
- data/docs/ListSecurityProfileAssignment.md +0 -9
- data/docs/ListShipment.md +0 -9
- data/docs/ListSpec.md +0 -9
- data/docs/ListSpecOption.md +0 -9
- data/docs/ListSpecProductAssignment.md +0 -9
- data/docs/ListSpendingAccount.md +0 -9
- data/docs/ListSpendingAccountAssignment.md +0 -9
- data/docs/ListUser.md +0 -9
- data/docs/ListUserGroup.md +0 -9
- data/docs/ListUserGroupAssignment.md +0 -9
- data/docs/ListVariant.md +0 -9
- data/docs/ListWebHook.md +0 -9
- data/docs/ListWebHookRoute.md +0 -9
- data/docs/ListXpIndex.md +0 -9
- data/docs/MeApi.md +0 -1488
- data/docs/MessageCCListenerAssignment.md +0 -13
- data/docs/MessageConfig.md +0 -11
- data/docs/MessageSender.md +0 -10
- data/docs/MessageSenderAssignment.md +0 -12
- data/docs/MessageSendersApi.md +0 -398
- data/docs/Meta.md +0 -12
- data/docs/Order.md +0 -31
- data/docs/OrderApi.md +0 -1277
- data/docs/OrderApproval.md +0 -16
- data/docs/OrderPromotion.md +0 -8
- data/docs/PasswordReset.md +0 -10
- data/docs/PasswordResetApi.md +0 -109
- data/docs/PasswordResetRequest.md +0 -11
- data/docs/Payment.md +0 -16
- data/docs/PaymentApi.md +0 -601
- data/docs/PaymentTransaction.md +0 -15
- data/docs/PingResponse.md +0 -8
- data/docs/PriceBreak.md +0 -9
- data/docs/PriceSchedule.md +0 -18
- data/docs/PriceScheduleApi.md +0 -429
- data/docs/Product.md +0 -26
- data/docs/ProductApi.md +0 -1116
- data/docs/ProductAssignment.md +0 -13
- data/docs/Promotion.md +0 -21
- data/docs/PromotionApi.md +0 -495
- data/docs/PromotionAssignment.md +0 -11
- data/docs/SecurityProfile.md +0 -11
- data/docs/SecurityProfileApi.md +0 -290
- data/docs/SecurityProfileAssignment.md +0 -11
- data/docs/Shipment.md +0 -14
- data/docs/ShipmentApi.md +0 -459
- data/docs/ShipmentItem.md +0 -10
- data/docs/Spec.md +0 -8
- data/docs/SpecApi.md +0 -816
- data/docs/SpecOption.md +0 -14
- data/docs/SpecProductAssignment.md +0 -10
- data/docs/SpendingAccount.md +0 -15
- data/docs/SpendingAccountApi.md +0 -516
- data/docs/SpendingAccountAssignment.md +0 -11
- data/docs/User.md +0 -18
- data/docs/UserApi.md +0 -400
- data/docs/UserGroup.md +0 -11
- data/docs/UserGroupApi.md +0 -509
- data/docs/UserGroupAssignment.md +0 -9
- data/docs/Variant.md +0 -12
- data/docs/WebHook.md +0 -18
- data/docs/WebHookRoute.md +0 -10
- data/docs/XpIndex.md +0 -9
- data/git_push.sh +0 -67
- data/lib/order_cloud.rb +0 -183
- data/lib/order_cloud/api/address_api.rb +0 -628
- data/lib/order_cloud/api/admin_address_api.rb +0 -397
- data/lib/order_cloud/api/admin_user_api.rb +0 -396
- data/lib/order_cloud/api/admin_user_group_api.rb +0 -578
- data/lib/order_cloud/api/approval_rule_api.rb +0 -421
- data/lib/order_cloud/api/buyer_api.rb +0 -397
- data/lib/order_cloud/api/category_api.rb +0 -818
- data/lib/order_cloud/api/cost_center_api.rb +0 -622
- data/lib/order_cloud/api/credit_card_api.rb +0 -622
- data/lib/order_cloud/api/email_template_api.rb +0 -283
- data/lib/order_cloud/api/line_item_api.rb +0 -583
- data/lib/order_cloud/api/me_api.rb +0 -1747
- data/lib/order_cloud/api/message_senders_api.rb +0 -484
- data/lib/order_cloud/api/order_api.rb +0 -1509
- data/lib/order_cloud/api/password_reset_api.rb +0 -150
- data/lib/order_cloud/api/payment_api.rb +0 -728
- data/lib/order_cloud/api/price_schedule_api.rb +0 -519
- data/lib/order_cloud/api/product_api.rb +0 -1312
- data/lib/order_cloud/api/promotion_api.rb +0 -596
- data/lib/order_cloud/api/security_profile_api.rb +0 -361
- data/lib/order_cloud/api/shipment_api.rb +0 -558
- data/lib/order_cloud/api/spec_api.rb +0 -965
- data/lib/order_cloud/api/spending_account_api.rb +0 -622
- data/lib/order_cloud/api/user_api.rb +0 -489
- data/lib/order_cloud/api/user_group_api.rb +0 -614
- data/lib/order_cloud/api_auth.rb +0 -108
- data/lib/order_cloud/api_client.rb +0 -385
- data/lib/order_cloud/api_error.rb +0 -47
- data/lib/order_cloud/configuration.rb +0 -245
- data/lib/order_cloud/models/access_token.rb +0 -217
- data/lib/order_cloud/models/address.rb +0 -307
- data/lib/order_cloud/models/address_assignment.rb +0 -235
- data/lib/order_cloud/models/admin_company.rb +0 -217
- data/lib/order_cloud/models/admin_model_on_view.rb +0 -190
- data/lib/order_cloud/models/approval_rule.rb +0 -307
- data/lib/order_cloud/models/base_spec.rb +0 -262
- data/lib/order_cloud/models/buyer.rb +0 -226
- data/lib/order_cloud/models/buyer_address.rb +0 -226
- data/lib/order_cloud/models/buyer_credit_card.rb +0 -208
- data/lib/order_cloud/models/buyer_product.rb +0 -208
- data/lib/order_cloud/models/buyer_spec.rb +0 -210
- data/lib/order_cloud/models/category.rb +0 -262
- data/lib/order_cloud/models/category_assignment.rb +0 -217
- data/lib/order_cloud/models/category_product_assignment.rb +0 -217
- data/lib/order_cloud/models/cost_center.rb +0 -226
- data/lib/order_cloud/models/cost_center_assignment.rb +0 -217
- data/lib/order_cloud/models/credit_card.rb +0 -262
- data/lib/order_cloud/models/credit_card_assignment.rb +0 -217
- data/lib/order_cloud/models/email_template.rb +0 -235
- data/lib/order_cloud/models/file.rb +0 -217
- data/lib/order_cloud/models/impersonate_token_request.rb +0 -208
- data/lib/order_cloud/models/inventory.rb +0 -235
- data/lib/order_cloud/models/line_item.rb +0 -336
- data/lib/order_cloud/models/line_item_spec.rb +0 -226
- data/lib/order_cloud/models/list_address.rb +0 -210
- data/lib/order_cloud/models/list_address_assignment.rb +0 -210
- data/lib/order_cloud/models/list_admin_company.rb +0 -210
- data/lib/order_cloud/models/list_approval_rule.rb +0 -210
- data/lib/order_cloud/models/list_buyer.rb +0 -210
- data/lib/order_cloud/models/list_buyer_address.rb +0 -210
- data/lib/order_cloud/models/list_buyer_credit_card.rb +0 -210
- data/lib/order_cloud/models/list_buyer_product.rb +0 -210
- data/lib/order_cloud/models/list_buyer_spec.rb +0 -210
- data/lib/order_cloud/models/list_category.rb +0 -210
- data/lib/order_cloud/models/list_category_assignment.rb +0 -210
- data/lib/order_cloud/models/list_category_product_assignment.rb +0 -210
- data/lib/order_cloud/models/list_cost_center.rb +0 -210
- data/lib/order_cloud/models/list_cost_center_assignment.rb +0 -210
- data/lib/order_cloud/models/list_credit_card.rb +0 -210
- data/lib/order_cloud/models/list_credit_card_assignment.rb +0 -210
- data/lib/order_cloud/models/list_file.rb +0 -210
- data/lib/order_cloud/models/list_inventory.rb +0 -210
- data/lib/order_cloud/models/list_line_item.rb +0 -210
- data/lib/order_cloud/models/list_message_cc_listener_assignment.rb +0 -210
- data/lib/order_cloud/models/list_message_config.rb +0 -210
- data/lib/order_cloud/models/list_message_sender.rb +0 -210
- data/lib/order_cloud/models/list_message_sender_assignment.rb +0 -210
- data/lib/order_cloud/models/list_order.rb +0 -210
- data/lib/order_cloud/models/list_order_approval.rb +0 -210
- data/lib/order_cloud/models/list_order_promotion.rb +0 -210
- data/lib/order_cloud/models/list_payment.rb +0 -210
- data/lib/order_cloud/models/list_price_schedule.rb +0 -210
- data/lib/order_cloud/models/list_product.rb +0 -210
- data/lib/order_cloud/models/list_product_assignment.rb +0 -210
- data/lib/order_cloud/models/list_promotion.rb +0 -210
- data/lib/order_cloud/models/list_promotion_assignment.rb +0 -210
- data/lib/order_cloud/models/list_security_profile.rb +0 -210
- data/lib/order_cloud/models/list_security_profile_assignment.rb +0 -210
- data/lib/order_cloud/models/list_shipment.rb +0 -210
- data/lib/order_cloud/models/list_spec.rb +0 -210
- data/lib/order_cloud/models/list_spec_option.rb +0 -210
- data/lib/order_cloud/models/list_spec_product_assignment.rb +0 -210
- data/lib/order_cloud/models/list_spending_account.rb +0 -210
- data/lib/order_cloud/models/list_spending_account_assignment.rb +0 -210
- data/lib/order_cloud/models/list_user.rb +0 -210
- data/lib/order_cloud/models/list_user_group.rb +0 -210
- data/lib/order_cloud/models/list_user_group_assignment.rb +0 -210
- data/lib/order_cloud/models/list_variant.rb +0 -210
- data/lib/order_cloud/models/list_web_hook.rb +0 -210
- data/lib/order_cloud/models/list_web_hook_route.rb +0 -210
- data/lib/order_cloud/models/list_xp_index.rb +0 -210
- data/lib/order_cloud/models/message_cc_listener_assignment.rb +0 -244
- data/lib/order_cloud/models/message_config.rb +0 -226
- data/lib/order_cloud/models/message_sender.rb +0 -217
- data/lib/order_cloud/models/message_sender_assignment.rb +0 -235
- data/lib/order_cloud/models/meta.rb +0 -237
- data/lib/order_cloud/models/order.rb +0 -406
- data/lib/order_cloud/models/order_approval.rb +0 -271
- data/lib/order_cloud/models/order_promotion.rb +0 -199
- data/lib/order_cloud/models/password_reset.rb +0 -217
- data/lib/order_cloud/models/password_reset_request.rb +0 -226
- data/lib/order_cloud/models/payment.rb +0 -273
- data/lib/order_cloud/models/payment_transaction.rb +0 -262
- data/lib/order_cloud/models/ping_response.rb +0 -199
- data/lib/order_cloud/models/price_break.rb +0 -208
- data/lib/order_cloud/models/price_schedule.rb +0 -291
- data/lib/order_cloud/models/product.rb +0 -361
- data/lib/order_cloud/models/product_assignment.rb +0 -244
- data/lib/order_cloud/models/promotion.rb +0 -316
- data/lib/order_cloud/models/promotion_assignment.rb +0 -226
- data/lib/order_cloud/models/security_profile.rb +0 -228
- data/lib/order_cloud/models/security_profile_assignment.rb +0 -226
- data/lib/order_cloud/models/shipment.rb +0 -255
- data/lib/order_cloud/models/shipment_item.rb +0 -217
- data/lib/order_cloud/models/spec.rb +0 -199
- data/lib/order_cloud/models/spec_option.rb +0 -253
- data/lib/order_cloud/models/spec_product_assignment.rb +0 -217
- data/lib/order_cloud/models/spending_account.rb +0 -262
- data/lib/order_cloud/models/spending_account_assignment.rb +0 -226
- data/lib/order_cloud/models/user.rb +0 -291
- data/lib/order_cloud/models/user_group.rb +0 -226
- data/lib/order_cloud/models/user_group_assignment.rb +0 -208
- data/lib/order_cloud/models/variant.rb +0 -235
- data/lib/order_cloud/models/web_hook.rb +0 -289
- data/lib/order_cloud/models/web_hook_route.rb +0 -217
- data/lib/order_cloud/models/xp_index.rb +0 -208
- data/lib/order_cloud/version.rb +0 -26
- data/order_cloud.gemspec +0 -56
- data/spec/api/address_api_spec.rb +0 -179
- data/spec/api/admin_address_api_spec.rb +0 -125
- data/spec/api/admin_user_api_spec.rb +0 -125
- data/spec/api/admin_user_group_api_spec.rb +0 -165
- data/spec/api/approval_rule_api_spec.rb +0 -131
- data/spec/api/buyer_api_spec.rb +0 -125
- data/spec/api/category_api_spec.rb +0 -221
- data/spec/api/cost_center_api_spec.rb +0 -177
- data/spec/api/credit_card_api_spec.rb +0 -177
- data/spec/api/email_template_api_spec.rb +0 -100
- data/spec/api/line_item_api_spec.rb +0 -167
- data/spec/api/me_api_spec.rb +0 -431
- data/spec/api/message_senders_api_spec.rb +0 -149
- data/spec/api/order_api_spec.rb +0 -375
- data/spec/api/password_reset_api_spec.rb +0 -71
- data/spec/api/payment_api_spec.rb +0 -199
- data/spec/api/price_schedule_api_spec.rb +0 -151
- data/spec/api/product_api_spec.rb +0 -330
- data/spec/api/promotion_api_spec.rb +0 -170
- data/spec/api/security_profile_api_spec.rb +0 -120
- data/spec/api/shipment_api_spec.rb +0 -161
- data/spec/api/spec_api_spec.rb +0 -250
- data/spec/api/spending_account_api_spec.rb +0 -177
- data/spec/api/user_api_spec.rb +0 -146
- data/spec/api/user_group_api_spec.rb +0 -174
- data/spec/api_auth_spec.rb +0 -165
- data/spec/api_client_spec.rb +0 -237
- data/spec/configuration_spec.rb +0 -80
- data/spec/models/access_token_spec.rb +0 -65
- data/spec/models/address_assignment_spec.rb +0 -77
- data/spec/models/address_spec.rb +0 -125
- data/spec/models/admin_company_spec.rb +0 -65
- data/spec/models/admin_model_on_view_spec.rb +0 -47
- data/spec/models/approval_rule_spec.rb +0 -125
- data/spec/models/base_spec_spec.rb +0 -95
- data/spec/models/buyer_address_spec.rb +0 -71
- data/spec/models/buyer_credit_card_spec.rb +0 -59
- data/spec/models/buyer_product_spec.rb +0 -59
- data/spec/models/buyer_spec.rb +0 -71
- data/spec/models/buyer_spec_spec.rb +0 -59
- data/spec/models/category_assignment_spec.rb +0 -65
- data/spec/models/category_product_assignment_spec.rb +0 -65
- data/spec/models/category_spec.rb +0 -95
- data/spec/models/cost_center_assignment_spec.rb +0 -65
- data/spec/models/cost_center_spec.rb +0 -71
- data/spec/models/credit_card_assignment_spec.rb +0 -65
- data/spec/models/credit_card_spec.rb +0 -95
- data/spec/models/email_template_spec.rb +0 -77
- data/spec/models/file_spec.rb +0 -65
- data/spec/models/impersonate_token_request_spec.rb +0 -59
- data/spec/models/inventory_spec.rb +0 -77
- data/spec/models/line_item_spec.rb +0 -143
- data/spec/models/line_item_spec_spec.rb +0 -71
- data/spec/models/list_address_assignment_spec.rb +0 -59
- data/spec/models/list_address_spec.rb +0 -59
- data/spec/models/list_admin_company_spec.rb +0 -59
- data/spec/models/list_approval_rule_spec.rb +0 -59
- data/spec/models/list_buyer_address_spec.rb +0 -59
- data/spec/models/list_buyer_credit_card_spec.rb +0 -59
- data/spec/models/list_buyer_product_spec.rb +0 -59
- data/spec/models/list_buyer_spec.rb +0 -59
- data/spec/models/list_buyer_spec_spec.rb +0 -59
- data/spec/models/list_category_assignment_spec.rb +0 -59
- data/spec/models/list_category_product_assignment_spec.rb +0 -59
- data/spec/models/list_category_spec.rb +0 -59
- data/spec/models/list_cost_center_assignment_spec.rb +0 -59
- data/spec/models/list_cost_center_spec.rb +0 -59
- data/spec/models/list_credit_card_assignment_spec.rb +0 -59
- data/spec/models/list_credit_card_spec.rb +0 -59
- data/spec/models/list_file_spec.rb +0 -59
- data/spec/models/list_inventory_spec.rb +0 -59
- data/spec/models/list_line_item_spec.rb +0 -59
- data/spec/models/list_message_cc_listener_assignment_spec.rb +0 -59
- data/spec/models/list_message_config_spec.rb +0 -59
- data/spec/models/list_message_sender_assignment_spec.rb +0 -59
- data/spec/models/list_message_sender_spec.rb +0 -59
- data/spec/models/list_order_approval_spec.rb +0 -59
- data/spec/models/list_order_promotion_spec.rb +0 -59
- data/spec/models/list_order_spec.rb +0 -59
- data/spec/models/list_payment_spec.rb +0 -59
- data/spec/models/list_price_schedule_spec.rb +0 -59
- data/spec/models/list_product_assignment_spec.rb +0 -59
- data/spec/models/list_product_spec.rb +0 -59
- data/spec/models/list_promotion_assignment_spec.rb +0 -59
- data/spec/models/list_promotion_spec.rb +0 -59
- data/spec/models/list_security_profile_assignment_spec.rb +0 -59
- data/spec/models/list_security_profile_spec.rb +0 -59
- data/spec/models/list_shipment_spec.rb +0 -59
- data/spec/models/list_spec_option_spec.rb +0 -59
- data/spec/models/list_spec_product_assignment_spec.rb +0 -59
- data/spec/models/list_spec_spec.rb +0 -59
- data/spec/models/list_spending_account_assignment_spec.rb +0 -59
- data/spec/models/list_spending_account_spec.rb +0 -59
- data/spec/models/list_user_group_assignment_spec.rb +0 -59
- data/spec/models/list_user_group_spec.rb +0 -59
- data/spec/models/list_user_spec.rb +0 -59
- data/spec/models/list_variant_spec.rb +0 -59
- data/spec/models/list_web_hook_route_spec.rb +0 -59
- data/spec/models/list_web_hook_spec.rb +0 -59
- data/spec/models/list_xp_index_spec.rb +0 -59
- data/spec/models/message_cc_listener_assignment_spec.rb +0 -83
- data/spec/models/message_config_spec.rb +0 -71
- data/spec/models/message_sender_assignment_spec.rb +0 -77
- data/spec/models/message_sender_spec.rb +0 -65
- data/spec/models/meta_spec.rb +0 -77
- data/spec/models/order_approval_spec.rb +0 -101
- data/spec/models/order_promotion_spec.rb +0 -53
- data/spec/models/order_spec.rb +0 -191
- data/spec/models/password_reset_request_spec.rb +0 -71
- data/spec/models/password_reset_spec.rb +0 -65
- data/spec/models/payment_spec.rb +0 -101
- data/spec/models/payment_transaction_spec.rb +0 -95
- data/spec/models/ping_response_spec.rb +0 -53
- data/spec/models/price_break_spec.rb +0 -59
- data/spec/models/price_schedule_spec.rb +0 -113
- data/spec/models/product_assignment_spec.rb +0 -83
- data/spec/models/product_spec.rb +0 -161
- data/spec/models/promotion_assignment_spec.rb +0 -71
- data/spec/models/promotion_spec.rb +0 -131
- data/spec/models/security_profile_assignment_spec.rb +0 -71
- data/spec/models/security_profile_spec.rb +0 -71
- data/spec/models/shipment_item_spec.rb +0 -65
- data/spec/models/shipment_spec.rb +0 -89
- data/spec/models/spec_option_spec.rb +0 -89
- data/spec/models/spec_product_assignment_spec.rb +0 -65
- data/spec/models/spec_spec.rb +0 -53
- data/spec/models/spending_account_assignment_spec.rb +0 -71
- data/spec/models/spending_account_spec.rb +0 -95
- data/spec/models/user_group_assignment_spec.rb +0 -59
- data/spec/models/user_group_spec.rb +0 -71
- data/spec/models/user_spec.rb +0 -113
- data/spec/models/variant_spec.rb +0 -77
- data/spec/models/web_hook_route_spec.rb +0 -65
- data/spec/models/web_hook_spec.rb +0 -113
- data/spec/models/xp_index_spec.rb +0 -59
- data/spec/spec_helper.rb +0 -122
data/docs/Product.md
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# OrderCloud::Product
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **String** | | [optional]
|
7
|
-
**name** | **String** | | [optional]
|
8
|
-
**description** | **String** | | [optional]
|
9
|
-
**quantity_multiplier** | **Integer** | | [optional]
|
10
|
-
**ship_weight** | **Float** | | [optional]
|
11
|
-
**ship_height** | **Float** | | [optional]
|
12
|
-
**ship_width** | **Float** | | [optional]
|
13
|
-
**ship_length** | **Float** | | [optional]
|
14
|
-
**active** | **BOOLEAN** | | [optional]
|
15
|
-
**type** | **String** | | [optional]
|
16
|
-
**inventory_enabled** | **BOOLEAN** | | [optional]
|
17
|
-
**inventory_notification_point** | **Integer** | | [optional]
|
18
|
-
**variant_level_inventory** | **BOOLEAN** | | [optional]
|
19
|
-
**spec_count** | **Integer** | | [optional]
|
20
|
-
**xp** | **Object** | | [optional]
|
21
|
-
**allow_order_exceed_inventory** | **BOOLEAN** | | [optional]
|
22
|
-
**inventory_visible** | **BOOLEAN** | | [optional]
|
23
|
-
**variant_count** | **Integer** | | [optional]
|
24
|
-
**ship_from_address_id** | **String** | | [optional]
|
25
|
-
|
26
|
-
|
data/docs/ProductApi.md
DELETED
@@ -1,1116 +0,0 @@
|
|
1
|
-
# OrderCloud::ProductApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.ordercloud.io/v1*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**create**](ProductApi.md#create) | **POST** /products |
|
8
|
-
[**delete**](ProductApi.md#delete) | **DELETE** /products/{productID} |
|
9
|
-
[**delete_assignment**](ProductApi.md#delete_assignment) | **DELETE** /products/{productID}/assignments/{buyerID} |
|
10
|
-
[**generate_variants**](ProductApi.md#generate_variants) | **POST** /products/{productID}/variants/generate |
|
11
|
-
[**get**](ProductApi.md#get) | **GET** /products/{productID} |
|
12
|
-
[**get_inventory**](ProductApi.md#get_inventory) | **GET** /products/{productID}/inventory |
|
13
|
-
[**get_variant**](ProductApi.md#get_variant) | **GET** /products/{productID}/variants/{variantID} |
|
14
|
-
[**get_variant_inventory**](ProductApi.md#get_variant_inventory) | **GET** /products/{productID}/variants/inventory/{variantID} |
|
15
|
-
[**list**](ProductApi.md#list) | **GET** /products |
|
16
|
-
[**list_assignments**](ProductApi.md#list_assignments) | **GET** /products/assignments |
|
17
|
-
[**list_inventory**](ProductApi.md#list_inventory) | **GET** /products/inventory |
|
18
|
-
[**list_variant_inventory**](ProductApi.md#list_variant_inventory) | **GET** /products/{productID}/variants/inventory |
|
19
|
-
[**list_variants**](ProductApi.md#list_variants) | **GET** /products/{productID}/variants |
|
20
|
-
[**patch**](ProductApi.md#patch) | **PATCH** /products/{productID} |
|
21
|
-
[**patch_variant**](ProductApi.md#patch_variant) | **PATCH** /products/{productID}/variants/{variantID} |
|
22
|
-
[**save_assignment**](ProductApi.md#save_assignment) | **POST** /products/assignments |
|
23
|
-
[**update**](ProductApi.md#update) | **PUT** /products/{productID} |
|
24
|
-
[**update_inventory**](ProductApi.md#update_inventory) | **PUT** /products/{productID}/inventory/{inventory} |
|
25
|
-
[**update_variant**](ProductApi.md#update_variant) | **PUT** /products/{productID}/variants/{variantID} |
|
26
|
-
[**update_variant_inventory**](ProductApi.md#update_variant_inventory) | **PUT** /products/{productID}/variants/inventory/{variantID}/{inventory} |
|
27
|
-
|
28
|
-
|
29
|
-
# **create**
|
30
|
-
> Product create(product)
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
### Example
|
35
|
-
```ruby
|
36
|
-
# load the gem
|
37
|
-
require 'order_cloud'
|
38
|
-
# setup authorization
|
39
|
-
OrderCloud.configure do |config|
|
40
|
-
# Configure OAuth2 access token for authorization: oauth2
|
41
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
42
|
-
end
|
43
|
-
|
44
|
-
api_instance = OrderCloud::ProductApi.new
|
45
|
-
|
46
|
-
product = OrderCloud::Product.new # Product |
|
47
|
-
|
48
|
-
|
49
|
-
begin
|
50
|
-
result = api_instance.create(product)
|
51
|
-
p result
|
52
|
-
rescue OrderCloud::ApiError => e
|
53
|
-
puts "Exception when calling ProductApi->create: #{e}"
|
54
|
-
end
|
55
|
-
```
|
56
|
-
|
57
|
-
### Parameters
|
58
|
-
|
59
|
-
Name | Type | Description | Notes
|
60
|
-
------------- | ------------- | ------------- | -------------
|
61
|
-
**product** | [**Product**](Product.md)| |
|
62
|
-
|
63
|
-
### Return type
|
64
|
-
|
65
|
-
[**Product**](Product.md)
|
66
|
-
|
67
|
-
### Authorization
|
68
|
-
|
69
|
-
[oauth2](../README.md#oauth2)
|
70
|
-
|
71
|
-
### HTTP request headers
|
72
|
-
|
73
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
74
|
-
- **Accept**: application/json
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
# **delete**
|
79
|
-
> delete(product_id)
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
### Example
|
84
|
-
```ruby
|
85
|
-
# load the gem
|
86
|
-
require 'order_cloud'
|
87
|
-
# setup authorization
|
88
|
-
OrderCloud.configure do |config|
|
89
|
-
# Configure OAuth2 access token for authorization: oauth2
|
90
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
91
|
-
end
|
92
|
-
|
93
|
-
api_instance = OrderCloud::ProductApi.new
|
94
|
-
|
95
|
-
product_id = "product_id_example" # String | ID of the product.
|
96
|
-
|
97
|
-
|
98
|
-
begin
|
99
|
-
api_instance.delete(product_id)
|
100
|
-
rescue OrderCloud::ApiError => e
|
101
|
-
puts "Exception when calling ProductApi->delete: #{e}"
|
102
|
-
end
|
103
|
-
```
|
104
|
-
|
105
|
-
### Parameters
|
106
|
-
|
107
|
-
Name | Type | Description | Notes
|
108
|
-
------------- | ------------- | ------------- | -------------
|
109
|
-
**product_id** | **String**| ID of the product. |
|
110
|
-
|
111
|
-
### Return type
|
112
|
-
|
113
|
-
nil (empty response body)
|
114
|
-
|
115
|
-
### Authorization
|
116
|
-
|
117
|
-
[oauth2](../README.md#oauth2)
|
118
|
-
|
119
|
-
### HTTP request headers
|
120
|
-
|
121
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
122
|
-
- **Accept**: application/json
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
# **delete_assignment**
|
127
|
-
> delete_assignment(buyer_id, product_id, opts)
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
### Example
|
132
|
-
```ruby
|
133
|
-
# load the gem
|
134
|
-
require 'order_cloud'
|
135
|
-
# setup authorization
|
136
|
-
OrderCloud.configure do |config|
|
137
|
-
# Configure OAuth2 access token for authorization: oauth2
|
138
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
139
|
-
end
|
140
|
-
|
141
|
-
api_instance = OrderCloud::ProductApi.new
|
142
|
-
|
143
|
-
buyer_id = "buyer_id_example" # String | ID of the buyer.
|
144
|
-
|
145
|
-
product_id = "product_id_example" # String | ID of the product.
|
146
|
-
|
147
|
-
opts = {
|
148
|
-
user_id: "user_id_example", # String | ID of the user.
|
149
|
-
user_group_id: "user_group_id_example" # String | ID of the user group.
|
150
|
-
}
|
151
|
-
|
152
|
-
begin
|
153
|
-
api_instance.delete_assignment(buyer_id, product_id, opts)
|
154
|
-
rescue OrderCloud::ApiError => e
|
155
|
-
puts "Exception when calling ProductApi->delete_assignment: #{e}"
|
156
|
-
end
|
157
|
-
```
|
158
|
-
|
159
|
-
### Parameters
|
160
|
-
|
161
|
-
Name | Type | Description | Notes
|
162
|
-
------------- | ------------- | ------------- | -------------
|
163
|
-
**buyer_id** | **String**| ID of the buyer. |
|
164
|
-
**product_id** | **String**| ID of the product. |
|
165
|
-
**user_id** | **String**| ID of the user. | [optional]
|
166
|
-
**user_group_id** | **String**| ID of the user group. | [optional]
|
167
|
-
|
168
|
-
### Return type
|
169
|
-
|
170
|
-
nil (empty response body)
|
171
|
-
|
172
|
-
### Authorization
|
173
|
-
|
174
|
-
[oauth2](../README.md#oauth2)
|
175
|
-
|
176
|
-
### HTTP request headers
|
177
|
-
|
178
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
179
|
-
- **Accept**: application/json
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
# **generate_variants**
|
184
|
-
> Product generate_variants(product_id, opts)
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
### Example
|
189
|
-
```ruby
|
190
|
-
# load the gem
|
191
|
-
require 'order_cloud'
|
192
|
-
# setup authorization
|
193
|
-
OrderCloud.configure do |config|
|
194
|
-
# Configure OAuth2 access token for authorization: oauth2
|
195
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
196
|
-
end
|
197
|
-
|
198
|
-
api_instance = OrderCloud::ProductApi.new
|
199
|
-
|
200
|
-
product_id = "product_id_example" # String | ID of the product.
|
201
|
-
|
202
|
-
opts = {
|
203
|
-
overwrite_existing: true # BOOLEAN | Overwrite existing of the product.
|
204
|
-
}
|
205
|
-
|
206
|
-
begin
|
207
|
-
result = api_instance.generate_variants(product_id, opts)
|
208
|
-
p result
|
209
|
-
rescue OrderCloud::ApiError => e
|
210
|
-
puts "Exception when calling ProductApi->generate_variants: #{e}"
|
211
|
-
end
|
212
|
-
```
|
213
|
-
|
214
|
-
### Parameters
|
215
|
-
|
216
|
-
Name | Type | Description | Notes
|
217
|
-
------------- | ------------- | ------------- | -------------
|
218
|
-
**product_id** | **String**| ID of the product. |
|
219
|
-
**overwrite_existing** | **BOOLEAN**| Overwrite existing of the product. | [optional]
|
220
|
-
|
221
|
-
### Return type
|
222
|
-
|
223
|
-
[**Product**](Product.md)
|
224
|
-
|
225
|
-
### Authorization
|
226
|
-
|
227
|
-
[oauth2](../README.md#oauth2)
|
228
|
-
|
229
|
-
### HTTP request headers
|
230
|
-
|
231
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
232
|
-
- **Accept**: application/json
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
# **get**
|
237
|
-
> Product get(product_id)
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
### Example
|
242
|
-
```ruby
|
243
|
-
# load the gem
|
244
|
-
require 'order_cloud'
|
245
|
-
# setup authorization
|
246
|
-
OrderCloud.configure do |config|
|
247
|
-
# Configure OAuth2 access token for authorization: oauth2
|
248
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
249
|
-
end
|
250
|
-
|
251
|
-
api_instance = OrderCloud::ProductApi.new
|
252
|
-
|
253
|
-
product_id = "product_id_example" # String | ID of the product.
|
254
|
-
|
255
|
-
|
256
|
-
begin
|
257
|
-
result = api_instance.get(product_id)
|
258
|
-
p result
|
259
|
-
rescue OrderCloud::ApiError => e
|
260
|
-
puts "Exception when calling ProductApi->get: #{e}"
|
261
|
-
end
|
262
|
-
```
|
263
|
-
|
264
|
-
### Parameters
|
265
|
-
|
266
|
-
Name | Type | Description | Notes
|
267
|
-
------------- | ------------- | ------------- | -------------
|
268
|
-
**product_id** | **String**| ID of the product. |
|
269
|
-
|
270
|
-
### Return type
|
271
|
-
|
272
|
-
[**Product**](Product.md)
|
273
|
-
|
274
|
-
### Authorization
|
275
|
-
|
276
|
-
[oauth2](../README.md#oauth2)
|
277
|
-
|
278
|
-
### HTTP request headers
|
279
|
-
|
280
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
281
|
-
- **Accept**: application/json
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
# **get_inventory**
|
286
|
-
> Inventory get_inventory(product_id)
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
### Example
|
291
|
-
```ruby
|
292
|
-
# load the gem
|
293
|
-
require 'order_cloud'
|
294
|
-
# setup authorization
|
295
|
-
OrderCloud.configure do |config|
|
296
|
-
# Configure OAuth2 access token for authorization: oauth2
|
297
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
298
|
-
end
|
299
|
-
|
300
|
-
api_instance = OrderCloud::ProductApi.new
|
301
|
-
|
302
|
-
product_id = "product_id_example" # String | ID of the product.
|
303
|
-
|
304
|
-
|
305
|
-
begin
|
306
|
-
result = api_instance.get_inventory(product_id)
|
307
|
-
p result
|
308
|
-
rescue OrderCloud::ApiError => e
|
309
|
-
puts "Exception when calling ProductApi->get_inventory: #{e}"
|
310
|
-
end
|
311
|
-
```
|
312
|
-
|
313
|
-
### Parameters
|
314
|
-
|
315
|
-
Name | Type | Description | Notes
|
316
|
-
------------- | ------------- | ------------- | -------------
|
317
|
-
**product_id** | **String**| ID of the product. |
|
318
|
-
|
319
|
-
### Return type
|
320
|
-
|
321
|
-
[**Inventory**](Inventory.md)
|
322
|
-
|
323
|
-
### Authorization
|
324
|
-
|
325
|
-
[oauth2](../README.md#oauth2)
|
326
|
-
|
327
|
-
### HTTP request headers
|
328
|
-
|
329
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
330
|
-
- **Accept**: application/json
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
# **get_variant**
|
335
|
-
> Variant get_variant(product_id, variant_id)
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
### Example
|
340
|
-
```ruby
|
341
|
-
# load the gem
|
342
|
-
require 'order_cloud'
|
343
|
-
# setup authorization
|
344
|
-
OrderCloud.configure do |config|
|
345
|
-
# Configure OAuth2 access token for authorization: oauth2
|
346
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
347
|
-
end
|
348
|
-
|
349
|
-
api_instance = OrderCloud::ProductApi.new
|
350
|
-
|
351
|
-
product_id = "product_id_example" # String | ID of the product.
|
352
|
-
|
353
|
-
variant_id = "variant_id_example" # String | ID of the variant.
|
354
|
-
|
355
|
-
|
356
|
-
begin
|
357
|
-
result = api_instance.get_variant(product_id, variant_id)
|
358
|
-
p result
|
359
|
-
rescue OrderCloud::ApiError => e
|
360
|
-
puts "Exception when calling ProductApi->get_variant: #{e}"
|
361
|
-
end
|
362
|
-
```
|
363
|
-
|
364
|
-
### Parameters
|
365
|
-
|
366
|
-
Name | Type | Description | Notes
|
367
|
-
------------- | ------------- | ------------- | -------------
|
368
|
-
**product_id** | **String**| ID of the product. |
|
369
|
-
**variant_id** | **String**| ID of the variant. |
|
370
|
-
|
371
|
-
### Return type
|
372
|
-
|
373
|
-
[**Variant**](Variant.md)
|
374
|
-
|
375
|
-
### Authorization
|
376
|
-
|
377
|
-
[oauth2](../README.md#oauth2)
|
378
|
-
|
379
|
-
### HTTP request headers
|
380
|
-
|
381
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
382
|
-
- **Accept**: application/json
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
# **get_variant_inventory**
|
387
|
-
> Inventory get_variant_inventory(product_id, variant_id)
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
### Example
|
392
|
-
```ruby
|
393
|
-
# load the gem
|
394
|
-
require 'order_cloud'
|
395
|
-
# setup authorization
|
396
|
-
OrderCloud.configure do |config|
|
397
|
-
# Configure OAuth2 access token for authorization: oauth2
|
398
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
399
|
-
end
|
400
|
-
|
401
|
-
api_instance = OrderCloud::ProductApi.new
|
402
|
-
|
403
|
-
product_id = "product_id_example" # String | ID of the product.
|
404
|
-
|
405
|
-
variant_id = "variant_id_example" # String | ID of the variant.
|
406
|
-
|
407
|
-
|
408
|
-
begin
|
409
|
-
result = api_instance.get_variant_inventory(product_id, variant_id)
|
410
|
-
p result
|
411
|
-
rescue OrderCloud::ApiError => e
|
412
|
-
puts "Exception when calling ProductApi->get_variant_inventory: #{e}"
|
413
|
-
end
|
414
|
-
```
|
415
|
-
|
416
|
-
### Parameters
|
417
|
-
|
418
|
-
Name | Type | Description | Notes
|
419
|
-
------------- | ------------- | ------------- | -------------
|
420
|
-
**product_id** | **String**| ID of the product. |
|
421
|
-
**variant_id** | **String**| ID of the variant. |
|
422
|
-
|
423
|
-
### Return type
|
424
|
-
|
425
|
-
[**Inventory**](Inventory.md)
|
426
|
-
|
427
|
-
### Authorization
|
428
|
-
|
429
|
-
[oauth2](../README.md#oauth2)
|
430
|
-
|
431
|
-
### HTTP request headers
|
432
|
-
|
433
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
434
|
-
- **Accept**: application/json
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
# **list**
|
439
|
-
> ListProduct list(opts)
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
### Example
|
444
|
-
```ruby
|
445
|
-
# load the gem
|
446
|
-
require 'order_cloud'
|
447
|
-
# setup authorization
|
448
|
-
OrderCloud.configure do |config|
|
449
|
-
# Configure OAuth2 access token for authorization: oauth2
|
450
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
451
|
-
end
|
452
|
-
|
453
|
-
api_instance = OrderCloud::ProductApi.new
|
454
|
-
|
455
|
-
opts = {
|
456
|
-
search: "search_example", # String | Word or phrase to search for.
|
457
|
-
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
458
|
-
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
459
|
-
page: 56, # Integer | Page of results to return. Default: 1
|
460
|
-
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
461
|
-
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.???'
|
462
|
-
}
|
463
|
-
|
464
|
-
begin
|
465
|
-
result = api_instance.list(opts)
|
466
|
-
p result
|
467
|
-
rescue OrderCloud::ApiError => e
|
468
|
-
puts "Exception when calling ProductApi->list: #{e}"
|
469
|
-
end
|
470
|
-
```
|
471
|
-
|
472
|
-
### Parameters
|
473
|
-
|
474
|
-
Name | Type | Description | Notes
|
475
|
-
------------- | ------------- | ------------- | -------------
|
476
|
-
**search** | **String**| Word or phrase to search for. | [optional]
|
477
|
-
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
478
|
-
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
479
|
-
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
480
|
-
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
481
|
-
**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]
|
482
|
-
|
483
|
-
### Return type
|
484
|
-
|
485
|
-
[**ListProduct**](ListProduct.md)
|
486
|
-
|
487
|
-
### Authorization
|
488
|
-
|
489
|
-
[oauth2](../README.md#oauth2)
|
490
|
-
|
491
|
-
### HTTP request headers
|
492
|
-
|
493
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
494
|
-
- **Accept**: application/json
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
# **list_assignments**
|
499
|
-
> ListProductAssignment list_assignments(opts)
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
### Example
|
504
|
-
```ruby
|
505
|
-
# load the gem
|
506
|
-
require 'order_cloud'
|
507
|
-
# setup authorization
|
508
|
-
OrderCloud.configure do |config|
|
509
|
-
# Configure OAuth2 access token for authorization: oauth2
|
510
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
511
|
-
end
|
512
|
-
|
513
|
-
api_instance = OrderCloud::ProductApi.new
|
514
|
-
|
515
|
-
opts = {
|
516
|
-
product_id: "product_id_example", # String | ID of the product.
|
517
|
-
buyer_id: "buyer_id_example", # String | ID of the buyer.
|
518
|
-
user_id: "user_id_example", # String | ID of the user.
|
519
|
-
user_group_id: "user_group_id_example", # String | ID of the user group.
|
520
|
-
level: "level_example", # String | Level of the product.
|
521
|
-
price_schedule_id: "price_schedule_id_example", # String | ID of the price schedule.
|
522
|
-
page: 56, # Integer | Page of results to return. Default: 1
|
523
|
-
page_size: 56 # Integer | Number of results to return per page. Default: 20, max: 100.
|
524
|
-
}
|
525
|
-
|
526
|
-
begin
|
527
|
-
result = api_instance.list_assignments(opts)
|
528
|
-
p result
|
529
|
-
rescue OrderCloud::ApiError => e
|
530
|
-
puts "Exception when calling ProductApi->list_assignments: #{e}"
|
531
|
-
end
|
532
|
-
```
|
533
|
-
|
534
|
-
### Parameters
|
535
|
-
|
536
|
-
Name | Type | Description | Notes
|
537
|
-
------------- | ------------- | ------------- | -------------
|
538
|
-
**product_id** | **String**| ID of the product. | [optional]
|
539
|
-
**buyer_id** | **String**| ID of the buyer. | [optional]
|
540
|
-
**user_id** | **String**| ID of the user. | [optional]
|
541
|
-
**user_group_id** | **String**| ID of the user group. | [optional]
|
542
|
-
**level** | **String**| Level of the product. | [optional]
|
543
|
-
**price_schedule_id** | **String**| ID of the price schedule. | [optional]
|
544
|
-
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
545
|
-
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
546
|
-
|
547
|
-
### Return type
|
548
|
-
|
549
|
-
[**ListProductAssignment**](ListProductAssignment.md)
|
550
|
-
|
551
|
-
### Authorization
|
552
|
-
|
553
|
-
[oauth2](../README.md#oauth2)
|
554
|
-
|
555
|
-
### HTTP request headers
|
556
|
-
|
557
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
558
|
-
- **Accept**: application/json
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
# **list_inventory**
|
563
|
-
> ListInventory list_inventory(opts)
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
### Example
|
568
|
-
```ruby
|
569
|
-
# load the gem
|
570
|
-
require 'order_cloud'
|
571
|
-
# setup authorization
|
572
|
-
OrderCloud.configure do |config|
|
573
|
-
# Configure OAuth2 access token for authorization: oauth2
|
574
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
575
|
-
end
|
576
|
-
|
577
|
-
api_instance = OrderCloud::ProductApi.new
|
578
|
-
|
579
|
-
opts = {
|
580
|
-
search: "search_example", # String | Word or phrase to search for.
|
581
|
-
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
582
|
-
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
583
|
-
page: 56, # Integer | Page of results to return. Default: 1
|
584
|
-
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
585
|
-
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.???'
|
586
|
-
}
|
587
|
-
|
588
|
-
begin
|
589
|
-
result = api_instance.list_inventory(opts)
|
590
|
-
p result
|
591
|
-
rescue OrderCloud::ApiError => e
|
592
|
-
puts "Exception when calling ProductApi->list_inventory: #{e}"
|
593
|
-
end
|
594
|
-
```
|
595
|
-
|
596
|
-
### Parameters
|
597
|
-
|
598
|
-
Name | Type | Description | Notes
|
599
|
-
------------- | ------------- | ------------- | -------------
|
600
|
-
**search** | **String**| Word or phrase to search for. | [optional]
|
601
|
-
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
602
|
-
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
603
|
-
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
604
|
-
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
605
|
-
**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]
|
606
|
-
|
607
|
-
### Return type
|
608
|
-
|
609
|
-
[**ListInventory**](ListInventory.md)
|
610
|
-
|
611
|
-
### Authorization
|
612
|
-
|
613
|
-
[oauth2](../README.md#oauth2)
|
614
|
-
|
615
|
-
### HTTP request headers
|
616
|
-
|
617
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
618
|
-
- **Accept**: application/json
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
# **list_variant_inventory**
|
623
|
-
> ListInventory list_variant_inventory(product_id, opts)
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
### Example
|
628
|
-
```ruby
|
629
|
-
# load the gem
|
630
|
-
require 'order_cloud'
|
631
|
-
# setup authorization
|
632
|
-
OrderCloud.configure do |config|
|
633
|
-
# Configure OAuth2 access token for authorization: oauth2
|
634
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
635
|
-
end
|
636
|
-
|
637
|
-
api_instance = OrderCloud::ProductApi.new
|
638
|
-
|
639
|
-
product_id = "product_id_example" # String | ID of the product.
|
640
|
-
|
641
|
-
opts = {
|
642
|
-
search: "search_example", # String | Word or phrase to search for.
|
643
|
-
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
644
|
-
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
645
|
-
page: 56, # Integer | Page of results to return. Default: 1
|
646
|
-
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
647
|
-
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.???'
|
648
|
-
}
|
649
|
-
|
650
|
-
begin
|
651
|
-
result = api_instance.list_variant_inventory(product_id, opts)
|
652
|
-
p result
|
653
|
-
rescue OrderCloud::ApiError => e
|
654
|
-
puts "Exception when calling ProductApi->list_variant_inventory: #{e}"
|
655
|
-
end
|
656
|
-
```
|
657
|
-
|
658
|
-
### Parameters
|
659
|
-
|
660
|
-
Name | Type | Description | Notes
|
661
|
-
------------- | ------------- | ------------- | -------------
|
662
|
-
**product_id** | **String**| ID of the product. |
|
663
|
-
**search** | **String**| Word or phrase to search for. | [optional]
|
664
|
-
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
665
|
-
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
666
|
-
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
667
|
-
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
668
|
-
**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]
|
669
|
-
|
670
|
-
### Return type
|
671
|
-
|
672
|
-
[**ListInventory**](ListInventory.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
|
-
|
685
|
-
# **list_variants**
|
686
|
-
> ListVariant list_variants(product_id, opts)
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
### Example
|
691
|
-
```ruby
|
692
|
-
# load the gem
|
693
|
-
require 'order_cloud'
|
694
|
-
# setup authorization
|
695
|
-
OrderCloud.configure do |config|
|
696
|
-
# Configure OAuth2 access token for authorization: oauth2
|
697
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
698
|
-
end
|
699
|
-
|
700
|
-
api_instance = OrderCloud::ProductApi.new
|
701
|
-
|
702
|
-
product_id = "product_id_example" # String | ID of the product.
|
703
|
-
|
704
|
-
opts = {
|
705
|
-
search: "search_example", # String | Word or phrase to search for.
|
706
|
-
search_on: "search_on_example", # String | Comma-delimited list of fields to search on.
|
707
|
-
sort_by: "sort_by_example", # String | Comma-delimited list of fields to sort by.
|
708
|
-
page: 56, # Integer | Page of results to return. Default: 1
|
709
|
-
page_size: 56, # Integer | Number of results to return per page. Default: 20, max: 100.
|
710
|
-
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.???'
|
711
|
-
}
|
712
|
-
|
713
|
-
begin
|
714
|
-
result = api_instance.list_variants(product_id, opts)
|
715
|
-
p result
|
716
|
-
rescue OrderCloud::ApiError => e
|
717
|
-
puts "Exception when calling ProductApi->list_variants: #{e}"
|
718
|
-
end
|
719
|
-
```
|
720
|
-
|
721
|
-
### Parameters
|
722
|
-
|
723
|
-
Name | Type | Description | Notes
|
724
|
-
------------- | ------------- | ------------- | -------------
|
725
|
-
**product_id** | **String**| ID of the product. |
|
726
|
-
**search** | **String**| Word or phrase to search for. | [optional]
|
727
|
-
**search_on** | **String**| Comma-delimited list of fields to search on. | [optional]
|
728
|
-
**sort_by** | **String**| Comma-delimited list of fields to sort by. | [optional]
|
729
|
-
**page** | **Integer**| Page of results to return. Default: 1 | [optional]
|
730
|
-
**page_size** | **Integer**| Number of results to return per page. Default: 20, max: 100. | [optional]
|
731
|
-
**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]
|
732
|
-
|
733
|
-
### Return type
|
734
|
-
|
735
|
-
[**ListVariant**](ListVariant.md)
|
736
|
-
|
737
|
-
### Authorization
|
738
|
-
|
739
|
-
[oauth2](../README.md#oauth2)
|
740
|
-
|
741
|
-
### HTTP request headers
|
742
|
-
|
743
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
744
|
-
- **Accept**: application/json
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
# **patch**
|
749
|
-
> Product patch(product_id, product)
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
### Example
|
754
|
-
```ruby
|
755
|
-
# load the gem
|
756
|
-
require 'order_cloud'
|
757
|
-
# setup authorization
|
758
|
-
OrderCloud.configure do |config|
|
759
|
-
# Configure OAuth2 access token for authorization: oauth2
|
760
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
761
|
-
end
|
762
|
-
|
763
|
-
api_instance = OrderCloud::ProductApi.new
|
764
|
-
|
765
|
-
product_id = "product_id_example" # String | ID of the product.
|
766
|
-
|
767
|
-
product = OrderCloud::Product.new # Product |
|
768
|
-
|
769
|
-
|
770
|
-
begin
|
771
|
-
result = api_instance.patch(product_id, product)
|
772
|
-
p result
|
773
|
-
rescue OrderCloud::ApiError => e
|
774
|
-
puts "Exception when calling ProductApi->patch: #{e}"
|
775
|
-
end
|
776
|
-
```
|
777
|
-
|
778
|
-
### Parameters
|
779
|
-
|
780
|
-
Name | Type | Description | Notes
|
781
|
-
------------- | ------------- | ------------- | -------------
|
782
|
-
**product_id** | **String**| ID of the product. |
|
783
|
-
**product** | [**Product**](Product.md)| |
|
784
|
-
|
785
|
-
### Return type
|
786
|
-
|
787
|
-
[**Product**](Product.md)
|
788
|
-
|
789
|
-
### Authorization
|
790
|
-
|
791
|
-
[oauth2](../README.md#oauth2)
|
792
|
-
|
793
|
-
### HTTP request headers
|
794
|
-
|
795
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
796
|
-
- **Accept**: application/json
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
# **patch_variant**
|
801
|
-
> Variant patch_variant(product_id, variant_id, variant)
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
### Example
|
806
|
-
```ruby
|
807
|
-
# load the gem
|
808
|
-
require 'order_cloud'
|
809
|
-
# setup authorization
|
810
|
-
OrderCloud.configure do |config|
|
811
|
-
# Configure OAuth2 access token for authorization: oauth2
|
812
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
813
|
-
end
|
814
|
-
|
815
|
-
api_instance = OrderCloud::ProductApi.new
|
816
|
-
|
817
|
-
product_id = "product_id_example" # String | ID of the product.
|
818
|
-
|
819
|
-
variant_id = "variant_id_example" # String | ID of the variant.
|
820
|
-
|
821
|
-
variant = OrderCloud::Variant.new # Variant |
|
822
|
-
|
823
|
-
|
824
|
-
begin
|
825
|
-
result = api_instance.patch_variant(product_id, variant_id, variant)
|
826
|
-
p result
|
827
|
-
rescue OrderCloud::ApiError => e
|
828
|
-
puts "Exception when calling ProductApi->patch_variant: #{e}"
|
829
|
-
end
|
830
|
-
```
|
831
|
-
|
832
|
-
### Parameters
|
833
|
-
|
834
|
-
Name | Type | Description | Notes
|
835
|
-
------------- | ------------- | ------------- | -------------
|
836
|
-
**product_id** | **String**| ID of the product. |
|
837
|
-
**variant_id** | **String**| ID of the variant. |
|
838
|
-
**variant** | [**Variant**](Variant.md)| |
|
839
|
-
|
840
|
-
### Return type
|
841
|
-
|
842
|
-
[**Variant**](Variant.md)
|
843
|
-
|
844
|
-
### Authorization
|
845
|
-
|
846
|
-
[oauth2](../README.md#oauth2)
|
847
|
-
|
848
|
-
### HTTP request headers
|
849
|
-
|
850
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
851
|
-
- **Accept**: application/json
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
# **save_assignment**
|
856
|
-
> save_assignment(product_assignment)
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
### Example
|
861
|
-
```ruby
|
862
|
-
# load the gem
|
863
|
-
require 'order_cloud'
|
864
|
-
# setup authorization
|
865
|
-
OrderCloud.configure do |config|
|
866
|
-
# Configure OAuth2 access token for authorization: oauth2
|
867
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
868
|
-
end
|
869
|
-
|
870
|
-
api_instance = OrderCloud::ProductApi.new
|
871
|
-
|
872
|
-
product_assignment = OrderCloud::ProductAssignment.new # ProductAssignment |
|
873
|
-
|
874
|
-
|
875
|
-
begin
|
876
|
-
api_instance.save_assignment(product_assignment)
|
877
|
-
rescue OrderCloud::ApiError => e
|
878
|
-
puts "Exception when calling ProductApi->save_assignment: #{e}"
|
879
|
-
end
|
880
|
-
```
|
881
|
-
|
882
|
-
### Parameters
|
883
|
-
|
884
|
-
Name | Type | Description | Notes
|
885
|
-
------------- | ------------- | ------------- | -------------
|
886
|
-
**product_assignment** | [**ProductAssignment**](ProductAssignment.md)| |
|
887
|
-
|
888
|
-
### Return type
|
889
|
-
|
890
|
-
nil (empty response body)
|
891
|
-
|
892
|
-
### Authorization
|
893
|
-
|
894
|
-
[oauth2](../README.md#oauth2)
|
895
|
-
|
896
|
-
### HTTP request headers
|
897
|
-
|
898
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
899
|
-
- **Accept**: application/json
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
# **update**
|
904
|
-
> Product update(product_id, product)
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
### Example
|
909
|
-
```ruby
|
910
|
-
# load the gem
|
911
|
-
require 'order_cloud'
|
912
|
-
# setup authorization
|
913
|
-
OrderCloud.configure do |config|
|
914
|
-
# Configure OAuth2 access token for authorization: oauth2
|
915
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
916
|
-
end
|
917
|
-
|
918
|
-
api_instance = OrderCloud::ProductApi.new
|
919
|
-
|
920
|
-
product_id = "product_id_example" # String | ID of the product.
|
921
|
-
|
922
|
-
product = OrderCloud::Product.new # Product |
|
923
|
-
|
924
|
-
|
925
|
-
begin
|
926
|
-
result = api_instance.update(product_id, product)
|
927
|
-
p result
|
928
|
-
rescue OrderCloud::ApiError => e
|
929
|
-
puts "Exception when calling ProductApi->update: #{e}"
|
930
|
-
end
|
931
|
-
```
|
932
|
-
|
933
|
-
### Parameters
|
934
|
-
|
935
|
-
Name | Type | Description | Notes
|
936
|
-
------------- | ------------- | ------------- | -------------
|
937
|
-
**product_id** | **String**| ID of the product. |
|
938
|
-
**product** | [**Product**](Product.md)| |
|
939
|
-
|
940
|
-
### Return type
|
941
|
-
|
942
|
-
[**Product**](Product.md)
|
943
|
-
|
944
|
-
### Authorization
|
945
|
-
|
946
|
-
[oauth2](../README.md#oauth2)
|
947
|
-
|
948
|
-
### HTTP request headers
|
949
|
-
|
950
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
951
|
-
- **Accept**: application/json
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
# **update_inventory**
|
956
|
-
> Inventory update_inventory(product_id, inventory)
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
### Example
|
961
|
-
```ruby
|
962
|
-
# load the gem
|
963
|
-
require 'order_cloud'
|
964
|
-
# setup authorization
|
965
|
-
OrderCloud.configure do |config|
|
966
|
-
# Configure OAuth2 access token for authorization: oauth2
|
967
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
968
|
-
end
|
969
|
-
|
970
|
-
api_instance = OrderCloud::ProductApi.new
|
971
|
-
|
972
|
-
product_id = "product_id_example" # String | ID of the product.
|
973
|
-
|
974
|
-
inventory = 56 # Integer | Inventory of the product.
|
975
|
-
|
976
|
-
|
977
|
-
begin
|
978
|
-
result = api_instance.update_inventory(product_id, inventory)
|
979
|
-
p result
|
980
|
-
rescue OrderCloud::ApiError => e
|
981
|
-
puts "Exception when calling ProductApi->update_inventory: #{e}"
|
982
|
-
end
|
983
|
-
```
|
984
|
-
|
985
|
-
### Parameters
|
986
|
-
|
987
|
-
Name | Type | Description | Notes
|
988
|
-
------------- | ------------- | ------------- | -------------
|
989
|
-
**product_id** | **String**| ID of the product. |
|
990
|
-
**inventory** | **Integer**| Inventory of the product. |
|
991
|
-
|
992
|
-
### Return type
|
993
|
-
|
994
|
-
[**Inventory**](Inventory.md)
|
995
|
-
|
996
|
-
### Authorization
|
997
|
-
|
998
|
-
[oauth2](../README.md#oauth2)
|
999
|
-
|
1000
|
-
### HTTP request headers
|
1001
|
-
|
1002
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1003
|
-
- **Accept**: application/json
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
# **update_variant**
|
1008
|
-
> Variant update_variant(product_id, variant_id, variant)
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
### Example
|
1013
|
-
```ruby
|
1014
|
-
# load the gem
|
1015
|
-
require 'order_cloud'
|
1016
|
-
# setup authorization
|
1017
|
-
OrderCloud.configure do |config|
|
1018
|
-
# Configure OAuth2 access token for authorization: oauth2
|
1019
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
1020
|
-
end
|
1021
|
-
|
1022
|
-
api_instance = OrderCloud::ProductApi.new
|
1023
|
-
|
1024
|
-
product_id = "product_id_example" # String | ID of the product.
|
1025
|
-
|
1026
|
-
variant_id = "variant_id_example" # String | ID of the variant.
|
1027
|
-
|
1028
|
-
variant = OrderCloud::Variant.new # Variant |
|
1029
|
-
|
1030
|
-
|
1031
|
-
begin
|
1032
|
-
result = api_instance.update_variant(product_id, variant_id, variant)
|
1033
|
-
p result
|
1034
|
-
rescue OrderCloud::ApiError => e
|
1035
|
-
puts "Exception when calling ProductApi->update_variant: #{e}"
|
1036
|
-
end
|
1037
|
-
```
|
1038
|
-
|
1039
|
-
### Parameters
|
1040
|
-
|
1041
|
-
Name | Type | Description | Notes
|
1042
|
-
------------- | ------------- | ------------- | -------------
|
1043
|
-
**product_id** | **String**| ID of the product. |
|
1044
|
-
**variant_id** | **String**| ID of the variant. |
|
1045
|
-
**variant** | [**Variant**](Variant.md)| |
|
1046
|
-
|
1047
|
-
### Return type
|
1048
|
-
|
1049
|
-
[**Variant**](Variant.md)
|
1050
|
-
|
1051
|
-
### Authorization
|
1052
|
-
|
1053
|
-
[oauth2](../README.md#oauth2)
|
1054
|
-
|
1055
|
-
### HTTP request headers
|
1056
|
-
|
1057
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1058
|
-
- **Accept**: application/json
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
# **update_variant_inventory**
|
1063
|
-
> Inventory update_variant_inventory(product_id, variant_id, inventory)
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
### Example
|
1068
|
-
```ruby
|
1069
|
-
# load the gem
|
1070
|
-
require 'order_cloud'
|
1071
|
-
# setup authorization
|
1072
|
-
OrderCloud.configure do |config|
|
1073
|
-
# Configure OAuth2 access token for authorization: oauth2
|
1074
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
1075
|
-
end
|
1076
|
-
|
1077
|
-
api_instance = OrderCloud::ProductApi.new
|
1078
|
-
|
1079
|
-
product_id = "product_id_example" # String | ID of the product.
|
1080
|
-
|
1081
|
-
variant_id = "variant_id_example" # String | ID of the variant.
|
1082
|
-
|
1083
|
-
inventory = 56 # Integer | Inventory of the product.
|
1084
|
-
|
1085
|
-
|
1086
|
-
begin
|
1087
|
-
result = api_instance.update_variant_inventory(product_id, variant_id, inventory)
|
1088
|
-
p result
|
1089
|
-
rescue OrderCloud::ApiError => e
|
1090
|
-
puts "Exception when calling ProductApi->update_variant_inventory: #{e}"
|
1091
|
-
end
|
1092
|
-
```
|
1093
|
-
|
1094
|
-
### Parameters
|
1095
|
-
|
1096
|
-
Name | Type | Description | Notes
|
1097
|
-
------------- | ------------- | ------------- | -------------
|
1098
|
-
**product_id** | **String**| ID of the product. |
|
1099
|
-
**variant_id** | **String**| ID of the variant. |
|
1100
|
-
**inventory** | **Integer**| Inventory of the product. |
|
1101
|
-
|
1102
|
-
### Return type
|
1103
|
-
|
1104
|
-
[**Inventory**](Inventory.md)
|
1105
|
-
|
1106
|
-
### Authorization
|
1107
|
-
|
1108
|
-
[oauth2](../README.md#oauth2)
|
1109
|
-
|
1110
|
-
### HTTP request headers
|
1111
|
-
|
1112
|
-
- **Content-Type**: application/json, text/plain; charset=utf-8
|
1113
|
-
- **Accept**: application/json
|
1114
|
-
|
1115
|
-
|
1116
|
-
|