sentdm 0.28.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 +19 -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/inbound_message_event_payload.rb +17 -17
- data/lib/sentdm/models/me_retrieve_response.rb +43 -243
- data/lib/sentdm/models/message_event_payload.rb +11 -11
- 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_event_payload.rb +18 -18
- 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/me.rb +11 -0
- 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/inbound_message_event_payload.rbi +16 -22
- data/rbi/sentdm/models/me_retrieve_response.rbi +60 -367
- data/rbi/sentdm/models/message_event_payload.rbi +12 -15
- 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_event_payload.rbi +21 -27
- 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/me.rbi +11 -0
- 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/inbound_message_event_payload.rbs +10 -14
- data/sig/sentdm/models/me_retrieve_response.rbs +28 -176
- data/sig/sentdm/models/message_event_payload.rbs +5 -7
- 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_event_payload.rbs +13 -17
- 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
|
@@ -58,10 +58,9 @@ module Sentdm
|
|
|
58
58
|
params(
|
|
59
59
|
allow_contact_sharing: T.nilable(T::Boolean),
|
|
60
60
|
allow_template_sharing: T.nilable(T::Boolean),
|
|
61
|
-
billing_contact:
|
|
62
|
-
T.nilable(Sentdm::ProfileCreateParams::BillingContact::OrHash),
|
|
61
|
+
billing_contact: T.nilable(Sentdm::BillingContactInfo::OrHash),
|
|
63
62
|
billing_model: T.nilable(String),
|
|
64
|
-
brand: T.nilable(Sentdm::
|
|
63
|
+
brand: T.nilable(Sentdm::BrandsBrandData::OrHash),
|
|
65
64
|
description: T.nilable(String),
|
|
66
65
|
icon: T.nilable(String),
|
|
67
66
|
inherit_contacts: T.nilable(T::Boolean),
|
|
@@ -69,8 +68,7 @@ module Sentdm
|
|
|
69
68
|
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
70
69
|
inherit_templates: T.nilable(T::Boolean),
|
|
71
70
|
name: String,
|
|
72
|
-
payment_details:
|
|
73
|
-
T.nilable(Sentdm::ProfileCreateParams::PaymentDetails::OrHash),
|
|
71
|
+
payment_details: T.nilable(Sentdm::PaymentDetails::OrHash),
|
|
74
72
|
sandbox: T::Boolean,
|
|
75
73
|
short_name: T.nilable(String),
|
|
76
74
|
whatsapp_business_account:
|
|
@@ -80,7 +78,7 @@ module Sentdm
|
|
|
80
78
|
idempotency_key: String,
|
|
81
79
|
x_profile_id: String,
|
|
82
80
|
request_options: Sentdm::RequestOptions::OrHash
|
|
83
|
-
).returns(Sentdm::
|
|
81
|
+
).returns(Sentdm::APIResponseOfProfileDetail)
|
|
84
82
|
end
|
|
85
83
|
def create(
|
|
86
84
|
# Body param: Deprecated. Accepted and ignored. Contact and template sharing
|
|
@@ -176,7 +174,7 @@ module Sentdm
|
|
|
176
174
|
profile_id: String,
|
|
177
175
|
x_profile_id: String,
|
|
178
176
|
request_options: Sentdm::RequestOptions::OrHash
|
|
179
|
-
).returns(Sentdm::
|
|
177
|
+
).returns(Sentdm::APIResponseOfProfileDetail)
|
|
180
178
|
end
|
|
181
179
|
def retrieve(
|
|
182
180
|
# Profile ID from route parameter
|
|
@@ -232,10 +230,9 @@ module Sentdm
|
|
|
232
230
|
allow_contact_sharing: T.nilable(T::Boolean),
|
|
233
231
|
allow_number_change_during_onboarding: T.nilable(T::Boolean),
|
|
234
232
|
allow_template_sharing: T.nilable(T::Boolean),
|
|
235
|
-
billing_contact:
|
|
236
|
-
T.nilable(Sentdm::ProfileUpdateParams::BillingContact::OrHash),
|
|
233
|
+
billing_contact: T.nilable(Sentdm::BillingContactInfo::OrHash),
|
|
237
234
|
billing_model: T.nilable(String),
|
|
238
|
-
brand: T.nilable(Sentdm::
|
|
235
|
+
brand: T.nilable(Sentdm::BrandsBrandData::OrHash),
|
|
239
236
|
description: T.nilable(String),
|
|
240
237
|
icon: T.nilable(String),
|
|
241
238
|
inherit_contacts: T.nilable(T::Boolean),
|
|
@@ -243,8 +240,7 @@ module Sentdm
|
|
|
243
240
|
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
244
241
|
inherit_templates: T.nilable(T::Boolean),
|
|
245
242
|
name: T.nilable(String),
|
|
246
|
-
payment_details:
|
|
247
|
-
T.nilable(Sentdm::ProfileUpdateParams::PaymentDetails::OrHash),
|
|
243
|
+
payment_details: T.nilable(Sentdm::PaymentDetails::OrHash),
|
|
248
244
|
sandbox: T::Boolean,
|
|
249
245
|
sending_phone_number: T.nilable(String),
|
|
250
246
|
sending_phone_number_profile_id: T.nilable(String),
|
|
@@ -254,7 +250,7 @@ module Sentdm
|
|
|
254
250
|
idempotency_key: String,
|
|
255
251
|
x_profile_id: String,
|
|
256
252
|
request_options: Sentdm::RequestOptions::OrHash
|
|
257
|
-
).returns(Sentdm::
|
|
253
|
+
).returns(Sentdm::APIResponseOfProfileDetail)
|
|
258
254
|
end
|
|
259
255
|
def update(
|
|
260
256
|
# Path param: Profile ID from route parameter
|
|
@@ -24,7 +24,7 @@ module Sentdm
|
|
|
24
24
|
idempotency_key: String,
|
|
25
25
|
x_profile_id: String,
|
|
26
26
|
request_options: Sentdm::RequestOptions::OrHash
|
|
27
|
-
).returns(Sentdm::
|
|
27
|
+
).returns(Sentdm::APIResponseTemplate)
|
|
28
28
|
end
|
|
29
29
|
def create(
|
|
30
30
|
# Body param: Template category: MARKETING, UTILITY, AUTHENTICATION (optional,
|
|
@@ -63,7 +63,7 @@ module Sentdm
|
|
|
63
63
|
id: String,
|
|
64
64
|
x_profile_id: String,
|
|
65
65
|
request_options: Sentdm::RequestOptions::OrHash
|
|
66
|
-
).returns(Sentdm::
|
|
66
|
+
).returns(Sentdm::APIResponseTemplate)
|
|
67
67
|
end
|
|
68
68
|
def retrieve(
|
|
69
69
|
# Template ID from route parameter
|
|
@@ -89,7 +89,7 @@ module Sentdm
|
|
|
89
89
|
idempotency_key: String,
|
|
90
90
|
x_profile_id: String,
|
|
91
91
|
request_options: Sentdm::RequestOptions::OrHash
|
|
92
|
-
).returns(Sentdm::
|
|
92
|
+
).returns(Sentdm::APIResponseTemplate)
|
|
93
93
|
end
|
|
94
94
|
def update(
|
|
95
95
|
# Path param: Template ID from route parameter
|
|
@@ -16,7 +16,7 @@ module Sentdm
|
|
|
16
16
|
user_id: String,
|
|
17
17
|
x_profile_id: String,
|
|
18
18
|
request_options: Sentdm::RequestOptions::OrHash
|
|
19
|
-
).returns(Sentdm::
|
|
19
|
+
).returns(Sentdm::APIResponseOfUser)
|
|
20
20
|
end
|
|
21
21
|
def retrieve(
|
|
22
22
|
# User ID from route parameter
|
|
@@ -57,7 +57,7 @@ module Sentdm
|
|
|
57
57
|
idempotency_key: String,
|
|
58
58
|
x_profile_id: String,
|
|
59
59
|
request_options: Sentdm::RequestOptions::OrHash
|
|
60
|
-
).returns(Sentdm::
|
|
60
|
+
).returns(Sentdm::APIResponseOfUser)
|
|
61
61
|
end
|
|
62
62
|
def invite(
|
|
63
63
|
# Body param: User email address (required)
|
|
@@ -115,7 +115,7 @@ module Sentdm
|
|
|
115
115
|
idempotency_key: String,
|
|
116
116
|
x_profile_id: String,
|
|
117
117
|
request_options: Sentdm::RequestOptions::OrHash
|
|
118
|
-
).returns(Sentdm::
|
|
118
|
+
).returns(Sentdm::APIResponseOfUser)
|
|
119
119
|
end
|
|
120
120
|
def update_role(
|
|
121
121
|
# Path param: User ID from route parameter
|
|
@@ -27,7 +27,7 @@ module Sentdm
|
|
|
27
27
|
idempotency_key: String,
|
|
28
28
|
x_profile_id: String,
|
|
29
29
|
request_options: Sentdm::RequestOptions::OrHash
|
|
30
|
-
).returns(Sentdm::
|
|
30
|
+
).returns(Sentdm::APIResponseWebhook)
|
|
31
31
|
end
|
|
32
32
|
def create(
|
|
33
33
|
# Body param
|
|
@@ -63,7 +63,7 @@ module Sentdm
|
|
|
63
63
|
id: String,
|
|
64
64
|
x_profile_id: String,
|
|
65
65
|
request_options: Sentdm::RequestOptions::OrHash
|
|
66
|
-
).returns(Sentdm::
|
|
66
|
+
).returns(Sentdm::APIResponseWebhook)
|
|
67
67
|
end
|
|
68
68
|
def retrieve(
|
|
69
69
|
id,
|
|
@@ -88,7 +88,7 @@ module Sentdm
|
|
|
88
88
|
idempotency_key: String,
|
|
89
89
|
x_profile_id: String,
|
|
90
90
|
request_options: Sentdm::RequestOptions::OrHash
|
|
91
|
-
).returns(Sentdm::
|
|
91
|
+
).returns(Sentdm::APIResponseWebhook)
|
|
92
92
|
end
|
|
93
93
|
def update(
|
|
94
94
|
# Path param
|
|
@@ -277,7 +277,7 @@ module Sentdm
|
|
|
277
277
|
idempotency_key: String,
|
|
278
278
|
x_profile_id: String,
|
|
279
279
|
request_options: Sentdm::RequestOptions::OrHash
|
|
280
|
-
).returns(Sentdm::
|
|
280
|
+
).returns(Sentdm::APIResponseWebhook)
|
|
281
281
|
end
|
|
282
282
|
def toggle_status(
|
|
283
283
|
# Path param
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type api_meta = { request_id: String, timestamp: Time, version: String }
|
|
4
|
+
|
|
5
|
+
class APIMeta < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
attr_reader request_id: String?
|
|
7
|
+
|
|
8
|
+
def request_id=: (String) -> String
|
|
9
|
+
|
|
10
|
+
attr_reader timestamp: Time?
|
|
11
|
+
|
|
12
|
+
def timestamp=: (Time) -> Time
|
|
13
|
+
|
|
14
|
+
attr_reader version: String?
|
|
15
|
+
|
|
16
|
+
def version=: (String) -> String
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
?request_id: String,
|
|
20
|
+
?timestamp: Time,
|
|
21
|
+
?version: String
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> { request_id: String, timestamp: Time, version: String }
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type api_response_of_contact =
|
|
4
|
+
{
|
|
5
|
+
data: Sentdm::ContactResponse?,
|
|
6
|
+
error: Sentdm::ErrorDetail?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
|
+
success: bool
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class APIResponseOfContact < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: Sentdm::ContactResponse?
|
|
13
|
+
|
|
14
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
+
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
+
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
+
|
|
20
|
+
attr_reader success: bool?
|
|
21
|
+
|
|
22
|
+
def success=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?data: Sentdm::ContactResponse?,
|
|
26
|
+
?error: Sentdm::ErrorDetail?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
28
|
+
?success: bool
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
data: Sentdm::ContactResponse?,
|
|
33
|
+
error: Sentdm::ErrorDetail?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
35
|
+
success: bool
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type api_response_of_contact_message_summary =
|
|
4
|
+
{
|
|
5
|
+
data: Sentdm::ContactMessageSummary?,
|
|
6
|
+
error: Sentdm::ErrorDetail?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
|
+
success: bool
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class APIResponseOfContactMessageSummary < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: Sentdm::ContactMessageSummary?
|
|
13
|
+
|
|
14
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
+
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
+
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
+
|
|
20
|
+
attr_reader success: bool?
|
|
21
|
+
|
|
22
|
+
def success=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?data: Sentdm::ContactMessageSummary?,
|
|
26
|
+
?error: Sentdm::ErrorDetail?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
28
|
+
?success: bool
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
data: Sentdm::ContactMessageSummary?,
|
|
33
|
+
error: Sentdm::ErrorDetail?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
35
|
+
success: bool
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type api_response_of_conversation_messages_list =
|
|
4
|
+
{
|
|
5
|
+
data: Sentdm::ConversationMessagesList?,
|
|
6
|
+
error: Sentdm::ErrorDetail?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
|
+
success: bool
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class APIResponseOfConversationMessagesList < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: Sentdm::ConversationMessagesList?
|
|
13
|
+
|
|
14
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
+
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
+
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
+
|
|
20
|
+
attr_reader success: bool?
|
|
21
|
+
|
|
22
|
+
def success=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?data: Sentdm::ConversationMessagesList?,
|
|
26
|
+
?error: Sentdm::ErrorDetail?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
28
|
+
?success: bool
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
data: Sentdm::ConversationMessagesList?,
|
|
33
|
+
error: Sentdm::ErrorDetail?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
35
|
+
success: bool
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type api_response_of_profile_detail =
|
|
4
|
+
{
|
|
5
|
+
data: Sentdm::ProfileDetail?,
|
|
6
|
+
error: Sentdm::ErrorDetail?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
|
+
success: bool
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class APIResponseOfProfileDetail < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: Sentdm::ProfileDetail?
|
|
13
|
+
|
|
14
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
+
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
+
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
+
|
|
20
|
+
attr_reader success: bool?
|
|
21
|
+
|
|
22
|
+
def success=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?data: Sentdm::ProfileDetail?,
|
|
26
|
+
?error: Sentdm::ErrorDetail?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
28
|
+
?success: bool
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
data: Sentdm::ProfileDetail?,
|
|
33
|
+
error: Sentdm::ErrorDetail?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
35
|
+
success: bool
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type api_response_of_user =
|
|
4
|
+
{
|
|
5
|
+
data: Sentdm::UserResponse?,
|
|
6
|
+
error: Sentdm::ErrorDetail?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
|
+
success: bool
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class APIResponseOfUser < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: Sentdm::UserResponse?
|
|
13
|
+
|
|
14
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
+
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
+
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
+
|
|
20
|
+
attr_reader success: bool?
|
|
21
|
+
|
|
22
|
+
def success=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?data: Sentdm::UserResponse?,
|
|
26
|
+
?error: Sentdm::ErrorDetail?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
28
|
+
?success: bool
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
data: Sentdm::UserResponse?,
|
|
33
|
+
error: Sentdm::ErrorDetail?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
35
|
+
success: bool
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type api_response_template =
|
|
4
|
+
{
|
|
5
|
+
data: Sentdm::Template?,
|
|
6
|
+
error: Sentdm::ErrorDetail?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
|
+
success: bool
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class APIResponseTemplate < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: Sentdm::Template?
|
|
13
|
+
|
|
14
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
+
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
+
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
+
|
|
20
|
+
attr_reader success: bool?
|
|
21
|
+
|
|
22
|
+
def success=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?data: Sentdm::Template?,
|
|
26
|
+
?error: Sentdm::ErrorDetail?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
28
|
+
?success: bool
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
data: Sentdm::Template?,
|
|
33
|
+
error: Sentdm::ErrorDetail?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
35
|
+
success: bool
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type api_response_webhook =
|
|
4
|
+
{
|
|
5
|
+
data: Sentdm::WebhookResponse?,
|
|
6
|
+
error: Sentdm::ErrorDetail?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
|
+
success: bool
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class APIResponseWebhook < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: Sentdm::WebhookResponse?
|
|
13
|
+
|
|
14
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
|
+
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
+
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
+
|
|
20
|
+
attr_reader success: bool?
|
|
21
|
+
|
|
22
|
+
def success=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?data: Sentdm::WebhookResponse?,
|
|
26
|
+
?error: Sentdm::ErrorDetail?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
28
|
+
?success: bool
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
data: Sentdm::WebhookResponse?,
|
|
33
|
+
error: Sentdm::ErrorDetail?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
35
|
+
success: bool
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type billing_contact_info =
|
|
4
|
+
{ email: String, name: String, address: String?, phone: String? }
|
|
5
|
+
|
|
6
|
+
class BillingContactInfo < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor email: String
|
|
8
|
+
|
|
9
|
+
attr_accessor name: String
|
|
10
|
+
|
|
11
|
+
attr_accessor address: String?
|
|
12
|
+
|
|
13
|
+
attr_accessor phone: String?
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
email: String,
|
|
17
|
+
name: String,
|
|
18
|
+
?address: String?,
|
|
19
|
+
?phone: String?
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
email: String,
|
|
24
|
+
name: String,
|
|
25
|
+
address: String?,
|
|
26
|
+
phone: String?
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_business_info =
|
|
4
|
+
{
|
|
5
|
+
city: String?,
|
|
6
|
+
country: String?,
|
|
7
|
+
country_of_registration: String?,
|
|
8
|
+
entity_type: Sentdm::Models::BrandBusinessInfo::entity_type?,
|
|
9
|
+
legal_name: String?,
|
|
10
|
+
postal_code: String?,
|
|
11
|
+
state: String?,
|
|
12
|
+
street: String?,
|
|
13
|
+
tax_id: String?,
|
|
14
|
+
tax_id_type: String?,
|
|
15
|
+
url: String?
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class BrandBusinessInfo < Sentdm::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor city: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor country: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor country_of_registration: String?
|
|
24
|
+
|
|
25
|
+
attr_accessor entity_type: Sentdm::Models::BrandBusinessInfo::entity_type?
|
|
26
|
+
|
|
27
|
+
attr_accessor legal_name: String?
|
|
28
|
+
|
|
29
|
+
attr_accessor postal_code: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor state: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor street: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor tax_id: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor tax_id_type: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor url: String?
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
?city: String?,
|
|
43
|
+
?country: String?,
|
|
44
|
+
?country_of_registration: String?,
|
|
45
|
+
?entity_type: Sentdm::Models::BrandBusinessInfo::entity_type?,
|
|
46
|
+
?legal_name: String?,
|
|
47
|
+
?postal_code: String?,
|
|
48
|
+
?state: String?,
|
|
49
|
+
?street: String?,
|
|
50
|
+
?tax_id: String?,
|
|
51
|
+
?tax_id_type: String?,
|
|
52
|
+
?url: String?
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
city: String?,
|
|
57
|
+
country: String?,
|
|
58
|
+
country_of_registration: String?,
|
|
59
|
+
entity_type: Sentdm::Models::BrandBusinessInfo::entity_type?,
|
|
60
|
+
legal_name: String?,
|
|
61
|
+
postal_code: String?,
|
|
62
|
+
state: String?,
|
|
63
|
+
street: String?,
|
|
64
|
+
tax_id: String?,
|
|
65
|
+
tax_id_type: String?,
|
|
66
|
+
url: String?
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type entity_type =
|
|
70
|
+
:PRIVATE_PROFIT
|
|
71
|
+
| :PUBLIC_PROFIT
|
|
72
|
+
| :NON_PROFIT
|
|
73
|
+
| :SOLE_PROPRIETOR
|
|
74
|
+
| :GOVERNMENT
|
|
75
|
+
|
|
76
|
+
module EntityType
|
|
77
|
+
extend Sentdm::Internal::Type::Enum
|
|
78
|
+
|
|
79
|
+
PRIVATE_PROFIT: :PRIVATE_PROFIT
|
|
80
|
+
PUBLIC_PROFIT: :PUBLIC_PROFIT
|
|
81
|
+
NON_PROFIT: :NON_PROFIT
|
|
82
|
+
SOLE_PROPRIETOR: :SOLE_PROPRIETOR
|
|
83
|
+
GOVERNMENT: :GOVERNMENT
|
|
84
|
+
|
|
85
|
+
def self?.values: -> ::Array[Sentdm::Models::BrandBusinessInfo::entity_type]
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_compliance_info =
|
|
4
|
+
{
|
|
5
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
6
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
7
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
8
|
+
is_tcr_application: bool?,
|
|
9
|
+
notes: String?,
|
|
10
|
+
phone_number_prefix: String?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class BrandComplianceInfo < Sentdm::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
|
|
15
|
+
|
|
16
|
+
attr_accessor vertical: Sentdm::Models::tcr_vertical
|
|
17
|
+
|
|
18
|
+
attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
19
|
+
|
|
20
|
+
attr_accessor is_tcr_application: bool?
|
|
21
|
+
|
|
22
|
+
attr_accessor notes: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor phone_number_prefix: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
28
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
29
|
+
?destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
30
|
+
?is_tcr_application: bool?,
|
|
31
|
+
?notes: String?,
|
|
32
|
+
?phone_number_prefix: String?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
37
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
38
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
39
|
+
is_tcr_application: bool?,
|
|
40
|
+
notes: String?,
|
|
41
|
+
phone_number_prefix: String?
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_contact_info =
|
|
4
|
+
{
|
|
5
|
+
name: String,
|
|
6
|
+
business_name: String?,
|
|
7
|
+
email: String?,
|
|
8
|
+
phone: String?,
|
|
9
|
+
phone_country_code: String?,
|
|
10
|
+
role: String?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class BrandContactInfo < Sentdm::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor name: String
|
|
15
|
+
|
|
16
|
+
attr_accessor business_name: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor email: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor phone: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor phone_country_code: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor role: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
name: String,
|
|
28
|
+
?business_name: String?,
|
|
29
|
+
?email: String?,
|
|
30
|
+
?phone: String?,
|
|
31
|
+
?phone_country_code: String?,
|
|
32
|
+
?role: String?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
name: String,
|
|
37
|
+
business_name: String?,
|
|
38
|
+
email: String?,
|
|
39
|
+
phone: String?,
|
|
40
|
+
phone_country_code: String?,
|
|
41
|
+
role: String?
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|