Package Avalara.SDK.model.EInvoicing.V1
Class SubscriptionRegistration
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.SubscriptionRegistration
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class SubscriptionRegistration extends Object
SubscriptionRegistration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionRegistration.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_EVENTSstatic StringSERIALIZED_NAME_NOTIFICATION_URLstatic StringSERIALIZED_NAME_SIGNATURE
-
Constructor Summary
Constructors Constructor Description SubscriptionRegistration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionRegistrationaddEventsItem(EventSubscription eventsItem)SubscriptionRegistrationdescription(String description)booleanequals(Object o)SubscriptionRegistrationevents(List<EventSubscription> events)static SubscriptionRegistrationfromJson(String jsonString)Create an instance of SubscriptionRegistration given an JSON stringStringgetDescription()Description of the subscriptionList<EventSubscription>getEvents()Get eventsStringgetNotificationUrl()The URL of the webhook endpoint to which event messages will be deliveredSignatureSignaturegetSignature()Get signatureinthashCode()SubscriptionRegistrationnotificationUrl(String notificationUrl)voidsetDescription(String description)voidsetEvents(List<EventSubscription> events)voidsetNotificationUrl(String notificationUrl)voidsetSignature(SignatureSignature signature)SubscriptionRegistrationsignature(SignatureSignature signature)StringtoJson()Convert an instance of SubscriptionRegistration 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
-
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
-
description
public SubscriptionRegistration description(String description)
-
getDescription
@Nullable public String getDescription()
Description of the subscription- Returns:
- description
-
setDescription
public void setDescription(String description)
-
notificationUrl
public SubscriptionRegistration 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 SubscriptionRegistration signature(SignatureSignature signature)
-
getSignature
@Nonnull public SignatureSignature getSignature()
Get signature- Returns:
- signature
-
setSignature
public void setSignature(SignatureSignature signature)
-
events
public SubscriptionRegistration events(List<EventSubscription> events)
-
addEventsItem
public SubscriptionRegistration 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 SubscriptionRegistration
-
fromJson
public static SubscriptionRegistration fromJson(String jsonString) throws IOException
Create an instance of SubscriptionRegistration given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubscriptionRegistration
- Throws:
IOException- if the JSON string is invalid with respect to SubscriptionRegistration
-
toJson
public String toJson()
Convert an instance of SubscriptionRegistration to an JSON string- Returns:
- JSON string
-
-