Class: Dodopayments::Models::DigitalProductDeliveryFile
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::DigitalProductDeliveryFile
- Defined in:
- lib/dodopayments/models/digital_product_delivery_file.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(download_url:, expires_in:, file_id:, filename:, content_type: nil, file_size: nil) ⇒ Object
constructor
One file in a digital-product delivery payload.
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(download_url:, expires_in:, file_id:, filename:, content_type: nil, file_size: nil) ⇒ Object
One file in a digital-product delivery payload.
|
|
# File 'lib/dodopayments/models/digital_product_delivery_file.rb', line 42
|
Instance Attribute Details
#content_type ⇒ String?
Optional content-type declared at upload.
34 |
# File 'lib/dodopayments/models/digital_product_delivery_file.rb', line 34 optional :content_type, String, nil?: true |
#download_url ⇒ String
Short-lived presigned URL for downloading the file.
10 |
# File 'lib/dodopayments/models/digital_product_delivery_file.rb', line 10 required :download_url, String |
#expires_in ⇒ Integer
Seconds until ‘download_url` expires.
16 |
# File 'lib/dodopayments/models/digital_product_delivery_file.rb', line 16 required :expires_in, Integer |
#file_id ⇒ String
Identifier of the attached file.
22 |
# File 'lib/dodopayments/models/digital_product_delivery_file.rb', line 22 required :file_id, String |
#file_size ⇒ Integer?
Optional size of the file in bytes.
40 |
# File 'lib/dodopayments/models/digital_product_delivery_file.rb', line 40 optional :file_size, Integer, nil?: true |
#filename ⇒ String
Original filename of the attached file.
28 |
# File 'lib/dodopayments/models/digital_product_delivery_file.rb', line 28 required :filename, String |