Class: Inttegro::Order::PaymentAttempt

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/order/payment_attempt.rb

Overview

Typed representation of the payment attempt object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#error ⇒ Inttegro::Order::PaymentAttemptError? (readonly)

Value of the error field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: error.



61
62
63
64
65
66
67
68
69
# File 'lib/inttegro/order/payment_attempt.rb', line 61

class PaymentAttempt < T::Struct
  const :payment_method_type, T.nilable(String), default: nil
  const :payment_method_id, T.nilable(String), default: nil
  const :error, T.nilable(Inttegro::Order::PaymentAttemptError), default: nil
  const :reference, T.nilable(String), default: nil
  const :status, Inttegro::Payment::AttemptStatus
  const :initiated_at, Time
  const :succeeded_at, T.nilable(Time), default: nil
end

#initiated_at ⇒ Time (readonly)

Value of the initiated_at field in the Inttegro API payload.

Required in the API payload. Wire name: initiated_at.

Returns:

  • (Time)


61
62
63
64
65
66
67
68
69
# File 'lib/inttegro/order/payment_attempt.rb', line 61

class PaymentAttempt < T::Struct
  const :payment_method_type, T.nilable(String), default: nil
  const :payment_method_id, T.nilable(String), default: nil
  const :error, T.nilable(Inttegro::Order::PaymentAttemptError), default: nil
  const :reference, T.nilable(String), default: nil
  const :status, Inttegro::Payment::AttemptStatus
  const :initiated_at, Time
  const :succeeded_at, T.nilable(Time), default: nil
end

#payment_method_id ⇒ String? (readonly)

Value of the payment_method_id field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: payment_method_id.

Returns:

  • (String, nil)


61
62
63
64
65
66
67
68
69
# File 'lib/inttegro/order/payment_attempt.rb', line 61

class PaymentAttempt < T::Struct
  const :payment_method_type, T.nilable(String), default: nil
  const :payment_method_id, T.nilable(String), default: nil
  const :error, T.nilable(Inttegro::Order::PaymentAttemptError), default: nil
  const :reference, T.nilable(String), default: nil
  const :status, Inttegro::Payment::AttemptStatus
  const :initiated_at, Time
  const :succeeded_at, T.nilable(Time), default: nil
end

#payment_method_type ⇒ String? (readonly)

Value of the payment_method_type field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: payment_method_type.

Returns:

  • (String, nil)


61
62
63
64
65
66
67
68
69
# File 'lib/inttegro/order/payment_attempt.rb', line 61

class PaymentAttempt < T::Struct
  const :payment_method_type, T.nilable(String), default: nil
  const :payment_method_id, T.nilable(String), default: nil
  const :error, T.nilable(Inttegro::Order::PaymentAttemptError), default: nil
  const :reference, T.nilable(String), default: nil
  const :status, Inttegro::Payment::AttemptStatus
  const :initiated_at, Time
  const :succeeded_at, T.nilable(Time), default: nil
end

#reference ⇒ String? (readonly)

Value of the reference field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: reference.

Returns:

  • (String, nil)


61
62
63
64
65
66
67
68
69
# File 'lib/inttegro/order/payment_attempt.rb', line 61

class PaymentAttempt < T::Struct
  const :payment_method_type, T.nilable(String), default: nil
  const :payment_method_id, T.nilable(String), default: nil
  const :error, T.nilable(Inttegro::Order::PaymentAttemptError), default: nil
  const :reference, T.nilable(String), default: nil
  const :status, Inttegro::Payment::AttemptStatus
  const :initiated_at, Time
  const :succeeded_at, T.nilable(Time), default: nil
end

#status ⇒ Inttegro::Payment::AttemptStatus (readonly)

Value of the status field in the Inttegro API payload.

Required in the API payload. Wire name: status.



61
62
63
64
65
66
67
68
69
# File 'lib/inttegro/order/payment_attempt.rb', line 61

class PaymentAttempt < T::Struct
  const :payment_method_type, T.nilable(String), default: nil
  const :payment_method_id, T.nilable(String), default: nil
  const :error, T.nilable(Inttegro::Order::PaymentAttemptError), default: nil
  const :reference, T.nilable(String), default: nil
  const :status, Inttegro::Payment::AttemptStatus
  const :initiated_at, Time
  const :succeeded_at, T.nilable(Time), default: nil
end

#succeeded_at ⇒ Time? (readonly)

Value of the succeeded_at field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: succeeded_at.

Returns:

  • (Time, nil)


61
62
63
64
65
66
67
68
69
# File 'lib/inttegro/order/payment_attempt.rb', line 61

class PaymentAttempt < T::Struct
  const :payment_method_type, T.nilable(String), default: nil
  const :payment_method_id, T.nilable(String), default: nil
  const :error, T.nilable(Inttegro::Order::PaymentAttemptError), default: nil
  const :reference, T.nilable(String), default: nil
  const :status, Inttegro::Payment::AttemptStatus
  const :initiated_at, Time
  const :succeeded_at, T.nilable(Time), default: nil
end