Class: Google::Apis::QpxExpressV1::TaxData

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

Overview

Tax data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TaxData

Returns a new instance of TaxData



982
983
984
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 982

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

Instance Attribute Details

#idString

An identifier uniquely identifying a tax in a response. Corresponds to the JSON property id

Returns:

  • (String)


969
970
971
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 969

def id
  @id
end

#kindString

Identifies this as a tax data object, representing some tax. Value: the fixed string qpxexpress#taxData. Corresponds to the JSON property kind

Returns:

  • (String)


975
976
977
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 975

def kind
  @kind
end

#nameString

The name of a tax. Corresponds to the JSON property name

Returns:

  • (String)


980
981
982
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 980

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



987
988
989
990
991
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 987

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