package de.codecrafters.apaarb;

/**
 * A listing that contains all item information available at Amazon.
 *
 * @author ISchwarz
 */
public enum ItemInformation {

    IMAGES("Images"),
    ATTRIBUTES("ItemAttributes"),
    OFFERS("Offers"),
    ACCESSORIES("Accessories"),
    ALTERNATIVE_VERSIONS("AlternativeVersions"),
    BROWSE_NODES("BrowseNodes"),
    EDITORIAL_REVIEW("EditorialReview"),
    OFFER_FULL("OfferFull"),
    OFFER_SUMMARY("OfferSummary"),
    REVIEWS("Reviews"),
    SALES_RANK("SalesRank"),
    SIMILARITIES("Similarities"),
    TRACKS("Tracks"),
    VARIATION_IMAGES("VariationImages"),
    VARIATION_MATRIX("VariationMatrix"),
    VARIATION_SUMMARY("VariationSummary"),
    VARIATIONS("Variations");

    private final String requestValue;

    ItemInformation(final String requestValue) {
        this.requestValue = requestValue;
    }

    /**
     * Gives the value used in the URL request that represents this item information.
     *
     * @return The value used in the URL request that represents this item information.
     */
    String getRequestValue() {
        return requestValue;
    }
}

@@ -170,89 +170,8 @@
 %0D%0A%0D%0A
-    IMAGES(%22Images%22),%0D%0A    ATTRIBUTES(%22ItemAttributes%22),%0D%0A    OFFERS(%22Offers%22),%0D%0A
     
@@ -195,24 +195,24 @@
 ssories%22),%0D%0A
+
     ALTERNAT
@@ -245,24 +245,59 @@
 ersions%22),%0D%0A
+    ATTRIBUTES(%22ItemAttributes%22),%0D%0A
     BROWSE_N
@@ -356,24 +356,47 @@
 lReview%22),%0D%0A
+    IMAGES(%22Images%22),%0D%0A
     OFFER_FU
@@ -409,24 +409,24 @@
 ferFull%22),%0D%0A
-
     OFFER_SU
@@ -445,24 +445,47 @@
 Summary%22),%0D%0A
+    OFFERS(%22Offers%22),%0D%0A
     REVIEWS(

Order ItemInformation entries