Module: Dodopayments::Models::IntegrationConfigResponse

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

Overview

Integration-specific configuration on an entitlement read response.

For ‘digital_files` entitlements the response includes presigned download URLs for each attached file; other integrations match the shape supplied at creation.

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:, content_type: nil, file_size: nil) ⇒ Object

One file in a resolved digital-files payload.

Parameters:

  • download_url (String)

    Short-lived presigned URL for downloading the file.

  • expires_in (Integer)

    Seconds until ‘download_url` expires.

  • file_id (String)

    Identifier of the attached file.

  • filename (String)

    Original filename of the attached file.

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

    Optional content-type declared at upload.

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

    Optional size of the file in bytes.



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