Class: SignwellSDK::Models::V1::DocumentFile

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/signwell_sdk/models/v1/document_file.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(name:, file_base64: nil, file_url: nil) ⇒ Object

Parameters:

  • name (String)

    Name of the file that will be uploaded.

  • file_base64 (String) (defaults to: nil)

    A RFC 4648 base64 string of the file to be uploaded.

  • file_url (String) (defaults to: nil)

    Publicly available URL of the file to be uploaded.



# File 'lib/signwell_sdk/models/v1/document_file.rb', line 25

Instance Attribute Details

#file_base64String?

A RFC 4648 base64 string of the file to be uploaded.

Returns:

  • (String, nil)


17
# File 'lib/signwell_sdk/models/v1/document_file.rb', line 17

optional :file_base64, String

#file_urlString?

Publicly available URL of the file to be uploaded.

Returns:

  • (String, nil)


23
# File 'lib/signwell_sdk/models/v1/document_file.rb', line 23

optional :file_url, String

#nameString

Name of the file that will be uploaded.

Returns:

  • (String)


11
# File 'lib/signwell_sdk/models/v1/document_file.rb', line 11

required :name, String