Class: Clerk::Models::Components::CommerceCreditLedgerResponse
- Inherits:
-
Object
- Object
- Clerk::Models::Components::CommerceCreditLedgerResponse
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/commercecreditledgerresponse.rb
Overview
A credit ledger entry.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, payer_id:, amount:, currency:, source_type:, source_id:, created_at:, note: nil) ⇒ CommerceCreditLedgerResponse
constructor
A new instance of CommerceCreditLedgerResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, payer_id:, amount:, currency:, source_type:, source_id:, created_at:, note: nil) ⇒ CommerceCreditLedgerResponse
Returns a new instance of CommerceCreditLedgerResponse.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/clerk/models/components/commercecreditledgerresponse.rb', line 35 def initialize(object:, id:, payer_id:, amount:, currency:, source_type:, source_id:, created_at:, note: nil) @object = object @id = id @payer_id = payer_id @amount = amount @currency = currency @source_type = source_type @source_id = source_id @created_at = created_at @note = note end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/clerk/models/components/commercecreditledgerresponse.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @id == other.id return false unless @payer_id == other.payer_id return false unless @amount == other.amount return false unless @currency == other.currency return false unless @source_type == other.source_type return false unless @source_id == other.source_id return false unless @created_at == other.created_at return false unless @note == other.note true end |