Class: Google::Apis::ContentV2_1::AccountTax
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountTax
- 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
-
#account_id ⇒ Fixnum
Required.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#rules ⇒ Array<Google::Apis::ContentV2_1::AccountTaxTaxRule>
Tax rules.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountTax
constructor
A new instance of AccountTax.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountTax
Returns a new instance of AccountTax.
720 721 722 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 720 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
Required. The ID of the account to which these account tax settings belong.
Corresponds to the JSON property accountId
706 707 708 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 706 def account_id @account_id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
accountTax".
Corresponds to the JSON property kind
712 713 714 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 712 def kind @kind end |
#rules ⇒ Array<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
718 719 720 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 718 def rules @rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
725 726 727 728 729 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 725 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 |