Class: Dodopayments::Models::IntegrationConfig::DigitalFilesConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::IntegrationConfig::DigitalFilesConfig
- Defined in:
- lib/dodopayments/models/integration_config.rb
Instance Attribute Summary collapse
- #digital_file_ids ⇒ Array<String>
- #external_url ⇒ String?
- #instructions ⇒ String?
-
#legacy_file_ids ⇒ Array<String>?
Three-way patchable field (mirrors the credit_entitlements pattern):.
Method Summary
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from Dodopayments::Internal::Type::BaseModel
Instance Attribute Details
#digital_file_ids ⇒ Array<String>
104 |
# File 'lib/dodopayments/models/integration_config.rb', line 104 required :digital_file_ids, Dodopayments::Internal::Type::ArrayOf[String] |
#external_url ⇒ String?
109 |
# File 'lib/dodopayments/models/integration_config.rb', line 109 optional :external_url, String, nil?: true |
#instructions ⇒ String?
114 |
# File 'lib/dodopayments/models/integration_config.rb', line 114 optional :instructions, String, nil?: true |
#legacy_file_ids ⇒ Array<String>?
Three-way patchable field (mirrors the credit_entitlements pattern):
-
omitted → preserve persisted (‘None`)
-
‘null` → clear (`Some(None)`)
-
‘[…]` → replace (`Some(Some(…))`)
On Create / storage we collapse “clear” and empty-array to ‘None` so the persisted JSONB never carries a `null` legacy_file_ids key.
127 |
# File 'lib/dodopayments/models/integration_config.rb', line 127 optional :legacy_file_ids, Dodopayments::Internal::Type::ArrayOf[String], nil?: true |