Class: Google::Apis::ContentV2_1::ProductTax
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ProductTax
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#country ⇒ String
The country within which the item is taxed, specified as a CLDR territory code.
-
#location_id ⇒ Fixnum
The numeric ID of a location that the tax rate applies to as defined in the AdWords API.
-
#postal_code ⇒ String
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.
-
#rate ⇒ Float
The percentage of tax rate that applies to the item price.
-
#region ⇒ String
The geographic region to which the tax rate applies.
-
#tax_ship ⇒ Boolean
(also: #tax_ship?)
Should be set to true if tax is charged on shipping.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductTax
constructor
A new instance of ProductTax.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductTax
Returns a new instance of ProductTax.
11068 11069 11070 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11068 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
The country within which the item is taxed, specified as a CLDR territory code.
Corresponds to the JSON property country
11037 11038 11039 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11037 def country @country end |
#location_id ⇒ Fixnum
The numeric ID of a location that the tax rate applies to as defined in the
AdWords API.
Corresponds to the JSON property locationId
11043 11044 11045 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11043 def location_id @location_id end |
#postal_code ⇒ String
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
11050 11051 11052 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11050 def postal_code @postal_code end |
#rate ⇒ Float
The percentage of tax rate that applies to the item price.
Corresponds to the JSON property rate
11055 11056 11057 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11055 def rate @rate end |
#region ⇒ String
The geographic region to which the tax rate applies.
Corresponds to the JSON property region
11060 11061 11062 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11060 def region @region end |
#tax_ship ⇒ Boolean Also known as: tax_ship?
Should be set to true if tax is charged on shipping.
Corresponds to the JSON property taxShip
11065 11066 11067 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11065 def tax_ship @tax_ship end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11073 11074 11075 11076 11077 11078 11079 11080 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11073 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 |