Class: Telnyx::Models::Actions::PurchaseCreateResponse::Error
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::Actions::PurchaseCreateResponse::Error
- Defined in:
- lib/telnyx/models/actions/purchase_create_response.rb
Defined Under Namespace
Classes: Source
Instance Attribute Summary collapse
- #code ⇒ String
- #detail ⇒ String?
- #meta ⇒ Hash{Symbol=>Object}?
- #source ⇒ Telnyx::Models::Actions::PurchaseCreateResponse::Error::Source?
- #title ⇒ String
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(code:, title:, detail: nil, meta: nil, source: nil) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/telnyx/models/actions/purchase_create_response.rb', line 25 class Error < Telnyx::Internal::Type::BaseModel # @!attribute code # # @return [String] required :code, String # @!attribute title # # @return [String] required :title, String # @!attribute detail # # @return [String, nil] optional :detail, String # @!attribute meta # # @return [Hash{Symbol=>Object}, nil] optional :meta, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] # @!attribute source # # @return [Telnyx::Models::Actions::PurchaseCreateResponse::Error::Source, nil] optional :source, -> { Telnyx::Models::Actions::PurchaseCreateResponse::Error::Source } # @!method initialize(code:, title:, detail: nil, meta: nil, source: nil) # @param code [String] # @param title [String] # @param detail [String] # @param meta [Hash{Symbol=>Object}] # @param source [Telnyx::Models::Actions::PurchaseCreateResponse::Error::Source] # @see Telnyx::Models::Actions::PurchaseCreateResponse::Error#source class Source < Telnyx::Internal::Type::BaseModel # @!attribute parameter # Indicates which query parameter caused the error. # # @return [String, nil] optional :parameter, String # @!attribute pointer # JSON pointer (RFC6901) to the offending entity. # # @return [String, nil] optional :pointer, String # @!method initialize(parameter: nil, pointer: nil) # @param parameter [String] Indicates which query parameter caused the error. # # @param pointer [String] JSON pointer (RFC6901) to the offending entity. end end |
Instance Attribute Details
#code ⇒ String
29 |
# File 'lib/telnyx/models/actions/purchase_create_response.rb', line 29 required :code, String |
#detail ⇒ String?
39 |
# File 'lib/telnyx/models/actions/purchase_create_response.rb', line 39 optional :detail, String |
#meta ⇒ Hash{Symbol=>Object}?
44 |
# File 'lib/telnyx/models/actions/purchase_create_response.rb', line 44 optional :meta, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] |
#source ⇒ Telnyx::Models::Actions::PurchaseCreateResponse::Error::Source?
49 |
# File 'lib/telnyx/models/actions/purchase_create_response.rb', line 49 optional :source, -> { Telnyx::Models::Actions::PurchaseCreateResponse::Error::Source } |
#title ⇒ String
34 |
# File 'lib/telnyx/models/actions/purchase_create_response.rb', line 34 required :title, String |