ShippingAddressRequirements.Builder

public final class ShippingAddressRequirements.Builder extends Object

Builder to create a ShippingAddressRequirements.

Public Method Summary

ShippingAddressRequirements.Builder
addAllowedCountryCode(String allowedCountryCode)
Adds a country code of the country to which shipping is allowed in this transaction.
ShippingAddressRequirements.Builder
addAllowedCountryCodes(Collection<String> allowedCountryCodes)
Adds a collection of country codes of the countries to which shipping is allowed in this transaction.
ShippingAddressRequirements

Inherited Method Summary

Public Methods

public ShippingAddressRequirements.Builder addAllowedCountryCode (String allowedCountryCode)

Adds a country code of the country to which shipping is allowed in this transaction. If not specified here nor via addAllowedCountryCodes(Collection), all countries are considered to be allowed.

Parameters
allowedCountryCode an ISO 3166-1 alpha-2 formatted country code (e.g., "US", "CA", "JP").

public ShippingAddressRequirements.Builder addAllowedCountryCodes (Collection<String> allowedCountryCodes)

Adds a collection of country codes of the countries to which shipping is allowed in this transaction. If not specified here nor via addAllowedCountryCode(String), all countries are considered to be allowed.

Parameters
allowedCountryCodes a collection of ISO 3166-1 alpha-2 formatted country code (e.g., "US", "CA", "JP").

public ShippingAddressRequirements build ()

Returns