Class: Lithic::Models::DisputeCreateParams

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

Overview

Defined Under Namespace

Modules: Reason

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(amount:, reason:, transaction_token:, customer_filed_date: nil, customer_note: nil, request_options: {}) ⇒ Object

Parameters:

  • amount (Integer)

    Amount for chargeback

  • reason (Symbol, Lithic::Models::DisputeCreateParams::Reason)

    Reason for chargeback

  • transaction_token (String)

    Transaction for chargeback

  • customer_filed_date (Time) (defaults to: nil)

    Date the customer filed the chargeback request

  • customer_note (String) (defaults to: nil)

    Customer description

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


# File 'lib/lithic/models/dispute_create_params.rb', line 40

Instance Attribute Details

#amountInteger

Amount for chargeback

Returns:

  • (Integer)


14
# File 'lib/lithic/models/dispute_create_params.rb', line 14

required :amount, Integer

#customer_filed_dateTime?

Date the customer filed the chargeback request

Returns:

  • (Time, nil)


32
# File 'lib/lithic/models/dispute_create_params.rb', line 32

optional :customer_filed_date, Time

#customer_noteString?

Customer description

Returns:

  • (String, nil)


38
# File 'lib/lithic/models/dispute_create_params.rb', line 38

optional :customer_note, String

#reasonSymbol, Lithic::Models::DisputeCreateParams::Reason

Reason for chargeback



20
# File 'lib/lithic/models/dispute_create_params.rb', line 20

required :reason, enum: -> { Lithic::DisputeCreateParams::Reason }

#transaction_tokenString

Transaction for chargeback

Returns:

  • (String)


26
# File 'lib/lithic/models/dispute_create_params.rb', line 26

required :transaction_token, String