Class: Inttegro::Payment::ConfirmRequest

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

Overview

Typed representation of the confirm request 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

#confirmation_id ⇒ String (readonly)

Unique identifier of the confirmation challenge

Required in the API payload. Wire name: confirmation_id.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/payment/confirm_request.rb', line 41

class ConfirmRequest < T::Struct
  const :order_id, String
  const :payment_id, String
  const :confirmation_id, String
  const :token, String
end

#order_id ⇒ String (readonly)

Unique identifier of the order

Required in the API payload. Wire name: order_id.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/payment/confirm_request.rb', line 41

class ConfirmRequest < T::Struct
  const :order_id, String
  const :payment_id, String
  const :confirmation_id, String
  const :token, String
end

#payment_id ⇒ String (readonly)

Unique identifier of the payment being confirmed

Required in the API payload. Wire name: payment_id.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/payment/confirm_request.rb', line 41

class ConfirmRequest < T::Struct
  const :order_id, String
  const :payment_id, String
  const :confirmation_id, String
  const :token, String
end

#token ⇒ String (readonly)

Verification token (OTP) sent to customer

Required in the API payload. Wire name: token.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/payment/confirm_request.rb', line 41

class ConfirmRequest < T::Struct
  const :order_id, String
  const :payment_id, String
  const :confirmation_id, String
  const :token, String
end