BillingProfilePropertiesShipTo Class

public final class BillingProfilePropertiesShipTo
extends AddressDetails

The default address where the products are shipped, or the services are being used. If a ship to is not specified for a product or a subscription, then this address will be used.

Constructor Summary

Constructor Description
BillingProfilePropertiesShipTo()

Creates an instance of BillingProfilePropertiesShipTo class.

Method Summary

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

Reads an instance of BillingProfilePropertiesShipTo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingProfilePropertiesShipTo withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

BillingProfilePropertiesShipTo withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

BillingProfilePropertiesShipTo withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

BillingProfilePropertiesShipTo withCity(String city)

Set the city property: Address city.

BillingProfilePropertiesShipTo withCompanyName(String companyName)

Set the companyName property: Company name.

BillingProfilePropertiesShipTo withCountry(String country)

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

BillingProfilePropertiesShipTo withDistrict(String district)

Set the district property: Address district.

BillingProfilePropertiesShipTo withEmail(String email)

Set the email property: Email address.

BillingProfilePropertiesShipTo withFirstName(String firstName)

Set the firstName property: First name.

BillingProfilePropertiesShipTo withIsValidAddress(Boolean isValidAddress)

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

BillingProfilePropertiesShipTo withLastName(String lastName)

Set the lastName property: Last name.

BillingProfilePropertiesShipTo withMiddleName(String middleName)

Set the middleName property: Middle name.

BillingProfilePropertiesShipTo withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

BillingProfilePropertiesShipTo withPostalCode(String postalCode)

Set the postalCode property: Postal code.

BillingProfilePropertiesShipTo withRegion(String region)

Set the region property: Address region.

Methods inherited from AddressDetails

Methods inherited from java.lang.Object

Constructor Details

BillingProfilePropertiesShipTo

public BillingProfilePropertiesShipTo()

Creates an instance of BillingProfilePropertiesShipTo class.

Method Details

fromJson

public static BillingProfilePropertiesShipTo fromJson(JsonReader jsonReader)

Reads an instance of BillingProfilePropertiesShipTo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

BillingProfilePropertiesShipTo.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BillingProfilePropertiesShipTo.validate()

withAddressLine1

public BillingProfilePropertiesShipTo withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

Overrides:

BillingProfilePropertiesShipTo.withAddressLine1(String addressLine1)

Parameters:

addressLine1

withAddressLine2

public BillingProfilePropertiesShipTo withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

Overrides:

BillingProfilePropertiesShipTo.withAddressLine2(String addressLine2)

Parameters:

addressLine2

withAddressLine3

public BillingProfilePropertiesShipTo withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

Overrides:

BillingProfilePropertiesShipTo.withAddressLine3(String addressLine3)

Parameters:

addressLine3

withCity

public BillingProfilePropertiesShipTo withCity(String city)

Set the city property: Address city.

Overrides:

BillingProfilePropertiesShipTo.withCity(String city)

Parameters:

city

withCompanyName

public BillingProfilePropertiesShipTo withCompanyName(String companyName)

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

Overrides:

BillingProfilePropertiesShipTo.withCompanyName(String companyName)

Parameters:

companyName

withCountry

public BillingProfilePropertiesShipTo withCountry(String country)

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

Overrides:

BillingProfilePropertiesShipTo.withCountry(String country)

Parameters:

country

withDistrict

public BillingProfilePropertiesShipTo withDistrict(String district)

Set the district property: Address district.

Overrides:

BillingProfilePropertiesShipTo.withDistrict(String district)

Parameters:

district

withEmail

public BillingProfilePropertiesShipTo withEmail(String email)

Set the email property: Email address.

Overrides:

BillingProfilePropertiesShipTo.withEmail(String email)

Parameters:

email

withFirstName

public BillingProfilePropertiesShipTo withFirstName(String firstName)

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

Overrides:

BillingProfilePropertiesShipTo.withFirstName(String firstName)

Parameters:

firstName

withIsValidAddress

public BillingProfilePropertiesShipTo withIsValidAddress(Boolean isValidAddress)

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

Overrides:

BillingProfilePropertiesShipTo.withIsValidAddress(Boolean isValidAddress)

Parameters:

isValidAddress

withLastName

public BillingProfilePropertiesShipTo withLastName(String lastName)

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

Overrides:

BillingProfilePropertiesShipTo.withLastName(String lastName)

Parameters:

lastName

withMiddleName

public BillingProfilePropertiesShipTo withMiddleName(String middleName)

Set the middleName property: Middle name.

Overrides:

BillingProfilePropertiesShipTo.withMiddleName(String middleName)

Parameters:

middleName

withPhoneNumber

public BillingProfilePropertiesShipTo withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

Overrides:

BillingProfilePropertiesShipTo.withPhoneNumber(String phoneNumber)

Parameters:

phoneNumber

withPostalCode

public BillingProfilePropertiesShipTo withPostalCode(String postalCode)

Set the postalCode property: Postal code.

Overrides:

BillingProfilePropertiesShipTo.withPostalCode(String postalCode)

Parameters:

postalCode

withRegion

public BillingProfilePropertiesShipTo withRegion(String region)

Set the region property: Address region.

Overrides:

BillingProfilePropertiesShipTo.withRegion(String region)

Parameters:

region

Applies to