class Google::Apis::ContentV2::ProductTax

Attributes

country[RW]

The country within which the item is taxed, specified as a CLDR territory code. Corresponds to the JSON property `country` @return [String]

location_id[RW]

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 [String]

postal_code[RW]

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]

rate[RW]

The percentage of tax rate that applies to the item price. Corresponds to the JSON property `rate` @return [Float]

region[RW]

The geographic region to which the tax rate applies. Corresponds to the JSON property `region` @return [String]

tax_ship[RW]

Set to true if tax is charged on shipping. Corresponds to the JSON property `taxShip` @return [Boolean]

tax_ship?[RW]

Set to true if tax is charged on shipping. Corresponds to the JSON property `taxShip` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 5434
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 5439
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