Class: ModernTreasury::Models::ReturnListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/modern_treasury/models/return_list_params.rb

Overview

Defined Under Namespace

Modules: ReturnableType

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(after_cursor: nil, counterparty_id: nil, internal_account_id: nil, per_page: nil, returnable_id: nil, returnable_type: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see ModernTreasury::Models::ReturnListParams for more details.

Parameters:

  • after_cursor (String, nil) (defaults to: nil)
  • counterparty_id (String) (defaults to: nil)

    Specify ‘counterparty_id` if you wish to see returns that occurred with a specif

  • internal_account_id (String) (defaults to: nil)

    Specify ‘internal_account_id` if you wish to see returns to/from a specific acco

  • per_page (Integer) (defaults to: nil)
  • returnable_id (String) (defaults to: nil)

    The ID of a valid returnable. Must be accompanied by ‘returnable_type`.

  • returnable_type (Symbol, ModernTreasury::Models::ReturnListParams::ReturnableType) (defaults to: nil)

    One of ‘payment_order`, `reversal`, or `incoming_payment_detail`. Must be accomp

  • request_options (ModernTreasury::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/modern_treasury/models/return_list_params.rb', line 47


Instance Attribute Details

#after_cursorString?

Returns:

  • (String, nil)


13
# File 'lib/modern_treasury/models/return_list_params.rb', line 13

optional :after_cursor, String, nil?: true

#counterparty_idString?

Specify ‘counterparty_id` if you wish to see returns that occurred with a specific counterparty.

Returns:

  • (String, nil)


20
# File 'lib/modern_treasury/models/return_list_params.rb', line 20

optional :counterparty_id, String

#internal_account_idString?

Specify ‘internal_account_id` if you wish to see returns to/from a specific account.

Returns:

  • (String, nil)


27
# File 'lib/modern_treasury/models/return_list_params.rb', line 27

optional :internal_account_id, String

#per_pageInteger?

Returns:

  • (Integer, nil)


32
# File 'lib/modern_treasury/models/return_list_params.rb', line 32

optional :per_page, Integer

#returnable_idString?

The ID of a valid returnable. Must be accompanied by ‘returnable_type`.

Returns:

  • (String, nil)


38
# File 'lib/modern_treasury/models/return_list_params.rb', line 38

optional :returnable_id, String

#returnable_typeSymbol, ...

One of ‘payment_order`, `reversal`, or `incoming_payment_detail`. Must be accompanied by `returnable_id`.



45
# File 'lib/modern_treasury/models/return_list_params.rb', line 45

optional :returnable_type, enum: -> { ModernTreasury::ReturnListParams::ReturnableType }