Class PriceBookBase


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class PriceBookBase
    extends Object
    PriceBookBase
    • Constructor Detail

      • PriceBookBase

        public PriceBookBase()
    • Method Detail

      • getPriceBookId

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

        public void setPriceBookId​(String priceBookId)
      • getName

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

        public void setName​(String name)
      • getCurrency

        @Nonnull
        public String getCurrency()
        Currency code that applies to this price book and all its child price books in ISO format. Child price books inherit this currency and cannot override it.
        Returns:
        currency
      • setCurrency

        public void setCurrency​(String currency)
      • 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 PriceBookBase
      • fromJson

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

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