Class: Google::Apis::ContentV2::ProductTax
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2::ProductTax
 
- Defined in:
- generated/google/apis/content_v2/classes.rb,
 generated/google/apis/content_v2/representations.rb,
 generated/google/apis/content_v2/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?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    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. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProductTax
Returns a new instance of ProductTax
| 7782 7783 7784 | # File 'generated/google/apis/content_v2/classes.rb', line 7782 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
| 7751 7752 7753 | # File 'generated/google/apis/content_v2/classes.rb', line 7751 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
| 7757 7758 7759 | # File 'generated/google/apis/content_v2/classes.rb', line 7757 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
| 7764 7765 7766 | # File 'generated/google/apis/content_v2/classes.rb', line 7764 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
| 7769 7770 7771 | # File 'generated/google/apis/content_v2/classes.rb', line 7769 def rate @rate end | 
#region ⇒ String
The geographic region to which the tax rate applies.
Corresponds to the JSON property region
| 7774 7775 7776 | # File 'generated/google/apis/content_v2/classes.rb', line 7774 def region @region end | 
#tax_ship ⇒ Boolean Also known as: tax_ship?
Set to true if tax is charged on shipping.
Corresponds to the JSON property taxShip
| 7779 7780 7781 | # File 'generated/google/apis/content_v2/classes.rb', line 7779 def tax_ship @tax_ship end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 7787 7788 7789 7790 7791 7792 7793 7794 | # File 'generated/google/apis/content_v2/classes.rb', line 7787 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 |