class Google::Apis::ContentV2::ProductTax
Attributes
The country within which the item is taxed, specified as a CLDR territory code. Corresponds to the JSON property `country` @return [String]
The numeric ID of a location that the tax rate applies to as defined in the AdWords API. Corresponds to the JSON property `locationId` @return [Fixnum]
The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*. Corresponds to the JSON property `postalCode` @return [String]
The percentage of tax rate that applies to the item price. Corresponds to the JSON property `rate` @return [Float]
The geographic region to which the tax rate applies. Corresponds to the JSON property `region` @return [String]
Should be set to true if tax is charged on shipping. Corresponds to the JSON property `taxShip` @return [Boolean]
Should be set to true if tax is charged on shipping. Corresponds to the JSON property `taxShip` @return [Boolean]
Public Class Methods
# File lib/google/apis/content_v2/classes.rb, line 9830 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2/classes.rb, line 9835 def update!(**args) @country = args[:country] if args.key?(:country) @location_id = args[:location_id] if args.key?(:location_id) @postal_code = args[:postal_code] if args.key?(:postal_code) @rate = args[:rate] if args.key?(:rate) @region = args[:region] if args.key?(:region) @tax_ship = args[:tax_ship] if args.key?(:tax_ship) end