telnyx 5.60.0 → 5.62.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 +37 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +10 -5
- data/lib/telnyx/errors.rb +0 -10
- data/lib/telnyx/lib/webhook_verification.rb +172 -0
- data/lib/telnyx/models/ai/assistants/{tag_delete_params.rb → tag_add_params.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_delete_response.rb → tag_add_response.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_create_params.rb → tag_remove_params.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_create_response.rb → tag_remove_response.rb} +2 -2
- data/lib/telnyx/models/call_cost_webhook_event.rb +242 -0
- data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +135 -8
- data/lib/telnyx/models/text_to_speech_generate_params.rb +3 -3
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +3 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +3 -1
- data/lib/telnyx/models/voice_clone_create_from_design_params.rb +27 -6
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +23 -2
- data/lib/telnyx/models/voice_clone_create_params.rb +79 -0
- data/lib/telnyx/models/voice_clone_create_response.rb +19 -0
- data/lib/telnyx/models/voice_clone_data.rb +41 -1
- data/lib/telnyx/models/voice_clone_list_params.rb +22 -1
- data/lib/telnyx/models/voice_design_create_params.rb +24 -1
- data/lib/telnyx/models/voice_design_data.rb +45 -1
- data/lib/telnyx/models/voice_design_list_response.rb +32 -1
- data/lib/telnyx/models/{voice_design_update_params.rb → voice_design_rename_params.rb} +2 -2
- data/lib/telnyx/models/{voice_design_update_response.rb → voice_design_rename_response.rb} +42 -11
- data/lib/telnyx/models/whatsapp/business_accounts/{phone_number_create_verification_params.rb → phone_number_initialize_verification_params.rb} +5 -5
- data/lib/telnyx/models/whatsapp/template_create_params.rb +530 -0
- data/lib/telnyx/models/whatsapp/{message_template_create_response.rb → template_create_response.rb} +2 -2
- data/lib/telnyx/models/whatsapp/{message_template_list_params.rb → template_list_params.rb} +5 -5
- data/lib/telnyx/models/whatsapp_message_template_delete_params.rb +20 -0
- data/lib/telnyx/models/whatsapp_message_template_retrieve_params.rb +20 -0
- data/lib/telnyx/models/whatsapp_message_template_retrieve_response.rb +16 -0
- data/lib/telnyx/models/whatsapp_message_template_update_params.rb +504 -0
- data/lib/telnyx/models/whatsapp_message_template_update_response.rb +16 -0
- data/lib/telnyx/models/whatsapp_template_data.rb +10 -3
- data/lib/telnyx/models/x402/{credit_account_create_payment_quote_params.rb → credit_account_create_quote_params.rb} +2 -2
- data/lib/telnyx/models/x402/{credit_account_create_payment_quote_response.rb → credit_account_create_quote_response.rb} +31 -32
- data/lib/telnyx/models/x402/{credit_account_settle_payment_params.rb → credit_account_settle_params.rb} +3 -3
- data/lib/telnyx/models/x402/{credit_account_settle_payment_response.rb → credit_account_settle_response.rb} +14 -15
- data/lib/telnyx/models.rb +12 -4
- data/lib/telnyx/resources/ai/assistants/tags.rb +28 -28
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/voice_clones.rb +38 -31
- data/lib/telnyx/resources/voice_designs.rb +27 -25
- data/lib/telnyx/resources/webhooks.rb +10 -183
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +5 -5
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile.rb +0 -4
- data/lib/telnyx/resources/whatsapp/templates.rb +91 -0
- data/lib/telnyx/resources/whatsapp.rb +3 -3
- data/lib/telnyx/resources/whatsapp_message_templates.rb +81 -0
- data/lib/telnyx/resources/x402/credit_account.rb +13 -13
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +25 -24
- data/rbi/telnyx/client.rbi +8 -4
- data/rbi/telnyx/models/ai/assistants/{tag_create_params.rbi → tag_add_params.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_delete_response.rbi → tag_add_response.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_delete_params.rbi → tag_remove_params.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_create_response.rbi → tag_remove_response.rbi} +2 -2
- data/rbi/telnyx/models/call_cost_webhook_event.rbi +485 -0
- data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +338 -12
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +2 -1
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +1 -0
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +1 -0
- data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +51 -0
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +67 -2
- data/rbi/telnyx/models/voice_clone_create_params.rbi +142 -0
- data/rbi/telnyx/models/voice_clone_create_response.rbi +36 -0
- data/rbi/telnyx/models/voice_clone_data.rbi +57 -0
- data/rbi/telnyx/models/voice_clone_list_params.rbi +62 -0
- data/rbi/telnyx/models/voice_design_create_params.rbi +60 -0
- data/rbi/telnyx/models/voice_design_data.rbi +59 -0
- data/rbi/telnyx/models/voice_design_list_response.rbi +73 -0
- data/rbi/telnyx/models/{voice_design_update_params.rbi → voice_design_rename_params.rbi} +2 -2
- data/rbi/telnyx/models/{voice_design_update_response.rbi → voice_design_rename_response.rbi} +90 -14
- data/rbi/telnyx/models/whatsapp/business_accounts/{phone_number_create_verification_params.rbi → phone_number_initialize_verification_params.rbi} +10 -10
- data/rbi/telnyx/models/whatsapp/template_create_params.rbi +1177 -0
- data/rbi/telnyx/models/whatsapp/{message_template_create_response.rbi → template_create_response.rbi} +2 -2
- data/rbi/telnyx/models/whatsapp/{message_template_list_params.rbi → template_list_params.rbi} +11 -11
- data/rbi/telnyx/models/whatsapp_message_template_delete_params.rbi +38 -0
- data/rbi/telnyx/models/whatsapp_message_template_retrieve_params.rbi +38 -0
- data/rbi/telnyx/models/whatsapp_message_template_retrieve_response.rbi +33 -0
- data/rbi/telnyx/models/whatsapp_message_template_update_params.rbi +1178 -0
- data/rbi/telnyx/models/whatsapp_message_template_update_response.rbi +33 -0
- data/rbi/telnyx/models/whatsapp_template_data.rbi +10 -2
- data/rbi/telnyx/models/x402/{credit_account_create_payment_quote_params.rbi → credit_account_create_quote_params.rbi} +2 -2
- data/rbi/telnyx/models/x402/{credit_account_create_payment_quote_response.rbi → credit_account_create_quote_response.rbi} +41 -42
- data/rbi/telnyx/models/x402/{credit_account_settle_payment_params.rbi → credit_account_settle_params.rbi} +2 -2
- data/rbi/telnyx/models/x402/{credit_account_settle_payment_response.rbi → credit_account_settle_response.rbi} +21 -26
- data/rbi/telnyx/models.rbi +29 -3
- data/rbi/telnyx/resources/ai/assistants/tags.rbi +13 -13
- data/rbi/telnyx/resources/calls/actions.rbi +4 -3
- data/rbi/telnyx/resources/voice_clones.rbi +36 -25
- data/rbi/telnyx/resources/voice_designs.rbi +21 -17
- data/rbi/telnyx/resources/webhooks.rbi +12 -2
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +2 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile.rbi +0 -5
- data/rbi/telnyx/resources/whatsapp/templates.rbi +85 -0
- data/rbi/telnyx/resources/whatsapp.rbi +2 -2
- data/rbi/telnyx/resources/whatsapp_message_templates.rbi +67 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +4 -6
- data/sig/telnyx/client.rbs +4 -2
- data/sig/telnyx/models/ai/assistants/{tag_delete_params.rbs → tag_add_params.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_delete_response.rbs → tag_add_response.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_create_params.rbs → tag_remove_params.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_create_response.rbs → tag_remove_response.rbs} +2 -2
- data/sig/telnyx/models/call_cost_webhook_event.rbs +235 -0
- data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +124 -4
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +1 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +1 -0
- data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +23 -1
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +22 -0
- data/sig/telnyx/models/voice_clone_create_params.rbs +75 -0
- data/sig/telnyx/models/voice_clone_create_response.rbs +15 -0
- data/sig/telnyx/models/voice_clone_data.rbs +34 -0
- data/sig/telnyx/models/voice_clone_list_params.rbs +22 -0
- data/sig/telnyx/models/voice_design_create_params.rbs +22 -0
- data/sig/telnyx/models/voice_design_data.rbs +30 -0
- data/sig/telnyx/models/voice_design_list_response.rbs +25 -0
- data/sig/telnyx/models/{voice_design_update_params.rbs → voice_design_rename_params.rbs} +2 -2
- data/sig/telnyx/models/voice_design_rename_response.rbs +104 -0
- data/sig/telnyx/models/whatsapp/business_accounts/{phone_number_create_verification_params.rbs → phone_number_initialize_verification_params.rbs} +9 -9
- data/sig/telnyx/models/whatsapp/template_create_params.rbs +479 -0
- data/sig/telnyx/models/whatsapp/{message_template_update_response.rbs → template_create_response.rbs} +2 -3
- data/sig/telnyx/models/whatsapp/{message_template_list_params.rbs → template_list_params.rbs} +9 -9
- data/sig/telnyx/models/whatsapp_message_template_delete_params.rbs +20 -0
- data/sig/telnyx/models/whatsapp_message_template_retrieve_params.rbs +20 -0
- data/sig/telnyx/models/whatsapp_message_template_retrieve_response.rbs +16 -0
- data/sig/telnyx/models/whatsapp_message_template_update_params.rbs +473 -0
- data/sig/telnyx/models/whatsapp_message_template_update_response.rbs +16 -0
- data/sig/telnyx/models/x402/{credit_account_create_payment_quote_params.rbs → credit_account_create_quote_params.rbs} +2 -2
- data/sig/telnyx/models/x402/{credit_account_create_payment_quote_response.rbs → credit_account_create_quote_response.rbs} +46 -48
- data/sig/telnyx/models/x402/{credit_account_settle_payment_params.rbs → credit_account_settle_params.rbs} +2 -2
- data/sig/telnyx/models/x402/{credit_account_settle_payment_response.rbs → credit_account_settle_response.rbs} +22 -22
- data/sig/telnyx/models.rbs +12 -4
- data/sig/telnyx/resources/ai/assistants/tags.rbs +8 -8
- data/sig/telnyx/resources/voice_clones.rbs +11 -8
- data/sig/telnyx/resources/voice_designs.rbs +7 -6
- data/sig/telnyx/resources/webhooks.rbs +5 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +2 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile.rbs +0 -2
- data/sig/telnyx/resources/whatsapp/templates.rbs +28 -0
- data/sig/telnyx/resources/whatsapp.rbs +1 -1
- data/sig/telnyx/resources/whatsapp_message_templates.rbs +21 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +4 -4
- metadata +75 -65
- data/lib/telnyx/models/whatsapp/message_template_create_params.rb +0 -58
- data/lib/telnyx/models/whatsapp/message_template_delete_params.rb +0 -22
- data/lib/telnyx/models/whatsapp/message_template_retrieve_params.rb +0 -22
- data/lib/telnyx/models/whatsapp/message_template_retrieve_response.rb +0 -18
- data/lib/telnyx/models/whatsapp/message_template_update_params.rb +0 -46
- data/lib/telnyx/models/whatsapp/message_template_update_response.rb +0 -18
- data/lib/telnyx/resources/whatsapp/message_templates.rb +0 -149
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile/models.rb +0 -20
- data/rbi/telnyx/models/whatsapp/message_template_create_params.rbi +0 -115
- data/rbi/telnyx/models/whatsapp/message_template_delete_params.rbi +0 -40
- data/rbi/telnyx/models/whatsapp/message_template_retrieve_params.rbi +0 -40
- data/rbi/telnyx/models/whatsapp/message_template_retrieve_response.rbi +0 -35
- data/rbi/telnyx/models/whatsapp/message_template_update_params.rbi +0 -111
- data/rbi/telnyx/models/whatsapp/message_template_update_response.rbi +0 -35
- data/rbi/telnyx/resources/whatsapp/message_templates.rbi +0 -116
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/models.rbi +0 -18
- data/sig/telnyx/models/voice_design_update_response.rbs +0 -79
- data/sig/telnyx/models/whatsapp/message_template_create_params.rbs +0 -60
- data/sig/telnyx/models/whatsapp/message_template_create_response.rbs +0 -20
- data/sig/telnyx/models/whatsapp/message_template_delete_params.rbs +0 -22
- data/sig/telnyx/models/whatsapp/message_template_retrieve_params.rbs +0 -22
- data/sig/telnyx/models/whatsapp/message_template_retrieve_response.rbs +0 -20
- data/sig/telnyx/models/whatsapp/message_template_update_params.rbs +0 -58
- data/sig/telnyx/resources/whatsapp/message_templates.rbs +0 -42
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile/models.rbs +0 -13
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Whatsapp
|
|
4
|
+
type template_create_params =
|
|
5
|
+
{
|
|
6
|
+
category: Telnyx::Models::Whatsapp::TemplateCreateParams::category,
|
|
7
|
+
components: ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component],
|
|
8
|
+
language: String,
|
|
9
|
+
name: String,
|
|
10
|
+
waba_id: String
|
|
11
|
+
}
|
|
12
|
+
& Telnyx::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class TemplateCreateParams < Telnyx::Internal::Type::BaseModel
|
|
15
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor category: Telnyx::Models::Whatsapp::TemplateCreateParams::category
|
|
19
|
+
|
|
20
|
+
attr_accessor components: ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component]
|
|
21
|
+
|
|
22
|
+
attr_accessor language: String
|
|
23
|
+
|
|
24
|
+
attr_accessor name: String
|
|
25
|
+
|
|
26
|
+
attr_accessor waba_id: String
|
|
27
|
+
|
|
28
|
+
def initialize: (
|
|
29
|
+
category: Telnyx::Models::Whatsapp::TemplateCreateParams::category,
|
|
30
|
+
components: ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component],
|
|
31
|
+
language: String,
|
|
32
|
+
name: String,
|
|
33
|
+
waba_id: String,
|
|
34
|
+
?request_options: Telnyx::request_opts
|
|
35
|
+
) -> void
|
|
36
|
+
|
|
37
|
+
def to_hash: -> {
|
|
38
|
+
category: Telnyx::Models::Whatsapp::TemplateCreateParams::category,
|
|
39
|
+
components: ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component],
|
|
40
|
+
language: String,
|
|
41
|
+
name: String,
|
|
42
|
+
waba_id: String,
|
|
43
|
+
request_options: Telnyx::RequestOptions
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type category = :MARKETING | :UTILITY | :AUTHENTICATION
|
|
47
|
+
|
|
48
|
+
module Category
|
|
49
|
+
extend Telnyx::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
MARKETING: :MARKETING
|
|
52
|
+
UTILITY: :UTILITY
|
|
53
|
+
AUTHENTICATION: :AUTHENTICATION
|
|
54
|
+
|
|
55
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::category]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
type component =
|
|
59
|
+
Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent
|
|
60
|
+
| Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent
|
|
61
|
+
| Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent
|
|
62
|
+
| Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent
|
|
63
|
+
| Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent
|
|
64
|
+
|
|
65
|
+
module Component
|
|
66
|
+
extend Telnyx::Internal::Type::Union
|
|
67
|
+
|
|
68
|
+
type whatsapp_template_header_component =
|
|
69
|
+
{
|
|
70
|
+
format_: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::format_,
|
|
71
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::type_,
|
|
72
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::Example,
|
|
73
|
+
text: String
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class WhatsappTemplateHeaderComponent < Telnyx::Internal::Type::BaseModel
|
|
77
|
+
attr_accessor format_: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::format_
|
|
78
|
+
|
|
79
|
+
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::type_
|
|
80
|
+
|
|
81
|
+
attr_reader example: Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::Example?
|
|
82
|
+
|
|
83
|
+
def example=: (
|
|
84
|
+
Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::Example
|
|
85
|
+
) -> Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::Example
|
|
86
|
+
|
|
87
|
+
attr_reader text: String?
|
|
88
|
+
|
|
89
|
+
def text=: (String) -> String
|
|
90
|
+
|
|
91
|
+
def initialize: (
|
|
92
|
+
format_: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::format_,
|
|
93
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::type_,
|
|
94
|
+
?example: Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::Example,
|
|
95
|
+
?text: String
|
|
96
|
+
) -> void
|
|
97
|
+
|
|
98
|
+
def to_hash: -> {
|
|
99
|
+
format_: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::format_,
|
|
100
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::type_,
|
|
101
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::Example,
|
|
102
|
+
text: String
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type format_ = :TEXT | :IMAGE | :VIDEO | :DOCUMENT | :LOCATION
|
|
106
|
+
|
|
107
|
+
module Format
|
|
108
|
+
extend Telnyx::Internal::Type::Enum
|
|
109
|
+
|
|
110
|
+
TEXT: :TEXT
|
|
111
|
+
IMAGE: :IMAGE
|
|
112
|
+
VIDEO: :VIDEO
|
|
113
|
+
DOCUMENT: :DOCUMENT
|
|
114
|
+
LOCATION: :LOCATION
|
|
115
|
+
|
|
116
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::format_]
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
type type_ = :HEADER
|
|
120
|
+
|
|
121
|
+
module Type
|
|
122
|
+
extend Telnyx::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
HEADER: :HEADER
|
|
125
|
+
|
|
126
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateHeaderComponent::type_]
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
type example =
|
|
130
|
+
{ header_handle: ::Array[String], header_text: ::Array[String] }
|
|
131
|
+
|
|
132
|
+
class Example < Telnyx::Internal::Type::BaseModel
|
|
133
|
+
attr_reader header_handle: ::Array[String]?
|
|
134
|
+
|
|
135
|
+
def header_handle=: (::Array[String]) -> ::Array[String]
|
|
136
|
+
|
|
137
|
+
attr_reader header_text: ::Array[String]?
|
|
138
|
+
|
|
139
|
+
def header_text=: (::Array[String]) -> ::Array[String]
|
|
140
|
+
|
|
141
|
+
def initialize: (
|
|
142
|
+
?header_handle: ::Array[String],
|
|
143
|
+
?header_text: ::Array[String]
|
|
144
|
+
) -> void
|
|
145
|
+
|
|
146
|
+
def to_hash: -> {
|
|
147
|
+
header_handle: ::Array[String],
|
|
148
|
+
header_text: ::Array[String]
|
|
149
|
+
}
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
type whatsapp_template_body_component =
|
|
154
|
+
{
|
|
155
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::type_,
|
|
156
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::Example,
|
|
157
|
+
text: String
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
class WhatsappTemplateBodyComponent < Telnyx::Internal::Type::BaseModel
|
|
161
|
+
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::type_
|
|
162
|
+
|
|
163
|
+
attr_reader example: Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::Example?
|
|
164
|
+
|
|
165
|
+
def example=: (
|
|
166
|
+
Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::Example
|
|
167
|
+
) -> Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::Example
|
|
168
|
+
|
|
169
|
+
attr_reader text: String?
|
|
170
|
+
|
|
171
|
+
def text=: (String) -> String
|
|
172
|
+
|
|
173
|
+
def initialize: (
|
|
174
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::type_,
|
|
175
|
+
?example: Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::Example,
|
|
176
|
+
?text: String
|
|
177
|
+
) -> void
|
|
178
|
+
|
|
179
|
+
def to_hash: -> {
|
|
180
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::type_,
|
|
181
|
+
example: Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::Example,
|
|
182
|
+
text: String
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
type type_ = :BODY
|
|
186
|
+
|
|
187
|
+
module Type
|
|
188
|
+
extend Telnyx::Internal::Type::Enum
|
|
189
|
+
|
|
190
|
+
BODY: :BODY
|
|
191
|
+
|
|
192
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateBodyComponent::type_]
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
type example = { body_text: ::Array[::Array[String]] }
|
|
196
|
+
|
|
197
|
+
class Example < Telnyx::Internal::Type::BaseModel
|
|
198
|
+
attr_reader body_text: ::Array[::Array[String]]?
|
|
199
|
+
|
|
200
|
+
def body_text=: (
|
|
201
|
+
::Array[::Array[String]]
|
|
202
|
+
) -> ::Array[::Array[String]]
|
|
203
|
+
|
|
204
|
+
def initialize: (?body_text: ::Array[::Array[String]]) -> void
|
|
205
|
+
|
|
206
|
+
def to_hash: -> { body_text: ::Array[::Array[String]] }
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
type whatsapp_template_footer_component =
|
|
211
|
+
{
|
|
212
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent::type_,
|
|
213
|
+
code_expiration_minutes: Integer,
|
|
214
|
+
text: String
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
class WhatsappTemplateFooterComponent < Telnyx::Internal::Type::BaseModel
|
|
218
|
+
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent::type_
|
|
219
|
+
|
|
220
|
+
attr_reader code_expiration_minutes: Integer?
|
|
221
|
+
|
|
222
|
+
def code_expiration_minutes=: (Integer) -> Integer
|
|
223
|
+
|
|
224
|
+
attr_reader text: String?
|
|
225
|
+
|
|
226
|
+
def text=: (String) -> String
|
|
227
|
+
|
|
228
|
+
def initialize: (
|
|
229
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent::type_,
|
|
230
|
+
?code_expiration_minutes: Integer,
|
|
231
|
+
?text: String
|
|
232
|
+
) -> void
|
|
233
|
+
|
|
234
|
+
def to_hash: -> {
|
|
235
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent::type_,
|
|
236
|
+
code_expiration_minutes: Integer,
|
|
237
|
+
text: String
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
type type_ = :FOOTER
|
|
241
|
+
|
|
242
|
+
module Type
|
|
243
|
+
extend Telnyx::Internal::Type::Enum
|
|
244
|
+
|
|
245
|
+
FOOTER: :FOOTER
|
|
246
|
+
|
|
247
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateFooterComponent::type_]
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
type whatsapp_template_buttons_component =
|
|
252
|
+
{
|
|
253
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button],
|
|
254
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::type_
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
class WhatsappTemplateButtonsComponent < Telnyx::Internal::Type::BaseModel
|
|
258
|
+
attr_accessor buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button]
|
|
259
|
+
|
|
260
|
+
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::type_
|
|
261
|
+
|
|
262
|
+
def initialize: (
|
|
263
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button],
|
|
264
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::type_
|
|
265
|
+
) -> void
|
|
266
|
+
|
|
267
|
+
def to_hash: -> {
|
|
268
|
+
buttons: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button],
|
|
269
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::type_
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
type button =
|
|
273
|
+
{
|
|
274
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::type_,
|
|
275
|
+
autofill_text: String,
|
|
276
|
+
example: ::Array[String],
|
|
277
|
+
flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::flow_action,
|
|
278
|
+
flow_id: String,
|
|
279
|
+
navigate_screen: String,
|
|
280
|
+
otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::otp_type,
|
|
281
|
+
package_name: String,
|
|
282
|
+
phone_number: String,
|
|
283
|
+
signature_hash: String,
|
|
284
|
+
text: String,
|
|
285
|
+
url: String,
|
|
286
|
+
zero_tap_terms_accepted: bool
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
class Button < Telnyx::Internal::Type::BaseModel
|
|
290
|
+
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::type_
|
|
291
|
+
|
|
292
|
+
attr_reader autofill_text: String?
|
|
293
|
+
|
|
294
|
+
def autofill_text=: (String) -> String
|
|
295
|
+
|
|
296
|
+
attr_reader example: ::Array[String]?
|
|
297
|
+
|
|
298
|
+
def example=: (::Array[String]) -> ::Array[String]
|
|
299
|
+
|
|
300
|
+
attr_reader flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::flow_action?
|
|
301
|
+
|
|
302
|
+
def flow_action=: (
|
|
303
|
+
Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::flow_action
|
|
304
|
+
) -> Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::flow_action
|
|
305
|
+
|
|
306
|
+
attr_reader flow_id: String?
|
|
307
|
+
|
|
308
|
+
def flow_id=: (String) -> String
|
|
309
|
+
|
|
310
|
+
attr_reader navigate_screen: String?
|
|
311
|
+
|
|
312
|
+
def navigate_screen=: (String) -> String
|
|
313
|
+
|
|
314
|
+
attr_reader otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::otp_type?
|
|
315
|
+
|
|
316
|
+
def otp_type=: (
|
|
317
|
+
Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::otp_type
|
|
318
|
+
) -> Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::otp_type
|
|
319
|
+
|
|
320
|
+
attr_reader package_name: String?
|
|
321
|
+
|
|
322
|
+
def package_name=: (String) -> String
|
|
323
|
+
|
|
324
|
+
attr_reader phone_number: String?
|
|
325
|
+
|
|
326
|
+
def phone_number=: (String) -> String
|
|
327
|
+
|
|
328
|
+
attr_reader signature_hash: String?
|
|
329
|
+
|
|
330
|
+
def signature_hash=: (String) -> String
|
|
331
|
+
|
|
332
|
+
attr_reader text: String?
|
|
333
|
+
|
|
334
|
+
def text=: (String) -> String
|
|
335
|
+
|
|
336
|
+
attr_reader url: String?
|
|
337
|
+
|
|
338
|
+
def url=: (String) -> String
|
|
339
|
+
|
|
340
|
+
attr_reader zero_tap_terms_accepted: bool?
|
|
341
|
+
|
|
342
|
+
def zero_tap_terms_accepted=: (bool) -> bool
|
|
343
|
+
|
|
344
|
+
def initialize: (
|
|
345
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::type_,
|
|
346
|
+
?autofill_text: String,
|
|
347
|
+
?example: ::Array[String],
|
|
348
|
+
?flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::flow_action,
|
|
349
|
+
?flow_id: String,
|
|
350
|
+
?navigate_screen: String,
|
|
351
|
+
?otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::otp_type,
|
|
352
|
+
?package_name: String,
|
|
353
|
+
?phone_number: String,
|
|
354
|
+
?signature_hash: String,
|
|
355
|
+
?text: String,
|
|
356
|
+
?url: String,
|
|
357
|
+
?zero_tap_terms_accepted: bool
|
|
358
|
+
) -> void
|
|
359
|
+
|
|
360
|
+
def to_hash: -> {
|
|
361
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::type_,
|
|
362
|
+
autofill_text: String,
|
|
363
|
+
example: ::Array[String],
|
|
364
|
+
flow_action: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::flow_action,
|
|
365
|
+
flow_id: String,
|
|
366
|
+
navigate_screen: String,
|
|
367
|
+
otp_type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::otp_type,
|
|
368
|
+
package_name: String,
|
|
369
|
+
phone_number: String,
|
|
370
|
+
signature_hash: String,
|
|
371
|
+
text: String,
|
|
372
|
+
url: String,
|
|
373
|
+
zero_tap_terms_accepted: bool
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
type type_ =
|
|
377
|
+
:URL | :PHONE_NUMBER | :QUICK_REPLY | :OTP | :COPY_CODE | :FLOW
|
|
378
|
+
|
|
379
|
+
module Type
|
|
380
|
+
extend Telnyx::Internal::Type::Enum
|
|
381
|
+
|
|
382
|
+
URL: :URL
|
|
383
|
+
PHONE_NUMBER: :PHONE_NUMBER
|
|
384
|
+
QUICK_REPLY: :QUICK_REPLY
|
|
385
|
+
OTP: :OTP
|
|
386
|
+
COPY_CODE: :COPY_CODE
|
|
387
|
+
FLOW: :FLOW
|
|
388
|
+
|
|
389
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::type_]
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
type flow_action = :navigate | :data_exchange
|
|
393
|
+
|
|
394
|
+
module FlowAction
|
|
395
|
+
extend Telnyx::Internal::Type::Enum
|
|
396
|
+
|
|
397
|
+
NAVIGATE: :navigate
|
|
398
|
+
DATA_EXCHANGE: :data_exchange
|
|
399
|
+
|
|
400
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::flow_action]
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
type otp_type = :COPY_CODE | :ONE_TAP
|
|
404
|
+
|
|
405
|
+
module OtpType
|
|
406
|
+
extend Telnyx::Internal::Type::Enum
|
|
407
|
+
|
|
408
|
+
COPY_CODE: :COPY_CODE
|
|
409
|
+
ONE_TAP: :ONE_TAP
|
|
410
|
+
|
|
411
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::Button::otp_type]
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
type type_ = :BUTTONS
|
|
416
|
+
|
|
417
|
+
module Type
|
|
418
|
+
extend Telnyx::Internal::Type::Enum
|
|
419
|
+
|
|
420
|
+
BUTTONS: :BUTTONS
|
|
421
|
+
|
|
422
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateButtonsComponent::type_]
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
type whatsapp_template_carousel_component =
|
|
427
|
+
{
|
|
428
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::Card],
|
|
429
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::type_
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
class WhatsappTemplateCarouselComponent < Telnyx::Internal::Type::BaseModel
|
|
433
|
+
attr_accessor cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::Card]
|
|
434
|
+
|
|
435
|
+
attr_accessor type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::type_
|
|
436
|
+
|
|
437
|
+
def initialize: (
|
|
438
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::Card],
|
|
439
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::type_
|
|
440
|
+
) -> void
|
|
441
|
+
|
|
442
|
+
def to_hash: -> {
|
|
443
|
+
cards: ::Array[Telnyx::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::Card],
|
|
444
|
+
type: Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::type_
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
type card = { components: ::Array[::Hash[Symbol, top]] }
|
|
448
|
+
|
|
449
|
+
class Card < Telnyx::Internal::Type::BaseModel
|
|
450
|
+
attr_reader components: ::Array[::Hash[Symbol, top]]?
|
|
451
|
+
|
|
452
|
+
def components=: (
|
|
453
|
+
::Array[::Hash[Symbol, top]]
|
|
454
|
+
) -> ::Array[::Hash[Symbol, top]]
|
|
455
|
+
|
|
456
|
+
def initialize: (
|
|
457
|
+
?components: ::Array[::Hash[Symbol, top]]
|
|
458
|
+
) -> void
|
|
459
|
+
|
|
460
|
+
def to_hash: -> { components: ::Array[::Hash[Symbol, top]] }
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
type type_ = :CAROUSEL
|
|
464
|
+
|
|
465
|
+
module Type
|
|
466
|
+
extend Telnyx::Internal::Type::Enum
|
|
467
|
+
|
|
468
|
+
CAROUSEL: :CAROUSEL
|
|
469
|
+
|
|
470
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::Component::WhatsappTemplateCarouselComponent::type_]
|
|
471
|
+
end
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
def self?.variants: -> ::Array[Telnyx::Models::Whatsapp::TemplateCreateParams::component]
|
|
475
|
+
end
|
|
476
|
+
end
|
|
477
|
+
end
|
|
478
|
+
end
|
|
479
|
+
end
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
module Whatsapp
|
|
4
|
-
type
|
|
5
|
-
{ data: Telnyx::WhatsappTemplateData }
|
|
4
|
+
type template_create_response = { data: Telnyx::WhatsappTemplateData }
|
|
6
5
|
|
|
7
|
-
class
|
|
6
|
+
class TemplateCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
8
7
|
attr_reader data: Telnyx::WhatsappTemplateData?
|
|
9
8
|
|
|
10
9
|
def data=: (
|
data/sig/telnyx/models/whatsapp/{message_template_list_params.rbs → template_list_params.rbs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
module Whatsapp
|
|
4
|
-
type
|
|
4
|
+
type template_list_params =
|
|
5
5
|
{
|
|
6
|
-
filter_category: Telnyx::Models::Whatsapp::
|
|
6
|
+
filter_category: Telnyx::Models::Whatsapp::TemplateListParams::filter_category,
|
|
7
7
|
filter_search: String,
|
|
8
8
|
filter_status: String,
|
|
9
9
|
filter_waba_id: String,
|
|
@@ -12,15 +12,15 @@ module Telnyx
|
|
|
12
12
|
}
|
|
13
13
|
& Telnyx::Internal::Type::request_parameters
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class TemplateListParams < Telnyx::Internal::Type::BaseModel
|
|
16
16
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
17
17
|
include Telnyx::Internal::Type::RequestParameters
|
|
18
18
|
|
|
19
|
-
attr_reader filter_category: Telnyx::Models::Whatsapp::
|
|
19
|
+
attr_reader filter_category: Telnyx::Models::Whatsapp::TemplateListParams::filter_category?
|
|
20
20
|
|
|
21
21
|
def filter_category=: (
|
|
22
|
-
Telnyx::Models::Whatsapp::
|
|
23
|
-
) -> Telnyx::Models::Whatsapp::
|
|
22
|
+
Telnyx::Models::Whatsapp::TemplateListParams::filter_category
|
|
23
|
+
) -> Telnyx::Models::Whatsapp::TemplateListParams::filter_category
|
|
24
24
|
|
|
25
25
|
attr_reader filter_search: String?
|
|
26
26
|
|
|
@@ -43,7 +43,7 @@ module Telnyx
|
|
|
43
43
|
def page_size=: (Integer) -> Integer
|
|
44
44
|
|
|
45
45
|
def initialize: (
|
|
46
|
-
?filter_category: Telnyx::Models::Whatsapp::
|
|
46
|
+
?filter_category: Telnyx::Models::Whatsapp::TemplateListParams::filter_category,
|
|
47
47
|
?filter_search: String,
|
|
48
48
|
?filter_status: String,
|
|
49
49
|
?filter_waba_id: String,
|
|
@@ -53,7 +53,7 @@ module Telnyx
|
|
|
53
53
|
) -> void
|
|
54
54
|
|
|
55
55
|
def to_hash: -> {
|
|
56
|
-
filter_category: Telnyx::Models::Whatsapp::
|
|
56
|
+
filter_category: Telnyx::Models::Whatsapp::TemplateListParams::filter_category,
|
|
57
57
|
filter_search: String,
|
|
58
58
|
filter_status: String,
|
|
59
59
|
filter_waba_id: String,
|
|
@@ -71,7 +71,7 @@ module Telnyx
|
|
|
71
71
|
UTILITY: :UTILITY
|
|
72
72
|
AUTHENTICATION: :AUTHENTICATION
|
|
73
73
|
|
|
74
|
-
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::
|
|
74
|
+
def self?.values: -> ::Array[Telnyx::Models::Whatsapp::TemplateListParams::filter_category]
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type whatsapp_message_template_delete_params =
|
|
4
|
+
{ id: String } & Telnyx::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class WhatsappMessageTemplateDeleteParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Telnyx::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: String, request_options: Telnyx::RequestOptions }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type whatsapp_message_template_retrieve_params =
|
|
4
|
+
{ id: String } & Telnyx::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class WhatsappMessageTemplateRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Telnyx::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: String, request_options: Telnyx::RequestOptions }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type whatsapp_message_template_retrieve_response =
|
|
4
|
+
{ data: Telnyx::WhatsappTemplateData }
|
|
5
|
+
|
|
6
|
+
class WhatsappMessageTemplateRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
attr_reader data: Telnyx::WhatsappTemplateData?
|
|
8
|
+
|
|
9
|
+
def data=: (Telnyx::WhatsappTemplateData) -> Telnyx::WhatsappTemplateData
|
|
10
|
+
|
|
11
|
+
def initialize: (?data: Telnyx::WhatsappTemplateData) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { data: Telnyx::WhatsappTemplateData }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|