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

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

Overview

See Also:

Defined Under Namespace

Classes: LineItem, Tax

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, description: nil, product_code: nil, quantity: nil) ⇒ Object

An L2/L3 enhanced commercial data line item.

Parameters:

  • amount (String, nil) (defaults to: nil)

    The price of the item purchased in merchant currency.

  • description (String, nil) (defaults to: nil)

    A human-readable description of the item.

  • product_code (String, nil) (defaults to: nil)

    An identifier for the item purchased.

  • quantity (String, nil) (defaults to: nil)

    The quantity of the item purchased.



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


Instance Attribute Details

#customer_reference_numberString?

A customer identifier.

Returns:

  • (String, nil)


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

optional :customer_reference_number, String, nil?: true

#line_itemsArray<Lithic::Models::Transactions::Events::EnhancedData::Common::LineItem>



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

required :line_items,
-> { Lithic::Internal::Type::ArrayOf[Lithic::Transactions::Events::EnhancedData::Common::LineItem] }

#merchant_reference_numberString?

A merchant identifier.

Returns:

  • (String, nil)


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

optional :merchant_reference_number, String, nil?: true

#order_dateDate?

The date of the order.

Returns:

  • (Date, nil)


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

optional :order_date, Date, nil?: true

#taxLithic::Models::Transactions::Events::EnhancedData::Common::Tax



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

required :tax, -> { Lithic::Transactions::Events::EnhancedData::Common::Tax }