Package Avalara.SDK.model.EInvoicing.V1
Class SubscriptionDetail
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.SubscriptionDetail
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class SubscriptionDetail extends Object
SubscriptionDetail
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionDetail.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_EVENTSstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_NOTIFICATION_URLstatic StringSERIALIZED_NAME_SIGNATURE
-
Constructor Summary
Constructors Constructor Description SubscriptionDetail()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionDetailaddEventsItem(EventSubscription eventsItem)SubscriptionDetaildescription(String description)booleanequals(Object o)SubscriptionDetailevents(List<EventSubscription> events)static SubscriptionDetailfromJson(String jsonString)Create an instance of SubscriptionDetail given an JSON stringStringgetDescription()Description of the subscriptionList<EventSubscription>getEvents()Get eventsUUIDgetId()Unique identifier of this specific resource.StringgetNotificationUrl()The URL of the webhook endpoint to which event messages will be deliveredSignatureSignaturegetSignature()Get signatureinthashCode()SubscriptionDetailid(UUID id)SubscriptionDetailnotificationUrl(String notificationUrl)voidsetDescription(String description)voidsetEvents(List<EventSubscription> events)voidsetId(UUID id)voidsetNotificationUrl(String notificationUrl)voidsetSignature(SignatureSignature signature)SubscriptionDetailsignature(SignatureSignature signature)StringtoJson()Convert an instance of SubscriptionDetail 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_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
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
-
SERIALIZED_NAME_SIGNATURE
public static final String SERIALIZED_NAME_SIGNATURE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EVENTS
public static final String SERIALIZED_NAME_EVENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public SubscriptionDetail id(UUID id)
-
setId
public void setId(UUID id)
-
description
public SubscriptionDetail description(String description)
-
getDescription
@Nullable public String getDescription()
Description of the subscription- Returns:
- description
-
setDescription
public void setDescription(String description)
-
notificationUrl
public SubscriptionDetail 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)
-
signature
public SubscriptionDetail signature(SignatureSignature signature)
-
getSignature
@Nonnull public SignatureSignature getSignature()
Get signature- Returns:
- signature
-
setSignature
public void setSignature(SignatureSignature signature)
-
events
public SubscriptionDetail events(List<EventSubscription> events)
-
addEventsItem
public SubscriptionDetail addEventsItem(EventSubscription eventsItem)
-
getEvents
@Nonnull public List<EventSubscription> getEvents()
Get events- Returns:
- events
-
setEvents
public void setEvents(List<EventSubscription> events)
-
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 SubscriptionDetail
-
fromJson
public static SubscriptionDetail fromJson(String jsonString) throws IOException
Create an instance of SubscriptionDetail given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubscriptionDetail
- Throws:
IOException- if the JSON string is invalid with respect to SubscriptionDetail
-
toJson
public String toJson()
Convert an instance of SubscriptionDetail to an JSON string- Returns:
- JSON string
-
-