Class: Google::Apis::ContentV2_1::AccountTax

Inherits:
Object
  • Object
show all
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

Overview

The tax settings of a merchant account. All methods require the admin role.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountTax

Returns a new instance of AccountTax.



1227
1228
1229
# File 'lib/google/apis/content_v2_1/classes.rb', line 1227

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

Instance Attribute Details

#account_idFixnum

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

Returns:

  • (Fixnum)


1213
1214
1215
# File 'lib/google/apis/content_v2_1/classes.rb', line 1213

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)


1219
1220
1221
# File 'lib/google/apis/content_v2_1/classes.rb', line 1219

def kind
  @kind
end

#rulesArray<Google::Apis::ContentV2_1::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



1225
1226
1227
# File 'lib/google/apis/content_v2_1/classes.rb', line 1225

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1232
1233
1234
1235
1236
# File 'lib/google/apis/content_v2_1/classes.rb', line 1232

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