@Generated(value="Generated by https://konfigthis.com") public class Money extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Money.CustomTypeAdapterFactory |
| Modifier and Type | Field and Description |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CURRENCY |
static String |
SERIALIZED_NAME_VALUE |
| Constructor and Description |
|---|
Money() |
| Modifier and Type | Method and Description |
|---|---|
Money |
currency(Currency currency) |
boolean |
equals(Object o) |
static Money |
fromJson(String jsonString)
Create an instance of Money given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Currency |
getCurrency()
Get currency
|
Double |
getValue()
Get value
|
int |
hashCode() |
Money |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setCurrency(Currency currency) |
void |
setValue(Double value) |
String |
toJson()
Convert an instance of Money to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
Money |
value(Double value) |
Money |
value(Integer value) |
public static final String SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_CURRENCY
public void setValue(Double value)
public void setCurrency(Currency currency)
public Money putAdditionalProperty(String key, Object value)
key - name of the propertyvalue - value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - name of the propertypublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to Moneypublic static Money fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to Moneypublic String toJson()
Copyright © 2024. All rights reserved.