Class: Knockapi::Models::Objects::BulkAddSubscriptionsParams::Subscription
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::Objects::BulkAddSubscriptionsParams::Subscription
- Defined in:
- lib/knockapi/models/objects/bulk_add_subscriptions_params.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Unique identifier for the object.
-
#properties ⇒ Hash{Symbol=>Object}?
The custom properties associated with the subscription relationship.
-
#recipients ⇒ Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>
The recipients of the subscription.
Instance Method Summary collapse
-
#initialize(id:, recipients:, properties: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Subscription 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(id:, recipients:, properties: nil) ⇒ Object
Some parameter documentations has been truncated, see Knockapi::Models::Objects::BulkAddSubscriptionsParams::Subscription for more details.
A list of subscriptions. 1 subscribed-to id, and N subscriber recipients.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/knockapi/models/objects/bulk_add_subscriptions_params.rb', line 23 class Subscription < Knockapi::Internal::Type::BaseModel # @!attribute id # Unique identifier for the object. # # @return [String] required :id, String # @!attribute recipients # The recipients of the subscription. You can subscribe up to 100 recipients to an # object at a time. # # @return [Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>] required :recipients, -> { Knockapi::Internal::Type::ArrayOf[union: Knockapi::RecipientRequest] } # @!attribute properties # The custom properties associated with the subscription relationship. # # @return [Hash{Symbol=>Object}, nil] optional :properties, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true # @!method initialize(id:, recipients:, properties: nil) # Some parameter documentations has been truncated, see # {Knockapi::Models::Objects::BulkAddSubscriptionsParams::Subscription} for more # details. # # A list of subscriptions. 1 subscribed-to id, and N subscriber recipients. # # @param id [String] Unique identifier for the object. # # @param recipients [Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>] The recipients of the subscription. You can subscribe up to 100 recipients to an # # @param properties [Hash{Symbol=>Object}, nil] The custom properties associated with the subscription relationship. end |
Instance Attribute Details
#id ⇒ String
Unique identifier for the object.
28 |
# File 'lib/knockapi/models/objects/bulk_add_subscriptions_params.rb', line 28 required :id, String |
#properties ⇒ Hash{Symbol=>Object}?
The custom properties associated with the subscription relationship.
41 42 43 |
# File 'lib/knockapi/models/objects/bulk_add_subscriptions_params.rb', line 41 optional :properties, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true |
#recipients ⇒ Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>
The recipients of the subscription. You can subscribe up to 100 recipients to an object at a time.
35 |
# File 'lib/knockapi/models/objects/bulk_add_subscriptions_params.rb', line 35 required :recipients, -> { Knockapi::Internal::Type::ArrayOf[union: Knockapi::RecipientRequest] } |