Class: Inttegro::Checkout::ConfirmPaymentRequest

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/checkout/confirm_payment_request.rb

Overview

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

Optional confirmation attempt identifier.

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

Returns:

  • (String, nil)


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

class ConfirmPaymentRequest < T::Struct
  const :order_id, String
  const :payment_id, T.nilable(String), default: nil
  const :confirmation_id, T.nilable(String), default: nil
  const :token, String
end

#order_id ⇒ String (readonly)

Value of the order_id field in the Inttegro API payload.

Required in the API payload. Wire name: order_id.

Returns:

  • (String)


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

class ConfirmPaymentRequest < T::Struct
  const :order_id, String
  const :payment_id, T.nilable(String), default: nil
  const :confirmation_id, T.nilable(String), default: nil
  const :token, String
end

#payment_id ⇒ String? (readonly)

Optional payment identifier when already known by the client.

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

Returns:

  • (String, nil)


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

class ConfirmPaymentRequest < T::Struct
  const :order_id, String
  const :payment_id, T.nilable(String), default: nil
  const :confirmation_id, T.nilable(String), default: nil
  const :token, String
end

#token ⇒ String (readonly)

Payer confirmation token.

Required in the API payload. Wire name: token.

Returns:

  • (String)


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

class ConfirmPaymentRequest < T::Struct
  const :order_id, String
  const :payment_id, T.nilable(String), default: nil
  const :confirmation_id, T.nilable(String), default: nil
  const :token, String
end