Class: Inttegro::Payment::NextAction

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/payment/next_action.rb

Overview

Next action required to complete a payment

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

#authorize ⇒ Inttegro::Payment::NextActionAuthorize? (readonly)

Details for authorization action

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



52
53
54
55
56
57
58
# File 'lib/inttegro/payment/next_action.rb', line 52

class NextAction < T::Struct
  const :type, Inttegro::Payment::NextActionType
  const :confirm_payment, T.nilable(Inttegro::Payment::NextActionConfirmPayment), default: nil
  const :redirect, T.nilable(Inttegro::Payment::NextActionRedirect), default: nil
  const :authorize, T.nilable(Inttegro::Payment::NextActionAuthorize), default: nil
  const :request_confirmation, T.nilable(Inttegro::Payment::NextActionRequestConfirmation), default: nil
end

#confirm_payment ⇒ Inttegro::Payment::NextActionConfirmPayment? (readonly)

Details for customer payment confirmation

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



52
53
54
55
56
57
58
# File 'lib/inttegro/payment/next_action.rb', line 52

class NextAction < T::Struct
  const :type, Inttegro::Payment::NextActionType
  const :confirm_payment, T.nilable(Inttegro::Payment::NextActionConfirmPayment), default: nil
  const :redirect, T.nilable(Inttegro::Payment::NextActionRedirect), default: nil
  const :authorize, T.nilable(Inttegro::Payment::NextActionAuthorize), default: nil
  const :request_confirmation, T.nilable(Inttegro::Payment::NextActionRequestConfirmation), default: nil
end

#redirect ⇒ Inttegro::Payment::NextActionRedirect? (readonly)

Details for redirect action

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



52
53
54
55
56
57
58
# File 'lib/inttegro/payment/next_action.rb', line 52

class NextAction < T::Struct
  const :type, Inttegro::Payment::NextActionType
  const :confirm_payment, T.nilable(Inttegro::Payment::NextActionConfirmPayment), default: nil
  const :redirect, T.nilable(Inttegro::Payment::NextActionRedirect), default: nil
  const :authorize, T.nilable(Inttegro::Payment::NextActionAuthorize), default: nil
  const :request_confirmation, T.nilable(Inttegro::Payment::NextActionRequestConfirmation), default: nil
end

#request_confirmation ⇒ Inttegro::Payment::NextActionRequestConfirmation? (readonly)

Details for requesting a fresh customer confirmation.

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



52
53
54
55
56
57
58
# File 'lib/inttegro/payment/next_action.rb', line 52

class NextAction < T::Struct
  const :type, Inttegro::Payment::NextActionType
  const :confirm_payment, T.nilable(Inttegro::Payment::NextActionConfirmPayment), default: nil
  const :redirect, T.nilable(Inttegro::Payment::NextActionRedirect), default: nil
  const :authorize, T.nilable(Inttegro::Payment::NextActionAuthorize), default: nil
  const :request_confirmation, T.nilable(Inttegro::Payment::NextActionRequestConfirmation), default: nil
end

#type ⇒ Inttegro::Payment::NextActionType (readonly)

Type of action required

Required in the API payload. Wire name: type.



52
53
54
55
56
57
58
# File 'lib/inttegro/payment/next_action.rb', line 52

class NextAction < T::Struct
  const :type, Inttegro::Payment::NextActionType
  const :confirm_payment, T.nilable(Inttegro::Payment::NextActionConfirmPayment), default: nil
  const :redirect, T.nilable(Inttegro::Payment::NextActionRedirect), default: nil
  const :authorize, T.nilable(Inttegro::Payment::NextActionAuthorize), default: nil
  const :request_confirmation, T.nilable(Inttegro::Payment::NextActionRequestConfirmation), default: nil
end