Package com.adobe.aco.model
Class PriceBookChild
- java.lang.Object
-
- com.adobe.aco.model.PriceBookChild
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class PriceBookChild extends ObjectNested 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPriceBookChild.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PARENT_IDstatic StringSERIALIZED_NAME_PRICE_BOOK_ID
-
Constructor Summary
Constructors Constructor Description PriceBookChild()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PriceBookChildfromJson(String jsonString)Create an instance of PriceBookChild given an JSON stringStringgetName()Human-readable name for the child price book.StringgetParentId()Reference to the parent price book ID.StringgetPriceBookId()Unique identifier for the child price book.inthashCode()PriceBookChildname(String name)PriceBookChildparentId(String parentId)PriceBookChildpriceBookId(String priceBookId)voidsetName(String name)voidsetParentId(String parentId)voidsetPriceBookId(String priceBookId)StringtoJson()Convert an instance of PriceBookChild to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PRICE_BOOK_ID
public static final String SERIALIZED_NAME_PRICE_BOOK_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PARENT_ID
public static final String SERIALIZED_NAME_PARENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
priceBookId
public PriceBookChild priceBookId(String priceBookId)
-
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)
-
name
public PriceBookChild name(String name)
-
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)
-
parentId
public PriceBookChild parentId(String parentId)
-
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)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-