ShippingAddressRequirements.Builder | Doclava
public final class

ShippingAddressRequirements.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.wallet.ShippingAddressRequirements.Builder

Class Overview

Builder to create a ShippingAddressRequirements.

Summary

Public Methods
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 build()
[Expand]
Inherited Methods
From class java.lang.Object

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 String:an ISO 3166-2 formatted country code (e.g., "US", "CA", "JP").

Returns
ShippingAddressRequirements.Builder

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 Collection:a collection of ISO 3166-2 formatted country code (e.g., "US", "CA", "JP").

Returns
ShippingAddressRequirements.Builder

public ShippingAddressRequirements build ()

Returns
ShippingAddressRequirements the actual ShippingAddressRequirements created using the data passed to the Builder object.