Class: Lithic::Models::TransactionSimulateClearingParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Lithic::Models::TransactionSimulateClearingParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/lithic/models/transaction_simulate_clearing_params.rb
Overview
Instance Attribute Summary collapse
-
#amount ⇒ Integer?
Amount (in cents) to clear.
-
#token ⇒ String
The transaction token returned from the /v1/simulate/authorize response.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(token:, amount: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see TransactionSimulateClearingParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(token:, amount: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Lithic::Models::TransactionSimulateClearingParams for more details.
|
|
# File 'lib/lithic/models/transaction_simulate_clearing_params.rb', line 30
|
Instance Attribute Details
#amount ⇒ Integer?
Amount (in cents) to clear. Typically this will match the amount in the original authorization, but can be higher or lower. The sign of this amount will automatically match the sign of the original authorization’s amount. For example, entering 100 in this field will result in a -100 amount in the transaction, if the original authorization is a credit authorization.
If ‘amount` is not set, the full amount of the transaction will be cleared. Transactions that have already cleared, either partially or fully, cannot be cleared again using this endpoint.
28 |
# File 'lib/lithic/models/transaction_simulate_clearing_params.rb', line 28 optional :amount, Integer |
#token ⇒ String
The transaction token returned from the /v1/simulate/authorize response.
14 |
# File 'lib/lithic/models/transaction_simulate_clearing_params.rb', line 14 required :token, String |