Class: Increase::Models::BookkeepingEntrySetCreateParams::Entry

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/bookkeeping_entry_set_create_params.rb

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(account_id: , amount: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::BookkeepingEntrySetCreateParams::Entry for more details.

Parameters:

  • account_id (String) (defaults to: )

    The identifier for the Bookkeeping Account impacted by this entry.

  • amount (Integer) (defaults to: )

    The entry amount in the minor unit of the account currency. For dollars, for exa



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/increase/models/bookkeeping_entry_set_create_params.rb', line 42

class Entry < Increase::Internal::Type::BaseModel
  # @!attribute account_id
  #   The identifier for the Bookkeeping Account impacted by this entry.
  #
  #   @return [String]
  required :account_id, String

  # @!attribute amount
  #   The entry amount in the minor unit of the account currency. For dollars, for
  #   example, this is cents. Debit entries have positive amounts; credit entries have
  #   negative amounts.
  #
  #   @return [Integer]
  required :amount, Integer

  # @!method initialize(account_id:, amount:)
  #   Some parameter documentations has been truncated, see
  #   {Increase::Models::BookkeepingEntrySetCreateParams::Entry} for more details.
  #
  #   @param account_id [String] The identifier for the Bookkeeping Account impacted by this entry.
  #
  #   @param amount [Integer] The entry amount in the minor unit of the account currency. For dollars, for exa
end

Instance Attribute Details

#account_idString

The identifier for the Bookkeeping Account impacted by this entry.

Returns:

  • (String)


47
# File 'lib/increase/models/bookkeeping_entry_set_create_params.rb', line 47

required :account_id, String

#amountInteger

The entry amount in the minor unit of the account currency. For dollars, for example, this is cents. Debit entries have positive amounts; credit entries have negative amounts.

Returns:

  • (Integer)


55
# File 'lib/increase/models/bookkeeping_entry_set_create_params.rb', line 55

required :amount, Integer