public final class TaxRule extends GeneratedMessageV3 implements TaxRuleOrBuilder
Primary type convension
percent micro : 100% = 1 000 000 and 1% = 10 000
cannot be negative.
Information about tax nexus and related parameters applicable to orders
delivered to the area covered by a single tax admin. Nexus is created when a
merchant is doing business in an area administered by tax admin (only US
states are supported for nexus configuration). If merchant has nexus in a US
state, merchant needs to pay tax to all tax authorities associated with
the shipping destination.
Next Id : 8
Protobuf type google.shopping.merchant.accounts.v1beta.TaxRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int EFFECTIVE_TIME_PERIOD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LOCATION_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
POST_CODE_RANGE_FIELD_NUMBER
public static final int POST_CODE_RANGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int REGION_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SELF_SPECIFIED_RATE_MICROS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SHIPPING_TAXED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int USE_GOOGLE_RATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static TaxRule getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static TaxRule.Builder newBuilder()
public static TaxRule.Builder newBuilder(TaxRule prototype)
Parameter |
Name |
Description |
prototype |
TaxRule
|
public static TaxRule parseDelimitedFrom(InputStream input)
public static TaxRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TaxRule parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static TaxRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TaxRule parseFrom(ByteString data)
public static TaxRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TaxRule parseFrom(CodedInputStream input)
public static TaxRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TaxRule parseFrom(InputStream input)
public static TaxRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TaxRule parseFrom(ByteBuffer data)
public static TaxRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<TaxRule> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public TaxRule getDefaultInstanceForType()
public 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.
|
public 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 |
|
public TaxRule.LocationCase getLocationCase()
public 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.
|
public Parser<TaxRule> getParserForType()
Overrides
getPostCodeRange()
public 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;
getPostCodeRangeOrBuilder()
public 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;
public TaxRule.RateCalculationCase getRateCalculationCase()
public String getRegionCode()
Region code in which this rule is applicable
string region_code = 1;
Returns |
Type |
Description |
String |
The regionCode.
|
public ByteString getRegionCodeBytes()
Region code in which this rule is applicable
string region_code = 1;
Returns |
Type |
Description |
ByteString |
The bytes for regionCode.
|
public 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.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public 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.
|
public 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.
|
public 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.
|
public 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 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.
|
public 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.
|
public 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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public TaxRule.Builder newBuilderForType()
protected TaxRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public TaxRule.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides