Class: ModernTreasury::Models::PaymentOrderUpdateParams::LineItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/payment_order_update_params.rb,
sig/modern_treasury/models/payment_order_update_params.rbs

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

#initializeObject



332
# File 'sig/modern_treasury/models/payment_order_update_params.rbs', line 332

def initialize: (

Instance Attribute Details

#accounting_category_idString?

The ID of one of your accounting categories. Note that these will only be accessible if your accounting system has been connected.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


469
# File 'lib/modern_treasury/models/payment_order_update_params.rb', line 469

optional :accounting_category_id, String, nil?: true

#amountInteger

Value in specified currency's smallest unit. e.g. $10 would be represented as 1000.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


462
# File 'lib/modern_treasury/models/payment_order_update_params.rb', line 462

required :amount, Integer

#descriptionString?

A free-form description of the line item.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


475
# File 'lib/modern_treasury/models/payment_order_update_params.rb', line 475

optional :description, String, nil?: true

#metadataHash{Symbol=>String}?

Additional data represented as key-value pairs. Both the key and value must be strings.

Parameters:

  • (::Hash[Symbol, String])

Returns:

  • (Hash{Symbol=>String}, nil)


482
# File 'lib/modern_treasury/models/payment_order_update_params.rb', line 482

optional :metadata, ModernTreasury::Internal::Type::HashOf[String]

Instance Method Details

#to_hash{

Returns:

  • ({)


339
# File 'sig/modern_treasury/models/payment_order_update_params.rbs', line 339

def to_hash: -> {