Module: Dodopayments::Models::IntegrationConfigResponse

Extended by:
Internal::Type::Union
Defined in:
lib/dodopayments/models/integration_config_response.rb

Overview

Public-facing variant of [‘IntegrationConfig`]. Mirrors every variant shape on the wire EXCEPT `DigitalFiles`, which is replaced with a hydrated `digital_files` object (resolved download URLs etc.). The persisted JSONB stays ID-only via [`IntegrationConfig`]; this enum is response-only.

Defined Under Namespace

Classes: DigitalFilesConfig, DiscordConfig, FigmaConfig, FramerConfig, GitHubConfig, LicenseKeyConfig, NotionConfig, TelegramConfig

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(download_url:, expires_in:, file_id:, filename:, source:, content_type: nil, file_size: nil) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles::File for more details.

Parameters:

  • download_url (String)
  • expires_in (Integer)

    Seconds until ‘download_url` expires.

  • file_id (String)
  • filename (String)
  • source (String)

    ‘“legacy”` for files in `product_files`, `“ee”` for files managed by the

  • content_type (String, nil) (defaults to: nil)
  • file_size (Integer, nil) (defaults to: nil)


# File 'lib/dodopayments/models/integration_config_response.rb', line 39