sentdm 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +27 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/api_meta.rb +34 -0
- data/lib/sentdm/models/api_response_of_contact.rb +46 -0
- data/lib/sentdm/models/api_response_of_contact_message_summary.rb +43 -0
- data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +43 -0
- data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
- data/lib/sentdm/models/api_response_of_user.rb +43 -0
- data/lib/sentdm/models/api_response_template.rb +43 -0
- data/lib/sentdm/models/api_response_webhook.rb +43 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brand_business_info.rb +114 -0
- data/lib/sentdm/models/brand_compliance_info.rb +59 -0
- data/lib/sentdm/models/brand_contact_info.rb +58 -0
- data/lib/sentdm/models/brands_brand_data.rb +34 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_response.rb +12 -295
- data/lib/sentdm/models/contact_message_summary.rb +76 -0
- data/lib/sentdm/models/contact_response.rb +139 -0
- data/lib/sentdm/models/conversation_messages_list.rb +245 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -242
- data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -159
- data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
- data/lib/sentdm/models/message_send_response.rb +6 -74
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/number_lookup_response.rb +6 -74
- data/lib/sentdm/models/pagination_meta.rb +84 -0
- data/lib/sentdm/models/payment_details.rb +40 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -345
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +650 -0
- data/lib/sentdm/models/profile_list_response.rb +12 -815
- data/lib/sentdm/models/profile_settings.rb +85 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -345
- data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/brand_campaign.rb +247 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_data.rb +136 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
- data/lib/sentdm/models/profiles/campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/template.rb +102 -0
- data/lib/sentdm/models/template_list_response.rb +12 -258
- data/lib/sentdm/models/user_list_response.rb +12 -249
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +94 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +12 -203
- data/lib/sentdm/models/webhook_list_events_response.rb +9 -157
- data/lib/sentdm/models/webhook_list_response.rb +12 -276
- data/lib/sentdm/models/webhook_response.rb +120 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
- data/lib/sentdm/models/webhook_test_response.rb +6 -74
- data/lib/sentdm/models.rb +52 -0
- data/lib/sentdm/resources/contacts.rb +8 -8
- data/lib/sentdm/resources/conversations.rb +4 -4
- data/lib/sentdm/resources/profiles/campaigns.rb +8 -8
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +6 -6
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +8 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +32 -22
- data/rbi/sentdm/models/api_meta.rbi +55 -0
- data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
- data/rbi/sentdm/models/api_response_template.rbi +74 -0
- data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brand_business_info.rbi +162 -0
- data/rbi/sentdm/models/brand_compliance_info.rbi +76 -0
- data/rbi/sentdm/models/brand_contact_info.rbi +78 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +65 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_response.rbi +16 -522
- data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
- data/rbi/sentdm/models/contact_response.rbi +200 -0
- data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -367
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -325
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
- data/rbi/sentdm/models/message_send_response.rbi +8 -135
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/payment_details.rbi +56 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -546
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +918 -0
- data/rbi/sentdm/models/profile_list_response.rbi +16 -1347
- data/rbi/sentdm/models/profile_settings.rbi +102 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -546
- data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +81 -0
- data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +76 -0
- data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_data.rbi +158 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
- data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/template.rbi +139 -0
- data/rbi/sentdm/models/template_list_response.rbi +16 -464
- data/rbi/sentdm/models/user_list_response.rbi +16 -444
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +131 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +16 -414
- data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
- data/rbi/sentdm/models/webhook_list_response.rbi +16 -475
- data/rbi/sentdm/models/webhook_response.rbi +153 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
- data/rbi/sentdm/models.rbi +54 -0
- data/rbi/sentdm/resources/contacts.rbi +4 -4
- data/rbi/sentdm/resources/conversations.rbi +2 -2
- data/rbi/sentdm/resources/profiles/campaigns.rbi +5 -5
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +3 -3
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/api_meta.rbs +27 -0
- data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
- data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +39 -0
- data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
- data/sig/sentdm/models/api_response_of_user.rbs +39 -0
- data/sig/sentdm/models/api_response_template.rbs +39 -0
- data/sig/sentdm/models/api_response_webhook.rbs +39 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brand_business_info.rbs +89 -0
- data/sig/sentdm/models/brand_compliance_info.rbs +45 -0
- data/sig/sentdm/models/brand_contact_info.rbs +45 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +6 -10
- data/sig/sentdm/models/contact_list_response.rbs +20 -263
- data/sig/sentdm/models/contact_message_summary.rbs +84 -0
- data/sig/sentdm/models/contact_response.rbs +118 -0
- data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +14 -142
- data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
- data/sig/sentdm/models/message_send_response.rbs +9 -71
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/number_lookup_response.rbs +9 -71
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/profile_complete_response.rbs +9 -71
- data/sig/sentdm/models/profile_create_params.rbs +12 -263
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +461 -0
- data/sig/sentdm/models/profile_list_response.rbs +20 -606
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -263
- data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_data.rbs +87 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
- data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/template.rbs +84 -0
- data/sig/sentdm/models/template_list_response.rbs +19 -230
- data/sig/sentdm/models/user_list_response.rbs +20 -224
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +79 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +20 -196
- data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
- data/sig/sentdm/models/webhook_list_response.rbs +20 -255
- data/sig/sentdm/models/webhook_response.rbs +110 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
- data/sig/sentdm/models/webhook_test_response.rbs +9 -71
- data/sig/sentdm/models.rbs +52 -0
- data/sig/sentdm/resources/contacts.rbs +4 -4
- data/sig/sentdm/resources/conversations.rbs +2 -2
- data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +3 -3
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +98 -68
- data/lib/sentdm/models/contact_create_response.rb +0 -249
- data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +0 -186
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -249
- data/lib/sentdm/models/contact_update_response.rb +0 -249
- data/lib/sentdm/models/conversation_list_messages_response.rb +0 -436
- data/lib/sentdm/models/conversation_list_response.rb +0 -433
- data/lib/sentdm/models/profile_create_response.rb +0 -760
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -762
- data/lib/sentdm/models/profile_update_response.rb +0 -760
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -420
- data/lib/sentdm/models/profiles/campaign_list_response.rb +0 -421
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -420
- data/lib/sentdm/models/template_create_response.rb +0 -209
- data/lib/sentdm/models/template_retrieve_response.rb +0 -209
- data/lib/sentdm/models/template_update_response.rb +0 -209
- data/lib/sentdm/models/user_invite_response.rb +0 -201
- data/lib/sentdm/models/user_retrieve_response.rb +0 -201
- data/lib/sentdm/models/user_update_role_response.rb +0 -201
- data/lib/sentdm/models/webhook_create_response.rb +0 -229
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -229
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -229
- data/lib/sentdm/models/webhook_update_response.rb +0 -229
- data/rbi/sentdm/models/contact_create_response.rbi +0 -407
- data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +0 -397
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -409
- data/rbi/sentdm/models/contact_update_response.rbi +0 -407
- data/rbi/sentdm/models/conversation_list_messages_response.rbi +0 -843
- data/rbi/sentdm/models/conversation_list_response.rbi +0 -819
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1226
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1230
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1226
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -674
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +0 -667
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -674
- data/rbi/sentdm/models/template_create_response.rbi +0 -349
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -355
- data/rbi/sentdm/models/template_update_response.rbi +0 -349
- data/rbi/sentdm/models/user_invite_response.rbi +0 -336
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -336
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -341
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -361
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -363
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -379
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -361
- data/sig/sentdm/models/contact_create_response.rbs +0 -216
- data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +0 -182
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -216
- data/sig/sentdm/models/contact_update_response.rbs +0 -216
- data/sig/sentdm/models/conversation_list_messages_response.rbs +0 -404
- data/sig/sentdm/models/conversation_list_response.rbs +0 -404
- data/sig/sentdm/models/profile_create_response.rbs +0 -559
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -559
- data/sig/sentdm/models/profile_update_response.rbs +0 -559
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -357
- data/sig/sentdm/models/template_create_response.rbs +0 -182
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -182
- data/sig/sentdm/models/template_update_response.rbs +0 -182
- data/sig/sentdm/models/user_invite_response.rbs +0 -177
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/user_update_role_response.rbs +0 -177
- data/sig/sentdm/models/webhook_create_response.rbs +0 -208
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -208
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -208
- data/sig/sentdm/models/webhook_update_response.rbs +0 -208
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class ProfileSettings < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute allow_contact_sharing
|
|
7
|
+
# @deprecated
|
|
8
|
+
#
|
|
9
|
+
# Always false. A profile no longer shares contacts with sibling profiles — it
|
|
10
|
+
# sees only what it owns. Retained so existing v3 clients reading
|
|
11
|
+
# allow_contact_sharing keep deserializing; it carries no information.
|
|
12
|
+
#
|
|
13
|
+
# @return [Boolean, nil]
|
|
14
|
+
optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!attribute allow_template_sharing
|
|
17
|
+
# @deprecated
|
|
18
|
+
#
|
|
19
|
+
# Always false. A profile no longer shares templates with sibling profiles.
|
|
20
|
+
# Retained so existing v3 clients reading allow_template_sharing keep
|
|
21
|
+
# deserializing; it carries no information.
|
|
22
|
+
#
|
|
23
|
+
# @return [Boolean, nil]
|
|
24
|
+
optional :allow_template_sharing, Sentdm::Internal::Type::Boolean, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute billing_model
|
|
27
|
+
# Billing model: profile, organization, or profile_and_organization
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :billing_model, String, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute inherit_contacts
|
|
33
|
+
# @deprecated
|
|
34
|
+
#
|
|
35
|
+
# Always false. A profile no longer inherits its organization's contacts. Retained
|
|
36
|
+
# so existing v3 clients reading inherit_contacts keep deserializing; it carries
|
|
37
|
+
# no information.
|
|
38
|
+
#
|
|
39
|
+
# @return [Boolean, nil]
|
|
40
|
+
optional :inherit_contacts, Sentdm::Internal::Type::Boolean, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!attribute inherit_tcr_brand
|
|
43
|
+
# Whether this profile inherits TCR brand from the organization
|
|
44
|
+
#
|
|
45
|
+
# @return [Boolean, nil]
|
|
46
|
+
optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean, nil?: true
|
|
47
|
+
|
|
48
|
+
# @!attribute inherit_tcr_campaign
|
|
49
|
+
# Whether this profile inherits TCR campaign from the organization
|
|
50
|
+
#
|
|
51
|
+
# @return [Boolean, nil]
|
|
52
|
+
optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean, nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute inherit_templates
|
|
55
|
+
# @deprecated
|
|
56
|
+
#
|
|
57
|
+
# Always false. A profile no longer inherits its organization's templates.
|
|
58
|
+
# Retained so existing v3 clients reading inherit_templates keep deserializing; it
|
|
59
|
+
# carries no information.
|
|
60
|
+
#
|
|
61
|
+
# @return [Boolean, nil]
|
|
62
|
+
optional :inherit_templates, Sentdm::Internal::Type::Boolean, nil?: true
|
|
63
|
+
|
|
64
|
+
# @!method initialize(allow_contact_sharing: nil, allow_template_sharing: nil, billing_model: nil, inherit_contacts: nil, inherit_tcr_brand: nil, inherit_tcr_campaign: nil, inherit_templates: nil)
|
|
65
|
+
# Some parameter documentations has been truncated, see
|
|
66
|
+
# {Sentdm::Models::ProfileSettings} for more details.
|
|
67
|
+
#
|
|
68
|
+
# Profile configuration settings
|
|
69
|
+
#
|
|
70
|
+
# @param allow_contact_sharing [Boolean, nil] Always false. A profile no longer shares contacts with sibling profiles — it see
|
|
71
|
+
#
|
|
72
|
+
# @param allow_template_sharing [Boolean, nil] Always false. A profile no longer shares templates with sibling profiles. Retain
|
|
73
|
+
#
|
|
74
|
+
# @param billing_model [String, nil] Billing model: profile, organization, or profile_and_organization
|
|
75
|
+
#
|
|
76
|
+
# @param inherit_contacts [Boolean, nil] Always false. A profile no longer inherits its organization's contacts. Retained
|
|
77
|
+
#
|
|
78
|
+
# @param inherit_tcr_brand [Boolean, nil] Whether this profile inherits TCR brand from the organization
|
|
79
|
+
#
|
|
80
|
+
# @param inherit_tcr_campaign [Boolean, nil] Whether this profile inherits TCR campaign from the organization
|
|
81
|
+
#
|
|
82
|
+
# @param inherit_templates [Boolean, nil] Always false. A profile no longer inherits its organization's templates. Retaine
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -45,8 +45,8 @@ module Sentdm
|
|
|
45
45
|
# Billing contact information for a profile. Required when billing_model is
|
|
46
46
|
# "profile" or "profile_and_organization".
|
|
47
47
|
#
|
|
48
|
-
# @return [Sentdm::Models::
|
|
49
|
-
optional :billing_contact, -> { Sentdm::
|
|
48
|
+
# @return [Sentdm::Models::BillingContactInfo, nil]
|
|
49
|
+
optional :billing_contact, -> { Sentdm::BillingContactInfo }, nil?: true
|
|
50
50
|
|
|
51
51
|
# @!attribute billing_model
|
|
52
52
|
# Billing model: profile, organization, or profile_and_organization (optional).
|
|
@@ -63,8 +63,8 @@ module Sentdm
|
|
|
63
63
|
# @!attribute brand
|
|
64
64
|
# Brand and KYC data grouped into contact, business, and compliance sections
|
|
65
65
|
#
|
|
66
|
-
# @return [Sentdm::Models::
|
|
67
|
-
optional :brand, -> { Sentdm::
|
|
66
|
+
# @return [Sentdm::Models::BrandsBrandData, nil]
|
|
67
|
+
optional :brand, -> { Sentdm::BrandsBrandData }, nil?: true
|
|
68
68
|
|
|
69
69
|
# @!attribute description
|
|
70
70
|
# Profile description (optional)
|
|
@@ -113,8 +113,8 @@ module Sentdm
|
|
|
113
113
|
# "profile" or "profile_and_organization". Not persisted on our servers —
|
|
114
114
|
# forwarded to the payment processor.
|
|
115
115
|
#
|
|
116
|
-
# @return [Sentdm::Models::
|
|
117
|
-
optional :payment_details, -> { Sentdm::
|
|
116
|
+
# @return [Sentdm::Models::PaymentDetails, nil]
|
|
117
|
+
optional :payment_details, -> { Sentdm::PaymentDetails }, nil?: true
|
|
118
118
|
|
|
119
119
|
# @!attribute sandbox
|
|
120
120
|
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
@@ -197,11 +197,11 @@ module Sentdm
|
|
|
197
197
|
#
|
|
198
198
|
# @param allow_template_sharing [Boolean, nil]
|
|
199
199
|
#
|
|
200
|
-
# @param billing_contact [Sentdm::Models::
|
|
200
|
+
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Billing contact information for a profile.
|
|
201
201
|
#
|
|
202
202
|
# @param billing_model [String, nil] Billing model: profile, organization, or profile_and_organization (optional).
|
|
203
203
|
#
|
|
204
|
-
# @param brand [Sentdm::Models::
|
|
204
|
+
# @param brand [Sentdm::Models::BrandsBrandData, nil] Brand and KYC data grouped into contact, business, and compliance sections
|
|
205
205
|
#
|
|
206
206
|
# @param description [String, nil] Profile description (optional)
|
|
207
207
|
#
|
|
@@ -217,7 +217,7 @@ module Sentdm
|
|
|
217
217
|
#
|
|
218
218
|
# @param name [String, nil] Profile name (optional)
|
|
219
219
|
#
|
|
220
|
-
# @param payment_details [Sentdm::Models::
|
|
220
|
+
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Payment card details for this profile (optional).
|
|
221
221
|
#
|
|
222
222
|
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
|
|
223
223
|
#
|
|
@@ -236,342 +236,6 @@ module Sentdm
|
|
|
236
236
|
# @param x_profile_id [String]
|
|
237
237
|
#
|
|
238
238
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
239
|
-
|
|
240
|
-
class BillingContact < Sentdm::Internal::Type::BaseModel
|
|
241
|
-
# @!attribute email
|
|
242
|
-
# Email address where invoices will be sent (required)
|
|
243
|
-
#
|
|
244
|
-
# @return [String]
|
|
245
|
-
required :email, String
|
|
246
|
-
|
|
247
|
-
# @!attribute name
|
|
248
|
-
# Full name of the billing contact or company (required)
|
|
249
|
-
#
|
|
250
|
-
# @return [String]
|
|
251
|
-
required :name, String
|
|
252
|
-
|
|
253
|
-
# @!attribute address
|
|
254
|
-
# Billing address (optional). Free-form text including street, city, state, postal
|
|
255
|
-
# code, and country.
|
|
256
|
-
#
|
|
257
|
-
# @return [String, nil]
|
|
258
|
-
optional :address, String, nil?: true
|
|
259
|
-
|
|
260
|
-
# @!attribute phone
|
|
261
|
-
# Phone number for the billing contact (optional)
|
|
262
|
-
#
|
|
263
|
-
# @return [String, nil]
|
|
264
|
-
optional :phone, String, nil?: true
|
|
265
|
-
|
|
266
|
-
# @!method initialize(email:, name:, address: nil, phone: nil)
|
|
267
|
-
# Some parameter documentations has been truncated, see
|
|
268
|
-
# {Sentdm::Models::ProfileUpdateParams::BillingContact} for more details.
|
|
269
|
-
#
|
|
270
|
-
# Billing contact information for a profile. Required when billing_model is
|
|
271
|
-
# "profile" or "profile_and_organization".
|
|
272
|
-
#
|
|
273
|
-
# @param email [String] Email address where invoices will be sent (required)
|
|
274
|
-
#
|
|
275
|
-
# @param name [String] Full name of the billing contact or company (required)
|
|
276
|
-
#
|
|
277
|
-
# @param address [String, nil] Billing address (optional). Free-form text including street, city, state, postal
|
|
278
|
-
#
|
|
279
|
-
# @param phone [String, nil] Phone number for the billing contact (optional)
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
class Brand < Sentdm::Internal::Type::BaseModel
|
|
283
|
-
# @!attribute compliance
|
|
284
|
-
# Compliance and TCR information for brand registration
|
|
285
|
-
#
|
|
286
|
-
# @return [Sentdm::Models::ProfileUpdateParams::Brand::Compliance]
|
|
287
|
-
required :compliance, -> { Sentdm::ProfileUpdateParams::Brand::Compliance }
|
|
288
|
-
|
|
289
|
-
# @!attribute contact
|
|
290
|
-
# Contact information for brand KYC
|
|
291
|
-
#
|
|
292
|
-
# @return [Sentdm::Models::ProfileUpdateParams::Brand::Contact]
|
|
293
|
-
required :contact, -> { Sentdm::ProfileUpdateParams::Brand::Contact }
|
|
294
|
-
|
|
295
|
-
# @!attribute business
|
|
296
|
-
# Business details and address for brand KYC
|
|
297
|
-
#
|
|
298
|
-
# @return [Sentdm::Models::ProfileUpdateParams::Brand::Business, nil]
|
|
299
|
-
optional :business, -> { Sentdm::ProfileUpdateParams::Brand::Business }, nil?: true
|
|
300
|
-
|
|
301
|
-
# @!method initialize(compliance:, contact:, business: nil)
|
|
302
|
-
# Brand and KYC data grouped into contact, business, and compliance sections
|
|
303
|
-
#
|
|
304
|
-
# @param compliance [Sentdm::Models::ProfileUpdateParams::Brand::Compliance] Compliance and TCR information for brand registration
|
|
305
|
-
#
|
|
306
|
-
# @param contact [Sentdm::Models::ProfileUpdateParams::Brand::Contact] Contact information for brand KYC
|
|
307
|
-
#
|
|
308
|
-
# @param business [Sentdm::Models::ProfileUpdateParams::Brand::Business, nil] Business details and address for brand KYC
|
|
309
|
-
|
|
310
|
-
# @see Sentdm::Models::ProfileUpdateParams::Brand#compliance
|
|
311
|
-
class Compliance < Sentdm::Internal::Type::BaseModel
|
|
312
|
-
# @!attribute brand_relationship
|
|
313
|
-
#
|
|
314
|
-
# @return [Symbol, Sentdm::Models::TcrBrandRelationship]
|
|
315
|
-
required :brand_relationship,
|
|
316
|
-
enum: -> {
|
|
317
|
-
Sentdm::TcrBrandRelationship
|
|
318
|
-
},
|
|
319
|
-
api_name: :brandRelationship
|
|
320
|
-
|
|
321
|
-
# @!attribute vertical
|
|
322
|
-
#
|
|
323
|
-
# @return [Symbol, Sentdm::Models::TcrVertical]
|
|
324
|
-
required :vertical, enum: -> { Sentdm::TcrVertical }
|
|
325
|
-
|
|
326
|
-
# @!attribute destination_countries
|
|
327
|
-
# List of destination countries for messaging
|
|
328
|
-
#
|
|
329
|
-
# @return [Array<Sentdm::Models::DestinationCountry>, nil]
|
|
330
|
-
optional :destination_countries,
|
|
331
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::DestinationCountry] },
|
|
332
|
-
api_name: :destinationCountries,
|
|
333
|
-
nil?: true
|
|
334
|
-
|
|
335
|
-
# @!attribute is_tcr_application
|
|
336
|
-
# Whether this is a TCR (Campaign Registry) application
|
|
337
|
-
#
|
|
338
|
-
# @return [Boolean, nil]
|
|
339
|
-
optional :is_tcr_application,
|
|
340
|
-
Sentdm::Internal::Type::Boolean,
|
|
341
|
-
api_name: :isTcrApplication,
|
|
342
|
-
nil?: true
|
|
343
|
-
|
|
344
|
-
# @!attribute notes
|
|
345
|
-
# Additional notes about the business or use case
|
|
346
|
-
#
|
|
347
|
-
# @return [String, nil]
|
|
348
|
-
optional :notes, String, nil?: true
|
|
349
|
-
|
|
350
|
-
# @!attribute phone_number_prefix
|
|
351
|
-
# Phone number prefix for messaging (e.g., "+1")
|
|
352
|
-
#
|
|
353
|
-
# @return [String, nil]
|
|
354
|
-
optional :phone_number_prefix, String, api_name: :phoneNumberPrefix, nil?: true
|
|
355
|
-
|
|
356
|
-
# @!method initialize(brand_relationship:, vertical:, destination_countries: nil, is_tcr_application: nil, notes: nil, phone_number_prefix: nil)
|
|
357
|
-
# Compliance and TCR information for brand registration
|
|
358
|
-
#
|
|
359
|
-
# @param brand_relationship [Symbol, Sentdm::Models::TcrBrandRelationship]
|
|
360
|
-
#
|
|
361
|
-
# @param vertical [Symbol, Sentdm::Models::TcrVertical]
|
|
362
|
-
#
|
|
363
|
-
# @param destination_countries [Array<Sentdm::Models::DestinationCountry>, nil] List of destination countries for messaging
|
|
364
|
-
#
|
|
365
|
-
# @param is_tcr_application [Boolean, nil] Whether this is a TCR (Campaign Registry) application
|
|
366
|
-
#
|
|
367
|
-
# @param notes [String, nil] Additional notes about the business or use case
|
|
368
|
-
#
|
|
369
|
-
# @param phone_number_prefix [String, nil] Phone number prefix for messaging (e.g., "+1")
|
|
370
|
-
end
|
|
371
|
-
|
|
372
|
-
# @see Sentdm::Models::ProfileUpdateParams::Brand#contact
|
|
373
|
-
class Contact < Sentdm::Internal::Type::BaseModel
|
|
374
|
-
# @!attribute name
|
|
375
|
-
# Primary contact name (required)
|
|
376
|
-
#
|
|
377
|
-
# @return [String]
|
|
378
|
-
required :name, String
|
|
379
|
-
|
|
380
|
-
# @!attribute business_name
|
|
381
|
-
# Business/brand name
|
|
382
|
-
#
|
|
383
|
-
# @return [String, nil]
|
|
384
|
-
optional :business_name, String, api_name: :businessName, nil?: true
|
|
385
|
-
|
|
386
|
-
# @!attribute email
|
|
387
|
-
# Contact email address
|
|
388
|
-
#
|
|
389
|
-
# @return [String, nil]
|
|
390
|
-
optional :email, String, nil?: true
|
|
391
|
-
|
|
392
|
-
# @!attribute phone
|
|
393
|
-
# Contact phone number in E.164 format
|
|
394
|
-
#
|
|
395
|
-
# @return [String, nil]
|
|
396
|
-
optional :phone, String, nil?: true
|
|
397
|
-
|
|
398
|
-
# @!attribute phone_country_code
|
|
399
|
-
# Contact phone country code (e.g., "1" for US)
|
|
400
|
-
#
|
|
401
|
-
# @return [String, nil]
|
|
402
|
-
optional :phone_country_code, String, api_name: :phoneCountryCode, nil?: true
|
|
403
|
-
|
|
404
|
-
# @!attribute role
|
|
405
|
-
# Contact's role in the business
|
|
406
|
-
#
|
|
407
|
-
# @return [String, nil]
|
|
408
|
-
optional :role, String, nil?: true
|
|
409
|
-
|
|
410
|
-
# @!method initialize(name:, business_name: nil, email: nil, phone: nil, phone_country_code: nil, role: nil)
|
|
411
|
-
# Contact information for brand KYC
|
|
412
|
-
#
|
|
413
|
-
# @param name [String] Primary contact name (required)
|
|
414
|
-
#
|
|
415
|
-
# @param business_name [String, nil] Business/brand name
|
|
416
|
-
#
|
|
417
|
-
# @param email [String, nil] Contact email address
|
|
418
|
-
#
|
|
419
|
-
# @param phone [String, nil] Contact phone number in E.164 format
|
|
420
|
-
#
|
|
421
|
-
# @param phone_country_code [String, nil] Contact phone country code (e.g., "1" for US)
|
|
422
|
-
#
|
|
423
|
-
# @param role [String, nil] Contact's role in the business
|
|
424
|
-
end
|
|
425
|
-
|
|
426
|
-
# @see Sentdm::Models::ProfileUpdateParams::Brand#business
|
|
427
|
-
class Business < Sentdm::Internal::Type::BaseModel
|
|
428
|
-
# @!attribute city
|
|
429
|
-
# City
|
|
430
|
-
#
|
|
431
|
-
# @return [String, nil]
|
|
432
|
-
optional :city, String, nil?: true
|
|
433
|
-
|
|
434
|
-
# @!attribute country
|
|
435
|
-
# Country code (e.g., US, CA)
|
|
436
|
-
#
|
|
437
|
-
# @return [String, nil]
|
|
438
|
-
optional :country, String, nil?: true
|
|
439
|
-
|
|
440
|
-
# @!attribute country_of_registration
|
|
441
|
-
# Country where the business is registered
|
|
442
|
-
#
|
|
443
|
-
# @return [String, nil]
|
|
444
|
-
optional :country_of_registration, String, api_name: :countryOfRegistration, nil?: true
|
|
445
|
-
|
|
446
|
-
# @!attribute entity_type
|
|
447
|
-
#
|
|
448
|
-
# @return [Symbol, Sentdm::Models::ProfileUpdateParams::Brand::Business::EntityType, nil]
|
|
449
|
-
optional :entity_type,
|
|
450
|
-
enum: -> { Sentdm::ProfileUpdateParams::Brand::Business::EntityType },
|
|
451
|
-
api_name: :entityType,
|
|
452
|
-
nil?: true
|
|
453
|
-
|
|
454
|
-
# @!attribute legal_name
|
|
455
|
-
# Legal business name
|
|
456
|
-
#
|
|
457
|
-
# @return [String, nil]
|
|
458
|
-
optional :legal_name, String, api_name: :legalName, nil?: true
|
|
459
|
-
|
|
460
|
-
# @!attribute postal_code
|
|
461
|
-
# Postal/ZIP code
|
|
462
|
-
#
|
|
463
|
-
# @return [String, nil]
|
|
464
|
-
optional :postal_code, String, api_name: :postalCode, nil?: true
|
|
465
|
-
|
|
466
|
-
# @!attribute state
|
|
467
|
-
# State/province code
|
|
468
|
-
#
|
|
469
|
-
# @return [String, nil]
|
|
470
|
-
optional :state, String, nil?: true
|
|
471
|
-
|
|
472
|
-
# @!attribute street
|
|
473
|
-
# Street address
|
|
474
|
-
#
|
|
475
|
-
# @return [String, nil]
|
|
476
|
-
optional :street, String, nil?: true
|
|
477
|
-
|
|
478
|
-
# @!attribute tax_id
|
|
479
|
-
# Tax ID/EIN number
|
|
480
|
-
#
|
|
481
|
-
# @return [String, nil]
|
|
482
|
-
optional :tax_id, String, api_name: :taxId, nil?: true
|
|
483
|
-
|
|
484
|
-
# @!attribute tax_id_type
|
|
485
|
-
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
486
|
-
#
|
|
487
|
-
# @return [String, nil]
|
|
488
|
-
optional :tax_id_type, String, api_name: :taxIdType, nil?: true
|
|
489
|
-
|
|
490
|
-
# @!attribute url
|
|
491
|
-
# Business website URL
|
|
492
|
-
#
|
|
493
|
-
# @return [String, nil]
|
|
494
|
-
optional :url, String, nil?: true
|
|
495
|
-
|
|
496
|
-
# @!method initialize(city: nil, country: nil, country_of_registration: nil, entity_type: nil, legal_name: nil, postal_code: nil, state: nil, street: nil, tax_id: nil, tax_id_type: nil, url: nil)
|
|
497
|
-
# Business details and address for brand KYC
|
|
498
|
-
#
|
|
499
|
-
# @param city [String, nil] City
|
|
500
|
-
#
|
|
501
|
-
# @param country [String, nil] Country code (e.g., US, CA)
|
|
502
|
-
#
|
|
503
|
-
# @param country_of_registration [String, nil] Country where the business is registered
|
|
504
|
-
#
|
|
505
|
-
# @param entity_type [Symbol, Sentdm::Models::ProfileUpdateParams::Brand::Business::EntityType, nil]
|
|
506
|
-
#
|
|
507
|
-
# @param legal_name [String, nil] Legal business name
|
|
508
|
-
#
|
|
509
|
-
# @param postal_code [String, nil] Postal/ZIP code
|
|
510
|
-
#
|
|
511
|
-
# @param state [String, nil] State/province code
|
|
512
|
-
#
|
|
513
|
-
# @param street [String, nil] Street address
|
|
514
|
-
#
|
|
515
|
-
# @param tax_id [String, nil] Tax ID/EIN number
|
|
516
|
-
#
|
|
517
|
-
# @param tax_id_type [String, nil] Type of tax ID (e.g., us_ein, ca_bn)
|
|
518
|
-
#
|
|
519
|
-
# @param url [String, nil] Business website URL
|
|
520
|
-
|
|
521
|
-
# @see Sentdm::Models::ProfileUpdateParams::Brand::Business#entity_type
|
|
522
|
-
module EntityType
|
|
523
|
-
extend Sentdm::Internal::Type::Enum
|
|
524
|
-
|
|
525
|
-
PRIVATE_PROFIT = :PRIVATE_PROFIT
|
|
526
|
-
PUBLIC_PROFIT = :PUBLIC_PROFIT
|
|
527
|
-
NON_PROFIT = :NON_PROFIT
|
|
528
|
-
SOLE_PROPRIETOR = :SOLE_PROPRIETOR
|
|
529
|
-
GOVERNMENT = :GOVERNMENT
|
|
530
|
-
|
|
531
|
-
# @!method self.values
|
|
532
|
-
# @return [Array<Symbol>]
|
|
533
|
-
end
|
|
534
|
-
end
|
|
535
|
-
end
|
|
536
|
-
|
|
537
|
-
class PaymentDetails < Sentdm::Internal::Type::BaseModel
|
|
538
|
-
# @!attribute card_number
|
|
539
|
-
# Card number (digits only, 13–19 characters)
|
|
540
|
-
#
|
|
541
|
-
# @return [String]
|
|
542
|
-
required :card_number, String
|
|
543
|
-
|
|
544
|
-
# @!attribute cvc
|
|
545
|
-
# Card security code (3–4 digits)
|
|
546
|
-
#
|
|
547
|
-
# @return [String]
|
|
548
|
-
required :cvc, String
|
|
549
|
-
|
|
550
|
-
# @!attribute expiry
|
|
551
|
-
# Card expiry date in MM/YY format (e.g. "09/27")
|
|
552
|
-
#
|
|
553
|
-
# @return [String]
|
|
554
|
-
required :expiry, String
|
|
555
|
-
|
|
556
|
-
# @!attribute zip_code
|
|
557
|
-
# Billing ZIP / postal code associated with the card
|
|
558
|
-
#
|
|
559
|
-
# @return [String]
|
|
560
|
-
required :zip_code, String
|
|
561
|
-
|
|
562
|
-
# @!method initialize(card_number:, cvc:, expiry:, zip_code:)
|
|
563
|
-
# Payment card details for this profile (optional). Accepted when billing_model is
|
|
564
|
-
# "profile" or "profile_and_organization". Not persisted on our servers —
|
|
565
|
-
# forwarded to the payment processor.
|
|
566
|
-
#
|
|
567
|
-
# @param card_number [String] Card number (digits only, 13–19 characters)
|
|
568
|
-
#
|
|
569
|
-
# @param cvc [String] Card security code (3–4 digits)
|
|
570
|
-
#
|
|
571
|
-
# @param expiry [String] Card expiry date in MM/YY format (e.g. "09/27")
|
|
572
|
-
#
|
|
573
|
-
# @param zip_code [String] Billing ZIP / postal code associated with the card
|
|
574
|
-
end
|
|
575
239
|
end
|
|
576
240
|
end
|
|
577
241
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Profiles
|
|
6
|
+
# @see Sentdm::Resources::Profiles::Campaigns#create
|
|
7
|
+
class APIResponseOfBrandCampaign < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# A 10DLC campaign registered for a brand.
|
|
10
|
+
#
|
|
11
|
+
# @return [Sentdm::Models::Profiles::BrandCampaign, nil]
|
|
12
|
+
optional :data, -> { Sentdm::Profiles::BrandCampaign }, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute error
|
|
15
|
+
# Error information
|
|
16
|
+
#
|
|
17
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute meta
|
|
21
|
+
# Request and response metadata
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
+
|
|
26
|
+
# @!attribute success
|
|
27
|
+
# Indicates whether the request was successful
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
+
|
|
32
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
+
# Standard API response envelope for all v3 endpoints
|
|
34
|
+
#
|
|
35
|
+
# @param data [Sentdm::Models::Profiles::BrandCampaign, nil] A 10DLC campaign registered for a brand.
|
|
36
|
+
#
|
|
37
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
|
+
#
|
|
39
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
40
|
+
#
|
|
41
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Profiles
|
|
6
|
+
# @see Sentdm::Resources::Profiles::Campaigns#list
|
|
7
|
+
class APIResponseOfListOfBrandCampaign < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# The response data (null if error)
|
|
10
|
+
#
|
|
11
|
+
# @return [Array<Sentdm::Models::Profiles::BrandCampaign>, nil]
|
|
12
|
+
optional :data, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Profiles::BrandCampaign] }, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute error
|
|
15
|
+
# Error information
|
|
16
|
+
#
|
|
17
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute meta
|
|
21
|
+
# Request and response metadata
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
+
|
|
26
|
+
# @!attribute success
|
|
27
|
+
# Indicates whether the request was successful
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
+
|
|
32
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
+
# Standard API response envelope for all v3 endpoints
|
|
34
|
+
#
|
|
35
|
+
# @param data [Array<Sentdm::Models::Profiles::BrandCampaign>, nil] The response data (null if error)
|
|
36
|
+
#
|
|
37
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
|
+
#
|
|
39
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
40
|
+
#
|
|
41
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|