Class: Google::Apis::ContentV2::AccountTaxTaxRule
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2::AccountTaxTaxRule
 
- Defined in:
- generated/google/apis/content_v2/classes.rb,
 generated/google/apis/content_v2/representations.rb,
 generated/google/apis/content_v2/representations.rb
Overview
Tax calculation rule to apply in a state or province (USA only).
Instance Attribute Summary collapse
- 
  
    
      #country  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Country code in which tax is applicable. 
- 
  
    
      #location_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    State (or province) is which the tax is applicable, described by its location id (also called criteria id). 
- 
  
    
      #rate_percent  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Explicit tax rate in percent, represented as a floating point number without the percentage character. 
- 
  
    
      #shipping_taxed  ⇒ Boolean 
    
    
      (also: #shipping_taxed?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    If true, shipping charges are also taxed. 
- 
  
    
      #use_global_rate  ⇒ Boolean 
    
    
      (also: #use_global_rate?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the tax rate is taken from a global tax table or specified explicitly. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AccountTaxTaxRule 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AccountTaxTaxRule. 
- 
  
    
      #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) ⇒ AccountTaxTaxRule
Returns a new instance of AccountTaxTaxRule
| 486 487 488 | # File 'generated/google/apis/content_v2/classes.rb', line 486 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#country ⇒ String
Country code in which tax is applicable.
Corresponds to the JSON property country
| 460 461 462 | # File 'generated/google/apis/content_v2/classes.rb', line 460 def country @country end | 
#location_id ⇒ Fixnum
State (or province) is which the tax is applicable, described by its location
id (also called criteria id).
Corresponds to the JSON property locationId
| 466 467 468 | # File 'generated/google/apis/content_v2/classes.rb', line 466 def location_id @location_id end | 
#rate_percent ⇒ String
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
| 472 473 474 | # File 'generated/google/apis/content_v2/classes.rb', line 472 def rate_percent @rate_percent end | 
#shipping_taxed ⇒ Boolean Also known as: shipping_taxed?
If true, shipping charges are also taxed.
Corresponds to the JSON property shippingTaxed
| 477 478 479 | # File 'generated/google/apis/content_v2/classes.rb', line 477 def shipping_taxed @shipping_taxed end | 
#use_global_rate ⇒ Boolean Also known as: use_global_rate?
Whether the tax rate is taken from a global tax table or specified explicitly.
Corresponds to the JSON property useGlobalRate
| 483 484 485 | # File 'generated/google/apis/content_v2/classes.rb', line 483 def use_global_rate @use_global_rate end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 491 492 493 494 495 496 497 | # File 'generated/google/apis/content_v2/classes.rb', line 491 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 |