BillingProfilePropertiesBillTo Class

public final class BillingProfilePropertiesBillTo
extends AddressDetails

Billing address.

Constructor Summary

Constructor Description
BillingProfilePropertiesBillTo()

Creates an instance of BillingProfilePropertiesBillTo class.

Method Summary

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

Reads an instance of BillingProfilePropertiesBillTo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingProfilePropertiesBillTo withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

BillingProfilePropertiesBillTo withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

BillingProfilePropertiesBillTo withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

BillingProfilePropertiesBillTo withCity(String city)

Set the city property: Address city.

BillingProfilePropertiesBillTo withCompanyName(String companyName)

Set the companyName property: Company name.

BillingProfilePropertiesBillTo withCountry(String country)

Set the country property: Country code uses ISO 3166-1 Alpha-2 format.

BillingProfilePropertiesBillTo withDistrict(String district)

Set the district property: Address district.

BillingProfilePropertiesBillTo withEmail(String email)

Set the email property: Email address.

BillingProfilePropertiesBillTo withFirstName(String firstName)

Set the firstName property: First name.

BillingProfilePropertiesBillTo withIsValidAddress(Boolean isValidAddress)

Set the isValidAddress property: Indicates if the address is incomplete.

BillingProfilePropertiesBillTo withLastName(String lastName)

Set the lastName property: Last name.

BillingProfilePropertiesBillTo withMiddleName(String middleName)

Set the middleName property: Middle name.

BillingProfilePropertiesBillTo withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

BillingProfilePropertiesBillTo withPostalCode(String postalCode)

Set the postalCode property: Postal code.

BillingProfilePropertiesBillTo withRegion(String region)

Set the region property: Address region.

Methods inherited from AddressDetails

Methods inherited from java.lang.Object

Constructor Details

BillingProfilePropertiesBillTo

public BillingProfilePropertiesBillTo()

Creates an instance of BillingProfilePropertiesBillTo class.

Method Details

fromJson

public static BillingProfilePropertiesBillTo fromJson(JsonReader jsonReader)

Reads an instance of BillingProfilePropertiesBillTo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BillingProfilePropertiesBillTo.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BillingProfilePropertiesBillTo.validate()

withAddressLine1

public BillingProfilePropertiesBillTo withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

Overrides:

BillingProfilePropertiesBillTo.withAddressLine1(String addressLine1)

Parameters:

addressLine1

withAddressLine2

public BillingProfilePropertiesBillTo withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

Overrides:

BillingProfilePropertiesBillTo.withAddressLine2(String addressLine2)

Parameters:

addressLine2

withAddressLine3

public BillingProfilePropertiesBillTo withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

Overrides:

BillingProfilePropertiesBillTo.withAddressLine3(String addressLine3)

Parameters:

addressLine3

withCity

public BillingProfilePropertiesBillTo withCity(String city)

Set the city property: Address city.

Overrides:

BillingProfilePropertiesBillTo.withCity(String city)

Parameters:

city

withCompanyName

public BillingProfilePropertiesBillTo withCompanyName(String companyName)

Set the companyName property: Company name. Optional for MCA Individual (Pay-as-you-go).

Overrides:

BillingProfilePropertiesBillTo.withCompanyName(String companyName)

Parameters:

companyName

withCountry

public BillingProfilePropertiesBillTo withCountry(String country)

Set the country property: Country code uses ISO 3166-1 Alpha-2 format.

Overrides:

BillingProfilePropertiesBillTo.withCountry(String country)

Parameters:

country

withDistrict

public BillingProfilePropertiesBillTo withDistrict(String district)

Set the district property: Address district.

Overrides:

BillingProfilePropertiesBillTo.withDistrict(String district)

Parameters:

district

withEmail

public BillingProfilePropertiesBillTo withEmail(String email)

Set the email property: Email address.

Overrides:

BillingProfilePropertiesBillTo.withEmail(String email)

Parameters:

email

withFirstName

public BillingProfilePropertiesBillTo withFirstName(String firstName)

Set the firstName property: First name. Optional for MCA Enterprise.

Overrides:

BillingProfilePropertiesBillTo.withFirstName(String firstName)

Parameters:

firstName

withIsValidAddress

public BillingProfilePropertiesBillTo withIsValidAddress(Boolean isValidAddress)

Set the isValidAddress property: Indicates if the address is incomplete.

Overrides:

BillingProfilePropertiesBillTo.withIsValidAddress(Boolean isValidAddress)

Parameters:

isValidAddress

withLastName

public BillingProfilePropertiesBillTo withLastName(String lastName)

Set the lastName property: Last name. Optional for MCA Enterprise.

Overrides:

BillingProfilePropertiesBillTo.withLastName(String lastName)

Parameters:

lastName

withMiddleName

public BillingProfilePropertiesBillTo withMiddleName(String middleName)

Set the middleName property: Middle name.

Overrides:

BillingProfilePropertiesBillTo.withMiddleName(String middleName)

Parameters:

middleName

withPhoneNumber

public BillingProfilePropertiesBillTo withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

Overrides:

BillingProfilePropertiesBillTo.withPhoneNumber(String phoneNumber)

Parameters:

phoneNumber

withPostalCode

public BillingProfilePropertiesBillTo withPostalCode(String postalCode)

Set the postalCode property: Postal code.

Overrides:

BillingProfilePropertiesBillTo.withPostalCode(String postalCode)

Parameters:

postalCode

withRegion

public BillingProfilePropertiesBillTo withRegion(String region)

Set the region property: Address region.

Overrides:

BillingProfilePropertiesBillTo.withRegion(String region)

Parameters:

region

Applies to