Class: KintsugiSDK::Models::Shared::FindThresholdCrossingTransactionState

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(period_start_date:, period_end_date:, running_sales_total_decimal:, running_transaction_count:, has_all_marketplace_transactions:, last_txn_id: nil, last_txn_datetime: nil) ⇒ FindThresholdCrossingTransactionState

Returns a new instance of FindThresholdCrossingTransactionState.



31
32
33
34
35
36
37
38
39
# File 'lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rb', line 31

def initialize(period_start_date:, period_end_date:, running_sales_total_decimal:, running_transaction_count:, has_all_marketplace_transactions:, last_txn_id: nil, last_txn_datetime: nil)
  @period_start_date = period_start_date
  @period_end_date = period_end_date
  @running_sales_total_decimal = running_sales_total_decimal
  @running_transaction_count = running_transaction_count
  @has_all_marketplace_transactions = has_all_marketplace_transactions
  @last_txn_id = last_txn_id
  @last_txn_datetime = last_txn_datetime
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @period_start_date == other.period_start_date
  return false unless @period_end_date == other.period_end_date
  return false unless @running_sales_total_decimal == other.running_sales_total_decimal
  return false unless @running_transaction_count == other.running_transaction_count
  return false unless @has_all_marketplace_transactions == other.has_all_marketplace_transactions
  return false unless @last_txn_id == other.last_txn_id
  return false unless @last_txn_datetime == other.last_txn_datetime
  true
end