Package Avalara.SDK.model.EInvoicing.V1
Class SubscriptionCommon
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.SubscriptionCommon
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class SubscriptionCommon extends Object
SubscriptionCommon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionCommon.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_NOTIFICATION_URL
-
Constructor Summary
Constructors Constructor Description SubscriptionCommon()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionCommondescription(String description)booleanequals(Object o)static SubscriptionCommonfromJson(String jsonString)Create an instance of SubscriptionCommon given an JSON stringStringgetDescription()Description of the subscriptionStringgetNotificationUrl()The URL of the webhook endpoint to which event messages will be deliveredinthashCode()SubscriptionCommonnotificationUrl(String notificationUrl)voidsetDescription(String description)voidsetNotificationUrl(String notificationUrl)StringtoJson()Convert an instance of SubscriptionCommon 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_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NOTIFICATION_URL
public static final String SERIALIZED_NAME_NOTIFICATION_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public SubscriptionCommon description(String description)
-
getDescription
@Nullable public String getDescription()
Description of the subscription- Returns:
- description
-
setDescription
public void setDescription(String description)
-
notificationUrl
public SubscriptionCommon notificationUrl(String notificationUrl)
-
getNotificationUrl
@Nonnull public String getNotificationUrl()
The URL of the webhook endpoint to which event messages will be delivered- Returns:
- notificationUrl
-
setNotificationUrl
public void setNotificationUrl(String notificationUrl)
-
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 SubscriptionCommon
-
fromJson
public static SubscriptionCommon fromJson(String jsonString) throws IOException
Create an instance of SubscriptionCommon given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubscriptionCommon
- Throws:
IOException- if the JSON string is invalid with respect to SubscriptionCommon
-
toJson
public String toJson()
Convert an instance of SubscriptionCommon to an JSON string- Returns:
- JSON string
-
-