Module: Peddler::Types::CatalogItemsV0

Defined in:
lib/peddler/types/catalog_items_v0/error.rb,
lib/peddler/types/catalog_items_v0/categories.rb,
lib/peddler/types/catalog_items_v0/error_list.rb,
lib/peddler/types/catalog_items_v0/list_of_categories.rb,
lib/peddler/types/catalog_items_v0/list_catalog_categories_response.rb

Defined Under Namespace

Classes: ErrorList, ListOfCategories

Constant Summary collapse

Error =

Error response returned when the request is unsuccessful.

Structure.new do
  # @return [String] An error code that identifies the type of error that occurred.
  attribute(:code, String)

  # @return [String] A message that describes the error condition in a human-readable form.
  attribute(:message, String)

  # @return [String] Additional information that can help the caller understand or fix the issue.
  attribute?(:details, String)
end
Categories =
Structure.new do
  # @return [String] The identifier for the product category (or browse node).
  attribute?(:product_category_id, String, from: "ProductCategoryId")

  # @return [String] The name of the product category (or browse node).
  attribute?(:product_category_name, String, from: "ProductCategoryName")

  # @return [Hash] The parent product category.
  attribute?(:parent, Hash)
end
ListCatalogCategoriesResponse =
Structure.new do
  # @return [Array<Error>] One or more unexpected errors occurred during the listCatalogCategories operation.
  attribute?(:errors, [Error])

  # @return [Array<Categories>] The payload for the listCatalogCategories operation.
  attribute?(:payload, [Categories])
end