Package com.adobe.aco.model
Class PriceBookBase
- java.lang.Object
-
- com.adobe.aco.model.PriceBookBase
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class PriceBookBase extends ObjectPriceBookBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPriceBookBase.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PRICE_BOOK_ID
-
Constructor Summary
Constructors Constructor Description PriceBookBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PriceBookBasecurrency(String currency)booleanequals(Object o)static PriceBookBasefromJson(String jsonString)Create an instance of PriceBookBase given an JSON stringStringgetCurrency()Currency code that applies to this price book and all its child price books in ISO format.StringgetName()Human-readable name for the price book.StringgetPriceBookId()Unique identifier for the base price book.inthashCode()PriceBookBasename(String name)PriceBookBasepriceBookId(String priceBookId)voidsetCurrency(String currency)voidsetName(String name)voidsetPriceBookId(String priceBookId)StringtoJson()Convert an instance of PriceBookBase 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_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
-
Method Detail
-
priceBookId
public PriceBookBase priceBookId(String priceBookId)
-
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)
-
name
public PriceBookBase name(String name)
-
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)
-
currency
public PriceBookBase currency(String currency)
-
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)
-
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 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
-
-