BillingProfilePropertiesSoldTo Class

public final class BillingProfilePropertiesSoldTo
extends AddressDetails

The address of the individual or organization that is responsible for the billing account.

Constructor Summary

Constructor Description
BillingProfilePropertiesSoldTo()

Creates an instance of BillingProfilePropertiesSoldTo class.

Method Summary

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

Reads an instance of BillingProfilePropertiesSoldTo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingProfilePropertiesSoldTo withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

BillingProfilePropertiesSoldTo withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

BillingProfilePropertiesSoldTo withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

BillingProfilePropertiesSoldTo withCity(String city)

Set the city property: Address city.

BillingProfilePropertiesSoldTo withCompanyName(String companyName)

Set the companyName property: Company name.

BillingProfilePropertiesSoldTo withCountry(String country)

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

BillingProfilePropertiesSoldTo withDistrict(String district)

Set the district property: Address district.

BillingProfilePropertiesSoldTo withEmail(String email)

Set the email property: Email address.

BillingProfilePropertiesSoldTo withFirstName(String firstName)

Set the firstName property: First name.

BillingProfilePropertiesSoldTo withIsValidAddress(Boolean isValidAddress)

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

BillingProfilePropertiesSoldTo withLastName(String lastName)

Set the lastName property: Last name.

BillingProfilePropertiesSoldTo withMiddleName(String middleName)

Set the middleName property: Middle name.

BillingProfilePropertiesSoldTo withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

BillingProfilePropertiesSoldTo withPostalCode(String postalCode)

Set the postalCode property: Postal code.

BillingProfilePropertiesSoldTo withRegion(String region)

Set the region property: Address region.

Methods inherited from AddressDetails

Methods inherited from java.lang.Object

Constructor Details

BillingProfilePropertiesSoldTo

public BillingProfilePropertiesSoldTo()

Creates an instance of BillingProfilePropertiesSoldTo class.

Method Details

fromJson

public static BillingProfilePropertiesSoldTo fromJson(JsonReader jsonReader)

Reads an instance of BillingProfilePropertiesSoldTo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BillingProfilePropertiesSoldTo 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:

BillingProfilePropertiesSoldTo.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BillingProfilePropertiesSoldTo.validate()

withAddressLine1

public BillingProfilePropertiesSoldTo withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

Overrides:

BillingProfilePropertiesSoldTo.withAddressLine1(String addressLine1)

Parameters:

addressLine1

withAddressLine2

public BillingProfilePropertiesSoldTo withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

Overrides:

BillingProfilePropertiesSoldTo.withAddressLine2(String addressLine2)

Parameters:

addressLine2

withAddressLine3

public BillingProfilePropertiesSoldTo withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

Overrides:

BillingProfilePropertiesSoldTo.withAddressLine3(String addressLine3)

Parameters:

addressLine3

withCity

public BillingProfilePropertiesSoldTo withCity(String city)

Set the city property: Address city.

Overrides:

BillingProfilePropertiesSoldTo.withCity(String city)

Parameters:

city

withCompanyName

public BillingProfilePropertiesSoldTo withCompanyName(String companyName)

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

Overrides:

BillingProfilePropertiesSoldTo.withCompanyName(String companyName)

Parameters:

companyName

withCountry

public BillingProfilePropertiesSoldTo withCountry(String country)

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

Overrides:

BillingProfilePropertiesSoldTo.withCountry(String country)

Parameters:

country

withDistrict

public BillingProfilePropertiesSoldTo withDistrict(String district)

Set the district property: Address district.

Overrides:

BillingProfilePropertiesSoldTo.withDistrict(String district)

Parameters:

district

withEmail

public BillingProfilePropertiesSoldTo withEmail(String email)

Set the email property: Email address.

Overrides:

BillingProfilePropertiesSoldTo.withEmail(String email)

Parameters:

email

withFirstName

public BillingProfilePropertiesSoldTo withFirstName(String firstName)

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

Overrides:

BillingProfilePropertiesSoldTo.withFirstName(String firstName)

Parameters:

firstName

withIsValidAddress

public BillingProfilePropertiesSoldTo withIsValidAddress(Boolean isValidAddress)

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

Overrides:

BillingProfilePropertiesSoldTo.withIsValidAddress(Boolean isValidAddress)

Parameters:

isValidAddress

withLastName

public BillingProfilePropertiesSoldTo withLastName(String lastName)

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

Overrides:

BillingProfilePropertiesSoldTo.withLastName(String lastName)

Parameters:

lastName

withMiddleName

public BillingProfilePropertiesSoldTo withMiddleName(String middleName)

Set the middleName property: Middle name.

Overrides:

BillingProfilePropertiesSoldTo.withMiddleName(String middleName)

Parameters:

middleName

withPhoneNumber

public BillingProfilePropertiesSoldTo withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

Overrides:

BillingProfilePropertiesSoldTo.withPhoneNumber(String phoneNumber)

Parameters:

phoneNumber

withPostalCode

public BillingProfilePropertiesSoldTo withPostalCode(String postalCode)

Set the postalCode property: Postal code.

Overrides:

BillingProfilePropertiesSoldTo.withPostalCode(String postalCode)

Parameters:

postalCode

withRegion

public BillingProfilePropertiesSoldTo withRegion(String region)

Set the region property: Address region.

Overrides:

BillingProfilePropertiesSoldTo.withRegion(String region)

Parameters:

region

Applies to