sentdm 0.3.0 → 0.4.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 +24 -0
- data/README.md +18 -9
- data/lib/sentdm/client.rb +7 -0
- data/lib/sentdm/internal/util.rb +31 -0
- data/lib/sentdm/models/api_meta.rb +1 -9
- data/lib/sentdm/models/brand_data.rb +235 -198
- data/lib/sentdm/models/brand_with_kyc.rb +249 -214
- data/lib/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rb +0 -1
- data/lib/sentdm/models/contact_create_params.rb +13 -6
- data/lib/sentdm/models/contact_delete_params.rb +15 -1
- data/lib/sentdm/models/contact_list_params.rb +10 -2
- data/lib/sentdm/models/contact_retrieve_params.rb +13 -1
- data/lib/sentdm/models/contact_update_params.rb +20 -6
- data/lib/sentdm/models/me_retrieve_params.rb +7 -1
- data/lib/sentdm/models/me_retrieve_response.rb +152 -7
- data/lib/sentdm/models/message_retrieve_activities_params.rb +13 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
- data/lib/sentdm/models/message_retrieve_status_params.rb +13 -1
- data/lib/sentdm/models/message_retrieve_status_response.rb +8 -1
- data/lib/sentdm/models/message_send_params.rb +17 -10
- data/lib/sentdm/models/mutation_request.rb +6 -6
- data/lib/sentdm/models/profile_complete_params.rb +20 -6
- data/lib/sentdm/models/profile_create_params.rb +192 -10
- data/lib/sentdm/models/profile_delete_params.rb +21 -14
- data/lib/sentdm/models/profile_detail.rb +144 -95
- data/lib/sentdm/models/profile_list_params.rb +7 -1
- data/lib/sentdm/models/profile_retrieve_params.rb +13 -1
- data/lib/sentdm/models/profile_update_params.rb +146 -19
- data/lib/sentdm/models/template_create_params.rb +17 -10
- data/lib/sentdm/models/template_delete_params.rb +20 -6
- data/lib/sentdm/models/template_list_params.rb +18 -2
- data/lib/sentdm/models/template_retrieve_params.rb +13 -1
- data/lib/sentdm/models/template_update_params.rb +24 -10
- data/lib/sentdm/models/template_variable.rb +7 -1
- data/lib/sentdm/models/user_invite_params.rb +13 -6
- data/lib/sentdm/models/user_list_params.rb +7 -1
- data/lib/sentdm/models/user_remove_params.rb +20 -13
- data/lib/sentdm/models/user_retrieve_params.rb +13 -1
- data/lib/sentdm/models/user_update_role_params.rb +19 -13
- data/lib/sentdm/models/webhook_create_params.rb +13 -6
- data/lib/sentdm/models/webhook_delete_params.rb +13 -1
- data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_events_params.rb +13 -1
- data/lib/sentdm/models/webhook_list_params.rb +7 -1
- data/lib/sentdm/models/webhook_retrieve_params.rb +13 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +13 -1
- data/lib/sentdm/models/webhook_test_params.rb +20 -6
- data/lib/sentdm/models/webhook_toggle_status_params.rb +20 -6
- data/lib/sentdm/models/webhook_update_params.rb +20 -6
- data/lib/sentdm/models.rb +0 -12
- data/lib/sentdm/resources/brands/campaigns.rb +0 -128
- data/lib/sentdm/resources/brands.rb +0 -110
- data/lib/sentdm/resources/contacts.rb +44 -19
- data/lib/sentdm/resources/lookup.rb +0 -21
- data/lib/sentdm/resources/me.rb +25 -5
- data/lib/sentdm/resources/messages.rb +25 -8
- data/lib/sentdm/resources/profiles.rb +117 -32
- data/lib/sentdm/resources/templates.rb +48 -23
- data/lib/sentdm/resources/users.rb +41 -23
- data/lib/sentdm/resources/webhooks.rb +93 -32
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +1 -14
- data/rbi/sentdm/client.rbi +7 -0
- data/rbi/sentdm/internal/util.rbi +20 -0
- data/rbi/sentdm/models/api_meta.rbi +4 -18
- data/rbi/sentdm/models/brand_data.rbi +326 -203
- data/rbi/sentdm/models/brand_with_kyc.rbi +334 -216
- data/rbi/sentdm/models/brands/tcr_campaign_with_use_cases.rbi +6 -8
- data/rbi/sentdm/models/contact_create_params.rbi +19 -10
- data/rbi/sentdm/models/contact_delete_params.rbi +15 -0
- data/rbi/sentdm/models/contact_list_params.rbi +11 -0
- data/rbi/sentdm/models/contact_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/contact_update_params.rbi +25 -10
- data/rbi/sentdm/models/me_retrieve_params.rbi +16 -5
- data/rbi/sentdm/models/me_retrieve_response.rbi +316 -16
- data/rbi/sentdm/models/message_retrieve_activities_params.rbi +24 -5
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +24 -5
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +6 -0
- data/rbi/sentdm/models/message_send_params.rbi +22 -13
- data/rbi/sentdm/models/mutation_request.rbi +10 -10
- data/rbi/sentdm/models/profile_complete_params.rbi +25 -10
- data/rbi/sentdm/models/profile_create_params.rbi +323 -15
- data/rbi/sentdm/models/profile_delete_params.rbi +38 -20
- data/rbi/sentdm/models/profile_detail.rbi +184 -128
- data/rbi/sentdm/models/profile_list_params.rbi +16 -5
- data/rbi/sentdm/models/profile_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/profile_update_params.rbi +233 -26
- data/rbi/sentdm/models/template_create_params.rbi +22 -13
- data/rbi/sentdm/models/template_delete_params.rbi +25 -10
- data/rbi/sentdm/models/template_list_params.rbi +19 -0
- data/rbi/sentdm/models/template_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/template_update_params.rbi +28 -13
- data/rbi/sentdm/models/template_variable.rbi +6 -0
- data/rbi/sentdm/models/user_invite_params.rbi +19 -10
- data/rbi/sentdm/models/user_list_params.rbi +16 -5
- data/rbi/sentdm/models/user_remove_params.rbi +37 -19
- data/rbi/sentdm/models/user_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/user_update_role_params.rbi +25 -21
- data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_delete_params.rbi +24 -5
- data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
- data/rbi/sentdm/models/webhook_list_events_params.rbi +21 -1
- data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
- data/rbi/sentdm/models/webhook_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +20 -1
- data/rbi/sentdm/models/webhook_test_params.rbi +25 -10
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +25 -10
- data/rbi/sentdm/models/webhook_update_params.rbi +25 -10
- data/rbi/sentdm/models.rbi +0 -12
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -94
- data/rbi/sentdm/resources/brands.rbi +0 -78
- data/rbi/sentdm/resources/contacts.rbi +38 -12
- data/rbi/sentdm/resources/lookup.rbi +0 -12
- data/rbi/sentdm/resources/me.rbi +26 -7
- data/rbi/sentdm/resources/messages.rbi +18 -4
- data/rbi/sentdm/resources/profiles.rbi +179 -38
- data/rbi/sentdm/resources/templates.rbi +48 -19
- data/rbi/sentdm/resources/users.rbi +48 -25
- data/rbi/sentdm/resources/webhooks.rbi +93 -20
- data/sig/sentdm/internal/util.rbs +10 -0
- data/sig/sentdm/models/api_meta.rbs +2 -16
- data/sig/sentdm/models/brand_data.rbs +188 -142
- data/sig/sentdm/models/brand_with_kyc.rbs +184 -133
- data/sig/sentdm/models/contact_create_params.rbs +16 -5
- data/sig/sentdm/models/contact_delete_params.rbs +15 -1
- data/sig/sentdm/models/contact_list_params.rbs +8 -1
- data/sig/sentdm/models/contact_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/contact_update_params.rbs +18 -6
- data/sig/sentdm/models/me_retrieve_params.rbs +14 -3
- data/sig/sentdm/models/me_retrieve_response.rbs +134 -7
- data/sig/sentdm/models/message_retrieve_activities_params.rbs +18 -3
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
- data/sig/sentdm/models/message_retrieve_status_params.rbs +18 -3
- data/sig/sentdm/models/message_retrieve_status_response.rbs +5 -0
- data/sig/sentdm/models/message_send_params.rbs +15 -8
- data/sig/sentdm/models/mutation_request.rbs +5 -5
- data/sig/sentdm/models/profile_complete_params.rbs +21 -5
- data/sig/sentdm/models/profile_create_params.rbs +111 -7
- data/sig/sentdm/models/profile_delete_params.rbs +23 -9
- data/sig/sentdm/models/profile_detail.rbs +105 -84
- data/sig/sentdm/models/profile_list_params.rbs +14 -3
- data/sig/sentdm/models/profile_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/profile_update_params.rbs +87 -13
- data/sig/sentdm/models/template_create_params.rbs +15 -8
- data/sig/sentdm/models/template_delete_params.rbs +20 -5
- data/sig/sentdm/models/template_list_params.rbs +13 -1
- data/sig/sentdm/models/template_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/template_update_params.rbs +20 -8
- data/sig/sentdm/models/template_variable.rbs +5 -0
- data/sig/sentdm/models/user_invite_params.rbs +13 -6
- data/sig/sentdm/models/user_list_params.rbs +14 -3
- data/sig/sentdm/models/user_remove_params.rbs +23 -9
- data/sig/sentdm/models/user_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/user_update_role_params.rbs +18 -13
- data/sig/sentdm/models/webhook_create_params.rbs +13 -6
- data/sig/sentdm/models/webhook_delete_params.rbs +18 -3
- data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
- data/sig/sentdm/models/webhook_list_events_params.rbs +17 -1
- data/sig/sentdm/models/webhook_list_params.rbs +13 -1
- data/sig/sentdm/models/webhook_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +16 -1
- data/sig/sentdm/models/webhook_test_params.rbs +21 -5
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +21 -5
- data/sig/sentdm/models/webhook_update_params.rbs +18 -6
- data/sig/sentdm/models.rbs +0 -12
- data/sig/sentdm/resources/brands/campaigns.rbs +0 -29
- data/sig/sentdm/resources/brands.rbs +0 -25
- data/sig/sentdm/resources/contacts.rbs +7 -2
- data/sig/sentdm/resources/lookup.rbs +0 -5
- data/sig/sentdm/resources/me.rbs +1 -0
- data/sig/sentdm/resources/messages.rbs +4 -1
- data/sig/sentdm/resources/profiles.rbs +19 -8
- data/sig/sentdm/resources/templates.rbs +9 -3
- data/sig/sentdm/resources/users.rbs +10 -7
- data/sig/sentdm/resources/webhooks.rbs +18 -5
- metadata +2 -41
- data/lib/sentdm/models/api_response_brand_with_kyc.rb +0 -43
- data/lib/sentdm/models/brand_create_params.rb +0 -41
- data/lib/sentdm/models/brand_delete_params.rb +0 -27
- data/lib/sentdm/models/brand_list_params.rb +0 -14
- data/lib/sentdm/models/brand_list_response.rb +0 -43
- data/lib/sentdm/models/brand_update_params.rb +0 -41
- data/lib/sentdm/models/brands/campaign_create_params.rb +0 -43
- data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -36
- data/lib/sentdm/models/brands/campaign_list_params.rb +0 -16
- data/lib/sentdm/models/brands/campaign_list_response.rb +0 -47
- data/lib/sentdm/models/brands/campaign_update_params.rb +0 -50
- data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +0 -14
- data/lib/sentdm/models/lookup_retrieve_phone_info_response.rb +0 -104
- data/rbi/sentdm/models/api_response_brand_with_kyc.rbi +0 -74
- data/rbi/sentdm/models/brand_create_params.rbi +0 -68
- data/rbi/sentdm/models/brand_delete_params.rbi +0 -62
- data/rbi/sentdm/models/brand_list_params.rbi +0 -27
- data/rbi/sentdm/models/brand_list_response.rbi +0 -71
- data/rbi/sentdm/models/brand_update_params.rbi +0 -68
- data/rbi/sentdm/models/brands/campaign_create_params.rbi +0 -73
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +0 -78
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -29
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +0 -82
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +0 -79
- data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +0 -30
- data/rbi/sentdm/models/lookup_retrieve_phone_info_response.rbi +0 -183
- data/sig/sentdm/models/api_response_brand_with_kyc.rbs +0 -39
- data/sig/sentdm/models/brand_create_params.rbs +0 -36
- data/sig/sentdm/models/brand_delete_params.rbs +0 -32
- data/sig/sentdm/models/brand_list_params.rbs +0 -14
- data/sig/sentdm/models/brand_list_response.rbs +0 -39
- data/sig/sentdm/models/brand_update_params.rbs +0 -36
- data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -42
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +0 -38
- data/sig/sentdm/models/brands/campaign_list_params.rbs +0 -17
- data/sig/sentdm/models/brands/campaign_list_response.rbs +0 -41
- data/sig/sentdm/models/brands/campaign_update_params.rbs +0 -47
- data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +0 -15
- data/sig/sentdm/models/lookup_retrieve_phone_info_response.rbs +0 -102
|
@@ -19,13 +19,35 @@ module Sentdm
|
|
|
19
19
|
# @return [Boolean, nil]
|
|
20
20
|
optional :allow_template_sharing, Sentdm::Internal::Type::Boolean
|
|
21
21
|
|
|
22
|
+
# @!attribute billing_contact
|
|
23
|
+
# Billing contact for this profile. Required when billing_model is "profile" or
|
|
24
|
+
# "profile_and_organization". Identifies who receives invoices and who is
|
|
25
|
+
# responsible for payment.
|
|
26
|
+
#
|
|
27
|
+
# @return [Sentdm::Models::ProfileCreateParams::BillingContact, nil]
|
|
28
|
+
optional :billing_contact, -> { Sentdm::ProfileCreateParams::BillingContact }, nil?: true
|
|
29
|
+
|
|
22
30
|
# @!attribute billing_model
|
|
23
31
|
# Billing model: profile, organization, or profile_and_organization (default:
|
|
24
|
-
# profile)
|
|
32
|
+
# profile).
|
|
33
|
+
#
|
|
34
|
+
# - "organization": the organization's billing details are used; no profile-level
|
|
35
|
+
# billing info needed.
|
|
36
|
+
# - "profile": the profile is billed independently; billing_contact is required.
|
|
37
|
+
# - "profile_and_organization": the profile is billed first with the organization
|
|
38
|
+
# as fallback; billing_contact is required.
|
|
25
39
|
#
|
|
26
40
|
# @return [String, nil]
|
|
27
41
|
optional :billing_model, String, nil?: true
|
|
28
42
|
|
|
43
|
+
# @!attribute brand
|
|
44
|
+
# Brand and KYC information for this profile (optional). When provided, creates
|
|
45
|
+
# the brand associated with this profile. Cannot be set when inherit_tcr_brand is
|
|
46
|
+
# true.
|
|
47
|
+
#
|
|
48
|
+
# @return [Sentdm::Models::BrandData, nil]
|
|
49
|
+
optional :brand, -> { Sentdm::BrandData }, nil?: true
|
|
50
|
+
|
|
29
51
|
# @!attribute description
|
|
30
52
|
# Profile description (optional)
|
|
31
53
|
#
|
|
@@ -68,25 +90,52 @@ module Sentdm
|
|
|
68
90
|
# @return [String, nil]
|
|
69
91
|
optional :name, String
|
|
70
92
|
|
|
93
|
+
# @!attribute payment_details
|
|
94
|
+
# Payment card details for this profile (optional). Accepted when billing_model is
|
|
95
|
+
# "profile" or "profile_and_organization". Not persisted on our servers —
|
|
96
|
+
# forwarded to the payment processor.
|
|
97
|
+
#
|
|
98
|
+
# @return [Sentdm::Models::ProfileCreateParams::PaymentDetails, nil]
|
|
99
|
+
optional :payment_details, -> { Sentdm::ProfileCreateParams::PaymentDetails }, nil?: true
|
|
100
|
+
|
|
101
|
+
# @!attribute sandbox
|
|
102
|
+
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
103
|
+
# for testing integrations without actual execution
|
|
104
|
+
#
|
|
105
|
+
# @return [Boolean, nil]
|
|
106
|
+
optional :sandbox, Sentdm::Internal::Type::Boolean
|
|
107
|
+
|
|
71
108
|
# @!attribute short_name
|
|
72
|
-
# Profile short name/abbreviation (optional)
|
|
109
|
+
# Profile short name/abbreviation (optional). Must be 3–11 characters, contain
|
|
110
|
+
# only letters, numbers, and spaces, and include at least one letter. Example:
|
|
111
|
+
# "SALES", "Mkt 2", "Support1".
|
|
73
112
|
#
|
|
74
113
|
# @return [String, nil]
|
|
75
114
|
optional :short_name, String, nil?: true
|
|
76
115
|
|
|
77
|
-
# @!attribute
|
|
78
|
-
#
|
|
79
|
-
#
|
|
116
|
+
# @!attribute whatsapp_business_account
|
|
117
|
+
# Direct WhatsApp Business Account credentials for this profile. When provided,
|
|
118
|
+
# the profile uses its own WhatsApp Business Account instead of inheriting from
|
|
119
|
+
# the organization. When omitted, the profile inherits the organization's WhatsApp
|
|
120
|
+
# Business Account (requires the organization to have completed WhatsApp Embedded
|
|
121
|
+
# Signup).
|
|
80
122
|
#
|
|
81
|
-
# @return [
|
|
82
|
-
optional :
|
|
123
|
+
# @return [Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount, nil]
|
|
124
|
+
optional :whatsapp_business_account,
|
|
125
|
+
-> { Sentdm::ProfileCreateParams::WhatsappBusinessAccount },
|
|
126
|
+
nil?: true
|
|
83
127
|
|
|
84
128
|
# @!attribute idempotency_key
|
|
85
129
|
#
|
|
86
130
|
# @return [String, nil]
|
|
87
131
|
optional :idempotency_key, String
|
|
88
132
|
|
|
89
|
-
# @!
|
|
133
|
+
# @!attribute x_profile_id
|
|
134
|
+
#
|
|
135
|
+
# @return [String, nil]
|
|
136
|
+
optional :x_profile_id, String
|
|
137
|
+
|
|
138
|
+
# @!method initialize(allow_contact_sharing: nil, allow_template_sharing: nil, billing_contact: nil, billing_model: nil, brand: nil, description: nil, icon: nil, inherit_contacts: nil, inherit_tcr_brand: nil, inherit_tcr_campaign: nil, inherit_templates: nil, name: nil, payment_details: nil, sandbox: nil, short_name: nil, whatsapp_business_account: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
90
139
|
# Some parameter documentations has been truncated, see
|
|
91
140
|
# {Sentdm::Models::ProfileCreateParams} for more details.
|
|
92
141
|
#
|
|
@@ -94,8 +143,12 @@ module Sentdm
|
|
|
94
143
|
#
|
|
95
144
|
# @param allow_template_sharing [Boolean] Whether templates are shared across profiles (default: false)
|
|
96
145
|
#
|
|
146
|
+
# @param billing_contact [Sentdm::Models::ProfileCreateParams::BillingContact, nil] Billing contact for this profile. Required when billing_model is "profile" or "p
|
|
147
|
+
#
|
|
97
148
|
# @param billing_model [String, nil] Billing model: profile, organization, or profile_and_organization (default: prof
|
|
98
149
|
#
|
|
150
|
+
# @param brand [Sentdm::Models::BrandData, nil] Brand and KYC information for this profile (optional).
|
|
151
|
+
#
|
|
99
152
|
# @param description [String, nil] Profile description (optional)
|
|
100
153
|
#
|
|
101
154
|
# @param icon [String, nil] Profile icon URL (optional)
|
|
@@ -110,13 +163,142 @@ module Sentdm
|
|
|
110
163
|
#
|
|
111
164
|
# @param name [String] Profile name (required)
|
|
112
165
|
#
|
|
113
|
-
# @param
|
|
166
|
+
# @param payment_details [Sentdm::Models::ProfileCreateParams::PaymentDetails, nil] Payment card details for this profile (optional).
|
|
167
|
+
#
|
|
168
|
+
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
|
|
114
169
|
#
|
|
115
|
-
# @param
|
|
170
|
+
# @param short_name [String, nil] Profile short name/abbreviation (optional). Must be 3–11 characters, contain onl
|
|
171
|
+
#
|
|
172
|
+
# @param whatsapp_business_account [Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount, nil] Direct WhatsApp Business Account credentials for this profile.
|
|
116
173
|
#
|
|
117
174
|
# @param idempotency_key [String]
|
|
118
175
|
#
|
|
176
|
+
# @param x_profile_id [String]
|
|
177
|
+
#
|
|
119
178
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
179
|
+
|
|
180
|
+
class BillingContact < Sentdm::Internal::Type::BaseModel
|
|
181
|
+
# @!attribute email
|
|
182
|
+
# Email address where invoices will be sent (required)
|
|
183
|
+
#
|
|
184
|
+
# @return [String]
|
|
185
|
+
required :email, String
|
|
186
|
+
|
|
187
|
+
# @!attribute name
|
|
188
|
+
# Full name of the billing contact or company (required)
|
|
189
|
+
#
|
|
190
|
+
# @return [String]
|
|
191
|
+
required :name, String
|
|
192
|
+
|
|
193
|
+
# @!attribute address
|
|
194
|
+
# Billing address (optional). Free-form text including street, city, state, postal
|
|
195
|
+
# code, and country.
|
|
196
|
+
#
|
|
197
|
+
# @return [String, nil]
|
|
198
|
+
optional :address, String, nil?: true
|
|
199
|
+
|
|
200
|
+
# @!attribute phone
|
|
201
|
+
# Phone number for the billing contact (optional)
|
|
202
|
+
#
|
|
203
|
+
# @return [String, nil]
|
|
204
|
+
optional :phone, String, nil?: true
|
|
205
|
+
|
|
206
|
+
# @!method initialize(email:, name:, address: nil, phone: nil)
|
|
207
|
+
# Some parameter documentations has been truncated, see
|
|
208
|
+
# {Sentdm::Models::ProfileCreateParams::BillingContact} for more details.
|
|
209
|
+
#
|
|
210
|
+
# Billing contact for this profile. Required when billing_model is "profile" or
|
|
211
|
+
# "profile_and_organization". Identifies who receives invoices and who is
|
|
212
|
+
# responsible for payment.
|
|
213
|
+
#
|
|
214
|
+
# @param email [String] Email address where invoices will be sent (required)
|
|
215
|
+
#
|
|
216
|
+
# @param name [String] Full name of the billing contact or company (required)
|
|
217
|
+
#
|
|
218
|
+
# @param address [String, nil] Billing address (optional). Free-form text including street, city, state, postal
|
|
219
|
+
#
|
|
220
|
+
# @param phone [String, nil] Phone number for the billing contact (optional)
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
class PaymentDetails < Sentdm::Internal::Type::BaseModel
|
|
224
|
+
# @!attribute card_number
|
|
225
|
+
# Card number (digits only, 13–19 characters)
|
|
226
|
+
#
|
|
227
|
+
# @return [String]
|
|
228
|
+
required :card_number, String
|
|
229
|
+
|
|
230
|
+
# @!attribute cvc
|
|
231
|
+
# Card security code (3–4 digits)
|
|
232
|
+
#
|
|
233
|
+
# @return [String]
|
|
234
|
+
required :cvc, String
|
|
235
|
+
|
|
236
|
+
# @!attribute expiry
|
|
237
|
+
# Card expiry date in MM/YY format (e.g. "09/27")
|
|
238
|
+
#
|
|
239
|
+
# @return [String]
|
|
240
|
+
required :expiry, String
|
|
241
|
+
|
|
242
|
+
# @!attribute zip_code
|
|
243
|
+
# Billing ZIP / postal code associated with the card
|
|
244
|
+
#
|
|
245
|
+
# @return [String]
|
|
246
|
+
required :zip_code, String
|
|
247
|
+
|
|
248
|
+
# @!method initialize(card_number:, cvc:, expiry:, zip_code:)
|
|
249
|
+
# Payment card details for this profile (optional). Accepted when billing_model is
|
|
250
|
+
# "profile" or "profile_and_organization". Not persisted on our servers —
|
|
251
|
+
# forwarded to the payment processor.
|
|
252
|
+
#
|
|
253
|
+
# @param card_number [String] Card number (digits only, 13–19 characters)
|
|
254
|
+
#
|
|
255
|
+
# @param cvc [String] Card security code (3–4 digits)
|
|
256
|
+
#
|
|
257
|
+
# @param expiry [String] Card expiry date in MM/YY format (e.g. "09/27")
|
|
258
|
+
#
|
|
259
|
+
# @param zip_code [String] Billing ZIP / postal code associated with the card
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
class WhatsappBusinessAccount < Sentdm::Internal::Type::BaseModel
|
|
263
|
+
# @!attribute access_token
|
|
264
|
+
# System User access token with whatsapp_business_messaging and
|
|
265
|
+
# whatsapp_business_management permissions. This value is stored securely and
|
|
266
|
+
# never returned in API responses.
|
|
267
|
+
#
|
|
268
|
+
# @return [String]
|
|
269
|
+
required :access_token, String
|
|
270
|
+
|
|
271
|
+
# @!attribute waba_id
|
|
272
|
+
# WhatsApp Business Account ID from Meta Business Manager
|
|
273
|
+
#
|
|
274
|
+
# @return [String]
|
|
275
|
+
required :waba_id, String
|
|
276
|
+
|
|
277
|
+
# @!attribute phone_number_id
|
|
278
|
+
# Phone Number ID of an existing number already registered under this WABA in Meta
|
|
279
|
+
# Business Manager. Optional — when omitted, a number will be provisioned from our
|
|
280
|
+
# pool and registered in the WABA during the onboarding flow. When provided, the
|
|
281
|
+
# number must already exist in the WABA.
|
|
282
|
+
#
|
|
283
|
+
# @return [String, nil]
|
|
284
|
+
optional :phone_number_id, String, nil?: true
|
|
285
|
+
|
|
286
|
+
# @!method initialize(access_token:, waba_id:, phone_number_id: nil)
|
|
287
|
+
# Some parameter documentations has been truncated, see
|
|
288
|
+
# {Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount} for more details.
|
|
289
|
+
#
|
|
290
|
+
# Direct WhatsApp Business Account credentials for this profile. When provided,
|
|
291
|
+
# the profile uses its own WhatsApp Business Account instead of inheriting from
|
|
292
|
+
# the organization. When omitted, the profile inherits the organization's WhatsApp
|
|
293
|
+
# Business Account (requires the organization to have completed WhatsApp Embedded
|
|
294
|
+
# Signup).
|
|
295
|
+
#
|
|
296
|
+
# @param access_token [String] System User access token with whatsapp_business_messaging and
|
|
297
|
+
#
|
|
298
|
+
# @param waba_id [String] WhatsApp Business Account ID from Meta Business Manager
|
|
299
|
+
#
|
|
300
|
+
# @param phone_number_id [String, nil] Phone Number ID of an existing number already registered under this WABA in Meta
|
|
301
|
+
end
|
|
120
302
|
end
|
|
121
303
|
end
|
|
122
304
|
end
|
|
@@ -7,28 +7,35 @@ module Sentdm
|
|
|
7
7
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Sentdm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute
|
|
11
|
-
# Profile ID from route parameter
|
|
10
|
+
# @!attribute profile_id
|
|
12
11
|
#
|
|
13
|
-
# @return [String
|
|
14
|
-
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :profile_id, String
|
|
15
14
|
|
|
16
|
-
# @!attribute
|
|
17
|
-
#
|
|
18
|
-
# Useful for testing integrations without actual execution
|
|
15
|
+
# @!attribute body
|
|
16
|
+
# Request to delete a profile
|
|
19
17
|
#
|
|
20
|
-
# @return [
|
|
21
|
-
|
|
18
|
+
# @return [Sentdm::Models::ProfileDeleteParams::Body]
|
|
19
|
+
required :body, -> { Sentdm::ProfileDeleteParams::Body }
|
|
22
20
|
|
|
23
|
-
# @!
|
|
24
|
-
# Some parameter documentations has been truncated, see
|
|
25
|
-
# {Sentdm::Models::ProfileDeleteParams} for more details.
|
|
21
|
+
# @!attribute x_profile_id
|
|
26
22
|
#
|
|
27
|
-
# @
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :x_profile_id, String
|
|
25
|
+
|
|
26
|
+
# @!method initialize(profile_id:, body:, x_profile_id: nil, request_options: {})
|
|
27
|
+
# @param profile_id [String]
|
|
28
28
|
#
|
|
29
|
-
# @param
|
|
29
|
+
# @param body [Sentdm::Models::ProfileDeleteParams::Body] Request to delete a profile
|
|
30
|
+
#
|
|
31
|
+
# @param x_profile_id [String]
|
|
30
32
|
#
|
|
31
33
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
34
|
+
|
|
35
|
+
class Body < Sentdm::Models::MutationRequest
|
|
36
|
+
# @!method initialize
|
|
37
|
+
# Request to delete a profile
|
|
38
|
+
end
|
|
32
39
|
end
|
|
33
40
|
end
|
|
34
41
|
end
|
|
@@ -9,6 +9,44 @@ module Sentdm
|
|
|
9
9
|
# @return [String, nil]
|
|
10
10
|
optional :id, String
|
|
11
11
|
|
|
12
|
+
# @!attribute allow_contact_sharing
|
|
13
|
+
# Whether contacts are shared across profiles in the organization
|
|
14
|
+
#
|
|
15
|
+
# @return [Boolean, nil]
|
|
16
|
+
optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean
|
|
17
|
+
|
|
18
|
+
# @!attribute allow_number_change_during_onboarding
|
|
19
|
+
# Whether number changes are allowed during onboarding
|
|
20
|
+
#
|
|
21
|
+
# @return [Boolean, nil]
|
|
22
|
+
optional :allow_number_change_during_onboarding, Sentdm::Internal::Type::Boolean, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute allow_template_sharing
|
|
25
|
+
# Whether templates are shared across profiles in the organization
|
|
26
|
+
#
|
|
27
|
+
# @return [Boolean, nil]
|
|
28
|
+
optional :allow_template_sharing, Sentdm::Internal::Type::Boolean
|
|
29
|
+
|
|
30
|
+
# @!attribute billing_contact
|
|
31
|
+
# Billing contact for this profile. Present when billing_model is "profile" or
|
|
32
|
+
# "profile_and_organization".
|
|
33
|
+
#
|
|
34
|
+
# @return [Sentdm::Models::ProfileDetail::BillingContact, nil]
|
|
35
|
+
optional :billing_contact, -> { Sentdm::ProfileDetail::BillingContact }, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute billing_model
|
|
38
|
+
# Billing model: profile, organization, or profile_and_organization
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :billing_model, String
|
|
42
|
+
|
|
43
|
+
# @!attribute brand
|
|
44
|
+
# Brand associated with this profile. Null if no brand has been configured yet.
|
|
45
|
+
# Includes KYC information and TCR registration status.
|
|
46
|
+
#
|
|
47
|
+
# @return [Sentdm::Models::BrandWithKYC, nil]
|
|
48
|
+
optional :brand, -> { Sentdm::BrandWithKYC }, nil?: true
|
|
49
|
+
|
|
12
50
|
# @!attribute created_at
|
|
13
51
|
# When the profile was created
|
|
14
52
|
#
|
|
@@ -33,6 +71,30 @@ module Sentdm
|
|
|
33
71
|
# @return [String, nil]
|
|
34
72
|
optional :icon, String, nil?: true
|
|
35
73
|
|
|
74
|
+
# @!attribute inherit_contacts
|
|
75
|
+
# Whether this profile inherits contacts from the organization
|
|
76
|
+
#
|
|
77
|
+
# @return [Boolean, nil]
|
|
78
|
+
optional :inherit_contacts, Sentdm::Internal::Type::Boolean
|
|
79
|
+
|
|
80
|
+
# @!attribute inherit_tcr_brand
|
|
81
|
+
# Whether this profile inherits TCR brand from the organization
|
|
82
|
+
#
|
|
83
|
+
# @return [Boolean, nil]
|
|
84
|
+
optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean
|
|
85
|
+
|
|
86
|
+
# @!attribute inherit_tcr_campaign
|
|
87
|
+
# Whether this profile inherits TCR campaign from the organization
|
|
88
|
+
#
|
|
89
|
+
# @return [Boolean, nil]
|
|
90
|
+
optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean
|
|
91
|
+
|
|
92
|
+
# @!attribute inherit_templates
|
|
93
|
+
# Whether this profile inherits templates from the organization
|
|
94
|
+
#
|
|
95
|
+
# @return [Boolean, nil]
|
|
96
|
+
optional :inherit_templates, Sentdm::Internal::Type::Boolean
|
|
97
|
+
|
|
36
98
|
# @!attribute name
|
|
37
99
|
# Profile name
|
|
38
100
|
#
|
|
@@ -45,14 +107,27 @@ module Sentdm
|
|
|
45
107
|
# @return [String, nil]
|
|
46
108
|
optional :organization_id, String, nil?: true
|
|
47
109
|
|
|
48
|
-
# @!attribute
|
|
49
|
-
#
|
|
110
|
+
# @!attribute sending_phone_number
|
|
111
|
+
# Direct SMS phone number
|
|
112
|
+
#
|
|
113
|
+
# @return [String, nil]
|
|
114
|
+
optional :sending_phone_number, String, nil?: true
|
|
115
|
+
|
|
116
|
+
# @!attribute sending_phone_number_profile_id
|
|
117
|
+
# Reference to another profile for SMS/Telnyx configuration
|
|
118
|
+
#
|
|
119
|
+
# @return [String, nil]
|
|
120
|
+
optional :sending_phone_number_profile_id, String, nil?: true
|
|
121
|
+
|
|
122
|
+
# @!attribute sending_whatsapp_number_profile_id
|
|
123
|
+
# Reference to another profile for WhatsApp configuration
|
|
50
124
|
#
|
|
51
|
-
# @return [
|
|
52
|
-
optional :
|
|
125
|
+
# @return [String, nil]
|
|
126
|
+
optional :sending_whatsapp_number_profile_id, String, nil?: true
|
|
53
127
|
|
|
54
128
|
# @!attribute short_name
|
|
55
|
-
# Profile short name
|
|
129
|
+
# Profile short name/abbreviation. 3–11 characters: letters, numbers, and spaces
|
|
130
|
+
# only, with at least one letter.
|
|
56
131
|
#
|
|
57
132
|
# @return [String, nil]
|
|
58
133
|
optional :short_name, String, nil?: true
|
|
@@ -69,11 +144,39 @@ module Sentdm
|
|
|
69
144
|
# @return [Time, nil]
|
|
70
145
|
optional :updated_at, Time, nil?: true
|
|
71
146
|
|
|
72
|
-
# @!
|
|
147
|
+
# @!attribute waba_id
|
|
148
|
+
# WhatsApp Business Account ID associated with this profile. Present whether the
|
|
149
|
+
# WABA is inherited from the organization or configured directly.
|
|
150
|
+
#
|
|
151
|
+
# @return [String, nil]
|
|
152
|
+
optional :waba_id, String, nil?: true
|
|
153
|
+
|
|
154
|
+
# @!attribute whatsapp_phone_number
|
|
155
|
+
# Direct WhatsApp phone number
|
|
156
|
+
#
|
|
157
|
+
# @return [String, nil]
|
|
158
|
+
optional :whatsapp_phone_number, String, nil?: true
|
|
159
|
+
|
|
160
|
+
# @!method initialize(id: nil, allow_contact_sharing: nil, allow_number_change_during_onboarding: nil, allow_template_sharing: nil, billing_contact: nil, billing_model: nil, brand: nil, created_at: nil, description: nil, email: nil, icon: nil, inherit_contacts: nil, inherit_tcr_brand: nil, inherit_tcr_campaign: nil, inherit_templates: nil, name: nil, organization_id: nil, sending_phone_number: nil, sending_phone_number_profile_id: nil, sending_whatsapp_number_profile_id: nil, short_name: nil, status: nil, updated_at: nil, waba_id: nil, whatsapp_phone_number: nil)
|
|
161
|
+
# Some parameter documentations has been truncated, see
|
|
162
|
+
# {Sentdm::Models::ProfileDetail} for more details.
|
|
163
|
+
#
|
|
73
164
|
# Detailed profile response for v3 API
|
|
74
165
|
#
|
|
75
166
|
# @param id [String] Profile unique identifier
|
|
76
167
|
#
|
|
168
|
+
# @param allow_contact_sharing [Boolean] Whether contacts are shared across profiles in the organization
|
|
169
|
+
#
|
|
170
|
+
# @param allow_number_change_during_onboarding [Boolean, nil] Whether number changes are allowed during onboarding
|
|
171
|
+
#
|
|
172
|
+
# @param allow_template_sharing [Boolean] Whether templates are shared across profiles in the organization
|
|
173
|
+
#
|
|
174
|
+
# @param billing_contact [Sentdm::Models::ProfileDetail::BillingContact, nil] Billing contact for this profile. Present when billing_model is "profile" or "pr
|
|
175
|
+
#
|
|
176
|
+
# @param billing_model [String] Billing model: profile, organization, or profile_and_organization
|
|
177
|
+
#
|
|
178
|
+
# @param brand [Sentdm::Models::BrandWithKYC, nil] Brand associated with this profile. Null if no brand has been configured yet.
|
|
179
|
+
#
|
|
77
180
|
# @param created_at [Time] When the profile was created
|
|
78
181
|
#
|
|
79
182
|
# @param description [String, nil] Profile description
|
|
@@ -82,118 +185,64 @@ module Sentdm
|
|
|
82
185
|
#
|
|
83
186
|
# @param icon [String, nil] Profile icon URL
|
|
84
187
|
#
|
|
188
|
+
# @param inherit_contacts [Boolean] Whether this profile inherits contacts from the organization
|
|
189
|
+
#
|
|
190
|
+
# @param inherit_tcr_brand [Boolean] Whether this profile inherits TCR brand from the organization
|
|
191
|
+
#
|
|
192
|
+
# @param inherit_tcr_campaign [Boolean] Whether this profile inherits TCR campaign from the organization
|
|
193
|
+
#
|
|
194
|
+
# @param inherit_templates [Boolean] Whether this profile inherits templates from the organization
|
|
195
|
+
#
|
|
85
196
|
# @param name [String] Profile name
|
|
86
197
|
#
|
|
87
198
|
# @param organization_id [String, nil] Parent organization ID
|
|
88
199
|
#
|
|
89
|
-
# @param
|
|
200
|
+
# @param sending_phone_number [String, nil] Direct SMS phone number
|
|
201
|
+
#
|
|
202
|
+
# @param sending_phone_number_profile_id [String, nil] Reference to another profile for SMS/Telnyx configuration
|
|
203
|
+
#
|
|
204
|
+
# @param sending_whatsapp_number_profile_id [String, nil] Reference to another profile for WhatsApp configuration
|
|
90
205
|
#
|
|
91
|
-
# @param short_name [String, nil] Profile short name
|
|
206
|
+
# @param short_name [String, nil] Profile short name/abbreviation. 3–11 characters: letters, numbers, and spaces o
|
|
92
207
|
#
|
|
93
208
|
# @param status [String] Profile setup status: incomplete, pending_review, approved, rejected
|
|
94
209
|
#
|
|
95
210
|
# @param updated_at [Time, nil] When the profile was last updated
|
|
211
|
+
#
|
|
212
|
+
# @param waba_id [String, nil] WhatsApp Business Account ID associated with this profile.
|
|
213
|
+
#
|
|
214
|
+
# @param whatsapp_phone_number [String, nil] Direct WhatsApp phone number
|
|
96
215
|
|
|
97
|
-
# @see Sentdm::Models::ProfileDetail#
|
|
98
|
-
class
|
|
99
|
-
# @!attribute
|
|
100
|
-
# Whether contacts are shared across profiles in the organization
|
|
101
|
-
#
|
|
102
|
-
# @return [Boolean, nil]
|
|
103
|
-
optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean
|
|
104
|
-
|
|
105
|
-
# @!attribute allow_number_change_during_onboarding
|
|
106
|
-
# Whether number changes are allowed during onboarding
|
|
107
|
-
#
|
|
108
|
-
# @return [Boolean, nil]
|
|
109
|
-
optional :allow_number_change_during_onboarding, Sentdm::Internal::Type::Boolean, nil?: true
|
|
110
|
-
|
|
111
|
-
# @!attribute allow_template_sharing
|
|
112
|
-
# Whether templates are shared across profiles in the organization
|
|
113
|
-
#
|
|
114
|
-
# @return [Boolean, nil]
|
|
115
|
-
optional :allow_template_sharing, Sentdm::Internal::Type::Boolean
|
|
116
|
-
|
|
117
|
-
# @!attribute billing_model
|
|
118
|
-
# Billing model: profile, organization, or profile_and_organization
|
|
119
|
-
#
|
|
120
|
-
# @return [String, nil]
|
|
121
|
-
optional :billing_model, String
|
|
122
|
-
|
|
123
|
-
# @!attribute inherit_contacts
|
|
124
|
-
# Whether this profile inherits contacts from the organization
|
|
125
|
-
#
|
|
126
|
-
# @return [Boolean, nil]
|
|
127
|
-
optional :inherit_contacts, Sentdm::Internal::Type::Boolean
|
|
128
|
-
|
|
129
|
-
# @!attribute inherit_tcr_brand
|
|
130
|
-
# Whether this profile inherits TCR brand from the organization
|
|
131
|
-
#
|
|
132
|
-
# @return [Boolean, nil]
|
|
133
|
-
optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean
|
|
134
|
-
|
|
135
|
-
# @!attribute inherit_tcr_campaign
|
|
136
|
-
# Whether this profile inherits TCR campaign from the organization
|
|
137
|
-
#
|
|
138
|
-
# @return [Boolean, nil]
|
|
139
|
-
optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean
|
|
140
|
-
|
|
141
|
-
# @!attribute inherit_templates
|
|
142
|
-
# Whether this profile inherits templates from the organization
|
|
143
|
-
#
|
|
144
|
-
# @return [Boolean, nil]
|
|
145
|
-
optional :inherit_templates, Sentdm::Internal::Type::Boolean
|
|
146
|
-
|
|
147
|
-
# @!attribute sending_phone_number
|
|
148
|
-
# Direct SMS phone number
|
|
216
|
+
# @see Sentdm::Models::ProfileDetail#billing_contact
|
|
217
|
+
class BillingContact < Sentdm::Internal::Type::BaseModel
|
|
218
|
+
# @!attribute address
|
|
149
219
|
#
|
|
150
220
|
# @return [String, nil]
|
|
151
|
-
optional :
|
|
221
|
+
optional :address, String, nil?: true
|
|
152
222
|
|
|
153
|
-
# @!attribute
|
|
154
|
-
# Reference to another profile for SMS/Telnyx configuration
|
|
223
|
+
# @!attribute email
|
|
155
224
|
#
|
|
156
225
|
# @return [String, nil]
|
|
157
|
-
optional :
|
|
226
|
+
optional :email, String, nil?: true
|
|
158
227
|
|
|
159
|
-
# @!attribute
|
|
160
|
-
# Reference to another profile for WhatsApp configuration
|
|
228
|
+
# @!attribute name
|
|
161
229
|
#
|
|
162
230
|
# @return [String, nil]
|
|
163
|
-
optional :
|
|
231
|
+
optional :name, String, nil?: true
|
|
164
232
|
|
|
165
|
-
# @!attribute
|
|
166
|
-
# Direct WhatsApp phone number
|
|
233
|
+
# @!attribute phone
|
|
167
234
|
#
|
|
168
235
|
# @return [String, nil]
|
|
169
|
-
optional :
|
|
236
|
+
optional :phone, String, nil?: true
|
|
170
237
|
|
|
171
|
-
# @!method initialize(
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
# @param allow_contact_sharing [Boolean] Whether contacts are shared across profiles in the organization
|
|
175
|
-
#
|
|
176
|
-
# @param allow_number_change_during_onboarding [Boolean, nil] Whether number changes are allowed during onboarding
|
|
177
|
-
#
|
|
178
|
-
# @param allow_template_sharing [Boolean] Whether templates are shared across profiles in the organization
|
|
179
|
-
#
|
|
180
|
-
# @param billing_model [String] Billing model: profile, organization, or profile_and_organization
|
|
181
|
-
#
|
|
182
|
-
# @param inherit_contacts [Boolean] Whether this profile inherits contacts from the organization
|
|
183
|
-
#
|
|
184
|
-
# @param inherit_tcr_brand [Boolean] Whether this profile inherits TCR brand from the organization
|
|
185
|
-
#
|
|
186
|
-
# @param inherit_tcr_campaign [Boolean] Whether this profile inherits TCR campaign from the organization
|
|
187
|
-
#
|
|
188
|
-
# @param inherit_templates [Boolean] Whether this profile inherits templates from the organization
|
|
189
|
-
#
|
|
190
|
-
# @param sending_phone_number [String, nil] Direct SMS phone number
|
|
191
|
-
#
|
|
192
|
-
# @param sending_phone_number_profile_id [String, nil] Reference to another profile for SMS/Telnyx configuration
|
|
193
|
-
#
|
|
194
|
-
# @param sending_whatsapp_number_profile_id [String, nil] Reference to another profile for WhatsApp configuration
|
|
238
|
+
# @!method initialize(address: nil, email: nil, name: nil, phone: nil)
|
|
239
|
+
# Billing contact for this profile. Present when billing_model is "profile" or
|
|
240
|
+
# "profile_and_organization".
|
|
195
241
|
#
|
|
196
|
-
# @param
|
|
242
|
+
# @param address [String, nil]
|
|
243
|
+
# @param email [String, nil]
|
|
244
|
+
# @param name [String, nil]
|
|
245
|
+
# @param phone [String, nil]
|
|
197
246
|
end
|
|
198
247
|
end
|
|
199
248
|
end
|
|
@@ -7,7 +7,13 @@ module Sentdm
|
|
|
7
7
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Sentdm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute x_profile_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String, nil]
|
|
13
|
+
optional :x_profile_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(x_profile_id: nil, request_options: {})
|
|
16
|
+
# @param x_profile_id [String]
|
|
11
17
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -7,7 +7,19 @@ module Sentdm
|
|
|
7
7
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Sentdm::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute profile_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :profile_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute x_profile_id
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
optional :x_profile_id, String
|
|
19
|
+
|
|
20
|
+
# @!method initialize(profile_id:, x_profile_id: nil, request_options: {})
|
|
21
|
+
# @param profile_id [String]
|
|
22
|
+
# @param x_profile_id [String]
|
|
11
23
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
12
24
|
end
|
|
13
25
|
end
|