Class: Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles::File
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles::File
- Defined in:
- lib/dodopayments/models/integration_config_response.rb
Instance Attribute Summary collapse
-
#content_type ⇒ String?
Optional content-type declared at upload.
-
#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.
-
#file_size ⇒ Integer?
Optional size of the file in bytes.
-
#filename ⇒ String
Original filename of the attached file.
Instance Method Summary collapse
-
#initialize(files:, external_url: nil, instructions: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles for more details.
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(files:, external_url: nil, instructions: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::IntegrationConfigResponse::DigitalFilesConfig::DigitalFiles for more details.
Populated digital-files payload with each file’s metadata and a short-lived presigned download URL.
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/dodopayments/models/integration_config_response.rb', line 161 class File < Dodopayments::Internal::Type::BaseModel # @!attribute download_url # Short-lived presigned URL for downloading the file. # # @return [String] required :download_url, String # @!attribute expires_in # Seconds until `download_url` expires. # # @return [Integer] required :expires_in, Integer # @!attribute file_id # Identifier of the attached file. # # @return [String] required :file_id, String # @!attribute filename # Original filename of the attached file. # # @return [String] required :filename, String # @!attribute content_type # Optional content-type declared at upload. # # @return [String, nil] optional :content_type, String, nil?: true # @!attribute file_size # Optional size of the file in bytes. # # @return [Integer, nil] optional :file_size, Integer, nil?: true # @!method initialize(download_url:, expires_in:, file_id:, filename:, content_type: nil, file_size: nil) # One file in a resolved digital-files payload. # # @param download_url [String] Short-lived presigned URL for downloading the file. # # @param expires_in [Integer] Seconds until `download_url` expires. # # @param file_id [String] Identifier of the attached file. # # @param filename [String] Original filename of the attached file. # # @param content_type [String, nil] Optional content-type declared at upload. # # @param file_size [Integer, nil] Optional size of the file in bytes. end |
Instance Attribute Details
#content_type ⇒ String?
Optional content-type declared at upload.
190 |
# File 'lib/dodopayments/models/integration_config_response.rb', line 190 optional :content_type, String, nil?: true |
#download_url ⇒ String
Short-lived presigned URL for downloading the file.
166 |
# File 'lib/dodopayments/models/integration_config_response.rb', line 166 required :download_url, String |
#expires_in ⇒ Integer
Seconds until ‘download_url` expires.
172 |
# File 'lib/dodopayments/models/integration_config_response.rb', line 172 required :expires_in, Integer |
#file_id ⇒ String
Identifier of the attached file.
178 |
# File 'lib/dodopayments/models/integration_config_response.rb', line 178 required :file_id, String |
#file_size ⇒ Integer?
Optional size of the file in bytes.
196 |
# File 'lib/dodopayments/models/integration_config_response.rb', line 196 optional :file_size, Integer, nil?: true |
#filename ⇒ String
Original filename of the attached file.
184 |
# File 'lib/dodopayments/models/integration_config_response.rb', line 184 required :filename, String |