Class: Straddle::Models::ChargeResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::ChargeResponse
- Defined in:
- lib/straddle/models/charge_response.rb,
sig/straddle/models/charge_response.rbs
Overview
Instance Attribute Summary collapse
- #data ⇒ Straddle::Models::Charge
-
#meta ⇒ Straddle::Models::ResponseMetadata
Metadata for an API request.
-
#response_type ⇒ Symbol, Straddle::Models::ResponseType
Shape of the response envelope.
Instance Method Summary collapse
-
#initialize(data:, meta:, response_type:) ⇒ Object
constructor
Some parameter documentations has been truncated, see ChargeResponse for more details.
- #to_hash ⇒ {
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(data:, meta:, response_type:) ⇒ Object
Some parameter documentations has been truncated, see Straddle::Models::ChargeResponse for more details.
|
|
# File 'lib/straddle/models/charge_response.rb', line 29
|
Instance Attribute Details
#data ⇒ Straddle::Models::Charge
10 |
# File 'lib/straddle/models/charge_response.rb', line 10 required :data, -> { Straddle::Charge } |
#meta ⇒ Straddle::Models::ResponseMetadata
Metadata for an API request.
16 |
# File 'lib/straddle/models/charge_response.rb', line 16 required :meta, -> { Straddle::ResponseMetadata } |
#response_type ⇒ Symbol, Straddle::Models::ResponseType
Shape of the response envelope.
objectmeansdatacontains one JSON object.arraymeansdatacontains an array of JSON objects.errormeanserrorcontains the error details.nonemeans the response contains no data.
27 |
# File 'lib/straddle/models/charge_response.rb', line 27 required :response_type, enum: -> { Straddle::ResponseType } |
Instance Method Details
#to_hash ⇒ {
23 |
# File 'sig/straddle/models/charge_response.rbs', line 23
def to_hash: -> {
|