Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
unabris committed Feb 16, 2022
1 parent 96c9083 commit 74a1eac
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/beyond_api/resources/orders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion lib/beyond_api/resources/product_attribute_definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
#
Expand Down
2 changes: 1 addition & 1 deletion lib/beyond_api/resources/products/cross_sells.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions lib/beyond_api/resources/products/images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
#
Expand Down Expand Up @@ -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
#
Expand Down
8 changes: 4 additions & 4 deletions lib/beyond_api/resources/variations/images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
#
Expand Down Expand Up @@ -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]
#
Expand Down

0 comments on commit 74a1eac

Please sign in to comment.