public class

Tax

extends Object
java.lang.Object
   ↳ com.google.api.gbase.client.Tax

Class Overview

Tax information

Summary

Fields
private final String country Destination country, optional.
private final float rate The tax rate in percentage, always set.
private final Collection<String> regions The region, optional and repeatable.
private final Boolean taxShip A boolean indicating whether the shipping is taxed.
Public Constructors
Tax(String country, Collection<String> regions, float rate, Boolean taxShip)
Creates a tax object.
Public Methods
String getCountry()
Gets the destination country, or null.
float getRate()
Gets the tax rate.
Collection<String> getRegions()
Gets the regions.
Boolean getTaxShip()
Gets the taxShip, or null.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final String country

Destination country, optional.

private final float rate

The tax rate in percentage, always set.

private final Collection<String> regions

The region, optional and repeatable.

private final Boolean taxShip

A boolean indicating whether the shipping is taxed. Optional. Default is false.

Public Constructors

public Tax (String country, Collection<String> regions, float rate, Boolean taxShip)

Creates a tax object.

Parameters
country Destination country (ISO 3312 2-letter code), can be null
regions A list of shipping regions within the destination country, can be null.
rate The tax percentage rate. For example, for 6% tax rate, rate should be set to 6.
taxShip A boolean indicating whether the shipping is taxed, can be null.

Public Methods

public String getCountry ()

Gets the destination country, or null. This should be a ISO 3312 2-letter code.

public float getRate ()

Gets the tax rate.

public Collection<String> getRegions ()

Gets the regions. This method never returns null, but the returned list can be empty.

public Boolean getTaxShip ()

Gets the taxShip, or null.

public String toString ()