Class: Straddle::Models::PaymentAuthorizationProof

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/straddle/models/payment_authorization_proof.rb,
sig/straddle/models/payment_authorization_proof.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

#initialize(document_id:, document_name:, document_size:, document_type:, uploaded_at:) ⇒ Object

Parameters:

  • document_id (String) —

    Unique identifier for this document.

  • document_name (String) —

    The file name of this document as uploaded.

  • document_size (Integer) —

    The size of this document in bytes.

  • document_type (Symbol, Straddle::Models::PaymentDocumentType)
  • uploaded_at (Time) —

    The UTC timestamp when this document was uploaded.



# File 'lib/straddle/models/payment_authorization_proof.rb', line 35


Instance Attribute Details

#document_id ⇒ String

Unique identifier for this document.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/straddle/models/payment_authorization_proof.rb', line 10

required :document_id, String

#document_name ⇒ String

The file name of this document as uploaded.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/straddle/models/payment_authorization_proof.rb', line 16

required :document_name, String

#document_size ⇒ Integer

The size of this document in bytes.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


22
# File 'lib/straddle/models/payment_authorization_proof.rb', line 22

required :document_size, Integer

#document_type ⇒ Symbol, Straddle::Models::PaymentDocumentType

Parameters:

  • value (Straddle::Models::payment_document_type)

Returns:



27
# File 'lib/straddle/models/payment_authorization_proof.rb', line 27

required :document_type, enum: -> { Straddle::PaymentDocumentType }

#uploaded_at ⇒ Time

The UTC timestamp when this document was uploaded.

Parameters:

  • value (Time)

Returns:

  • (Time)


33
# File 'lib/straddle/models/payment_authorization_proof.rb', line 33

required :uploaded_at, Time

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


31
# File 'sig/straddle/models/payment_authorization_proof.rbs', line 31

def to_hash: -> {