class Google::Apis::ContentV2::AccountTaxTaxRule

Tax calculation rule to apply in a state or province (USA only).

Attributes

country[RW]

Country code in which tax is applicable. Corresponds to the JSON property `country` @return [String]

location_id[RW]

State (or province) is which the tax is applicable, described by its location id (also called criteria id). Corresponds to the JSON property `locationId` @return [String]

rate_percent[RW]

Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative. Corresponds to the JSON property `ratePercent` @return [String]

shipping_taxed[RW]

If true, shipping charges are also taxed. Corresponds to the JSON property `shippingTaxed` @return [Boolean]

shipping_taxed?[RW]

If true, shipping charges are also taxed. Corresponds to the JSON property `shippingTaxed` @return [Boolean]

use_global_rate[RW]

Whether the tax rate is taken from a global tax table or specified explicitly. Corresponds to the JSON property `useGlobalRate` @return [Boolean]

use_global_rate?[RW]

Whether the tax rate is taken from a global tax table or specified explicitly. Corresponds to the JSON property `useGlobalRate` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 811
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 816
def update!(**args)
  @country = args[:country] if args.key?(:country)
  @location_id = args[:location_id] if args.key?(:location_id)
  @rate_percent = args[:rate_percent] if args.key?(:rate_percent)
  @shipping_taxed = args[:shipping_taxed] if args.key?(:shipping_taxed)
  @use_global_rate = args[:use_global_rate] if args.key?(:use_global_rate)
end