From 74a1eacd60931fe2bddb86d53cd19bc5b6af6913 Mon Sep 17 00:00:00 2001 From: Unai Abrisketa Date: Wed, 16 Feb 2022 09:21:02 +0100 Subject: [PATCH] Fix docs --- lib/beyond_api/resources/orders.rb | 2 +- lib/beyond_api/resources/product_attribute_definitions.rb | 2 +- lib/beyond_api/resources/products/cross_sells.rb | 2 +- lib/beyond_api/resources/products/images.rb | 4 ++-- lib/beyond_api/resources/variations/images.rb | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/beyond_api/resources/orders.rb b/lib/beyond_api/resources/orders.rb index 330e220..a83d1af 100644 --- a/lib/beyond_api/resources/orders.rb +++ b/lib/beyond_api/resources/orders.rb @@ -567,7 +567,7 @@ def mark_refund_process_as_paid(order_id) # @beyond_api.scopes +shpr:u+ # # @param order_id [String] the order UUID - # @param shipping_id [String] the shipping UUID + # @param shipping_process_id [String] the shipping UUID # @param body [Hash] the request body # # @return [OpenStruct] diff --git a/lib/beyond_api/resources/product_attribute_definitions.rb b/lib/beyond_api/resources/product_attribute_definitions.rb index 2290266..6a37ec4 100644 --- a/lib/beyond_api/resources/product_attribute_definitions.rb +++ b/lib/beyond_api/resources/product_attribute_definitions.rb @@ -42,7 +42,7 @@ def all(params = {}) # # @beyond_api.scopes +prad:c+ # - # @param product_attribute_name [String] the product attribute key + # @param body [String] the product attribute body # # @return [OpenStruct] # diff --git a/lib/beyond_api/resources/products/cross_sells.rb b/lib/beyond_api/resources/products/cross_sells.rb index 0bfcc68..d966627 100644 --- a/lib/beyond_api/resources/products/cross_sells.rb +++ b/lib/beyond_api/resources/products/cross_sells.rb @@ -147,7 +147,7 @@ def delete_cross_sell(product_id, cross_sell_id) # # @cross_sell = session.products.update_cross_sell("4ed7a15a-9ef8-415f-8161-87498b1ecd4f", "b18d96f4-dfdf-47f3-b2dc-ce1653829674", body) # - def update_cross_sell(product_id, attribute_name, body) + def update_cross_sell(product_id, cross_sell_id, body) response, status = BeyondApi::Request.put(@session, "/products/#{product_id}/cross-sells/#{cross_sell_id}", body) handle_response(response, status) diff --git a/lib/beyond_api/resources/products/images.rb b/lib/beyond_api/resources/products/images.rb index 0c6ace1..c802195 100644 --- a/lib/beyond_api/resources/products/images.rb +++ b/lib/beyond_api/resources/products/images.rb @@ -18,7 +18,7 @@ module Products::Images # @beyond_api.scopes +prod:u+ # # @param product_id [String] the product UUID - # @param image_uri [String] the image url + # @param body [String] the image url # # @return [OpenStruct] # @@ -146,7 +146,7 @@ def set_image_as_default(product_id, image_id) # @beyond_api.scopes +prod:u+ # # @param product_id [String] the product UUID - # @param images [Array] the image UUIDS + # @param image_ids [Array] the image UUIDS # # @return true # diff --git a/lib/beyond_api/resources/variations/images.rb b/lib/beyond_api/resources/variations/images.rb index 18f070e..732895a 100644 --- a/lib/beyond_api/resources/variations/images.rb +++ b/lib/beyond_api/resources/variations/images.rb @@ -88,7 +88,7 @@ def delete_image(product_id, variation_id, image_id) # @example # @image = session.variations.image("8665fc36-003e-4120-8a74-a9d6449644ae", "a9163db42-92e7-418c-a3d8-651e7aaca569", "86fc2691-5dfb-47e1-aae7-4bc2f658a80b") # - def image(product_id, image_id) + def image(product_id, variation_id, image_id) path = "/products/#{product_id}/variations/#{variation_id}/images/#{image_id}" response, status = BeyondApi::Request.get(@session, @@ -140,7 +140,7 @@ def images(product_id, variation_id, params = {}) # # @param product_id [String] the product UUID # @param variation_id [String] the variation UUID - # @param images [Array] the image UUIDS + # @param image_ids [Array] the image UUIDS # # @return true # @@ -170,8 +170,8 @@ def sort_images(product_id, variation_id, image_ids) # # @param product_id [String] the product UUID # @param variation_id [String] the variation UUID - # @param images_path [Array] the images path - # @param images_name [Array] the images name + # @param image_path [Array] the images path + # @param image_name [Array] the images name # # @return [OpenStruct] #