Class: ModernTreasury::Models::PaymentOrderCreateParams::Document

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/payment_order_create_params.rb

Defined Under Namespace

Modules: DocumentableType

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(documentable_id: , documentable_type: , file: , document_type: nil) ⇒ Object

Parameters:



# File 'lib/modern_treasury/models/payment_order_create_params.rb', line 456


Instance Attribute Details

#document_typeString?

A category given to the document, can be ‘null`.

Returns:

  • (String, nil)


454
# File 'lib/modern_treasury/models/payment_order_create_params.rb', line 454

optional :document_type, String

#documentable_idString

The unique identifier for the associated object.

Returns:

  • (String)


437
# File 'lib/modern_treasury/models/payment_order_create_params.rb', line 437

required :documentable_id, String

#documentable_typeSymbol, ModernTreasury::Models::PaymentOrderCreateParams::Document::DocumentableType



442
443
# File 'lib/modern_treasury/models/payment_order_create_params.rb', line 442

required :documentable_type,
enum: -> { ModernTreasury::PaymentOrderCreateParams::Document::DocumentableType }

#filePathname, ...

Returns:



448
# File 'lib/modern_treasury/models/payment_order_create_params.rb', line 448

required :file, ModernTreasury::Internal::Type::FileInput