telnyx 5.80.0 → 5.82.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 +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/hosted_number_order_event_webhook_event.rb +256 -0
- 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/verify_profile.rb +87 -1
- data/lib/telnyx/models/verify_profile_create_params.rb +25 -10
- data/lib/telnyx/models/verify_profile_update_params.rb +25 -10
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -0
- data/rbi/telnyx/models/hosted_number_order_event_webhook_event.rbi +697 -0
- 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/verify_profile.rbi +131 -3
- data/rbi/telnyx/models/verify_profile_create_params.rbi +24 -13
- data/rbi/telnyx/models/verify_profile_update_params.rbi +24 -13
- data/rbi/telnyx/models.rbi +3 -0
- data/rbi/telnyx/resources/webhooks.rbi +2 -0
- data/sig/telnyx/models/hosted_number_order_event_webhook_event.rbs +281 -0
- 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/verify_profile.rbs +74 -3
- data/sig/telnyx/models/verify_profile_create_params.rbs +15 -7
- data/sig/telnyx/models/verify_profile_update_params.rbs +15 -7
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/webhooks.rbs +2 -0
- metadata +5 -2
|
@@ -83,6 +83,12 @@ module Telnyx
|
|
|
83
83
|
sig { params(webhook_url: String).void }
|
|
84
84
|
attr_writer :webhook_url
|
|
85
85
|
|
|
86
|
+
sig { returns(T.nilable(Telnyx::VerifyProfile::Whatsapp)) }
|
|
87
|
+
attr_reader :whatsapp
|
|
88
|
+
|
|
89
|
+
sig { params(whatsapp: Telnyx::VerifyProfile::Whatsapp::OrHash).void }
|
|
90
|
+
attr_writer :whatsapp
|
|
91
|
+
|
|
86
92
|
sig do
|
|
87
93
|
params(
|
|
88
94
|
id: String,
|
|
@@ -96,7 +102,8 @@ module Telnyx
|
|
|
96
102
|
sms: Telnyx::VerifyProfile::SMS::OrHash,
|
|
97
103
|
updated_at: String,
|
|
98
104
|
webhook_failover_url: String,
|
|
99
|
-
webhook_url: String
|
|
105
|
+
webhook_url: String,
|
|
106
|
+
whatsapp: Telnyx::VerifyProfile::Whatsapp::OrHash
|
|
100
107
|
).returns(T.attached_class)
|
|
101
108
|
end
|
|
102
109
|
def self.new(
|
|
@@ -112,7 +119,8 @@ module Telnyx
|
|
|
112
119
|
sms: nil,
|
|
113
120
|
updated_at: nil,
|
|
114
121
|
webhook_failover_url: nil,
|
|
115
|
-
webhook_url: nil
|
|
122
|
+
webhook_url: nil,
|
|
123
|
+
whatsapp: nil
|
|
116
124
|
)
|
|
117
125
|
end
|
|
118
126
|
|
|
@@ -130,7 +138,8 @@ module Telnyx
|
|
|
130
138
|
sms: Telnyx::VerifyProfile::SMS,
|
|
131
139
|
updated_at: String,
|
|
132
140
|
webhook_failover_url: String,
|
|
133
|
-
webhook_url: String
|
|
141
|
+
webhook_url: String,
|
|
142
|
+
whatsapp: Telnyx::VerifyProfile::Whatsapp
|
|
134
143
|
}
|
|
135
144
|
)
|
|
136
145
|
end
|
|
@@ -516,6 +525,125 @@ module Telnyx
|
|
|
516
525
|
def to_hash
|
|
517
526
|
end
|
|
518
527
|
end
|
|
528
|
+
|
|
529
|
+
class Whatsapp < Telnyx::Internal::Type::BaseModel
|
|
530
|
+
OrHash =
|
|
531
|
+
T.type_alias do
|
|
532
|
+
T.any(Telnyx::VerifyProfile::Whatsapp, Telnyx::Internal::AnyHash)
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
# The name that identifies the application requesting 2fa in the verification
|
|
536
|
+
# message.
|
|
537
|
+
sig { returns(T.nilable(String)) }
|
|
538
|
+
attr_reader :app_name
|
|
539
|
+
|
|
540
|
+
sig { params(app_name: String).void }
|
|
541
|
+
attr_writer :app_name
|
|
542
|
+
|
|
543
|
+
# The length of the verify code to generate.
|
|
544
|
+
sig { returns(T.nilable(Integer)) }
|
|
545
|
+
attr_reader :code_length
|
|
546
|
+
|
|
547
|
+
sig { params(code_length: Integer).void }
|
|
548
|
+
attr_writer :code_length
|
|
549
|
+
|
|
550
|
+
# For every request that is initiated via this Verify profile, this sets the
|
|
551
|
+
# number of seconds before a verification request code expires. Once the
|
|
552
|
+
# verification request expires, the user cannot use the code to verify their
|
|
553
|
+
# identity.
|
|
554
|
+
sig { returns(T.nilable(Integer)) }
|
|
555
|
+
attr_reader :default_verification_timeout_secs
|
|
556
|
+
|
|
557
|
+
sig { params(default_verification_timeout_secs: Integer).void }
|
|
558
|
+
attr_writer :default_verification_timeout_secs
|
|
559
|
+
|
|
560
|
+
# The message template identifier selected from /verify_profiles/templates
|
|
561
|
+
sig { returns(T.nilable(String)) }
|
|
562
|
+
attr_reader :messaging_template_id
|
|
563
|
+
|
|
564
|
+
sig { params(messaging_template_id: String).void }
|
|
565
|
+
attr_writer :messaging_template_id
|
|
566
|
+
|
|
567
|
+
# Phone number registered on the customer WABA to send OTPs from
|
|
568
|
+
sig { returns(T.nilable(String)) }
|
|
569
|
+
attr_accessor :sender_phone_number
|
|
570
|
+
|
|
571
|
+
# Customer pre-approved authentication template name registered on Meta
|
|
572
|
+
sig { returns(T.nilable(String)) }
|
|
573
|
+
attr_accessor :template_id
|
|
574
|
+
|
|
575
|
+
# Customer Meta WABA ID for Bring-Your-Own-WABA sending
|
|
576
|
+
sig { returns(T.nilable(String)) }
|
|
577
|
+
attr_accessor :waba_id
|
|
578
|
+
|
|
579
|
+
# Enabled country destinations to send verification codes. The elements in the
|
|
580
|
+
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
581
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
582
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
583
|
+
# destinations; otherwise it is optional.
|
|
584
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
585
|
+
attr_reader :whitelisted_destinations
|
|
586
|
+
|
|
587
|
+
sig { params(whitelisted_destinations: T::Array[String]).void }
|
|
588
|
+
attr_writer :whitelisted_destinations
|
|
589
|
+
|
|
590
|
+
sig do
|
|
591
|
+
params(
|
|
592
|
+
app_name: String,
|
|
593
|
+
code_length: Integer,
|
|
594
|
+
default_verification_timeout_secs: Integer,
|
|
595
|
+
messaging_template_id: String,
|
|
596
|
+
sender_phone_number: T.nilable(String),
|
|
597
|
+
template_id: T.nilable(String),
|
|
598
|
+
waba_id: T.nilable(String),
|
|
599
|
+
whitelisted_destinations: T::Array[String]
|
|
600
|
+
).returns(T.attached_class)
|
|
601
|
+
end
|
|
602
|
+
def self.new(
|
|
603
|
+
# The name that identifies the application requesting 2fa in the verification
|
|
604
|
+
# message.
|
|
605
|
+
app_name: nil,
|
|
606
|
+
# The length of the verify code to generate.
|
|
607
|
+
code_length: nil,
|
|
608
|
+
# For every request that is initiated via this Verify profile, this sets the
|
|
609
|
+
# number of seconds before a verification request code expires. Once the
|
|
610
|
+
# verification request expires, the user cannot use the code to verify their
|
|
611
|
+
# identity.
|
|
612
|
+
default_verification_timeout_secs: nil,
|
|
613
|
+
# The message template identifier selected from /verify_profiles/templates
|
|
614
|
+
messaging_template_id: nil,
|
|
615
|
+
# Phone number registered on the customer WABA to send OTPs from
|
|
616
|
+
sender_phone_number: nil,
|
|
617
|
+
# Customer pre-approved authentication template name registered on Meta
|
|
618
|
+
template_id: nil,
|
|
619
|
+
# Customer Meta WABA ID for Bring-Your-Own-WABA sending
|
|
620
|
+
waba_id: nil,
|
|
621
|
+
# Enabled country destinations to send verification codes. The elements in the
|
|
622
|
+
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
623
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
624
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
625
|
+
# destinations; otherwise it is optional.
|
|
626
|
+
whitelisted_destinations: nil
|
|
627
|
+
)
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
sig do
|
|
631
|
+
override.returns(
|
|
632
|
+
{
|
|
633
|
+
app_name: String,
|
|
634
|
+
code_length: Integer,
|
|
635
|
+
default_verification_timeout_secs: Integer,
|
|
636
|
+
messaging_template_id: String,
|
|
637
|
+
sender_phone_number: T.nilable(String),
|
|
638
|
+
template_id: T.nilable(String),
|
|
639
|
+
waba_id: T.nilable(String),
|
|
640
|
+
whitelisted_destinations: T::Array[String]
|
|
641
|
+
}
|
|
642
|
+
)
|
|
643
|
+
end
|
|
644
|
+
def to_hash
|
|
645
|
+
end
|
|
646
|
+
end
|
|
519
647
|
end
|
|
520
648
|
end
|
|
521
649
|
end
|
|
@@ -517,14 +517,6 @@ module Telnyx
|
|
|
517
517
|
)
|
|
518
518
|
end
|
|
519
519
|
|
|
520
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
521
|
-
# message.
|
|
522
|
-
sig { returns(T.nilable(String)) }
|
|
523
|
-
attr_reader :app_name
|
|
524
|
-
|
|
525
|
-
sig { params(app_name: String).void }
|
|
526
|
-
attr_writer :app_name
|
|
527
|
-
|
|
528
520
|
# For every request that is initiated via this Verify profile, this sets the
|
|
529
521
|
# number of seconds before a verification request code expires. Once the
|
|
530
522
|
# verification request expires, the user cannot use the code to verify their
|
|
@@ -535,6 +527,18 @@ module Telnyx
|
|
|
535
527
|
sig { params(default_verification_timeout_secs: Integer).void }
|
|
536
528
|
attr_writer :default_verification_timeout_secs
|
|
537
529
|
|
|
530
|
+
# Phone number registered on the customer WABA to send OTPs from
|
|
531
|
+
sig { returns(T.nilable(String)) }
|
|
532
|
+
attr_accessor :sender_phone_number
|
|
533
|
+
|
|
534
|
+
# Customer pre-approved authentication template name registered on Meta
|
|
535
|
+
sig { returns(T.nilable(String)) }
|
|
536
|
+
attr_accessor :template_id
|
|
537
|
+
|
|
538
|
+
# Customer Meta WABA ID for Bring-Your-Own-WABA sending
|
|
539
|
+
sig { returns(T.nilable(String)) }
|
|
540
|
+
attr_accessor :waba_id
|
|
541
|
+
|
|
538
542
|
# Enabled country destinations to send verification codes. The elements in the
|
|
539
543
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
540
544
|
# destinations will be allowed. **Conditionally required:** this field must be
|
|
@@ -548,20 +552,25 @@ module Telnyx
|
|
|
548
552
|
|
|
549
553
|
sig do
|
|
550
554
|
params(
|
|
551
|
-
app_name: String,
|
|
552
555
|
default_verification_timeout_secs: Integer,
|
|
556
|
+
sender_phone_number: T.nilable(String),
|
|
557
|
+
template_id: T.nilable(String),
|
|
558
|
+
waba_id: T.nilable(String),
|
|
553
559
|
whitelisted_destinations: T::Array[String]
|
|
554
560
|
).returns(T.attached_class)
|
|
555
561
|
end
|
|
556
562
|
def self.new(
|
|
557
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
558
|
-
# message.
|
|
559
|
-
app_name: nil,
|
|
560
563
|
# For every request that is initiated via this Verify profile, this sets the
|
|
561
564
|
# number of seconds before a verification request code expires. Once the
|
|
562
565
|
# verification request expires, the user cannot use the code to verify their
|
|
563
566
|
# identity.
|
|
564
567
|
default_verification_timeout_secs: nil,
|
|
568
|
+
# Phone number registered on the customer WABA to send OTPs from
|
|
569
|
+
sender_phone_number: nil,
|
|
570
|
+
# Customer pre-approved authentication template name registered on Meta
|
|
571
|
+
template_id: nil,
|
|
572
|
+
# Customer Meta WABA ID for Bring-Your-Own-WABA sending
|
|
573
|
+
waba_id: nil,
|
|
565
574
|
# Enabled country destinations to send verification codes. The elements in the
|
|
566
575
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
567
576
|
# destinations will be allowed. **Conditionally required:** this field must be
|
|
@@ -574,8 +583,10 @@ module Telnyx
|
|
|
574
583
|
sig do
|
|
575
584
|
override.returns(
|
|
576
585
|
{
|
|
577
|
-
app_name: String,
|
|
578
586
|
default_verification_timeout_secs: Integer,
|
|
587
|
+
sender_phone_number: T.nilable(String),
|
|
588
|
+
template_id: T.nilable(String),
|
|
589
|
+
waba_id: T.nilable(String),
|
|
579
590
|
whitelisted_destinations: T::Array[String]
|
|
580
591
|
}
|
|
581
592
|
)
|
|
@@ -526,14 +526,6 @@ module Telnyx
|
|
|
526
526
|
)
|
|
527
527
|
end
|
|
528
528
|
|
|
529
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
530
|
-
# message.
|
|
531
|
-
sig { returns(T.nilable(String)) }
|
|
532
|
-
attr_reader :app_name
|
|
533
|
-
|
|
534
|
-
sig { params(app_name: String).void }
|
|
535
|
-
attr_writer :app_name
|
|
536
|
-
|
|
537
529
|
# For every request that is initiated via this Verify profile, this sets the
|
|
538
530
|
# number of seconds before a verification request code expires. Once the
|
|
539
531
|
# verification request expires, the user cannot use the code to verify their
|
|
@@ -544,6 +536,18 @@ module Telnyx
|
|
|
544
536
|
sig { params(default_verification_timeout_secs: Integer).void }
|
|
545
537
|
attr_writer :default_verification_timeout_secs
|
|
546
538
|
|
|
539
|
+
# Phone number registered on the customer WABA to send OTPs from
|
|
540
|
+
sig { returns(T.nilable(String)) }
|
|
541
|
+
attr_accessor :sender_phone_number
|
|
542
|
+
|
|
543
|
+
# Customer pre-approved authentication template name registered on Meta
|
|
544
|
+
sig { returns(T.nilable(String)) }
|
|
545
|
+
attr_accessor :template_id
|
|
546
|
+
|
|
547
|
+
# Customer Meta WABA ID for Bring-Your-Own-WABA sending
|
|
548
|
+
sig { returns(T.nilable(String)) }
|
|
549
|
+
attr_accessor :waba_id
|
|
550
|
+
|
|
547
551
|
# Enabled country destinations to send verification codes. The elements in the
|
|
548
552
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
549
553
|
# destinations will be allowed. **Conditionally required:** this field must be
|
|
@@ -557,20 +561,25 @@ module Telnyx
|
|
|
557
561
|
|
|
558
562
|
sig do
|
|
559
563
|
params(
|
|
560
|
-
app_name: String,
|
|
561
564
|
default_verification_timeout_secs: Integer,
|
|
565
|
+
sender_phone_number: T.nilable(String),
|
|
566
|
+
template_id: T.nilable(String),
|
|
567
|
+
waba_id: T.nilable(String),
|
|
562
568
|
whitelisted_destinations: T::Array[String]
|
|
563
569
|
).returns(T.attached_class)
|
|
564
570
|
end
|
|
565
571
|
def self.new(
|
|
566
|
-
# The name that identifies the application requesting 2fa in the verification
|
|
567
|
-
# message.
|
|
568
|
-
app_name: nil,
|
|
569
572
|
# For every request that is initiated via this Verify profile, this sets the
|
|
570
573
|
# number of seconds before a verification request code expires. Once the
|
|
571
574
|
# verification request expires, the user cannot use the code to verify their
|
|
572
575
|
# identity.
|
|
573
576
|
default_verification_timeout_secs: nil,
|
|
577
|
+
# Phone number registered on the customer WABA to send OTPs from
|
|
578
|
+
sender_phone_number: nil,
|
|
579
|
+
# Customer pre-approved authentication template name registered on Meta
|
|
580
|
+
template_id: nil,
|
|
581
|
+
# Customer Meta WABA ID for Bring-Your-Own-WABA sending
|
|
582
|
+
waba_id: nil,
|
|
574
583
|
# Enabled country destinations to send verification codes. The elements in the
|
|
575
584
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
576
585
|
# destinations will be allowed. **Conditionally required:** this field must be
|
|
@@ -583,8 +592,10 @@ module Telnyx
|
|
|
583
592
|
sig do
|
|
584
593
|
override.returns(
|
|
585
594
|
{
|
|
586
|
-
app_name: String,
|
|
587
595
|
default_verification_timeout_secs: Integer,
|
|
596
|
+
sender_phone_number: T.nilable(String),
|
|
597
|
+
template_id: T.nilable(String),
|
|
598
|
+
waba_id: T.nilable(String),
|
|
588
599
|
whitelisted_destinations: T::Array[String]
|
|
589
600
|
}
|
|
590
601
|
)
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -770,6 +770,9 @@ module Telnyx
|
|
|
770
770
|
|
|
771
771
|
HostedNumber = Telnyx::Models::HostedNumber
|
|
772
772
|
|
|
773
|
+
HostedNumberOrderEventWebhookEvent =
|
|
774
|
+
Telnyx::Models::HostedNumberOrderEventWebhookEvent
|
|
775
|
+
|
|
773
776
|
HTTP = Telnyx::Models::HTTP
|
|
774
777
|
|
|
775
778
|
InboundChannelListParams = Telnyx::Models::InboundChannelListParams
|
|
@@ -65,6 +65,7 @@ module Telnyx
|
|
|
65
65
|
Telnyx::FaxMediaProcessed,
|
|
66
66
|
Telnyx::FaxQueued,
|
|
67
67
|
Telnyx::FaxSendingStarted,
|
|
68
|
+
Telnyx::HostedNumberOrderEventWebhookEvent,
|
|
68
69
|
Telnyx::InboundMessageWebhookEvent,
|
|
69
70
|
Telnyx::NumberOrderStatusUpdate,
|
|
70
71
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
@@ -144,6 +145,7 @@ module Telnyx
|
|
|
144
145
|
Telnyx::FaxMediaProcessed,
|
|
145
146
|
Telnyx::FaxQueued,
|
|
146
147
|
Telnyx::FaxSendingStarted,
|
|
148
|
+
Telnyx::HostedNumberOrderEventWebhookEvent,
|
|
147
149
|
Telnyx::InboundMessageWebhookEvent,
|
|
148
150
|
Telnyx::NumberOrderStatusUpdate,
|
|
149
151
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type hosted_number_order_event_webhook_event =
|
|
4
|
+
{ data: Telnyx::HostedNumberOrderEventWebhookEvent::Data }
|
|
5
|
+
|
|
6
|
+
class HostedNumberOrderEventWebhookEvent < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
attr_reader data: Telnyx::HostedNumberOrderEventWebhookEvent::Data?
|
|
8
|
+
|
|
9
|
+
def data=: (
|
|
10
|
+
Telnyx::HostedNumberOrderEventWebhookEvent::Data
|
|
11
|
+
) -> Telnyx::HostedNumberOrderEventWebhookEvent::Data
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
?data: Telnyx::HostedNumberOrderEventWebhookEvent::Data
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { data: Telnyx::HostedNumberOrderEventWebhookEvent::Data }
|
|
18
|
+
|
|
19
|
+
type data =
|
|
20
|
+
{
|
|
21
|
+
id: String,
|
|
22
|
+
event_type: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::event_type,
|
|
23
|
+
occurred_at: Time,
|
|
24
|
+
payload: Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload,
|
|
25
|
+
record_type: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::record_type
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
29
|
+
attr_reader id: String?
|
|
30
|
+
|
|
31
|
+
def id=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader event_type: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::event_type?
|
|
34
|
+
|
|
35
|
+
def event_type=: (
|
|
36
|
+
Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::event_type
|
|
37
|
+
) -> Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::event_type
|
|
38
|
+
|
|
39
|
+
attr_reader occurred_at: Time?
|
|
40
|
+
|
|
41
|
+
def occurred_at=: (Time) -> Time
|
|
42
|
+
|
|
43
|
+
attr_reader payload: Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload?
|
|
44
|
+
|
|
45
|
+
def payload=: (
|
|
46
|
+
Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload
|
|
47
|
+
) -> Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload
|
|
48
|
+
|
|
49
|
+
attr_reader record_type: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::record_type?
|
|
50
|
+
|
|
51
|
+
def record_type=: (
|
|
52
|
+
Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::record_type
|
|
53
|
+
) -> Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::record_type
|
|
54
|
+
|
|
55
|
+
def initialize: (
|
|
56
|
+
?id: String,
|
|
57
|
+
?event_type: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::event_type,
|
|
58
|
+
?occurred_at: Time,
|
|
59
|
+
?payload: Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload,
|
|
60
|
+
?record_type: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::record_type
|
|
61
|
+
) -> void
|
|
62
|
+
|
|
63
|
+
def to_hash: -> {
|
|
64
|
+
id: String,
|
|
65
|
+
event_type: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::event_type,
|
|
66
|
+
occurred_at: Time,
|
|
67
|
+
payload: Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload,
|
|
68
|
+
record_type: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::record_type
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
type event_type =
|
|
72
|
+
:"messaging_hosted_numbers_orders.created"
|
|
73
|
+
| :"messaging_hosted_numbers_orders.updated"
|
|
74
|
+
| :"messaging_hosted_numbers_orders.deleted"
|
|
75
|
+
| :"messaging_hosted_numbers_orders.internal_transfer_detected"
|
|
76
|
+
| :"messaging_hosted_numbers_orders.internal_transfer_approval_requested"
|
|
77
|
+
| :"messaging_hosted_numbers_orders.internal_transfer_approved"
|
|
78
|
+
| :"messaging_hosted_numbers_orders.internal_transfer_rejected"
|
|
79
|
+
| :"messaging_hosted_numbers_orders.internal_transfer_auto_approved"
|
|
80
|
+
|
|
81
|
+
module EventType
|
|
82
|
+
extend Telnyx::Internal::Type::Enum
|
|
83
|
+
|
|
84
|
+
MESSAGING_HOSTED_NUMBERS_ORDERS_CREATED: :"messaging_hosted_numbers_orders.created"
|
|
85
|
+
MESSAGING_HOSTED_NUMBERS_ORDERS_UPDATED: :"messaging_hosted_numbers_orders.updated"
|
|
86
|
+
MESSAGING_HOSTED_NUMBERS_ORDERS_DELETED: :"messaging_hosted_numbers_orders.deleted"
|
|
87
|
+
MESSAGING_HOSTED_NUMBERS_ORDERS_INTERNAL_TRANSFER_DETECTED: :"messaging_hosted_numbers_orders.internal_transfer_detected"
|
|
88
|
+
MESSAGING_HOSTED_NUMBERS_ORDERS_INTERNAL_TRANSFER_APPROVAL_REQUESTED: :"messaging_hosted_numbers_orders.internal_transfer_approval_requested"
|
|
89
|
+
MESSAGING_HOSTED_NUMBERS_ORDERS_INTERNAL_TRANSFER_APPROVED: :"messaging_hosted_numbers_orders.internal_transfer_approved"
|
|
90
|
+
MESSAGING_HOSTED_NUMBERS_ORDERS_INTERNAL_TRANSFER_REJECTED: :"messaging_hosted_numbers_orders.internal_transfer_rejected"
|
|
91
|
+
MESSAGING_HOSTED_NUMBERS_ORDERS_INTERNAL_TRANSFER_AUTO_APPROVED: :"messaging_hosted_numbers_orders.internal_transfer_auto_approved"
|
|
92
|
+
|
|
93
|
+
def self?.values: -> ::Array[Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::event_type]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
type payload =
|
|
97
|
+
{
|
|
98
|
+
approval_deadline: Integer?,
|
|
99
|
+
decision: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::decision,
|
|
100
|
+
numbers: ::Array[Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload::Number],
|
|
101
|
+
order_id: String,
|
|
102
|
+
order_status: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::order_status,
|
|
103
|
+
profile_id: String,
|
|
104
|
+
user_id: String
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
108
|
+
attr_accessor approval_deadline: Integer?
|
|
109
|
+
|
|
110
|
+
attr_reader decision: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::decision?
|
|
111
|
+
|
|
112
|
+
def decision=: (
|
|
113
|
+
Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::decision
|
|
114
|
+
) -> Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::decision
|
|
115
|
+
|
|
116
|
+
attr_reader numbers: ::Array[Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload::Number]?
|
|
117
|
+
|
|
118
|
+
def numbers=: (
|
|
119
|
+
::Array[Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload::Number]
|
|
120
|
+
) -> ::Array[Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload::Number]
|
|
121
|
+
|
|
122
|
+
attr_reader order_id: String?
|
|
123
|
+
|
|
124
|
+
def order_id=: (String) -> String
|
|
125
|
+
|
|
126
|
+
attr_reader order_status: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::order_status?
|
|
127
|
+
|
|
128
|
+
def order_status=: (
|
|
129
|
+
Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::order_status
|
|
130
|
+
) -> Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::order_status
|
|
131
|
+
|
|
132
|
+
attr_reader profile_id: String?
|
|
133
|
+
|
|
134
|
+
def profile_id=: (String) -> String
|
|
135
|
+
|
|
136
|
+
attr_reader user_id: String?
|
|
137
|
+
|
|
138
|
+
def user_id=: (String) -> String
|
|
139
|
+
|
|
140
|
+
def initialize: (
|
|
141
|
+
?approval_deadline: Integer?,
|
|
142
|
+
?decision: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::decision,
|
|
143
|
+
?numbers: ::Array[Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload::Number],
|
|
144
|
+
?order_id: String,
|
|
145
|
+
?order_status: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::order_status,
|
|
146
|
+
?profile_id: String,
|
|
147
|
+
?user_id: String
|
|
148
|
+
) -> void
|
|
149
|
+
|
|
150
|
+
def to_hash: -> {
|
|
151
|
+
approval_deadline: Integer?,
|
|
152
|
+
decision: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::decision,
|
|
153
|
+
numbers: ::Array[Telnyx::HostedNumberOrderEventWebhookEvent::Data::Payload::Number],
|
|
154
|
+
order_id: String,
|
|
155
|
+
order_status: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::order_status,
|
|
156
|
+
profile_id: String,
|
|
157
|
+
user_id: String
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
type decision = :pending | :approved | :rejected
|
|
161
|
+
|
|
162
|
+
module Decision
|
|
163
|
+
extend Telnyx::Internal::Type::Enum
|
|
164
|
+
|
|
165
|
+
PENDING: :pending
|
|
166
|
+
APPROVED: :approved
|
|
167
|
+
REJECTED: :rejected
|
|
168
|
+
|
|
169
|
+
def self?.values: -> ::Array[Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::decision]
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
type number =
|
|
173
|
+
{
|
|
174
|
+
status: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::Number::status,
|
|
175
|
+
value: String
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
class Number < Telnyx::Internal::Type::BaseModel
|
|
179
|
+
attr_reader status: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::Number::status?
|
|
180
|
+
|
|
181
|
+
def status=: (
|
|
182
|
+
Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::Number::status
|
|
183
|
+
) -> Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::Number::status
|
|
184
|
+
|
|
185
|
+
attr_reader value: String?
|
|
186
|
+
|
|
187
|
+
def value=: (String) -> String
|
|
188
|
+
|
|
189
|
+
def initialize: (
|
|
190
|
+
?status: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::Number::status,
|
|
191
|
+
?value: String
|
|
192
|
+
) -> void
|
|
193
|
+
|
|
194
|
+
def to_hash: -> {
|
|
195
|
+
status: Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::Number::status,
|
|
196
|
+
value: String
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
type status =
|
|
200
|
+
:deleted
|
|
201
|
+
| :failed
|
|
202
|
+
| :failed_activation
|
|
203
|
+
| :failed_carrier_rejected
|
|
204
|
+
| :failed_ineligible_carrier
|
|
205
|
+
| :failed_number_already_hosted
|
|
206
|
+
| :failed_number_not_found
|
|
207
|
+
| :failed_ownership_verification
|
|
208
|
+
| :failed_timeout
|
|
209
|
+
| :ownership_successful
|
|
210
|
+
| :pending
|
|
211
|
+
| :provisioning
|
|
212
|
+
| :successful
|
|
213
|
+
|
|
214
|
+
module Status
|
|
215
|
+
extend Telnyx::Internal::Type::Enum
|
|
216
|
+
|
|
217
|
+
DELETED: :deleted
|
|
218
|
+
FAILED: :failed
|
|
219
|
+
FAILED_ACTIVATION: :failed_activation
|
|
220
|
+
FAILED_CARRIER_REJECTED: :failed_carrier_rejected
|
|
221
|
+
FAILED_INELIGIBLE_CARRIER: :failed_ineligible_carrier
|
|
222
|
+
FAILED_NUMBER_ALREADY_HOSTED: :failed_number_already_hosted
|
|
223
|
+
FAILED_NUMBER_NOT_FOUND: :failed_number_not_found
|
|
224
|
+
FAILED_OWNERSHIP_VERIFICATION: :failed_ownership_verification
|
|
225
|
+
FAILED_TIMEOUT: :failed_timeout
|
|
226
|
+
OWNERSHIP_SUCCESSFUL: :ownership_successful
|
|
227
|
+
PENDING: :pending
|
|
228
|
+
PROVISIONING: :provisioning
|
|
229
|
+
SUCCESSFUL: :successful
|
|
230
|
+
|
|
231
|
+
def self?.values: -> ::Array[Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::Number::status]
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
type order_status =
|
|
236
|
+
:pending
|
|
237
|
+
| :provisioning
|
|
238
|
+
| :successful
|
|
239
|
+
| :failed
|
|
240
|
+
| :deleted
|
|
241
|
+
| :carrier_rejected
|
|
242
|
+
| :compliance_review_failed
|
|
243
|
+
| :incomplete_documentation
|
|
244
|
+
| :incorrect_billing_information
|
|
245
|
+
| :ineligible_carrier
|
|
246
|
+
| :loa_file_invalid
|
|
247
|
+
| :loa_file_successful
|
|
248
|
+
|
|
249
|
+
module OrderStatus
|
|
250
|
+
extend Telnyx::Internal::Type::Enum
|
|
251
|
+
|
|
252
|
+
PENDING: :pending
|
|
253
|
+
PROVISIONING: :provisioning
|
|
254
|
+
SUCCESSFUL: :successful
|
|
255
|
+
FAILED: :failed
|
|
256
|
+
DELETED: :deleted
|
|
257
|
+
CARRIER_REJECTED: :carrier_rejected
|
|
258
|
+
COMPLIANCE_REVIEW_FAILED: :compliance_review_failed
|
|
259
|
+
INCOMPLETE_DOCUMENTATION: :incomplete_documentation
|
|
260
|
+
INCORRECT_BILLING_INFORMATION: :incorrect_billing_information
|
|
261
|
+
INELIGIBLE_CARRIER: :ineligible_carrier
|
|
262
|
+
LOA_FILE_INVALID: :loa_file_invalid
|
|
263
|
+
LOA_FILE_SUCCESSFUL: :loa_file_successful
|
|
264
|
+
|
|
265
|
+
def self?.values: -> ::Array[Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::Payload::order_status]
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
type record_type = :event
|
|
270
|
+
|
|
271
|
+
module RecordType
|
|
272
|
+
extend Telnyx::Internal::Type::Enum
|
|
273
|
+
|
|
274
|
+
EVENT: :event
|
|
275
|
+
|
|
276
|
+
def self?.values: -> ::Array[Telnyx::Models::HostedNumberOrderEventWebhookEvent::Data::record_type]
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
end
|
|
@@ -60,6 +60,7 @@ module Telnyx
|
|
|
60
60
|
| Telnyx::FaxMediaProcessed
|
|
61
61
|
| Telnyx::FaxQueued
|
|
62
62
|
| Telnyx::FaxSendingStarted
|
|
63
|
+
| Telnyx::HostedNumberOrderEventWebhookEvent
|
|
63
64
|
| Telnyx::InboundMessageWebhookEvent
|
|
64
65
|
| Telnyx::NumberOrderStatusUpdate
|
|
65
66
|
| Telnyx::ReplacedLinkClickWebhookEvent
|
|
@@ -60,6 +60,7 @@ module Telnyx
|
|
|
60
60
|
| Telnyx::FaxMediaProcessed
|
|
61
61
|
| Telnyx::FaxQueued
|
|
62
62
|
| Telnyx::FaxSendingStarted
|
|
63
|
+
| Telnyx::HostedNumberOrderEventWebhookEvent
|
|
63
64
|
| Telnyx::InboundMessageWebhookEvent
|
|
64
65
|
| Telnyx::NumberOrderStatusUpdate
|
|
65
66
|
| Telnyx::ReplacedLinkClickWebhookEvent
|