Class: Google::Shopping::Merchant::Accounts::V1beta::TaxRule

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb

Overview

Primary type convension

percent micro : 100% = 1 000 000 and 1% = 10 000 cannot be negative.

Information about tax nexus and related parameters applicable to orders delivered to the area covered by a single tax admin. Nexus is created when a merchant is doing business in an area administered by tax admin (only US states are supported for nexus configuration). If merchant has nexus in a US state, merchant needs to pay tax to all tax authorities associated with the shipping destination. Next Id : 8

Defined Under Namespace

Classes: TaxPostalCodeRange

Instance Attribute Summary collapse

Instance Attribute Details

#effective_time_period::Google::Type::Interval

Returns Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive.

Returns:

  • (::Google::Type::Interval)

    Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb', line 66

class TaxRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the area.
  # @!attribute [rw] start
  #   @return [::String]
  #     Required. The start of the postal code range, which is also the smallest
  #     in the range.
  # @!attribute [rw] end
  #   @return [::String]
  #     The end of the postal code range. Will be the same as start if not
  #     specified.
  class TaxPostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#location_id::Integer

Returns The admin_id or criteria_id of the region in which this rule is applicable.

Returns:

  • (::Integer)

    The admin_id or criteria_id of the region in which this rule is applicable.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb', line 66

class TaxRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the area.
  # @!attribute [rw] start
  #   @return [::String]
  #     Required. The start of the postal code range, which is also the smallest
  #     in the range.
  # @!attribute [rw] end
  #   @return [::String]
  #     The end of the postal code range. Will be the same as start if not
  #     specified.
  class TaxPostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#post_code_range::Google::Shopping::Merchant::Accounts::V1beta::TaxRule::TaxPostalCodeRange

Returns The range of postal codes in which this rule is applicable.

Returns:



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb', line 66

class TaxRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the area.
  # @!attribute [rw] start
  #   @return [::String]
  #     Required. The start of the postal code range, which is also the smallest
  #     in the range.
  # @!attribute [rw] end
  #   @return [::String]
  #     The end of the postal code range. Will be the same as start if not
  #     specified.
  class TaxPostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#region_code::String

Returns Region code in which this rule is applicable.

Returns:

  • (::String)

    Region code in which this rule is applicable



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb', line 66

class TaxRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the area.
  # @!attribute [rw] start
  #   @return [::String]
  #     Required. The start of the postal code range, which is also the smallest
  #     in the range.
  # @!attribute [rw] end
  #   @return [::String]
  #     The end of the postal code range. Will be the same as start if not
  #     specified.
  class TaxPostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#self_specified_rate_micros::Integer

Returns A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.

Returns:

  • (::Integer)

    A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb', line 66

class TaxRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the area.
  # @!attribute [rw] start
  #   @return [::String]
  #     Required. The start of the postal code range, which is also the smallest
  #     in the range.
  # @!attribute [rw] end
  #   @return [::String]
  #     The end of the postal code range. Will be the same as start if not
  #     specified.
  class TaxPostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#shipping_taxed::Boolean

Returns If set, shipping charge is taxed (at the same rate as product) when delivering to this admin's area. Can only be set on US states without category.

Returns:

  • (::Boolean)

    If set, shipping charge is taxed (at the same rate as product) when delivering to this admin's area. Can only be set on US states without category.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb', line 66

class TaxRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the area.
  # @!attribute [rw] start
  #   @return [::String]
  #     Required. The start of the postal code range, which is also the smallest
  #     in the range.
  # @!attribute [rw] end
  #   @return [::String]
  #     The end of the postal code range. Will be the same as start if not
  #     specified.
  class TaxPostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#use_google_rate::Boolean

Returns Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.

Returns:

  • (::Boolean)

    Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb', line 66

class TaxRule
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A range of postal codes that defines the area.
  # @!attribute [rw] start
  #   @return [::String]
  #     Required. The start of the postal code range, which is also the smallest
  #     in the range.
  # @!attribute [rw] end
  #   @return [::String]
  #     The end of the postal code range. Will be the same as start if not
  #     specified.
  class TaxPostalCodeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end