Class: Google::Apis::ContentV2::AccountTax

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Overview

The tax settings of a merchant account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountTax

Returns a new instance of AccountTax



336
337
338
# File 'generated/google/apis/content_v2/classes.rb', line 336

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#account_idFixnum

The ID of the account to which these account tax settings belong. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


322
323
324
# File 'generated/google/apis/content_v2/classes.rb', line 322

def 
  @account_id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# accountTax". Corresponds to the JSON property kind

Returns:

  • (String)


328
329
330
# File 'generated/google/apis/content_v2/classes.rb', line 328

def kind
  @kind
end

#rulesArray<Google::Apis::ContentV2::AccountTaxTaxRule>

Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is equivalent to not charging tax at all. Corresponds to the JSON property rules



334
335
336
# File 'generated/google/apis/content_v2/classes.rb', line 334

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



341
342
343
344
345
# File 'generated/google/apis/content_v2/classes.rb', line 341

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @kind = args[:kind] if args.key?(:kind)
  @rules = args[:rules] if args.key?(:rules)
end