Class: Increase::Models::Simulations::CardAuthorizationCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::Simulations::CardAuthorizationCreateResponse
- Defined in:
- lib/increase/models/simulations/card_authorization_create_response.rb
Overview
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#declined_transaction ⇒ Increase::Models::DeclinedTransaction?
If the authorization attempt fails, this will contain the resulting [Declined Transaction](#declined-transactions) object.
-
#pending_transaction ⇒ Increase::Models::PendingTransaction?
If the authorization attempt succeeds, this will contain the resulting Pending Transaction object.
-
#type ⇒ Symbol, Increase::Models::Simulations::CardAuthorizationCreateResponse::Type
A constant representing the object’s type.
Instance Method Summary collapse
-
#initialize(declined_transaction: , pending_transaction: , type: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see CardAuthorizationCreateResponse for more details.
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(declined_transaction: , pending_transaction: , type: ) ⇒ Object
Some parameter documentations has been truncated, see Increase::Models::Simulations::CardAuthorizationCreateResponse for more details.
The results of a Card Authorization simulation.
|
|
# File 'lib/increase/models/simulations/card_authorization_create_response.rb', line 31
|
Instance Attribute Details
#declined_transaction ⇒ Increase::Models::DeclinedTransaction?
If the authorization attempt fails, this will contain the resulting [Declined Transaction](#declined-transactions) object. The Declined Transaction’s ‘source` will be of `category: card_decline`.
14 |
# File 'lib/increase/models/simulations/card_authorization_create_response.rb', line 14 required :declined_transaction, -> { Increase::DeclinedTransaction }, nil?: true |
#pending_transaction ⇒ Increase::Models::PendingTransaction?
If the authorization attempt succeeds, this will contain the resulting Pending Transaction object. The Pending Transaction’s ‘source` will be of `category: card_authorization`.
22 |
# File 'lib/increase/models/simulations/card_authorization_create_response.rb', line 22 required :pending_transaction, -> { Increase::PendingTransaction }, nil?: true |
#type ⇒ Symbol, Increase::Models::Simulations::CardAuthorizationCreateResponse::Type
A constant representing the object’s type. For this resource it will always be ‘inbound_card_authorization_simulation_result`.
29 |
# File 'lib/increase/models/simulations/card_authorization_create_response.rb', line 29 required :type, enum: -> { Increase::Models::Simulations::CardAuthorizationCreateResponse::Type } |