Interface TaxRuleOrBuilder (0.2.0)

public interface TaxRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEffectiveTimePeriod()

public abstract Interval getEffectiveTimePeriod()

Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive.

.google.type.Interval effective_time_period = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Interval

The effectiveTimePeriod.

getEffectiveTimePeriodOrBuilder()

public abstract IntervalOrBuilder getEffectiveTimePeriodOrBuilder()

Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive.

.google.type.Interval effective_time_period = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.IntervalOrBuilder

getLocationCase()

public abstract TaxRule.LocationCase getLocationCase()
Returns
Type Description
TaxRule.LocationCase

getLocationId()

public abstract long getLocationId()

The admin_id or criteria_id of the region in which this rule is applicable.

int64 location_id = 2;

Returns
Type Description
long

The locationId.

getPostCodeRange()

public abstract TaxRule.TaxPostalCodeRange getPostCodeRange()

The range of postal codes in which this rule is applicable.

.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange post_code_range = 3;

Returns
Type Description
TaxRule.TaxPostalCodeRange

The postCodeRange.

getPostCodeRangeOrBuilder()

public abstract TaxRule.TaxPostalCodeRangeOrBuilder getPostCodeRangeOrBuilder()

The range of postal codes in which this rule is applicable.

.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange post_code_range = 3;

Returns
Type Description
TaxRule.TaxPostalCodeRangeOrBuilder

getRateCalculationCase()

public abstract TaxRule.RateCalculationCase getRateCalculationCase()
Returns
Type Description
TaxRule.RateCalculationCase

getRegionCode()

public abstract String getRegionCode()

Region code in which this rule is applicable

string region_code = 1;

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public abstract ByteString getRegionCodeBytes()

Region code in which this rule is applicable

string region_code = 1;

Returns
Type Description
ByteString

The bytes for regionCode.

getSelfSpecifiedRateMicros()

public abstract long getSelfSpecifiedRateMicros()

A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.

int64 self_specified_rate_micros = 5;

Returns
Type Description
long

The selfSpecifiedRateMicros.

getShippingTaxed()

public abstract boolean getShippingTaxed()

If set, shipping charge is taxed (at the same rate as product) when delivering to this admin's area. Can only be set on US states without category.

bool shipping_taxed = 6;

Returns
Type Description
boolean

The shippingTaxed.

getUseGoogleRate()

public abstract boolean getUseGoogleRate()

Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.

bool use_google_rate = 4;

Returns
Type Description
boolean

The useGoogleRate.

hasEffectiveTimePeriod()

public abstract boolean hasEffectiveTimePeriod()

Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive.

.google.type.Interval effective_time_period = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the effectiveTimePeriod field is set.

hasLocationId()

public abstract boolean hasLocationId()

The admin_id or criteria_id of the region in which this rule is applicable.

int64 location_id = 2;

Returns
Type Description
boolean

Whether the locationId field is set.

hasPostCodeRange()

public abstract boolean hasPostCodeRange()

The range of postal codes in which this rule is applicable.

.google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange post_code_range = 3;

Returns
Type Description
boolean

Whether the postCodeRange field is set.

hasSelfSpecifiedRateMicros()

public abstract boolean hasSelfSpecifiedRateMicros()

A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.

int64 self_specified_rate_micros = 5;

Returns
Type Description
boolean

Whether the selfSpecifiedRateMicros field is set.

hasUseGoogleRate()

public abstract boolean hasUseGoogleRate()

Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.

bool use_google_rate = 4;

Returns
Type Description
boolean

Whether the useGoogleRate field is set.