Class: Dodopayments::Models::AttachProductEntitlement
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::AttachProductEntitlement
- Defined in:
- lib/dodopayments/models/attach_product_entitlement.rb
Instance Attribute Summary collapse
-
#entitlement_id ⇒ String
ID of the entitlement to attach to the product.
Instance Method Summary collapse
-
#initialize(entitlement_id:) ⇒ Object
constructor
Request struct for attaching an entitlement to a product.
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(entitlement_id:) ⇒ Object
Request struct for attaching an entitlement to a product.
Mirrors the ‘credit_entitlements` attach shape — every “attach something to a product” array takes objects, not bare IDs. Uniform shape leaves room for per-attachment settings later without another API break.
|
|
# File 'lib/dodopayments/models/attach_product_entitlement.rb', line 12
|
Instance Attribute Details
#entitlement_id ⇒ String
ID of the entitlement to attach to the product
10 |
# File 'lib/dodopayments/models/attach_product_entitlement.rb', line 10 required :entitlement_id, String |