Class: Lithic::Models::Transactions::Events::EnhancedData::Common::Tax
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Lithic::Models::Transactions::Events::EnhancedData::Common::Tax
- Defined in:
- lib/lithic/models/transactions/events/enhanced_data.rb
Overview
Defined Under Namespace
Modules: Exempt
Instance Attribute Summary collapse
-
#amount ⇒ Integer?
The amount of tax collected.
-
#exempt ⇒ Symbol, ...
A flag indicating whether the transaction is tax exempt or not.
-
#merchant_tax_id ⇒ String?
The tax ID of the merchant.
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(amount: nil, exempt: nil, merchant_tax_id: nil) ⇒ Object
|
|
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 151
|
Instance Attribute Details
#amount ⇒ Integer?
The amount of tax collected.
133 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 133 optional :amount, Integer, nil?: true |
#exempt ⇒ Symbol, ...
A flag indicating whether the transaction is tax exempt or not.
139 140 141 142 143 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 139 optional :exempt, enum: -> { Lithic::Transactions::Events::EnhancedData::Common::Tax::Exempt }, nil?: true |
#merchant_tax_id ⇒ String?
The tax ID of the merchant.
149 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 149 optional :merchant_tax_id, String, nil?: true |