BillingAccountPropertiesRegistrationNumber Class

public final class BillingAccountPropertiesRegistrationNumber
extends RegistrationNumber

Describes the registration number of the organization linked with the billing account.

Constructor Summary

Constructor Description
BillingAccountPropertiesRegistrationNumber()

Creates an instance of BillingAccountPropertiesRegistrationNumber class.

Method Summary

Modifier and Type Method and Description
static BillingAccountPropertiesRegistrationNumber fromJson(JsonReader jsonReader)

Reads an instance of BillingAccountPropertiesRegistrationNumber from the JsonReader.

Boolean required()

Get the required property: Identifies if the registration number is required for the billing account.

JsonWriter toJson(JsonWriter jsonWriter)
List<String> type()

Get the type property: The types of registration number allowed based on the country of the billing account.

void validate()

Validates the instance.

BillingAccountPropertiesRegistrationNumber withId(String id)

Set the id property: The unique identification number of the organization linked with the billing account.

Methods inherited from RegistrationNumber

Methods inherited from java.lang.Object

Constructor Details

BillingAccountPropertiesRegistrationNumber

public BillingAccountPropertiesRegistrationNumber()

Creates an instance of BillingAccountPropertiesRegistrationNumber class.

Method Details

fromJson

public static BillingAccountPropertiesRegistrationNumber fromJson(JsonReader jsonReader)

Reads an instance of BillingAccountPropertiesRegistrationNumber from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BillingAccountPropertiesRegistrationNumber if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the BillingAccountPropertiesRegistrationNumber.

required

public Boolean required()

Get the required property: Identifies if the registration number is required for the billing account.

Overrides:

BillingAccountPropertiesRegistrationNumber.required()

Returns:

the required value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BillingAccountPropertiesRegistrationNumber.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public List<String> type()

Get the type property: The types of registration number allowed based on the country of the billing account.

Overrides:

BillingAccountPropertiesRegistrationNumber.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

BillingAccountPropertiesRegistrationNumber.validate()

withId

public BillingAccountPropertiesRegistrationNumber withId(String id)

Set the id property: The unique identification number of the organization linked with the billing account.

Overrides:

BillingAccountPropertiesRegistrationNumber.withId(String id)

Parameters:

id

Applies to