Class: MethodRuby::Models::Simulate::PaymentCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MethodRuby::Models::Simulate::PaymentCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/method_ruby/models/simulate/payment_create_params.rb,
sig/method_ruby/models/simulate/payment_create_params.rbs
Overview
Defined Under Namespace
Modules: MethodVersion
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::MethodRuby
Instance Attribute Summary collapse
-
#error_code ⇒ String?
Error code for the simulated failure.
- #method_version ⇒ Symbol, MethodRuby::Models::Simulate::PaymentCreateParams::MethodVersion
- #payment_id ⇒ String
-
#status ⇒ String
The status to transition the payment to.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
27 |
# File 'sig/method_ruby/models/simulate/payment_create_params.rbs', line 27 def initialize: ( |
Instance Attribute Details
#error_code ⇒ String?
Error code for the simulated failure. Required when status is reversal_required, reversal_processing, or failed.
32 |
# File 'lib/method_ruby/models/simulate/payment_create_params.rb', line 32 optional :error_code, String |
#method_version ⇒ Symbol, MethodRuby::Models::Simulate::PaymentCreateParams::MethodVersion
25 |
# File 'lib/method_ruby/models/simulate/payment_create_params.rb', line 25 required :method_version, enum: -> { MethodRuby::Simulate::PaymentCreateParams::MethodVersion } |
#payment_id ⇒ String
14 |
# File 'lib/method_ruby/models/simulate/payment_create_params.rb', line 14 required :payment_id, String |
#status ⇒ String
The status to transition the payment to.
20 |
# File 'lib/method_ruby/models/simulate/payment_create_params.rb', line 20 required :status, String |
Instance Method Details
#to_hash ⇒ {
35 |
# File 'sig/method_ruby/models/simulate/payment_create_params.rbs', line 35 def to_hash: -> { |