Package com.veeroute.lss.agro.model
Class Contract
java.lang.Object
com.veeroute.lss.agro.model.Contract
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:47:31.676214391+03:00[Europe/Moscow]",
comments="Generator version: 7.17.0")
public class Contract
extends Object
Contract - defines a list of purchase and sale prices for a specific group of sellers and buyers.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) addPricelistItem(Pricelist pricelistItem) addTargetKeysItem(String targetKeysItem) attributes(Set<Attribute> attributes) booleanstatic ContractCreate an instance of Contract given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.Whether the contract is concluded (`true`) or not (`false`).getKey()Key, unique identifier.List of prices for the purchase and sale of agricultural crops.List of production object keys.getType()Get typeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetConcluded(Boolean concluded) voidvoidsetPricelist(List<Pricelist> pricelist) voidsetTargetKeys(Set<String> targetKeys) voidsetType(ContractType type) targetKeys(Set<String> targetKeys) toJson()Convert an instance of Contract to an JSON stringtoString()type(ContractType type) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_CONCLUDED
- See Also:
-
SERIALIZED_NAME_TARGET_KEYS
- See Also:
-
SERIALIZED_NAME_PRICELIST
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Contract
public Contract()
-
-
Method Details
-
key
-
getKey
Key, unique identifier.- Returns:
- key
-
setKey
-
type
-
getType
Get type- Returns:
- type
-
setType
-
concluded
-
getConcluded
Whether the contract is concluded (`true`) or not (`false`).- Returns:
- concluded
-
setConcluded
-
targetKeys
-
addTargetKeysItem
-
getTargetKeys
List of production object keys.- Returns:
- targetKeys
-
setTargetKeys
-
pricelist
-
addPricelistItem
-
getPricelist
List of prices for the purchase and sale of agricultural crops.- Returns:
- pricelist
-
setPricelist
-
attributes
-
addAttributesItem
-
getAttributes
Attributes. Used to add service information.- Returns:
- attributes
-
setAttributes
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Contract instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 Contract
-
fromJson
Create an instance of Contract given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Contract
- Throws:
IOException- if the JSON string is invalid with respect to Contract
-
toJson
Convert an instance of Contract to an JSON string- Returns:
- JSON string
-