diff --git a/src/main/java/com/amazon/SellingPartnerAPI/model/BBFCRatingType1.java b/src/main/java/com/amazon/SellingPartnerAPI/model/BBFCRatingType1.java deleted file mode 100644 index 1059f40..0000000 --- a/src/main/java/com/amazon/SellingPartnerAPI/model/BBFCRatingType1.java +++ /dev/null @@ -1,76 +0,0 @@ -// -// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的 -// 请访问 http://java.sun.com/xml/jaxb -// 在重新编译源模式时, 对此文件的所有修改都将丢失。 -// 生成时间: 2021.01.06 时间 12:14:58 PM CST -// - - -package com.amazon.SellingPartnerAPI.model; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

BBFCRatingType1的 Java 类。 - * - *

以下模式片段指定包含在此类中的预期内容。 - *

- *

- * <simpleType name="BBFCRatingType1">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="ages_12_and_over"/>
- *     <enumeration value="ages_15_and_over"/>
- *     <enumeration value="ages_18_and_over"/>
- *     <enumeration value="exempt"/>
- *     <enumeration value="parental_guidance"/>
- *     <enumeration value="to_be_announced"/>
- *     <enumeration value="universal_childrens"/>
- *     <enumeration value="universal"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "BBFCRatingType1") -@XmlEnum -public enum BBFCRatingType1 { - - @XmlEnumValue("ages_12_and_over") - AGES_12_AND_OVER("ages_12_and_over"), - @XmlEnumValue("ages_15_and_over") - AGES_15_AND_OVER("ages_15_and_over"), - @XmlEnumValue("ages_18_and_over") - AGES_18_AND_OVER("ages_18_and_over"), - @XmlEnumValue("exempt") - EXEMPT("exempt"), - @XmlEnumValue("parental_guidance") - PARENTAL_GUIDANCE("parental_guidance"), - @XmlEnumValue("to_be_announced") - TO_BE_ANNOUNCED("to_be_announced"), - @XmlEnumValue("universal_childrens") - UNIVERSAL_CHILDRENS("universal_childrens"), - @XmlEnumValue("universal") - UNIVERSAL("universal"); - private final String value; - - BBFCRatingType1(String v) { - value = v; - } - - public String value() { - return value; - } - - public static BBFCRatingType1 fromValue(String v) { - for (BBFCRatingType1 c: BBFCRatingType1 .values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} diff --git a/src/main/java/com/amazon/SellingPartnerAPI/model/GiftCard.java b/src/main/java/com/amazon/SellingPartnerAPI/model/GiftCard.java index e01ceb0..148d87f 100644 --- a/src/main/java/com/amazon/SellingPartnerAPI/model/GiftCard.java +++ b/src/main/java/com/amazon/SellingPartnerAPI/model/GiftCard.java @@ -8,10 +8,6 @@ package com.amazon.SellingPartnerAPI.model; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.ArrayList; -import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; @@ -20,6 +16,10 @@ import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; /** @@ -640,7 +640,7 @@ public class GiftCard { public static class ProductType { @XmlElement(name = "GiftCard") - protected GiftCard.ProductType.GiftCard giftCard; + protected GiftCardItem giftCard; @XmlElement(name = "PhysicalGiftCard") protected GiftCard.ProductType.PhysicalGiftCard physicalGiftCard; @XmlElement(name = "ElectronicGiftCard") @@ -651,10 +651,10 @@ public class GiftCard { * * @return * possible object is - * {@link GiftCard.ProductType.GiftCard } + * {@link GiftCardItem } * */ - public GiftCard.ProductType.GiftCard getGiftCard() { + public GiftCardItem getGiftCard() { return giftCard; } @@ -663,10 +663,10 @@ public class GiftCard { * * @param value * allowed object is - * {@link GiftCard.ProductType.GiftCard } + * {@link GiftCardItem } * */ - public void setGiftCard(GiftCard.ProductType.GiftCard value) { + public void setGiftCard(GiftCardItem value) { this.giftCard = value; } @@ -748,7 +748,7 @@ public class GiftCard { "itemDisplayWeight", "itemDisplayWidth" }) - public static class GiftCard { + public static class GiftCardItem { @XmlElement(name = "ItemDisplayHeight") protected LengthDimension itemDisplayHeight; diff --git a/src/main/java/com/amazon/SellingPartnerAPI/model/Home.java b/src/main/java/com/amazon/SellingPartnerAPI/model/Home.java index 24c444d..141953d 100644 --- a/src/main/java/com/amazon/SellingPartnerAPI/model/Home.java +++ b/src/main/java/com/amazon/SellingPartnerAPI/model/Home.java @@ -8,10 +8,6 @@ package com.amazon.SellingPartnerAPI.model; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.ArrayList; -import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; @@ -20,6 +16,10 @@ import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; /** @@ -2699,7 +2699,7 @@ public class Home { @XmlElement(name = "WaterPurificationUnit") protected WaterPurificationUnit waterPurificationUnit; @XmlElement(name = "Home") - protected Home.ProductType.Home home; + protected HomeItem home; /** * 获取bedAndBath属性的值。 @@ -3378,10 +3378,10 @@ public class Home { * * @return * possible object is - * {@link Home.ProductType.Home } + * {@link HomeItem } * */ - public Home.ProductType.Home getHome() { + public HomeItem getHome() { return home; } @@ -3390,10 +3390,10 @@ public class Home { * * @param value * allowed object is - * {@link Home.ProductType.Home } + * {@link HomeItem } * */ - public void setHome(Home.ProductType.Home value) { + public void setHome(HomeItem value) { this.home = value; } @@ -3613,7 +3613,7 @@ public class Home { "voltage", "powerPlugType" }) - public static class Home { + public static class HomeItem { @XmlElement(name = "Battery") protected Battery battery; @@ -3655,7 +3655,7 @@ public class Home { @XmlElement(name = "TowelWeight") protected WeightDimension towelWeight; @XmlElement(name = "VariationData") - protected Home.ProductType.Home.VariationData variationData; + protected HomeItem.VariationData variationData; @XmlElement(name = "Wattage") protected WattageDimensionOptionalUnit wattage; @XmlElement(name = "InnerMaterialType") @@ -4055,10 +4055,10 @@ public class Home { * * @return * possible object is - * {@link Home.ProductType.Home.VariationData } + * {@link HomeItem.VariationData } * */ - public Home.ProductType.Home.VariationData getVariationData() { + public HomeItem.VariationData getVariationData() { return variationData; } @@ -4067,10 +4067,10 @@ public class Home { * * @param value * allowed object is - * {@link Home.ProductType.Home.VariationData } + * {@link HomeItem.VariationData } * */ - public void setVariationData(Home.ProductType.Home.VariationData value) { + public void setVariationData(HomeItem.VariationData value) { this.variationData = value; } diff --git a/src/main/java/com/amazon/SellingPartnerAPI/model/MechanicalFasteners.java b/src/main/java/com/amazon/SellingPartnerAPI/model/MechanicalFasteners.java index 834993f..eb8bd51 100644 --- a/src/main/java/com/amazon/SellingPartnerAPI/model/MechanicalFasteners.java +++ b/src/main/java/com/amazon/SellingPartnerAPI/model/MechanicalFasteners.java @@ -8,9 +8,6 @@ package com.amazon.SellingPartnerAPI.model; -import java.math.BigInteger; -import java.util.ArrayList; -import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; @@ -19,6 +16,9 @@ import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; /** @@ -251,17 +251,17 @@ public class MechanicalFasteners { public static class ProductType { @XmlElement(name = "MechanicalFasteners") - protected MechanicalFasteners.ProductType.MechanicalFasteners mechanicalFasteners; + protected MechanicalFastenerItem mechanicalFasteners; /** * 获取mechanicalFasteners属性的值。 * * @return * possible object is - * {@link MechanicalFasteners.ProductType.MechanicalFasteners } + * {@link MechanicalFastenerItem } * */ - public MechanicalFasteners.ProductType.MechanicalFasteners getMechanicalFasteners() { + public MechanicalFastenerItem getMechanicalFasteners() { return mechanicalFasteners; } @@ -270,10 +270,10 @@ public class MechanicalFasteners { * * @param value * allowed object is - * {@link MechanicalFasteners.ProductType.MechanicalFasteners } + * {@link MechanicalFastenerItem } * */ - public void setMechanicalFasteners(MechanicalFasteners.ProductType.MechanicalFasteners value) { + public void setMechanicalFasteners(MechanicalFastenerItem value) { this.mechanicalFasteners = value; } @@ -421,7 +421,7 @@ public class MechanicalFasteners { "workingLoadLimit", "styleName" }) - public static class MechanicalFasteners { + public static class MechanicalFastenerItem { @XmlElement(name = "Color") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) diff --git a/src/main/java/com/amazon/SellingPartnerAPI/model/ObjectFactory.java b/src/main/java/com/amazon/SellingPartnerAPI/model/ObjectFactory.java index f86b8e8..8470238 100644 --- a/src/main/java/com/amazon/SellingPartnerAPI/model/ObjectFactory.java +++ b/src/main/java/com/amazon/SellingPartnerAPI/model/ObjectFactory.java @@ -2040,11 +2040,11 @@ public class ObjectFactory { } /** - * Create an instance of {@link com.amazon.SellingPartnerAPI.model.Home.ProductType.Home } + * Create an instance of {@link com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem } * */ - public com.amazon.SellingPartnerAPI.model.Home.ProductType.Home createHomeProductTypeHome() { - return new com.amazon.SellingPartnerAPI.model.Home.ProductType.Home(); + public com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem createHomeProductTypeHome() { + return new com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem(); } /** @@ -7160,19 +7160,20 @@ public class ObjectFactory { } /** - * Create an instance of {@link com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFasteners } + * Create an instance of + * {@link com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFastenerItem } * */ - public com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFasteners createMechanicalFastenersProductTypeMechanicalFasteners() { - return new com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFasteners(); + public com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFastenerItem createMechanicalFastenersProductTypeMechanicalFasteners() { + return new com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFastenerItem(); } /** - * Create an instance of {@link com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCard } + * Create an instance of {@link com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCardItem } * */ - public com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCard createGiftCardProductTypeGiftCard() { - return new com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCard(); + public com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCardItem createGiftCardProductTypeGiftCard() { + return new com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCardItem(); } /** @@ -7184,19 +7185,20 @@ public class ObjectFactory { } /** - * Create an instance of {@link com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSan } + * Create an instance of + * {@link com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSanItem } * */ - public com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSan createFoodServiceAndJanSanProductTypeFoodServiceAndJanSan() { - return new com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSan(); + public com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSanItem createFoodServiceAndJanSanProductTypeFoodServiceAndJanSan() { + return new com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSanItem(); } /** - * Create an instance of {@link com.amazon.SellingPartnerAPI.model.Home.ProductType.Home.VariationData } + * Create an instance of {@link com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem.VariationData } * */ - public com.amazon.SellingPartnerAPI.model.Home.ProductType.Home.VariationData createHomeProductTypeHomeVariationData() { - return new com.amazon.SellingPartnerAPI.model.Home.ProductType.Home.VariationData(); + public com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem.VariationData createHomeProductTypeHomeVariationData() { + return new com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem.VariationData(); } /** diff --git a/src/main/java/com/amazon/SellingPartnerAPI/model/Software.java b/src/main/java/com/amazon/SellingPartnerAPI/model/Software.java index f911c9d..4c963a6 100644 --- a/src/main/java/com/amazon/SellingPartnerAPI/model/Software.java +++ b/src/main/java/com/amazon/SellingPartnerAPI/model/Software.java @@ -8,9 +8,6 @@ package com.amazon.SellingPartnerAPI.model; -import java.math.BigInteger; -import java.util.ArrayList; -import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; @@ -19,6 +16,9 @@ import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; /** @@ -113,7 +113,7 @@ public class Software { protected String esrbRating; @XmlElement(name = "BBFCRating") @XmlSchemaType(name = "string") - protected BBFCRatingType1 bbfcRating; + protected BBFCRatingType bbfcRating; @XmlElement(name = "PEGIRating") @XmlSchemaType(name = "string") protected PEGIRatingType pegiRating; @@ -308,10 +308,10 @@ public class Software { * * @return * possible object is - * {@link BBFCRatingType1 } + * {@link BBFCRatingType } * */ - public BBFCRatingType1 getBBFCRating() { + public BBFCRatingType getBBFCRating() { return bbfcRating; } @@ -320,10 +320,10 @@ public class Software { * * @param value * allowed object is - * {@link BBFCRatingType1 } + * {@link BBFCRatingType } * */ - public void setBBFCRating(BBFCRatingType1 value) { + public void setBBFCRating(BBFCRatingType value) { this.bbfcRating = value; } diff --git a/src/main/java/com/amazon/SellingPartnerAPI/model/SoftwareGames.java b/src/main/java/com/amazon/SellingPartnerAPI/model/SoftwareGames.java index e78f5e3..b758fac 100644 --- a/src/main/java/com/amazon/SellingPartnerAPI/model/SoftwareGames.java +++ b/src/main/java/com/amazon/SellingPartnerAPI/model/SoftwareGames.java @@ -8,9 +8,6 @@ package com.amazon.SellingPartnerAPI.model; -import java.math.BigInteger; -import java.util.ArrayList; -import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; @@ -19,6 +16,9 @@ import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; /** @@ -34,7 +34,7 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; * <element name="SoftwareVideoGamesGenre" type="{}StringNotNull" maxOccurs="5"/> * <choice> * <element name="ESRBRating" type="{}FortyStringNotNull"/> - * <element name="BBFCRating" type="{}BBFCRatingType1"/> + * <element name="BBFCRating" type="{}BBFCRatingType"/> * <element name="PEGIRating" type="{}PEGIRatingType"/> * <element name="USKRating" type="{}USKRatingType"/> * </choice> @@ -95,7 +95,7 @@ public class SoftwareGames { protected String esrbRating; @XmlElement(name = "BBFCRating") @XmlSchemaType(name = "string") - protected BBFCRatingType1 bbfcRating; + protected BBFCRatingType bbfcRating; @XmlElement(name = "PEGIRating") @XmlSchemaType(name = "string") protected PEGIRatingType pegiRating; @@ -207,10 +207,10 @@ public class SoftwareGames { * * @return * possible object is - * {@link BBFCRatingType1 } + * {@link BBFCRatingType } * */ - public BBFCRatingType1 getBBFCRating() { + public BBFCRatingType getBBFCRating() { return bbfcRating; } @@ -219,10 +219,10 @@ public class SoftwareGames { * * @param value * allowed object is - * {@link BBFCRatingType1 } + * {@link BBFCRatingType } * */ - public void setBBFCRating(BBFCRatingType1 value) { + public void setBBFCRating(BBFCRatingType value) { this.bbfcRating = value; } diff --git a/src/main/java/com/amazon/SellingPartnerAPI/model/VideoGames.java b/src/main/java/com/amazon/SellingPartnerAPI/model/VideoGames.java index 5dfa353..12f3297 100644 --- a/src/main/java/com/amazon/SellingPartnerAPI/model/VideoGames.java +++ b/src/main/java/com/amazon/SellingPartnerAPI/model/VideoGames.java @@ -8,9 +8,6 @@ package com.amazon.SellingPartnerAPI.model; -import java.math.BigInteger; -import java.util.ArrayList; -import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; @@ -19,6 +16,9 @@ import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; /** @@ -34,7 +34,7 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; * <element name="ConsoleVideoGamesGenre" type="{}StringNotNull" maxOccurs="5"/> * <choice> * <element name="ESRBRating" type="{}FortyStringNotNull"/> - * <element name="BBFCRating" type="{}BBFCRatingType1"/> + * <element name="BBFCRating" type="{}BBFCRatingType"/> * <element name="PEGIRating" type="{}PEGIRatingType"/> * <element name="USKRating" type="{}USKRatingType"/> * </choice> @@ -85,7 +85,7 @@ public class VideoGames { protected String esrbRating; @XmlElement(name = "BBFCRating") @XmlSchemaType(name = "string") - protected BBFCRatingType1 bbfcRating; + protected BBFCRatingType bbfcRating; @XmlElement(name = "PEGIRating") @XmlSchemaType(name = "string") protected PEGIRatingType pegiRating; @@ -182,10 +182,10 @@ public class VideoGames { * * @return * possible object is - * {@link BBFCRatingType1 } + * {@link BBFCRatingType } * */ - public BBFCRatingType1 getBBFCRating() { + public BBFCRatingType getBBFCRating() { return bbfcRating; } @@ -194,10 +194,10 @@ public class VideoGames { * * @param value * allowed object is - * {@link BBFCRatingType1 } + * {@link BBFCRatingType } * */ - public void setBBFCRating(BBFCRatingType1 value) { + public void setBBFCRating(BBFCRatingType value) { this.bbfcRating = value; }