Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class TaxRule.
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
Generated from protobuf message google.shopping.merchant.accounts.v1beta.TaxRule
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ location_id
int|string
The admin_id or criteria_id of the region in which this rule is applicable.
↳ post_code_range
↳ use_google_rate
bool
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.
↳ self_specified_rate_micros
int|string
A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.
↳ region_code
string
Region code in which this rule is applicable
↳ shipping_taxed
bool
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.
↳ effective_time_period
Google\Type\Interval
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.
getLocationId
The admin_id or criteria_id of the region in which this rule is applicable.
int|string
hasLocationId
setLocationId
The admin_id or criteria_id of the region in which this rule is applicable.
var
int|string
$this
getPostCodeRange
The range of postal codes in which this rule is applicable.
hasPostCodeRange
setPostCodeRange
The range of postal codes in which this rule is applicable.
$this
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
hasUseGoogleRate
setUseGoogleRate
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.
var
bool
$this
getSelfSpecifiedRateMicros
A fixed rate specified in micros, where 100% = 1_000_000.
Suitable for origin-based states.
int|string
hasSelfSpecifiedRateMicros
setSelfSpecifiedRateMicros
A fixed rate specified in micros, where 100% = 1_000_000.
Suitable for origin-based states.
var
int|string
$this
getRegionCode
Region code in which this rule is applicable
string
setRegionCode
Region code in which this rule is applicable
var
string
$this
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
setShippingTaxed
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.
var
bool
$this
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.
hasEffectiveTimePeriod
clearEffectiveTimePeriod
setEffectiveTimePeriod
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.
$this
getLocation
string
getRateCalculation
string