Class PriceBookChild


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class PriceBookChild
    extends Object
    Nested price book that inherits currency from its parent and can extend the pricing hierarchy. Child price books can have up to 3 levels of nesting from the base price book.
    • Constructor Detail

      • PriceBookChild

        public PriceBookChild()
    • Method Detail

      • getPriceBookId

        @Nonnull
        public String getPriceBookId()
        Unique identifier for the child price book. Must be unique across all price books. Used to reference this price book in pricing data and potential child price books.
        Returns:
        priceBookId
      • setPriceBookId

        public void setPriceBookId​(String priceBookId)
      • getName

        @Nonnull
        public String getName()
        Human-readable name for the child price book. Used for display and identification purposes.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getParentId

        @Nonnull
        public String getParentId()
        Reference to the parent price book ID. Must reference an existing price book. Determines the currency inheritance and hierarchy level.
        Returns:
        parentId
      • setParentId

        public void setParentId​(String parentId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to PriceBookChild
      • fromJson

        public static PriceBookChild fromJson​(String jsonString)
                                       throws IOException
        Create an instance of PriceBookChild given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PriceBookChild
        Throws:
        IOException - if the JSON string is invalid with respect to PriceBookChild
      • toJson

        public String toJson()
        Convert an instance of PriceBookChild to an JSON string
        Returns:
        JSON string