Class: Telnyx::Models::X402::CreditAccountCreateQuoteResponse::Data::PaymentRequirements

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/x402/credit_account_create_quote_response.rb

Overview

Defined Under Namespace

Modules: X402Version Classes: Accept, Resource

Instance Attribute Summary collapse

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(description: nil, mime_type: nil, url: nil) ⇒ Object

The resource being paid for. Included in the payment signature.

Parameters:

  • description (String) (defaults to: nil)

    Human-readable description of the payment.

  • mime_type (String) (defaults to: nil)

    MIME type of the resource.

  • url (String) (defaults to: nil)

    Canonical URL of the payment resource.



# File 'lib/telnyx/models/x402/credit_account_create_quote_response.rb', line 204

Instance Attribute Details

#acceptsArray<Telnyx::Models::X402::CreditAccountCreateQuoteResponse::Data::PaymentRequirements::Accept>?

Accepted payment schemes. Currently only the ‘exact` EVM scheme is supported.



88
89
# File 'lib/telnyx/models/x402/credit_account_create_quote_response.rb', line 88

optional :accepts,
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::X402::CreditAccountCreateQuoteResponse::Data::PaymentRequirements::Accept] }

#resourceTelnyx::Models::X402::CreditAccountCreateQuoteResponse::Data::PaymentRequirements::Resource?

The resource being paid for. Included in the payment signature.



95
96
# File 'lib/telnyx/models/x402/credit_account_create_quote_response.rb', line 95

optional :resource,
-> { Telnyx::Models::X402::CreditAccountCreateQuoteResponse::Data::PaymentRequirements::Resource }

#x402_versionInteger, ...

x402 protocol version. Currently always 2.



102
103
104
# File 'lib/telnyx/models/x402/credit_account_create_quote_response.rb', line 102

optional :x402_version,
enum: -> { Telnyx::Models::X402::CreditAccountCreateQuoteResponse::Data::PaymentRequirements::X402Version },
api_name: :x402Version