Class: Lithic::Models::Transactions::Events::EnhancedData::Common::Tax

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/transactions/events/enhanced_data.rb

Overview

See Also:

Defined Under Namespace

Modules: Exempt

Instance Attribute Summary collapse

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

Parameters:



# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 151

Instance Attribute Details

#amountInteger?

The amount of tax collected.

Returns:

  • (Integer, nil)


133
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 133

optional :amount, Integer, nil?: true

#exemptSymbol, ...

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_idString?

The tax ID of the merchant.

Returns:

  • (String, nil)


149
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 149

optional :merchant_tax_id, String, nil?: true