Class: Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/invoice_fetch_upcoming_response.rb

Defined Under Namespace

Modules: PaymentProvider

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id: , amount: , created_at: , payment_provider: , payment_provider_id: , succeeded: ) ⇒ Object

Parameters:

  • id (String) (defaults to: )

    The ID of the payment attempt.

  • amount (String) (defaults to: )

    The amount of the payment attempt.

  • created_at (Time) (defaults to: )

    The time at which the payment attempt was created.

  • payment_provider (Symbol, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider, nil) (defaults to: )

    The payment provider that attempted to collect the payment.

  • payment_provider_id (String, nil) (defaults to: )

    The ID of the payment attempt in the payment provider.

  • succeeded (Boolean) (defaults to: )

    Whether the payment attempt succeeded.



# File 'lib/orb/models/invoice_fetch_upcoming_response.rb', line 1012

Instance Attribute Details

#amountString

The amount of the payment attempt.

Returns:

  • (String)


984
# File 'lib/orb/models/invoice_fetch_upcoming_response.rb', line 984

required :amount, String

#created_atTime

The time at which the payment attempt was created.

Returns:

  • (Time)


990
# File 'lib/orb/models/invoice_fetch_upcoming_response.rb', line 990

required :created_at, Time

#idString

The ID of the payment attempt.

Returns:

  • (String)


978
# File 'lib/orb/models/invoice_fetch_upcoming_response.rb', line 978

required :id, String

#payment_providerSymbol, ...

The payment provider that attempted to collect the payment.



996
997
998
# File 'lib/orb/models/invoice_fetch_upcoming_response.rb', line 996

required :payment_provider,
enum: -> { Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider },
nil?: true

#payment_provider_idString?

The ID of the payment attempt in the payment provider.

Returns:

  • (String, nil)


1004
# File 'lib/orb/models/invoice_fetch_upcoming_response.rb', line 1004

required :payment_provider_id, String, nil?: true

#succeededBoolean

Whether the payment attempt succeeded.

Returns:

  • (Boolean)


1010
# File 'lib/orb/models/invoice_fetch_upcoming_response.rb', line 1010

required :succeeded, Orb::Internal::Type::Boolean