Class: Lithic::Models::DisputeEvidence

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/dispute_evidence.rb

Overview

Direct Known Subclasses

DisputeEvidenceUploadFailedWebhookEvent

Defined Under Namespace

Modules: UploadStatus

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(token:, created:, dispute_token:, upload_status:, download_url: nil, filename: nil, upload_url: nil) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::DisputeEvidence for more details.

Dispute evidence.

Parameters:

  • token (String)

    Globally unique identifier.

  • created (Time)

    Timestamp of when dispute evidence was created.

  • dispute_token (String)

    Dispute token evidence is attached to.

  • upload_status (Symbol, Lithic::Models::DisputeEvidence::UploadStatus)

    Upload status types:

  • download_url (String) (defaults to: nil)

    URL to download evidence. Only shown when ‘upload_status` is `UPLOADED`.

  • filename (String) (defaults to: nil)

    File name of evidence. Recommended to give the dispute evidence a human-readable

  • upload_url (String) (defaults to: nil)

    URL to upload evidence. Only shown when ‘upload_status` is `PENDING`.



# File 'lib/lithic/models/dispute_evidence.rb', line 56


Instance Attribute Details

#createdTime

Timestamp of when dispute evidence was created.

Returns:

  • (Time)


17
# File 'lib/lithic/models/dispute_evidence.rb', line 17

required :created, Time

#dispute_tokenString

Dispute token evidence is attached to.

Returns:

  • (String)


23
# File 'lib/lithic/models/dispute_evidence.rb', line 23

required :dispute_token, String

#download_urlString?

URL to download evidence. Only shown when ‘upload_status` is `UPLOADED`.

Returns:

  • (String, nil)


41
# File 'lib/lithic/models/dispute_evidence.rb', line 41

optional :download_url, String

#filenameString?

File name of evidence. Recommended to give the dispute evidence a human-readable identifier.

Returns:

  • (String, nil)


48
# File 'lib/lithic/models/dispute_evidence.rb', line 48

optional :filename, String

#tokenString

Globally unique identifier.

Returns:

  • (String)


11
# File 'lib/lithic/models/dispute_evidence.rb', line 11

required :token, String

#upload_statusSymbol, Lithic::Models::DisputeEvidence::UploadStatus

Upload status types:

  • ‘DELETED` - Evidence was deleted.

  • ‘ERROR` - Evidence upload failed.

  • ‘PENDING` - Evidence is pending upload.

  • ‘REJECTED` - Evidence was rejected.

  • ‘UPLOADED` - Evidence was uploaded.



35
# File 'lib/lithic/models/dispute_evidence.rb', line 35

required :upload_status, enum: -> { Lithic::DisputeEvidence::UploadStatus }

#upload_urlString?

URL to upload evidence. Only shown when ‘upload_status` is `PENDING`.

Returns:

  • (String, nil)


54
# File 'lib/lithic/models/dispute_evidence.rb', line 54

optional :upload_url, String