telnyx 5.166.0 → 5.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +4 -0
- data/lib/telnyx/internal/default_flat_pagination.rb +7 -3
- data/lib/telnyx/internal/default_flat_pagination_for_inexplicit_number_orders.rb +7 -3
- data/lib/telnyx/internal/default_flat_pagination_top_level_array.rb +10 -8
- data/lib/telnyx/internal/default_pagination_for_log_messages.rb +7 -3
- data/lib/telnyx/internal/default_pagination_for_messaging_tollfree.rb +12 -3
- data/lib/telnyx/internal/default_pagination_for_queues.rb +12 -3
- data/lib/telnyx/internal/per_page_pagination.rb +8 -1
- data/lib/telnyx/internal/per_page_pagination_v2.rb +8 -1
- data/lib/telnyx/internal/type/converter.rb +2 -0
- data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +57 -1
- data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +16 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +17 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +185 -48
- data/lib/telnyx/models/ai/inference_embedding.rb +16 -1
- data/lib/telnyx/models/ai/openai_create_response_params.rb +57 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +15 -1
- data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
- data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
- data/lib/telnyx/models/compute/logs_meta.rb +23 -0
- data/lib/telnyx/models/credential_connection.rb +4 -1
- data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
- data/lib/telnyx/models/email_message_batch_params.rb +4 -1
- data/lib/telnyx/models/email_message_batch_response.rb +1 -0
- data/lib/telnyx/models/fqdn_connection.rb +5 -2
- data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +210 -67
- data/lib/telnyx/models/messaging_messaging_profile.rb +284 -0
- data/lib/telnyx/models/messaging_profile.rb +0 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_create_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_delete_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_features.rb +26 -0
- data/lib/telnyx/models/messaging_profile_retrieve_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_update_params.rb +32 -1
- data/lib/telnyx/models/messaging_profile_update_response.rb +3 -3
- data/lib/telnyx/models/messaging_profiles/action_regenerate_secret_response.rb +3 -3
- data/lib/telnyx/models/uac_connection.rb +4 -1
- data/lib/telnyx/models/uac_external_settings.rb +6 -2
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
- data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
- data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
- data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
- data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
- data/lib/telnyx/models.rb +10 -0
- data/lib/telnyx/resources/ai/anthropic/v1.rb +5 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai/openai/chat.rb +6 -8
- data/lib/telnyx/resources/ai/openai.rb +5 -1
- data/lib/telnyx/resources/compute/funcs.rb +141 -0
- data/lib/telnyx/resources/compute.rb +18 -0
- data/lib/telnyx/resources/email_messages.rb +4 -2
- data/lib/telnyx/resources/messaging_profiles.rb +12 -4
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
- data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
- data/lib/telnyx/resources/x402/credit_account.rb +8 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +24 -0
- data/rbi/telnyx/client.rbi +3 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +139 -0
- data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +29 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +31 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +31 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +339 -91
- data/rbi/telnyx/models/ai/inference_embedding.rbi +29 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +136 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +23 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
- data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
- data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
- data/rbi/telnyx/models/credential_connection.rbi +8 -2
- data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
- data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
- data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
- data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
- data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +450 -193
- data/rbi/telnyx/models/messaging_messaging_profile.rbi +463 -0
- data/rbi/telnyx/models/messaging_profile.rbi +4 -6
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_create_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_delete_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
- data/rbi/telnyx/models/messaging_profile_retrieve_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +51 -0
- data/rbi/telnyx/models/messaging_profile_update_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbi +4 -4
- data/rbi/telnyx/models/uac_connection.rbi +8 -2
- data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
- data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
- data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
- data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
- data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
- data/rbi/telnyx/models.rbi +10 -0
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +14 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +12 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +21 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +23 -13
- data/rbi/telnyx/resources/ai/openai.rbi +14 -0
- data/rbi/telnyx/resources/compute/funcs.rbi +111 -0
- data/rbi/telnyx/resources/compute.rbi +15 -0
- data/rbi/telnyx/resources/email_messages.rbi +6 -2
- data/rbi/telnyx/resources/messaging_profiles.rbi +24 -1
- data/rbi/telnyx/resources/webhooks.rbi +6 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
- data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +42 -0
- data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/chat_completion_request.rbs +128 -44
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +42 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
- data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
- data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
- data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
- data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +207 -95
- data/sig/telnyx/models/messaging_messaging_profile.rbs +212 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_create_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profile_delete_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
- data/sig/telnyx/models/messaging_profile_retrieve_response.rbs +7 -5
- data/sig/telnyx/models/messaging_profile_update_params.rbs +19 -0
- data/sig/telnyx/models/messaging_profile_update_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbs +7 -5
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
- data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
- data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
- data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
- data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
- data/sig/telnyx/models.rbs +10 -0
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +2 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai/openai/chat.rbs +3 -4
- data/sig/telnyx/resources/ai/openai.rbs +2 -0
- data/sig/telnyx/resources/compute/funcs.rbs +41 -0
- data/sig/telnyx/resources/compute.rbs +9 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +5 -1
- data/sig/telnyx/resources/webhooks.rbs +6 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
- data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
- metadata +74 -2
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class WhatsappAccountUpdate < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute data
|
|
7
|
+
#
|
|
8
|
+
# @return [Telnyx::Models::WhatsappAccountUpdate::Data]
|
|
9
|
+
required :data, -> { Telnyx::WhatsappAccountUpdate::Data }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(data:)
|
|
12
|
+
# @param data [Telnyx::Models::WhatsappAccountUpdate::Data]
|
|
13
|
+
|
|
14
|
+
# @see Telnyx::Models::WhatsappAccountUpdate#data
|
|
15
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
16
|
+
# @!attribute id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :id, String
|
|
20
|
+
|
|
21
|
+
# @!attribute event_type
|
|
22
|
+
#
|
|
23
|
+
# @return [Symbol, Telnyx::Models::WhatsappAccountUpdate::Data::EventType]
|
|
24
|
+
required :event_type, enum: -> { Telnyx::WhatsappAccountUpdate::Data::EventType }
|
|
25
|
+
|
|
26
|
+
# @!attribute occurred_at
|
|
27
|
+
#
|
|
28
|
+
# @return [Time]
|
|
29
|
+
required :occurred_at, Time
|
|
30
|
+
|
|
31
|
+
# @!attribute payload
|
|
32
|
+
#
|
|
33
|
+
# @return [Telnyx::Models::WhatsappAccountUpdate::Data::Payload]
|
|
34
|
+
required :payload, -> { Telnyx::WhatsappAccountUpdate::Data::Payload }
|
|
35
|
+
|
|
36
|
+
# @!attribute record_type
|
|
37
|
+
#
|
|
38
|
+
# @return [Symbol, Telnyx::Models::WhatsappAccountUpdate::Data::RecordType]
|
|
39
|
+
required :record_type, enum: -> { Telnyx::WhatsappAccountUpdate::Data::RecordType }
|
|
40
|
+
|
|
41
|
+
# @!method initialize(id:, event_type:, occurred_at:, payload:, record_type:)
|
|
42
|
+
# @param id [String]
|
|
43
|
+
# @param event_type [Symbol, Telnyx::Models::WhatsappAccountUpdate::Data::EventType]
|
|
44
|
+
# @param occurred_at [Time]
|
|
45
|
+
# @param payload [Telnyx::Models::WhatsappAccountUpdate::Data::Payload]
|
|
46
|
+
# @param record_type [Symbol, Telnyx::Models::WhatsappAccountUpdate::Data::RecordType]
|
|
47
|
+
|
|
48
|
+
# @see Telnyx::Models::WhatsappAccountUpdate::Data#event_type
|
|
49
|
+
module EventType
|
|
50
|
+
extend Telnyx::Internal::Type::Enum
|
|
51
|
+
|
|
52
|
+
WHATSAPP_ACCOUNT_UPDATE = :"whatsapp.account.update"
|
|
53
|
+
|
|
54
|
+
# @!method self.values
|
|
55
|
+
# @return [Array<Symbol>]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# @see Telnyx::Models::WhatsappAccountUpdate::Data#payload
|
|
59
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
60
|
+
# @!attribute event
|
|
61
|
+
# Account event reported by Meta. Coexistence lifecycle values include
|
|
62
|
+
# `ACCOUNT_OFFBOARDED`, `ACCOUNT_RECONNECTED`, and `PARTNER_REMOVED`. Preserve
|
|
63
|
+
# unknown values for forward compatibility.
|
|
64
|
+
#
|
|
65
|
+
# @return [String]
|
|
66
|
+
required :event, String
|
|
67
|
+
|
|
68
|
+
# @!attribute record_type
|
|
69
|
+
#
|
|
70
|
+
# @return [Symbol, Telnyx::Models::WhatsappAccountUpdate::Data::Payload::RecordType]
|
|
71
|
+
required :record_type, enum: -> { Telnyx::WhatsappAccountUpdate::Data::Payload::RecordType }
|
|
72
|
+
|
|
73
|
+
# @!attribute waba_id
|
|
74
|
+
# Meta WhatsApp Business Account identifier.
|
|
75
|
+
#
|
|
76
|
+
# @return [String]
|
|
77
|
+
required :waba_id, String
|
|
78
|
+
|
|
79
|
+
# @!method initialize(event:, record_type:, waba_id:)
|
|
80
|
+
# Some parameter documentations has been truncated, see
|
|
81
|
+
# {Telnyx::Models::WhatsappAccountUpdate::Data::Payload} for more details.
|
|
82
|
+
#
|
|
83
|
+
# @param event [String] Account event reported by Meta. Coexistence lifecycle values include `ACCOUNT_OF
|
|
84
|
+
#
|
|
85
|
+
# @param record_type [Symbol, Telnyx::Models::WhatsappAccountUpdate::Data::Payload::RecordType]
|
|
86
|
+
#
|
|
87
|
+
# @param waba_id [String] Meta WhatsApp Business Account identifier.
|
|
88
|
+
|
|
89
|
+
# @see Telnyx::Models::WhatsappAccountUpdate::Data::Payload#record_type
|
|
90
|
+
module RecordType
|
|
91
|
+
extend Telnyx::Internal::Type::Enum
|
|
92
|
+
|
|
93
|
+
WHATSAPP_ACCOUNT = :whatsapp_account
|
|
94
|
+
|
|
95
|
+
# @!method self.values
|
|
96
|
+
# @return [Array<Symbol>]
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# @see Telnyx::Models::WhatsappAccountUpdate::Data#record_type
|
|
101
|
+
module RecordType
|
|
102
|
+
extend Telnyx::Internal::Type::Enum
|
|
103
|
+
|
|
104
|
+
EVENT = :event
|
|
105
|
+
|
|
106
|
+
# @!method self.values
|
|
107
|
+
# @return [Array<Symbol>]
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class WhatsappMessageEcho < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute data
|
|
7
|
+
#
|
|
8
|
+
# @return [Telnyx::Models::WhatsappMessageEcho::Data]
|
|
9
|
+
required :data, -> { Telnyx::WhatsappMessageEcho::Data }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(data:)
|
|
12
|
+
# @param data [Telnyx::Models::WhatsappMessageEcho::Data]
|
|
13
|
+
|
|
14
|
+
# @see Telnyx::Models::WhatsappMessageEcho#data
|
|
15
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
16
|
+
# @!attribute id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :id, String
|
|
20
|
+
|
|
21
|
+
# @!attribute event_type
|
|
22
|
+
#
|
|
23
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::EventType]
|
|
24
|
+
required :event_type, enum: -> { Telnyx::WhatsappMessageEcho::Data::EventType }
|
|
25
|
+
|
|
26
|
+
# @!attribute occurred_at
|
|
27
|
+
#
|
|
28
|
+
# @return [Time]
|
|
29
|
+
required :occurred_at, Time
|
|
30
|
+
|
|
31
|
+
# @!attribute payload
|
|
32
|
+
#
|
|
33
|
+
# @return [Telnyx::Models::WhatsappMessageEcho::Data::Payload]
|
|
34
|
+
required :payload, -> { Telnyx::WhatsappMessageEcho::Data::Payload }
|
|
35
|
+
|
|
36
|
+
# @!attribute record_type
|
|
37
|
+
#
|
|
38
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::RecordType]
|
|
39
|
+
required :record_type, enum: -> { Telnyx::WhatsappMessageEcho::Data::RecordType }
|
|
40
|
+
|
|
41
|
+
# @!method initialize(id:, event_type:, occurred_at:, payload:, record_type:)
|
|
42
|
+
# @param id [String]
|
|
43
|
+
# @param event_type [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::EventType]
|
|
44
|
+
# @param occurred_at [Time]
|
|
45
|
+
# @param payload [Telnyx::Models::WhatsappMessageEcho::Data::Payload]
|
|
46
|
+
# @param record_type [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::RecordType]
|
|
47
|
+
|
|
48
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data#event_type
|
|
49
|
+
module EventType
|
|
50
|
+
extend Telnyx::Internal::Type::Enum
|
|
51
|
+
|
|
52
|
+
MESSAGE_ECHO = :"message.echo"
|
|
53
|
+
|
|
54
|
+
# @!method self.values
|
|
55
|
+
# @return [Array<Symbol>]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data#payload
|
|
59
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
60
|
+
# @!attribute id
|
|
61
|
+
# Telnyx identifier for the mirrored message.
|
|
62
|
+
#
|
|
63
|
+
# @return [String]
|
|
64
|
+
required :id, String
|
|
65
|
+
|
|
66
|
+
# @!attribute body
|
|
67
|
+
# Mirrored WhatsApp message content. The content property matches the value of
|
|
68
|
+
# `type`.
|
|
69
|
+
#
|
|
70
|
+
# @return [Telnyx::Models::WhatsappMessageEcho::Data::Payload::Body]
|
|
71
|
+
required :body, -> { Telnyx::WhatsappMessageEcho::Data::Payload::Body }
|
|
72
|
+
|
|
73
|
+
# @!attribute cost
|
|
74
|
+
# No charge is created for a Business app message echo.
|
|
75
|
+
#
|
|
76
|
+
# @return [Telnyx::Models::WhatsappMessageEcho::Data::Payload::Cost]
|
|
77
|
+
required :cost, -> { Telnyx::WhatsappMessageEcho::Data::Payload::Cost }
|
|
78
|
+
|
|
79
|
+
# @!attribute direction
|
|
80
|
+
# Indicates that the business sent the message to the WhatsApp user.
|
|
81
|
+
#
|
|
82
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::Payload::Direction]
|
|
83
|
+
required :direction, enum: -> { Telnyx::WhatsappMessageEcho::Data::Payload::Direction }
|
|
84
|
+
|
|
85
|
+
# @!attribute errors
|
|
86
|
+
#
|
|
87
|
+
# @return [Array<Telnyx::Models::MessagingError0b38e7044b>]
|
|
88
|
+
required :errors, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::MessagingError0b38e7044b] }
|
|
89
|
+
|
|
90
|
+
# @!attribute from
|
|
91
|
+
#
|
|
92
|
+
# @return [Telnyx::Models::WhatsappMessageEcho::Data::Payload::From]
|
|
93
|
+
required :from, -> { Telnyx::WhatsappMessageEcho::Data::Payload::From }
|
|
94
|
+
|
|
95
|
+
# @!attribute messaging_profile_id
|
|
96
|
+
#
|
|
97
|
+
# @return [String]
|
|
98
|
+
required :messaging_profile_id, String
|
|
99
|
+
|
|
100
|
+
# @!attribute organization_id
|
|
101
|
+
#
|
|
102
|
+
# @return [String]
|
|
103
|
+
required :organization_id, String
|
|
104
|
+
|
|
105
|
+
# @!attribute origin
|
|
106
|
+
# Identifies the WhatsApp Business app as the source of the message.
|
|
107
|
+
#
|
|
108
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::Payload::Origin]
|
|
109
|
+
required :origin, enum: -> { Telnyx::WhatsappMessageEcho::Data::Payload::Origin }
|
|
110
|
+
|
|
111
|
+
# @!attribute record_type
|
|
112
|
+
#
|
|
113
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::Payload::RecordType]
|
|
114
|
+
required :record_type, enum: -> { Telnyx::WhatsappMessageEcho::Data::Payload::RecordType }
|
|
115
|
+
|
|
116
|
+
# @!attribute to
|
|
117
|
+
# WhatsApp user who received the Business app message.
|
|
118
|
+
#
|
|
119
|
+
# @return [String]
|
|
120
|
+
required :to, String
|
|
121
|
+
|
|
122
|
+
# @!attribute type
|
|
123
|
+
#
|
|
124
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::Payload::Type]
|
|
125
|
+
required :type, enum: -> { Telnyx::WhatsappMessageEcho::Data::Payload::Type }
|
|
126
|
+
|
|
127
|
+
# @!attribute received_at
|
|
128
|
+
#
|
|
129
|
+
# @return [Time, nil]
|
|
130
|
+
optional :received_at, Time
|
|
131
|
+
|
|
132
|
+
# @!attribute tags
|
|
133
|
+
#
|
|
134
|
+
# @return [Array<String>, nil]
|
|
135
|
+
optional :tags, Telnyx::Internal::Type::ArrayOf[String]
|
|
136
|
+
|
|
137
|
+
# @!attribute webhook_failover_url
|
|
138
|
+
#
|
|
139
|
+
# @return [String, nil]
|
|
140
|
+
optional :webhook_failover_url, String, nil?: true
|
|
141
|
+
|
|
142
|
+
# @!attribute webhook_url
|
|
143
|
+
#
|
|
144
|
+
# @return [String, nil]
|
|
145
|
+
optional :webhook_url, String, nil?: true
|
|
146
|
+
|
|
147
|
+
# @!method initialize(id:, body:, cost:, direction:, errors:, from:, messaging_profile_id:, organization_id:, origin:, record_type:, to:, type:, received_at: nil, tags: nil, webhook_failover_url: nil, webhook_url: nil)
|
|
148
|
+
# Some parameter documentations has been truncated, see
|
|
149
|
+
# {Telnyx::Models::WhatsappMessageEcho::Data::Payload} for more details.
|
|
150
|
+
#
|
|
151
|
+
# @param id [String] Telnyx identifier for the mirrored message.
|
|
152
|
+
#
|
|
153
|
+
# @param body [Telnyx::Models::WhatsappMessageEcho::Data::Payload::Body] Mirrored WhatsApp message content. The content property matches the value of `ty
|
|
154
|
+
#
|
|
155
|
+
# @param cost [Telnyx::Models::WhatsappMessageEcho::Data::Payload::Cost] No charge is created for a Business app message echo.
|
|
156
|
+
#
|
|
157
|
+
# @param direction [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::Payload::Direction] Indicates that the business sent the message to the WhatsApp user.
|
|
158
|
+
#
|
|
159
|
+
# @param errors [Array<Telnyx::Models::MessagingError0b38e7044b>]
|
|
160
|
+
#
|
|
161
|
+
# @param from [Telnyx::Models::WhatsappMessageEcho::Data::Payload::From]
|
|
162
|
+
#
|
|
163
|
+
# @param messaging_profile_id [String]
|
|
164
|
+
#
|
|
165
|
+
# @param organization_id [String]
|
|
166
|
+
#
|
|
167
|
+
# @param origin [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::Payload::Origin] Identifies the WhatsApp Business app as the source of the message.
|
|
168
|
+
#
|
|
169
|
+
# @param record_type [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::Payload::RecordType]
|
|
170
|
+
#
|
|
171
|
+
# @param to [String] WhatsApp user who received the Business app message.
|
|
172
|
+
#
|
|
173
|
+
# @param type [Symbol, Telnyx::Models::WhatsappMessageEcho::Data::Payload::Type]
|
|
174
|
+
#
|
|
175
|
+
# @param received_at [Time]
|
|
176
|
+
#
|
|
177
|
+
# @param tags [Array<String>]
|
|
178
|
+
#
|
|
179
|
+
# @param webhook_failover_url [String, nil]
|
|
180
|
+
#
|
|
181
|
+
# @param webhook_url [String, nil]
|
|
182
|
+
|
|
183
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data::Payload#body
|
|
184
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
185
|
+
# @!attribute id
|
|
186
|
+
# Telnyx identifier for the mirrored message.
|
|
187
|
+
#
|
|
188
|
+
# @return [String]
|
|
189
|
+
required :id, String
|
|
190
|
+
|
|
191
|
+
# @!attribute foreign_id
|
|
192
|
+
# Meta WhatsApp message identifier, also known as a wamid.
|
|
193
|
+
#
|
|
194
|
+
# @return [String]
|
|
195
|
+
required :foreign_id, String
|
|
196
|
+
|
|
197
|
+
# @!attribute timestamp
|
|
198
|
+
# Unix timestamp supplied by Meta.
|
|
199
|
+
#
|
|
200
|
+
# @return [String]
|
|
201
|
+
required :timestamp, String
|
|
202
|
+
|
|
203
|
+
# @!attribute type
|
|
204
|
+
# WhatsApp message content type.
|
|
205
|
+
#
|
|
206
|
+
# @return [String]
|
|
207
|
+
required :type, String
|
|
208
|
+
|
|
209
|
+
# @!attribute from
|
|
210
|
+
# WhatsApp user who received the message.
|
|
211
|
+
#
|
|
212
|
+
# @return [String, nil]
|
|
213
|
+
optional :from, String
|
|
214
|
+
|
|
215
|
+
# @!attribute from_user_id
|
|
216
|
+
# Opaque recipient identifier when Meta does not supply a phone number.
|
|
217
|
+
#
|
|
218
|
+
# @return [String, nil]
|
|
219
|
+
optional :from_user_id, String
|
|
220
|
+
|
|
221
|
+
# @!method initialize(id:, foreign_id:, timestamp:, type:, from: nil, from_user_id: nil)
|
|
222
|
+
# Mirrored WhatsApp message content. The content property matches the value of
|
|
223
|
+
# `type`.
|
|
224
|
+
#
|
|
225
|
+
# @param id [String] Telnyx identifier for the mirrored message.
|
|
226
|
+
#
|
|
227
|
+
# @param foreign_id [String] Meta WhatsApp message identifier, also known as a wamid.
|
|
228
|
+
#
|
|
229
|
+
# @param timestamp [String] Unix timestamp supplied by Meta.
|
|
230
|
+
#
|
|
231
|
+
# @param type [String] WhatsApp message content type.
|
|
232
|
+
#
|
|
233
|
+
# @param from [String] WhatsApp user who received the message.
|
|
234
|
+
#
|
|
235
|
+
# @param from_user_id [String] Opaque recipient identifier when Meta does not supply a phone number.
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data::Payload#cost
|
|
239
|
+
class Cost < Telnyx::Internal::Type::BaseModel
|
|
240
|
+
# @!attribute amount
|
|
241
|
+
#
|
|
242
|
+
# @return [String, nil]
|
|
243
|
+
optional :amount, String, nil?: true
|
|
244
|
+
|
|
245
|
+
# @!attribute currency
|
|
246
|
+
#
|
|
247
|
+
# @return [String, nil]
|
|
248
|
+
optional :currency, String, nil?: true
|
|
249
|
+
|
|
250
|
+
# @!method initialize(amount: nil, currency: nil)
|
|
251
|
+
# No charge is created for a Business app message echo.
|
|
252
|
+
#
|
|
253
|
+
# @param amount [String, nil]
|
|
254
|
+
# @param currency [String, nil]
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Indicates that the business sent the message to the WhatsApp user.
|
|
258
|
+
#
|
|
259
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data::Payload#direction
|
|
260
|
+
module Direction
|
|
261
|
+
extend Telnyx::Internal::Type::Enum
|
|
262
|
+
|
|
263
|
+
OUTBOUND = :outbound
|
|
264
|
+
|
|
265
|
+
# @!method self.values
|
|
266
|
+
# @return [Array<Symbol>]
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data::Payload#from
|
|
270
|
+
class From < Telnyx::Internal::Type::BaseModel
|
|
271
|
+
# @!attribute phone_number
|
|
272
|
+
# Coexistence-enabled business phone number in E.164 format.
|
|
273
|
+
#
|
|
274
|
+
# @return [String]
|
|
275
|
+
required :phone_number, String
|
|
276
|
+
|
|
277
|
+
# @!attribute carrier
|
|
278
|
+
#
|
|
279
|
+
# @return [String, nil]
|
|
280
|
+
optional :carrier, String
|
|
281
|
+
|
|
282
|
+
# @!attribute line_type
|
|
283
|
+
#
|
|
284
|
+
# @return [String, nil]
|
|
285
|
+
optional :line_type, String
|
|
286
|
+
|
|
287
|
+
# @!method initialize(phone_number:, carrier: nil, line_type: nil)
|
|
288
|
+
# @param phone_number [String] Coexistence-enabled business phone number in E.164 format.
|
|
289
|
+
#
|
|
290
|
+
# @param carrier [String]
|
|
291
|
+
#
|
|
292
|
+
# @param line_type [String]
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Identifies the WhatsApp Business app as the source of the message.
|
|
296
|
+
#
|
|
297
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data::Payload#origin
|
|
298
|
+
module Origin
|
|
299
|
+
extend Telnyx::Internal::Type::Enum
|
|
300
|
+
|
|
301
|
+
WHATSAPP_BUSINESS_APP = :whatsapp_business_app
|
|
302
|
+
|
|
303
|
+
# @!method self.values
|
|
304
|
+
# @return [Array<Symbol>]
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data::Payload#record_type
|
|
308
|
+
module RecordType
|
|
309
|
+
extend Telnyx::Internal::Type::Enum
|
|
310
|
+
|
|
311
|
+
MESSAGE = :message
|
|
312
|
+
|
|
313
|
+
# @!method self.values
|
|
314
|
+
# @return [Array<Symbol>]
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data::Payload#type
|
|
318
|
+
module Type
|
|
319
|
+
extend Telnyx::Internal::Type::Enum
|
|
320
|
+
|
|
321
|
+
WHATSAPP = :WHATSAPP
|
|
322
|
+
|
|
323
|
+
# @!method self.values
|
|
324
|
+
# @return [Array<Symbol>]
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# @see Telnyx::Models::WhatsappMessageEcho::Data#record_type
|
|
329
|
+
module RecordType
|
|
330
|
+
extend Telnyx::Internal::Type::Enum
|
|
331
|
+
|
|
332
|
+
EVENT = :event
|
|
333
|
+
|
|
334
|
+
# @!method self.values
|
|
335
|
+
# @return [Array<Symbol>]
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module X402
|
|
6
|
+
module CreditAccount
|
|
7
|
+
# @see Telnyx::Resources::X402::CreditAccount::Payments#list
|
|
8
|
+
class PaymentListParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute page_number
|
|
13
|
+
# The page number to load.
|
|
14
|
+
#
|
|
15
|
+
# @return [Integer, nil]
|
|
16
|
+
optional :page_number, Integer
|
|
17
|
+
|
|
18
|
+
# @!attribute page_size
|
|
19
|
+
# The size of the page.
|
|
20
|
+
#
|
|
21
|
+
# @return [Integer, nil]
|
|
22
|
+
optional :page_size, Integer
|
|
23
|
+
|
|
24
|
+
# @!method initialize(page_number: nil, page_size: nil, request_options: {})
|
|
25
|
+
# @param page_number [Integer] The page number to load.
|
|
26
|
+
#
|
|
27
|
+
# @param page_size [Integer] The size of the page.
|
|
28
|
+
#
|
|
29
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module X402
|
|
6
|
+
module CreditAccount
|
|
7
|
+
# @see Telnyx::Resources::X402::CreditAccount::Payments#retrieve
|
|
8
|
+
class PaymentRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!method initialize(id:, request_options: {})
|
|
18
|
+
# @param id [String]
|
|
19
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module X402
|
|
6
|
+
module CreditAccount
|
|
7
|
+
# @see Telnyx::Resources::X402::CreditAccount::Payments#retrieve
|
|
8
|
+
class PaymentRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
# An x402 payment transaction.
|
|
11
|
+
#
|
|
12
|
+
# @return [Telnyx::Models::X402::CreditAccount::X402TransactionRecord, nil]
|
|
13
|
+
optional :data, -> { Telnyx::X402::CreditAccount::X402TransactionRecord }
|
|
14
|
+
|
|
15
|
+
# @!method initialize(data: nil)
|
|
16
|
+
# @param data [Telnyx::Models::X402::CreditAccount::X402TransactionRecord] An x402 payment transaction.
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module X402
|
|
6
|
+
module CreditAccount
|
|
7
|
+
# @see Telnyx::Resources::X402::CreditAccount::Payments#list
|
|
8
|
+
class X402TransactionRecord < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# Unique transaction identifier.
|
|
11
|
+
#
|
|
12
|
+
# @return [String, nil]
|
|
13
|
+
optional :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute amount
|
|
16
|
+
# The transaction amount in the specified currency.
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :amount, String
|
|
20
|
+
|
|
21
|
+
# @!attribute created_at
|
|
22
|
+
# ISO 8601 timestamp when the transaction was created.
|
|
23
|
+
#
|
|
24
|
+
# @return [Time, nil]
|
|
25
|
+
optional :created_at, Time
|
|
26
|
+
|
|
27
|
+
# @!attribute currency
|
|
28
|
+
# The currency of the transaction amount (e.g. USD).
|
|
29
|
+
#
|
|
30
|
+
# @return [String, nil]
|
|
31
|
+
optional :currency, String
|
|
32
|
+
|
|
33
|
+
# @!attribute quote_id
|
|
34
|
+
# The original quote ID associated with this transaction.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :quote_id, String
|
|
38
|
+
|
|
39
|
+
# @!attribute record_type
|
|
40
|
+
#
|
|
41
|
+
# @return [Symbol, Telnyx::Models::X402::CreditAccount::X402TransactionRecord::RecordType, nil]
|
|
42
|
+
optional :record_type, enum: -> { Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType }
|
|
43
|
+
|
|
44
|
+
# @!attribute status
|
|
45
|
+
# The settlement status of the transaction. x402 transactions are created after
|
|
46
|
+
# successful on-chain settlement, so the status is `settled`.
|
|
47
|
+
#
|
|
48
|
+
# @return [Symbol, Telnyx::Models::X402::CreditAccount::X402TransactionRecord::Status, nil]
|
|
49
|
+
optional :status, enum: -> { Telnyx::X402::CreditAccount::X402TransactionRecord::Status }
|
|
50
|
+
|
|
51
|
+
# @!attribute tx_hash
|
|
52
|
+
# The on-chain transaction hash, if available.
|
|
53
|
+
#
|
|
54
|
+
# @return [String, nil]
|
|
55
|
+
optional :tx_hash, String, nil?: true
|
|
56
|
+
|
|
57
|
+
# @!attribute updated_at
|
|
58
|
+
# ISO 8601 timestamp when the transaction was last updated.
|
|
59
|
+
#
|
|
60
|
+
# @return [Time, nil]
|
|
61
|
+
optional :updated_at, Time
|
|
62
|
+
|
|
63
|
+
# @!method initialize(id: nil, amount: nil, created_at: nil, currency: nil, quote_id: nil, record_type: nil, status: nil, tx_hash: nil, updated_at: nil)
|
|
64
|
+
# Some parameter documentations has been truncated, see
|
|
65
|
+
# {Telnyx::Models::X402::CreditAccount::X402TransactionRecord} for more details.
|
|
66
|
+
#
|
|
67
|
+
# An x402 payment transaction.
|
|
68
|
+
#
|
|
69
|
+
# @param id [String] Unique transaction identifier.
|
|
70
|
+
#
|
|
71
|
+
# @param amount [String] The transaction amount in the specified currency.
|
|
72
|
+
#
|
|
73
|
+
# @param created_at [Time] ISO 8601 timestamp when the transaction was created.
|
|
74
|
+
#
|
|
75
|
+
# @param currency [String] The currency of the transaction amount (e.g. USD).
|
|
76
|
+
#
|
|
77
|
+
# @param quote_id [String] The original quote ID associated with this transaction.
|
|
78
|
+
#
|
|
79
|
+
# @param record_type [Symbol, Telnyx::Models::X402::CreditAccount::X402TransactionRecord::RecordType]
|
|
80
|
+
#
|
|
81
|
+
# @param status [Symbol, Telnyx::Models::X402::CreditAccount::X402TransactionRecord::Status] The settlement status of the transaction. x402 transactions are created after su
|
|
82
|
+
#
|
|
83
|
+
# @param tx_hash [String, nil] The on-chain transaction hash, if available.
|
|
84
|
+
#
|
|
85
|
+
# @param updated_at [Time] ISO 8601 timestamp when the transaction was last updated.
|
|
86
|
+
|
|
87
|
+
# @see Telnyx::Models::X402::CreditAccount::X402TransactionRecord#record_type
|
|
88
|
+
module RecordType
|
|
89
|
+
extend Telnyx::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
X402_TRANSACTION = :x402_transaction
|
|
92
|
+
|
|
93
|
+
# @!method self.values
|
|
94
|
+
# @return [Array<Symbol>]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# The settlement status of the transaction. x402 transactions are created after
|
|
98
|
+
# successful on-chain settlement, so the status is `settled`.
|
|
99
|
+
#
|
|
100
|
+
# @see Telnyx::Models::X402::CreditAccount::X402TransactionRecord#status
|
|
101
|
+
module Status
|
|
102
|
+
extend Telnyx::Internal::Type::Enum
|
|
103
|
+
|
|
104
|
+
SETTLED = :settled
|
|
105
|
+
|
|
106
|
+
# @!method self.values
|
|
107
|
+
# @return [Array<Symbol>]
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
data/lib/telnyx/models.rb
CHANGED
|
@@ -386,6 +386,8 @@ module Telnyx
|
|
|
386
386
|
|
|
387
387
|
CommentRetrieveParams = Telnyx::Models::CommentRetrieveParams
|
|
388
388
|
|
|
389
|
+
Compute = Telnyx::Models::Compute
|
|
390
|
+
|
|
389
391
|
Conference = Telnyx::Models::Conference
|
|
390
392
|
|
|
391
393
|
ConferenceCreated = Telnyx::Models::ConferenceCreated
|
|
@@ -1151,6 +1153,8 @@ module Telnyx
|
|
|
1151
1153
|
|
|
1152
1154
|
MessagingInboundMessagePayload = Telnyx::Models::MessagingInboundMessagePayload
|
|
1153
1155
|
|
|
1156
|
+
MessagingMessagingProfile = Telnyx::Models::MessagingMessagingProfile
|
|
1157
|
+
|
|
1154
1158
|
MessagingMetricsTimeFrame = Telnyx::Models::MessagingMetricsTimeFrame
|
|
1155
1159
|
|
|
1156
1160
|
MessagingNumbersBulkUpdateCreateParams = Telnyx::Models::MessagingNumbersBulkUpdateCreateParams
|
|
@@ -1171,6 +1175,8 @@ module Telnyx
|
|
|
1171
1175
|
|
|
1172
1176
|
MessagingProfileDeleteParams = Telnyx::Models::MessagingProfileDeleteParams
|
|
1173
1177
|
|
|
1178
|
+
MessagingProfileFeatures = Telnyx::Models::MessagingProfileFeatures
|
|
1179
|
+
|
|
1174
1180
|
MessagingProfileListAlphanumericSenderIDsParams =
|
|
1175
1181
|
Telnyx::Models::MessagingProfileListAlphanumericSenderIDsParams
|
|
1176
1182
|
|
|
@@ -2159,6 +2165,8 @@ module Telnyx
|
|
|
2159
2165
|
|
|
2160
2166
|
Whatsapp = Telnyx::Models::Whatsapp
|
|
2161
2167
|
|
|
2168
|
+
WhatsappAccountUpdate = Telnyx::Models::WhatsappAccountUpdate
|
|
2169
|
+
|
|
2162
2170
|
WhatsappContact = Telnyx::Models::WhatsappContact
|
|
2163
2171
|
|
|
2164
2172
|
WhatsappInteractive = Telnyx::Models::WhatsappInteractive
|
|
@@ -2169,6 +2177,8 @@ module Telnyx
|
|
|
2169
2177
|
|
|
2170
2178
|
WhatsappMessageContent = Telnyx::Models::WhatsappMessageContent
|
|
2171
2179
|
|
|
2180
|
+
WhatsappMessageEcho = Telnyx::Models::WhatsappMessageEcho
|
|
2181
|
+
|
|
2172
2182
|
WhatsappMessageTemplateDeleteParams = Telnyx::Models::WhatsappMessageTemplateDeleteParams
|
|
2173
2183
|
|
|
2174
2184
|
WhatsappMessageTemplateRetrieveParams = Telnyx::Models::WhatsappMessageTemplateRetrieveParams
|