twilio-ruby 5.74.0 → 7.10.1
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/.dockerignore +1 -1
- data/.github/ISSUE_TEMPLATE/bug_report.yml +69 -0
- data/.github/workflows/test-and-deploy.yml +20 -2
- data/.gitignore +4 -0
- data/.rubocop.yml +1 -0
- data/CHANGES.md +1367 -0
- data/CONTRIBUTING.md +11 -9
- data/Dockerfile +2 -1
- data/Gemfile +5 -0
- data/LICENSE +1 -1
- data/Makefile +6 -0
- data/README.md +138 -40
- data/UPGRADE.md +21 -0
- data/advanced-examples/custom-http-client.md +170 -0
- data/cluster/cluster_oauth_spec.rb +19 -0
- data/cluster/cluster_orgs_spec.rb +40 -0
- data/cluster/cluster_spec.rb +75 -0
- data/examples/public_oauth.rb +13 -0
- data/lib/twilio-ruby/auth_strategy/auth_strategy.rb +19 -0
- data/lib/twilio-ruby/auth_strategy/no_auth_strategy.rb +17 -0
- data/lib/twilio-ruby/auth_strategy/token_auth_strategy.rb +39 -0
- data/lib/twilio-ruby/base/client_base.rb +131 -0
- data/lib/twilio-ruby/credential/auth_type.rb +17 -0
- data/lib/twilio-ruby/credential/client_credential_provider.rb +28 -0
- data/lib/twilio-ruby/credential/credential_provider.rb +11 -0
- data/lib/twilio-ruby/credential/orgs_credential_provider.rb +30 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/framework/rest/api_v1_version.rb +22 -0
- data/lib/twilio-ruby/framework/rest/domain.rb +0 -1
- data/lib/twilio-ruby/framework/rest/error.rb +27 -12
- data/lib/twilio-ruby/framework/rest/page.rb +1 -0
- data/lib/twilio-ruby/framework/rest/page_metadata.rb +83 -0
- data/lib/twilio-ruby/framework/rest/resource.rb +16 -0
- data/lib/twilio-ruby/framework/rest/token_page.rb +73 -0
- data/lib/twilio-ruby/framework/rest/version.rb +91 -4
- data/lib/twilio-ruby/http/client_token_manager.rb +31 -0
- data/lib/twilio-ruby/http/http_client.rb +22 -5
- data/lib/twilio-ruby/http/org_token_manager.rb +31 -0
- data/lib/twilio-ruby/jwt/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +338 -176
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +644 -332
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +644 -332
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +185 -114
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +285 -0
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +336 -0
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +378 -190
- data/lib/twilio-ruby/rest/accounts/v1.rb +69 -42
- data/lib/twilio-ruby/rest/accounts.rb +4 -34
- data/lib/twilio-ruby/rest/accounts_base.rb +38 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +459 -365
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +886 -530
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +977 -586
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +482 -320
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +519 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +519 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +519 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +519 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +519 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +519 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +519 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +601 -0
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +231 -118
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +289 -192
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +578 -417
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +556 -364
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +791 -511
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +1658 -663
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +1658 -663
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +541 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +260 -151
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +409 -240
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +1368 -1050
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +1124 -756
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +694 -458
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +719 -493
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +679 -407
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +483 -344
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +627 -416
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +737 -554
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +737 -553
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +737 -553
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1261 -903
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +567 -302
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +268 -164
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +540 -350
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +970 -641
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +246 -125
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +246 -125
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +577 -399
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +604 -358
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +553 -338
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +702 -390
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +343 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +572 -378
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +560 -383
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +558 -372
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +718 -513
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +644 -408
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +567 -306
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +642 -359
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +667 -371
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +579 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +579 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +204 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +579 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +190 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +158 -103
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +564 -331
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +564 -330
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +987 -641
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +694 -418
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +667 -372
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +205 -150
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +258 -139
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +557 -350
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +407 -335
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +407 -335
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +407 -335
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +407 -335
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +407 -335
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +407 -335
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +407 -335
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +407 -335
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +478 -416
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +785 -484
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +176 -104
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +278 -150
- data/lib/twilio-ruby/rest/api/v2010/account.rb +1229 -943
- data/lib/twilio-ruby/rest/api/v2010.rb +126 -148
- data/lib/twilio-ruby/rest/api.rb +25 -34
- data/lib/twilio-ruby/rest/api_base.rb +38 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +550 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +550 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +423 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +296 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +918 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +317 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +862 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +356 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +352 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +493 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +838 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +100 -0
- data/lib/twilio-ruby/rest/assistants.rb +6 -0
- data/lib/twilio-ruby/rest/assistants_base.rb +38 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +468 -279
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +440 -279
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +438 -248
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +389 -235
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +430 -216
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +57 -55
- data/lib/twilio-ruby/rest/bulkexports.rb +3 -34
- data/lib/twilio-ruby/rest/bulkexports_base.rb +38 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +719 -403
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +613 -391
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +704 -440
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +722 -437
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +822 -515
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +672 -367
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +331 -237
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +750 -440
- data/lib/twilio-ruby/rest/chat/v1/service.rb +1287 -894
- data/lib/twilio-ruby/rest/chat/v1.rb +57 -55
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +719 -401
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +570 -370
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +613 -386
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +799 -527
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +825 -533
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +746 -467
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +916 -605
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +672 -369
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +561 -381
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +648 -419
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +796 -491
- data/lib/twilio-ruby/rest/chat/v2/service.rb +1121 -778
- data/lib/twilio-ruby/rest/chat/v2.rb +57 -53
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +444 -267
- data/lib/twilio-ruby/rest/chat/v3.rb +64 -41
- data/lib/twilio-ruby/rest/chat.rb +4 -48
- data/lib/twilio-ruby/rest/chat_base.rb +48 -0
- data/lib/twilio-ruby/rest/client.rb +338 -584
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +280 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +327 -173
- data/lib/twilio-ruby/rest/content/v1/content.rb +1909 -334
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +340 -0
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +354 -0
- data/lib/twilio-ruby/rest/content/v1.rb +54 -38
- data/lib/twilio-ruby/rest/content/v2/content.rb +425 -0
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +418 -0
- data/lib/twilio-ruby/rest/content/v2.rb +46 -0
- data/lib/twilio-ruby/rest/content.rb +2 -34
- data/lib/twilio-ruby/rest/content_base.rb +43 -0
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +798 -444
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +445 -227
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +467 -252
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +504 -344
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +852 -495
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +817 -495
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +725 -403
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +957 -552
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +392 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +728 -409
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +397 -304
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +657 -356
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +563 -373
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +540 -312
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +459 -258
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +497 -279
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +504 -363
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +860 -533
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +829 -530
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +737 -438
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +972 -588
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +399 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +403 -317
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +672 -380
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +686 -455
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +773 -474
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +724 -447
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +683 -435
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +758 -441
- data/lib/twilio-ruby/rest/conversations/v1.rb +135 -136
- data/lib/twilio-ruby/rest/conversations.rb +9 -34
- data/lib/twilio-ruby/rest/conversations_base.rb +38 -0
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +486 -288
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +468 -0
- data/lib/twilio-ruby/rest/events/v1/schema.rb +366 -214
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +209 -100
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +222 -103
- data/lib/twilio-ruby/rest/events/v1/sink.rb +711 -408
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +638 -339
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +685 -387
- data/lib/twilio-ruby/rest/events/v1.rb +87 -87
- data/lib/twilio-ruby/rest/events.rb +5 -34
- data/lib/twilio-ruby/rest/events_base.rb +38 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +687 -146
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +621 -330
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +722 -496
- data/lib/twilio-ruby/rest/flex_api/v1/create_flex_instance.rb +382 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +928 -570
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +475 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +321 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +735 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +598 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +710 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +457 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +359 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +251 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +237 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +338 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +370 -227
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +560 -319
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +547 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +637 -398
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +529 -225
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +621 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +700 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +564 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +599 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +376 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +539 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +400 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +327 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +663 -331
- data/lib/twilio-ruby/rest/flex_api/v1.rb +319 -113
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +515 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +258 -125
- data/lib/twilio-ruby/rest/flex_api/v2.rb +70 -28
- data/lib/twilio-ruby/rest/flex_api.rb +9 -47
- data/lib/twilio-ruby/rest/flex_api_base.rb +43 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +453 -248
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +42 -38
- data/lib/twilio-ruby/rest/frontline_api.rb +2 -34
- data/lib/twilio-ruby/rest/frontline_api_base.rb +38 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +471 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +320 -0
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +284 -0
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +646 -0
- data/lib/twilio-ruby/rest/iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +82 -0
- data/lib/twilio-ruby/rest/iam.rb +6 -0
- data/lib/twilio-ruby/rest/iam_base.rb +33 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +509 -315
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +499 -0
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +360 -255
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +333 -224
- data/lib/twilio-ruby/rest/insights/v1/call.rb +403 -236
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +718 -433
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +665 -467
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +683 -502
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +545 -371
- data/lib/twilio-ruby/rest/insights/v1/room.rb +668 -489
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +435 -205
- data/lib/twilio-ruby/rest/insights/v1.rb +84 -83
- data/lib/twilio-ruby/rest/insights.rb +6 -34
- data/lib/twilio-ruby/rest/insights_base.rb +38 -0
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +720 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +525 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +380 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +337 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +523 -0
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +525 -0
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +844 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +373 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +570 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +354 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +815 -0
- data/lib/twilio-ruby/rest/intelligence/v2.rb +176 -0
- data/lib/twilio-ruby/rest/intelligence.rb +6 -0
- data/lib/twilio-ruby/rest/intelligence_base.rb +38 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +719 -364
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +613 -359
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +704 -397
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +722 -409
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +822 -488
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +672 -347
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +331 -231
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +750 -418
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +1287 -779
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +57 -53
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +719 -364
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +570 -343
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +613 -359
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +799 -451
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +825 -479
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +746 -411
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +916 -555
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +672 -347
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +561 -351
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +637 -384
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +796 -467
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +1121 -689
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +57 -53
- data/lib/twilio-ruby/rest/ip_messaging.rb +3 -41
- data/lib/twilio-ruby/rest/ip_messaging_base.rb +43 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +317 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +856 -0
- data/lib/twilio-ruby/rest/knowledge/v1.rb +49 -0
- data/lib/twilio-ruby/rest/knowledge.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +38 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +399 -237
- data/lib/twilio-ruby/rest/lookups/v1.rb +42 -39
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +500 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +603 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +570 -328
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +351 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +229 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +128 -38
- data/lib/twilio-ruby/rest/lookups.rb +2 -41
- data/lib/twilio-ruby/rest/lookups_base.rb +43 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +475 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +501 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +555 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +252 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +735 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +342 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +511 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +235 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +91 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +231 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +568 -346
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +758 -443
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +337 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +483 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +469 -259
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +379 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +344 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +263 -142
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +380 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +337 -0
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +379 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +580 -335
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +594 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +608 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +587 -341
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +587 -336
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +937 -521
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +222 -115
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +1149 -763
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +1517 -549
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +209 -103
- data/lib/twilio-ruby/rest/messaging/v1.rb +217 -124
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +1002 -0
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +386 -0
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +237 -0
- data/lib/twilio-ruby/rest/messaging/v2.rb +70 -0
- data/lib/twilio-ruby/rest/messaging.rb +10 -35
- data/lib/twilio-ruby/rest/messaging_base.rb +43 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +572 -395
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +561 -390
- data/lib/twilio-ruby/rest/monitor/v1.rb +57 -53
- data/lib/twilio-ruby/rest/monitor.rb +3 -34
- data/lib/twilio-ruby/rest/monitor_base.rb +38 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +719 -408
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +694 -452
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +466 -362
- data/lib/twilio-ruby/rest/notify/v1/service.rb +971 -622
- data/lib/twilio-ruby/rest/notify/v1.rb +57 -55
- data/lib/twilio-ruby/rest/notify.rb +3 -34
- data/lib/twilio-ruby/rest/notify_base.rb +38 -0
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +411 -0
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +221 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +367 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +616 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +485 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +405 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +242 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +301 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +395 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +252 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +161 -0
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +562 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +440 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +649 -0
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +442 -0
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +430 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +915 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +405 -261
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +524 -298
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +564 -309
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +294 -179
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +923 -607
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +667 -351
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +458 -266
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +521 -307
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +695 -371
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +458 -266
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +241 -181
- data/lib/twilio-ruby/rest/numbers/v2.rb +108 -28
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +484 -0
- data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
- data/lib/twilio-ruby/rest/numbers.rb +2 -34
- data/lib/twilio-ruby/rest/numbers_base.rb +48 -0
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +293 -149
- data/lib/twilio-ruby/rest/oauth/v1.rb +39 -56
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +311 -0
- data/lib/twilio-ruby/rest/oauth/v2.rb +46 -0
- data/lib/twilio-ruby/rest/oauth.rb +3 -65
- data/lib/twilio-ruby/rest/oauth_base.rb +43 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +469 -396
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +724 -446
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +960 -625
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +57 -55
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +468 -298
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +491 -309
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +548 -330
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +706 -398
- data/lib/twilio-ruby/rest/preview/marketplace.rb +57 -53
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +616 -364
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +743 -398
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +382 -205
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +833 -523
- data/lib/twilio-ruby/rest/preview/wireless.rb +72 -69
- data/lib/twilio-ruby/rest/preview.rb +10 -87
- data/lib/twilio-ruby/rest/preview_base.rb +48 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +468 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +559 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +768 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +413 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +49 -0
- data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
- data/lib/twilio-ruby/rest/preview_iam_base.rb +38 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +465 -275
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +172 -120
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +458 -268
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +172 -120
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +465 -275
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +345 -179
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +185 -135
- data/lib/twilio-ruby/rest/pricing/v1.rb +45 -42
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +457 -270
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +379 -215
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +465 -275
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +367 -200
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +185 -138
- data/lib/twilio-ruby/rest/pricing/v2.rb +63 -65
- data/lib/twilio-ruby/rest/pricing.rb +6 -41
- data/lib/twilio-ruby/rest/pricing_base.rb +43 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +693 -403
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +600 -418
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +640 -447
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +659 -440
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +811 -506
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +839 -596
- data/lib/twilio-ruby/rest/proxy/v1.rb +42 -38
- data/lib/twilio-ruby/rest/proxy.rb +2 -34
- data/lib/twilio-ruby/rest/proxy_base.rb +38 -0
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +444 -227
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +444 -223
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +444 -227
- data/lib/twilio-ruby/rest/routes/v2.rb +72 -69
- data/lib/twilio-ruby/rest/routes.rb +4 -34
- data/lib/twilio-ruby/rest/routes_base.rb +38 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +483 -323
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +680 -380
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +350 -208
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +645 -384
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +549 -338
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +535 -383
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +680 -396
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +688 -447
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +342 -210
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +510 -353
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +680 -380
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +803 -493
- data/lib/twilio-ruby/rest/serverless/v1.rb +42 -37
- data/lib/twilio-ruby/rest/serverless.rb +2 -34
- data/lib/twilio-ruby/rest/serverless_base.rb +38 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +350 -199
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +342 -194
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +545 -355
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +659 -394
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +350 -200
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +342 -197
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +545 -361
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +748 -449
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +572 -355
- data/lib/twilio-ruby/rest/studio/v1.rb +42 -37
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +350 -200
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +342 -197
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +545 -361
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +741 -442
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +510 -320
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +413 -0
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +804 -472
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +241 -109
- data/lib/twilio-ruby/rest/studio/v2.rb +48 -44
- data/lib/twilio-ruby/rest/studio.rb +3 -41
- data/lib/twilio-ruby/rest/studio_base.rb +43 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +611 -362
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +757 -483
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +624 -406
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +474 -297
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +566 -332
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +624 -351
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +339 -237
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +311 -204
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +275 -174
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +725 -453
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +576 -361
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +410 -344
- data/lib/twilio-ruby/rest/supersim/v1.rb +144 -147
- data/lib/twilio-ruby/rest/supersim.rb +10 -34
- data/lib/twilio-ruby/rest/supersim_base.rb +38 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +616 -371
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +736 -423
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +766 -490
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +616 -370
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +749 -445
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +772 -495
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +616 -368
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +749 -444
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +242 -132
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +692 -400
- data/lib/twilio-ruby/rest/sync/v1/service.rb +878 -567
- data/lib/twilio-ruby/rest/sync/v1.rb +42 -37
- data/lib/twilio-ruby/rest/sync.rb +2 -34
- data/lib/twilio-ruby/rest/sync_base.rb +38 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +682 -395
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +633 -464
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +1079 -749
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +985 -661
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +688 -382
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +258 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +522 -370
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +430 -276
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +410 -254
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +358 -276
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +882 -572
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +1053 -732
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +602 -388
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +394 -239
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +440 -266
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +364 -193
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +418 -234
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +927 -637
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +522 -376
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +395 -241
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +410 -262
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +822 -510
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +514 -356
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +379 -205
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +387 -219
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +1022 -730
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +42 -37
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -34
- data/lib/twilio-ruby/rest/taskrouter_base.rb +38 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +573 -320
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +573 -317
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +734 -419
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +706 -451
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +391 -174
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +939 -630
- data/lib/twilio-ruby/rest/trunking/v1.rb +42 -38
- data/lib/twilio-ruby/rest/trunking.rb +2 -34
- data/lib/twilio-ruby/rest/trunking_base.rb +38 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +440 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +656 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +474 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +595 -352
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +574 -323
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +540 -321
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +823 -513
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +659 -346
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +450 -261
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +443 -252
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +673 -359
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +450 -261
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +595 -352
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +574 -323
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +540 -321
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +823 -513
- data/lib/twilio-ruby/rest/trusthub/v1.rb +168 -139
- data/lib/twilio-ruby/rest/trusthub.rb +8 -34
- data/lib/twilio-ruby/rest/trusthub_base.rb +38 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +334 -181
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +423 -205
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +463 -254
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +402 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +275 -172
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +768 -530
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +705 -453
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +386 -271
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +653 -414
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +652 -363
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +478 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +387 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +357 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +680 -388
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +693 -384
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +655 -366
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +320 -187
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +741 -412
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1360 -780
- data/lib/twilio-ruby/rest/verify/v2/template.rb +310 -203
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +556 -387
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +400 -224
- data/lib/twilio-ruby/rest/verify/v2.rb +99 -103
- data/lib/twilio-ruby/rest/verify.rb +7 -34
- data/lib/twilio-ruby/rest/verify_base.rb +38 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +738 -507
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +854 -647
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +475 -261
- data/lib/twilio-ruby/rest/video/v1/recording.rb +631 -426
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +475 -261
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +403 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +501 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +316 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +508 -0
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +714 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +303 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +624 -0
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +648 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +938 -602
- data/lib/twilio-ruby/rest/video/v1.rb +99 -99
- data/lib/twilio-ruby/rest/video.rb +7 -34
- data/lib/twilio-ruby/rest/video_base.rb +38 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +292 -174
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +822 -486
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +734 -434
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +658 -352
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +236 -121
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +282 -181
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +553 -397
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +377 -173
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +187 -122
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +650 -339
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +630 -319
- data/lib/twilio-ruby/rest/voice/v1.rb +130 -117
- data/lib/twilio-ruby/rest/voice.rb +7 -34
- data/lib/twilio-ruby/rest/voice_base.rb +38 -0
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +663 -406
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +769 -436
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +387 -284
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +317 -226
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +925 -647
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +319 -219
- data/lib/twilio-ruby/rest/wireless/v1.rb +78 -76
- data/lib/twilio-ruby/rest/wireless.rb +5 -34
- data/lib/twilio-ruby/rest/wireless_base.rb +38 -0
- data/lib/twilio-ruby/rest.rb +1 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +481 -26
- data/lib/twilio-ruby/version.rb +1 -1
- data/sonar-project.properties +1 -1
- data/twilio-ruby.gemspec +3 -2
- metadata +238 -105
- data/conf/cacert.pem +0 -3376
- data/lib/twilio-ruby/framework/twilio_response.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +0 -500
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +0 -500
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +0 -500
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +0 -500
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +0 -500
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +0 -500
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +0 -500
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +0 -464
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -301
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -314
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +0 -348
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +0 -348
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +0 -163
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +0 -348
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +0 -137
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -220
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -214
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -399
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -418
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -392
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -469
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -218
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -386
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -456
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -255
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -237
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -507
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -420
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -650
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -194
- data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -52
- data/lib/twilio-ruby/rest/autopilot.rb +0 -53
- data/lib/twilio-ruby/rest/events/v1/schema/version.rb +0 -290
- data/lib/twilio-ruby/rest/flex_api/v1/good_data.rb +0 -190
- data/lib/twilio-ruby/rest/flex_api/v1/user_roles.rb +0 -166
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +0 -321
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -397
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -399
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -221
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -403
- data/lib/twilio-ruby/rest/media/v1.rb +0 -76
- data/lib/twilio-ruby/rest/media.rb +0 -65
- data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +0 -164
- data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +0 -257
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -305
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -339
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -60
- data/lib/twilio-ruby/rest/microvisor.rb +0 -54
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -153
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -162
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -242
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -193
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -382
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -365
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -425
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -376
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -469
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -45
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -385
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -406
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -418
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -385
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -405
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -415
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -385
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -405
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -462
- data/lib/twilio-ruby/rest/preview/sync.rb +0 -44
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -212
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -212
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -206
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -386
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -407
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -380
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -437
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -212
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -428
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -225
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -495
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -629
- data/lib/twilio-ruby/rest/preview/understand.rb +0 -45
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -377
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +0 -199
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +0 -413
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb +0 -240
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +0 -335
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -175
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +0 -340
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +0 -499
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +0 -144
|
@@ -1,375 +1,567 @@
|
|
|
1
1
|
##
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
# |
|
|
5
|
-
#
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Api
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
6
13
|
#
|
|
7
|
-
|
|
14
|
+
|
|
8
15
|
|
|
9
16
|
module Twilio
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
##
|
|
16
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
17
|
-
class PaymentList < ListResource
|
|
18
|
-
##
|
|
19
|
-
# Initialize the PaymentList
|
|
20
|
-
# @param [Version] version Version that contains the resource
|
|
21
|
-
# @param [String] account_sid The SID of the
|
|
22
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created the Payments
|
|
23
|
-
# resource.
|
|
24
|
-
# @param [String] call_sid The SID of the
|
|
25
|
-
# {Call}[https://www.twilio.com/docs/voice/api/call-resource] the Payments
|
|
26
|
-
# resource is associated with. This will refer to the call sid that is producing
|
|
27
|
-
# the payment card (credit/ACH) information thru DTMF.
|
|
28
|
-
# @return [PaymentList] PaymentList
|
|
29
|
-
def initialize(version, account_sid: nil, call_sid: nil)
|
|
30
|
-
super(version)
|
|
31
|
-
|
|
32
|
-
# Path Solution
|
|
33
|
-
@solution = {account_sid: account_sid, call_sid: call_sid}
|
|
34
|
-
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Payments.json"
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
##
|
|
38
|
-
# Create the PaymentInstance
|
|
39
|
-
# @param [String] idempotency_key A unique token that will be used to ensure that
|
|
40
|
-
# multiple API calls with the same information do not result in multiple
|
|
41
|
-
# transactions. This should be a unique string value per API call and can be a
|
|
42
|
-
# randomly generated.
|
|
43
|
-
# @param [String] status_callback Provide an absolute or relative URL to receive
|
|
44
|
-
# status updates regarding your Pay session. Read more about the {expected
|
|
45
|
-
# StatusCallback
|
|
46
|
-
# values}[https://www.twilio.com/docs/voice/api/payment-resource#statuscallback]
|
|
47
|
-
# @param [payment.BankAccountType] bank_account_type Type of bank account if
|
|
48
|
-
# payment source is ACH. One of `consumer-checking`, `consumer-savings`, or
|
|
49
|
-
# `commercial-checking`. The default value is `consumer-checking`.
|
|
50
|
-
# @param [String] charge_amount A positive decimal value less than 1,000,000 to
|
|
51
|
-
# charge against the credit card or bank account. Default currency can be
|
|
52
|
-
# overwritten with `currency` field. Leave blank or set to 0 to tokenize.
|
|
53
|
-
# @param [String] currency The currency of the `charge_amount`, formatted as {ISO
|
|
54
|
-
# 4127}[http://www.iso.org/iso/home/standards/currency_codes.htm] format. The
|
|
55
|
-
# default value is `USD` and all values allowed from the Pay Connector are
|
|
56
|
-
# accepted.
|
|
57
|
-
# @param [String] description The description can be used to provide more details
|
|
58
|
-
# regarding the transaction. This information is submitted along with the payment
|
|
59
|
-
# details to the Payment Connector which are then posted on the transactions.
|
|
60
|
-
# @param [String] input A list of inputs that should be accepted. Currently only
|
|
61
|
-
# `dtmf` is supported. All digits captured during a pay session are redacted from
|
|
62
|
-
# the logs.
|
|
63
|
-
# @param [String] min_postal_code_length A positive integer that is used to
|
|
64
|
-
# validate the length of the `PostalCode` inputted by the user. User must enter
|
|
65
|
-
# this many digits.
|
|
66
|
-
# @param [Hash] parameter A single-level JSON object used to pass custom
|
|
67
|
-
# parameters to payment processors. (Required for ACH payments). The information
|
|
68
|
-
# that has to be included here depends on the <Pay> Connector. {Read
|
|
69
|
-
# more}[https://www.twilio.com/console/voice/pay-connectors].
|
|
70
|
-
# @param [String] payment_connector This is the unique name corresponding to the
|
|
71
|
-
# Pay Connector installed in the Twilio Add-ons. Learn more about {<Pay>
|
|
72
|
-
# Connectors}[https://www.twilio.com/console/voice/pay-connectors]. The default
|
|
73
|
-
# value is `Default`.
|
|
74
|
-
# @param [payment.PaymentMethod] payment_method Type of payment being captured.
|
|
75
|
-
# One of `credit-card` or `ach-debit`. The default value is `credit-card`.
|
|
76
|
-
# @param [Boolean] postal_code Indicates whether the credit card postal code (zip
|
|
77
|
-
# code) is a required piece of payment information that must be provided by the
|
|
78
|
-
# caller. The default is `true`.
|
|
79
|
-
# @param [Boolean] security_code Indicates whether the credit card security code
|
|
80
|
-
# is a required piece of payment information that must be provided by the caller.
|
|
81
|
-
# The default is `true`.
|
|
82
|
-
# @param [String] timeout The number of seconds that <Pay> should wait for the
|
|
83
|
-
# caller to press a digit between each subsequent digit, after the first one,
|
|
84
|
-
# before moving on to validate the digits captured. The default is `5`, maximum is
|
|
85
|
-
# `600`.
|
|
86
|
-
# @param [payment.TokenType] token_type Indicates whether the payment method
|
|
87
|
-
# should be tokenized as a `one-time` or `reusable` token. The default value is
|
|
88
|
-
# `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is
|
|
89
|
-
# entered, the payment method will be charged and not tokenized.
|
|
90
|
-
# @param [String] valid_card_types Credit card types separated by space that Pay
|
|
91
|
-
# should accept. The default value is `visa mastercard amex`
|
|
92
|
-
# @return [PaymentInstance] Created PaymentInstance
|
|
93
|
-
def create(idempotency_key: nil, status_callback: nil, bank_account_type: :unset, charge_amount: :unset, currency: :unset, description: :unset, input: :unset, min_postal_code_length: :unset, parameter: :unset, payment_connector: :unset, payment_method: :unset, postal_code: :unset, security_code: :unset, timeout: :unset, token_type: :unset, valid_card_types: :unset)
|
|
94
|
-
data = Twilio::Values.of({
|
|
95
|
-
'IdempotencyKey' => idempotency_key,
|
|
96
|
-
'StatusCallback' => status_callback,
|
|
97
|
-
'BankAccountType' => bank_account_type,
|
|
98
|
-
'ChargeAmount' => charge_amount,
|
|
99
|
-
'Currency' => currency,
|
|
100
|
-
'Description' => description,
|
|
101
|
-
'Input' => input,
|
|
102
|
-
'MinPostalCodeLength' => min_postal_code_length,
|
|
103
|
-
'Parameter' => Twilio.serialize_object(parameter),
|
|
104
|
-
'PaymentConnector' => payment_connector,
|
|
105
|
-
'PaymentMethod' => payment_method,
|
|
106
|
-
'PostalCode' => postal_code,
|
|
107
|
-
'SecurityCode' => security_code,
|
|
108
|
-
'Timeout' => timeout,
|
|
109
|
-
'TokenType' => token_type,
|
|
110
|
-
'ValidCardTypes' => valid_card_types,
|
|
111
|
-
})
|
|
112
|
-
|
|
113
|
-
payload = @version.create('POST', @uri, data: data)
|
|
114
|
-
|
|
115
|
-
PaymentInstance.new(
|
|
116
|
-
@version,
|
|
117
|
-
payload,
|
|
118
|
-
account_sid: @solution[:account_sid],
|
|
119
|
-
call_sid: @solution[:call_sid],
|
|
120
|
-
)
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
##
|
|
124
|
-
# Provide a user friendly representation
|
|
125
|
-
def to_s
|
|
126
|
-
'#<Twilio.Api.V2010.PaymentList>'
|
|
127
|
-
end
|
|
128
|
-
end
|
|
17
|
+
module REST
|
|
18
|
+
class Api < ApiBase
|
|
19
|
+
class V2010 < Version
|
|
20
|
+
class AccountContext < InstanceContext
|
|
21
|
+
class CallContext < InstanceContext
|
|
129
22
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
@
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
23
|
+
class PaymentList < ListResource
|
|
24
|
+
|
|
25
|
+
##
|
|
26
|
+
# Initialize the PaymentList
|
|
27
|
+
# @param [Version] version Version that contains the resource
|
|
28
|
+
# @return [PaymentList] PaymentList
|
|
29
|
+
def initialize(version, account_sid: nil, call_sid: nil)
|
|
30
|
+
super(version)
|
|
31
|
+
|
|
32
|
+
# Path Solution
|
|
33
|
+
@solution = { account_sid: account_sid, call_sid: call_sid }
|
|
34
|
+
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Payments.json"
|
|
35
|
+
|
|
36
|
+
end
|
|
37
|
+
##
|
|
38
|
+
# Create the PaymentInstance
|
|
39
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.
|
|
40
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [expected StatusCallback values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback)
|
|
41
|
+
# @param [BankAccountType] bank_account_type
|
|
42
|
+
# @param [Float] charge_amount A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with `currency` field. Leave blank or set to 0 to tokenize.
|
|
43
|
+
# @param [String] currency The currency of the `charge_amount`, formatted as [ISO 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The default value is `USD` and all values allowed from the Pay Connector are accepted.
|
|
44
|
+
# @param [String] description The description can be used to provide more details regarding the transaction. This information is submitted along with the payment details to the Payment Connector which are then posted on the transactions.
|
|
45
|
+
# @param [String] input A list of inputs that should be accepted. Currently only `dtmf` is supported. All digits captured during a pay session are redacted from the logs.
|
|
46
|
+
# @param [String] min_postal_code_length A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits.
|
|
47
|
+
# @param [Object] parameter A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the <Pay> Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors).
|
|
48
|
+
# @param [String] payment_connector This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`.
|
|
49
|
+
# @param [PaymentMethod] payment_method
|
|
50
|
+
# @param [Boolean] postal_code Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is `true`.
|
|
51
|
+
# @param [Boolean] security_code Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is `true`.
|
|
52
|
+
# @param [String] timeout The number of seconds that <Pay> should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is `5`, maximum is `600`.
|
|
53
|
+
# @param [TokenType] token_type
|
|
54
|
+
# @param [String] valid_card_types Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex`
|
|
55
|
+
# @return [PaymentInstance] Created PaymentInstance
|
|
56
|
+
def create(
|
|
57
|
+
idempotency_key: nil,
|
|
58
|
+
status_callback: nil,
|
|
59
|
+
bank_account_type: :unset,
|
|
60
|
+
charge_amount: :unset,
|
|
61
|
+
currency: :unset,
|
|
62
|
+
description: :unset,
|
|
63
|
+
input: :unset,
|
|
64
|
+
min_postal_code_length: :unset,
|
|
65
|
+
parameter: :unset,
|
|
66
|
+
payment_connector: :unset,
|
|
67
|
+
payment_method: :unset,
|
|
68
|
+
postal_code: :unset,
|
|
69
|
+
security_code: :unset,
|
|
70
|
+
timeout: :unset,
|
|
71
|
+
token_type: :unset,
|
|
72
|
+
valid_card_types: :unset
|
|
73
|
+
)
|
|
165
74
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
@
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
75
|
+
data = Twilio::Values.of({
|
|
76
|
+
'IdempotencyKey' => idempotency_key,
|
|
77
|
+
'StatusCallback' => status_callback,
|
|
78
|
+
'BankAccountType' => bank_account_type,
|
|
79
|
+
'ChargeAmount' => charge_amount,
|
|
80
|
+
'Currency' => currency,
|
|
81
|
+
'Description' => description,
|
|
82
|
+
'Input' => input,
|
|
83
|
+
'MinPostalCodeLength' => min_postal_code_length,
|
|
84
|
+
'Parameter' => Twilio.serialize_object(parameter),
|
|
85
|
+
'PaymentConnector' => payment_connector,
|
|
86
|
+
'PaymentMethod' => payment_method,
|
|
87
|
+
'PostalCode' => postal_code,
|
|
88
|
+
'SecurityCode' => security_code,
|
|
89
|
+
'Timeout' => timeout,
|
|
90
|
+
'TokenType' => token_type,
|
|
91
|
+
'ValidCardTypes' => valid_card_types,
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
101
|
+
PaymentInstance.new(
|
|
102
|
+
@version,
|
|
103
|
+
payload,
|
|
104
|
+
account_sid: @solution[:account_sid],
|
|
105
|
+
call_sid: @solution[:call_sid],
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
##
|
|
110
|
+
# Create the PaymentInstanceMetadata
|
|
111
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.
|
|
112
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [expected StatusCallback values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback)
|
|
113
|
+
# @param [BankAccountType] bank_account_type
|
|
114
|
+
# @param [Float] charge_amount A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with `currency` field. Leave blank or set to 0 to tokenize.
|
|
115
|
+
# @param [String] currency The currency of the `charge_amount`, formatted as [ISO 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The default value is `USD` and all values allowed from the Pay Connector are accepted.
|
|
116
|
+
# @param [String] description The description can be used to provide more details regarding the transaction. This information is submitted along with the payment details to the Payment Connector which are then posted on the transactions.
|
|
117
|
+
# @param [String] input A list of inputs that should be accepted. Currently only `dtmf` is supported. All digits captured during a pay session are redacted from the logs.
|
|
118
|
+
# @param [String] min_postal_code_length A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits.
|
|
119
|
+
# @param [Object] parameter A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the <Pay> Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors).
|
|
120
|
+
# @param [String] payment_connector This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`.
|
|
121
|
+
# @param [PaymentMethod] payment_method
|
|
122
|
+
# @param [Boolean] postal_code Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is `true`.
|
|
123
|
+
# @param [Boolean] security_code Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is `true`.
|
|
124
|
+
# @param [String] timeout The number of seconds that <Pay> should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is `5`, maximum is `600`.
|
|
125
|
+
# @param [TokenType] token_type
|
|
126
|
+
# @param [String] valid_card_types Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex`
|
|
127
|
+
# @return [PaymentInstance] Created PaymentInstance
|
|
128
|
+
def create_with_metadata(
|
|
129
|
+
idempotency_key: nil,
|
|
130
|
+
status_callback: nil,
|
|
131
|
+
bank_account_type: :unset,
|
|
132
|
+
charge_amount: :unset,
|
|
133
|
+
currency: :unset,
|
|
134
|
+
description: :unset,
|
|
135
|
+
input: :unset,
|
|
136
|
+
min_postal_code_length: :unset,
|
|
137
|
+
parameter: :unset,
|
|
138
|
+
payment_connector: :unset,
|
|
139
|
+
payment_method: :unset,
|
|
140
|
+
postal_code: :unset,
|
|
141
|
+
security_code: :unset,
|
|
142
|
+
timeout: :unset,
|
|
143
|
+
token_type: :unset,
|
|
144
|
+
valid_card_types: :unset
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
data = Twilio::Values.of({
|
|
148
|
+
'IdempotencyKey' => idempotency_key,
|
|
149
|
+
'StatusCallback' => status_callback,
|
|
150
|
+
'BankAccountType' => bank_account_type,
|
|
151
|
+
'ChargeAmount' => charge_amount,
|
|
152
|
+
'Currency' => currency,
|
|
153
|
+
'Description' => description,
|
|
154
|
+
'Input' => input,
|
|
155
|
+
'MinPostalCodeLength' => min_postal_code_length,
|
|
156
|
+
'Parameter' => Twilio.serialize_object(parameter),
|
|
157
|
+
'PaymentConnector' => payment_connector,
|
|
158
|
+
'PaymentMethod' => payment_method,
|
|
159
|
+
'PostalCode' => postal_code,
|
|
160
|
+
'SecurityCode' => security_code,
|
|
161
|
+
'Timeout' => timeout,
|
|
162
|
+
'TokenType' => token_type,
|
|
163
|
+
'ValidCardTypes' => valid_card_types,
|
|
164
|
+
})
|
|
165
|
+
|
|
166
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
173
|
+
payment_instance = PaymentInstance.new(
|
|
174
|
+
@version,
|
|
175
|
+
response.body,
|
|
176
|
+
account_sid: @solution[:account_sid],
|
|
177
|
+
call_sid: @solution[:call_sid],
|
|
178
|
+
)
|
|
179
|
+
PaymentInstanceMetadata.new(
|
|
180
|
+
@version,
|
|
181
|
+
payment_instance,
|
|
182
|
+
response.headers,
|
|
183
|
+
response.status_code
|
|
184
|
+
)
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
# Provide a user friendly representation
|
|
191
|
+
def to_s
|
|
192
|
+
'#<Twilio.Api.V2010.PaymentList>'
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
class PaymentContext < InstanceContext
|
|
198
|
+
##
|
|
199
|
+
# Initialize the PaymentContext
|
|
200
|
+
# @param [Version] version Version that contains the resource
|
|
201
|
+
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource.
|
|
202
|
+
# @param [String] call_sid The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource.
|
|
203
|
+
# @param [String] sid The SID of Payments session that needs to be updated.
|
|
204
|
+
# @return [PaymentContext] PaymentContext
|
|
205
|
+
def initialize(version, account_sid, call_sid, sid)
|
|
206
|
+
super(version)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
# Path Solution
|
|
210
|
+
@solution = { account_sid: account_sid, call_sid: call_sid, sid: sid, }
|
|
211
|
+
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Payments/#{@solution[:sid]}.json"
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
end
|
|
215
|
+
##
|
|
216
|
+
# Update the PaymentInstance
|
|
217
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.
|
|
218
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.
|
|
219
|
+
# @param [Capture] capture
|
|
220
|
+
# @param [Status] status
|
|
221
|
+
# @return [PaymentInstance] Updated PaymentInstance
|
|
222
|
+
def update(
|
|
223
|
+
idempotency_key: nil,
|
|
224
|
+
status_callback: nil,
|
|
225
|
+
capture: :unset,
|
|
226
|
+
status: :unset
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
data = Twilio::Values.of({
|
|
230
|
+
'IdempotencyKey' => idempotency_key,
|
|
231
|
+
'StatusCallback' => status_callback,
|
|
232
|
+
'Capture' => capture,
|
|
233
|
+
'Status' => status,
|
|
234
|
+
})
|
|
235
|
+
|
|
236
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
|
243
|
+
PaymentInstance.new(
|
|
244
|
+
@version,
|
|
245
|
+
payload,
|
|
246
|
+
account_sid: @solution[:account_sid],
|
|
247
|
+
call_sid: @solution[:call_sid],
|
|
248
|
+
sid: @solution[:sid],
|
|
249
|
+
)
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
##
|
|
253
|
+
# Update the PaymentInstanceMetadata
|
|
254
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.
|
|
255
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.
|
|
256
|
+
# @param [Capture] capture
|
|
257
|
+
# @param [Status] status
|
|
258
|
+
# @return [PaymentInstance] Updated PaymentInstance
|
|
259
|
+
def update_with_metadata(
|
|
260
|
+
idempotency_key: nil,
|
|
261
|
+
status_callback: nil,
|
|
262
|
+
capture: :unset,
|
|
263
|
+
status: :unset
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
data = Twilio::Values.of({
|
|
267
|
+
'IdempotencyKey' => idempotency_key,
|
|
268
|
+
'StatusCallback' => status_callback,
|
|
269
|
+
'Capture' => capture,
|
|
270
|
+
'Status' => status,
|
|
271
|
+
})
|
|
272
|
+
|
|
273
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
280
|
+
payment_instance = PaymentInstance.new(
|
|
281
|
+
@version,
|
|
282
|
+
response.body,
|
|
283
|
+
account_sid: @solution[:account_sid],
|
|
284
|
+
call_sid: @solution[:call_sid],
|
|
285
|
+
sid: @solution[:sid],
|
|
286
|
+
)
|
|
287
|
+
PaymentInstanceMetadata.new(
|
|
288
|
+
@version,
|
|
289
|
+
payment_instance,
|
|
290
|
+
response.headers,
|
|
291
|
+
response.status_code
|
|
292
|
+
)
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
##
|
|
297
|
+
# Provide a user friendly representation
|
|
298
|
+
def to_s
|
|
299
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
300
|
+
"#<Twilio.Api.V2010.PaymentContext #{context}>"
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
##
|
|
304
|
+
# Provide a detailed, user friendly representation
|
|
305
|
+
def inspect
|
|
306
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
307
|
+
"#<Twilio.Api.V2010.PaymentContext #{context}>"
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
class PaymentInstanceMetadata < InstanceResourceMetadata
|
|
312
|
+
##
|
|
313
|
+
# Initializes a new PaymentInstanceMetadata.
|
|
314
|
+
# @param [Version] version Version that contains the resource
|
|
315
|
+
# @param [}PaymentInstance] payment_instance The instance associated with the metadata.
|
|
316
|
+
# @param [Hash] headers Header object with response headers.
|
|
317
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
318
|
+
# @return [PaymentInstanceMetadata] The initialized instance with metadata.
|
|
319
|
+
def initialize(version, payment_instance, headers, status_code)
|
|
320
|
+
super(version, headers, status_code)
|
|
321
|
+
@payment_instance = payment_instance
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
def payment
|
|
325
|
+
@payment_instance
|
|
326
|
+
end
|
|
240
327
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
# {Call}[https://www.twilio.com/docs/voice/api/call-resource] the Payments
|
|
253
|
-
# resource is associated with. This will refer to the call sid that is producing
|
|
254
|
-
# the payment card (credit/ACH) information thru DTMF.
|
|
255
|
-
# @param [String] sid The SID of Payments session that needs to be updated.
|
|
256
|
-
# @return [PaymentInstance] PaymentInstance
|
|
257
|
-
def initialize(version, payload, account_sid: nil, call_sid: nil, sid: nil)
|
|
258
|
-
super(version)
|
|
259
|
-
|
|
260
|
-
# Marshaled Properties
|
|
261
|
-
@properties = {
|
|
262
|
-
'account_sid' => payload['account_sid'],
|
|
263
|
-
'call_sid' => payload['call_sid'],
|
|
264
|
-
'sid' => payload['sid'],
|
|
265
|
-
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
|
266
|
-
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
|
267
|
-
'uri' => payload['uri'],
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
# Context
|
|
271
|
-
@instance_context = nil
|
|
272
|
-
@params = {'account_sid' => account_sid, 'call_sid' => call_sid, 'sid' => sid || @properties['sid'], }
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
##
|
|
276
|
-
# Generate an instance context for the instance, the context is capable of
|
|
277
|
-
# performing various actions. All instance actions are proxied to the context
|
|
278
|
-
# @return [PaymentContext] PaymentContext for this PaymentInstance
|
|
279
|
-
def context
|
|
280
|
-
unless @instance_context
|
|
281
|
-
@instance_context = PaymentContext.new(
|
|
282
|
-
@version,
|
|
283
|
-
@params['account_sid'],
|
|
284
|
-
@params['call_sid'],
|
|
285
|
-
@params['sid'],
|
|
286
|
-
)
|
|
328
|
+
def headers
|
|
329
|
+
@headers
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
def status_code
|
|
333
|
+
@status_code
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
def to_s
|
|
337
|
+
"<Twilio.Api.V2010.PaymentInstanceMetadata status=#{@status_code}>"
|
|
338
|
+
end
|
|
287
339
|
end
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
340
|
+
|
|
341
|
+
class PaymentListResponse < InstanceListResource
|
|
342
|
+
# @param [Array<PaymentInstance>] instance
|
|
343
|
+
# @param [Hash{String => Object}] headers
|
|
344
|
+
# @param [Integer] status_code
|
|
345
|
+
def initialize(version, payload, key)
|
|
346
|
+
@payment_instance = payload.body[key].map do |data|
|
|
347
|
+
PaymentInstance.new(version, data)
|
|
348
|
+
end
|
|
349
|
+
@headers = payload.headers
|
|
350
|
+
@status_code = payload.status_code
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
def payment_instance
|
|
354
|
+
@instance
|
|
355
|
+
end
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
class PaymentPage < Page
|
|
359
|
+
##
|
|
360
|
+
# Initialize the PaymentPage
|
|
361
|
+
# @param [Version] version Version that contains the resource
|
|
362
|
+
# @param [Response] response Response from the API
|
|
363
|
+
# @param [Hash] solution Path solution for the resource
|
|
364
|
+
# @return [PaymentPage] PaymentPage
|
|
365
|
+
def initialize(version, response, solution)
|
|
366
|
+
super(version, response)
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
# Path Solution
|
|
370
|
+
@solution = solution
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
##
|
|
374
|
+
# Build an instance of PaymentInstance
|
|
375
|
+
# @param [Hash] payload Payload response from the API
|
|
376
|
+
# @return [PaymentInstance] PaymentInstance
|
|
377
|
+
def get_instance(payload)
|
|
378
|
+
PaymentInstance.new(@version, payload, account_sid: @solution[:account_sid], call_sid: @solution[:call_sid])
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
##
|
|
382
|
+
# Provide a user friendly representation
|
|
383
|
+
def to_s
|
|
384
|
+
'<Twilio.Api.V2010.PaymentPage>'
|
|
385
|
+
end
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
class PaymentPageMetadata < PageMetadata
|
|
389
|
+
attr_reader :payment_page
|
|
390
|
+
|
|
391
|
+
def initialize(version, response, solution, limit)
|
|
392
|
+
super(version, response)
|
|
393
|
+
@payment_page = []
|
|
394
|
+
@limit = limit
|
|
395
|
+
key = get_key(response.body)
|
|
396
|
+
records = 0
|
|
397
|
+
while( limit != :unset && records < limit )
|
|
398
|
+
@payment_page << PaymentListResponse.new(version, @payload, key, limit - records)
|
|
399
|
+
@payload = self.next_page
|
|
400
|
+
break unless @payload
|
|
401
|
+
records += @payload.body[key].size
|
|
402
|
+
end
|
|
403
|
+
# Path Solution
|
|
404
|
+
@solution = solution
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
def each
|
|
408
|
+
@payment_page.each do |record|
|
|
409
|
+
yield record
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
def to_s
|
|
414
|
+
'<Twilio::REST::Api::V2010PageMetadata>';
|
|
415
|
+
end
|
|
416
|
+
end
|
|
417
|
+
class PaymentListResponse < InstanceListResource
|
|
418
|
+
|
|
419
|
+
# @param [Array<PaymentInstance>] instance
|
|
420
|
+
# @param [Hash{String => Object}] headers
|
|
421
|
+
# @param [Integer] status_code
|
|
422
|
+
def initialize(version, payload, key, limit = :unset)
|
|
423
|
+
data_list = payload.body[key]
|
|
424
|
+
if limit != :unset
|
|
425
|
+
data_list = data_list[0, limit]
|
|
426
|
+
end
|
|
427
|
+
@payment = data_list.map do |data|
|
|
428
|
+
PaymentInstance.new(version, data)
|
|
429
|
+
end
|
|
430
|
+
@headers = payload.headers
|
|
431
|
+
@status_code = payload.status_code
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
def payment
|
|
435
|
+
@payment
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
def headers
|
|
439
|
+
@headers
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
def status_code
|
|
443
|
+
@status_code
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
class PaymentInstance < InstanceResource
|
|
448
|
+
##
|
|
449
|
+
# Initialize the PaymentInstance
|
|
450
|
+
# @param [Version] version Version that contains the resource
|
|
451
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
452
|
+
# @param [String] account_sid The SID of the
|
|
453
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Payment
|
|
454
|
+
# resource.
|
|
455
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
456
|
+
# @return [PaymentInstance] PaymentInstance
|
|
457
|
+
def initialize(version, payload , account_sid: nil, call_sid: nil, sid: nil)
|
|
458
|
+
super(version)
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
# Marshaled Properties
|
|
462
|
+
@properties = {
|
|
463
|
+
'account_sid' => payload['account_sid'],
|
|
464
|
+
'call_sid' => payload['call_sid'],
|
|
465
|
+
'sid' => payload['sid'],
|
|
466
|
+
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
|
467
|
+
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
|
468
|
+
'uri' => payload['uri'],
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
# Context
|
|
472
|
+
@instance_context = nil
|
|
473
|
+
@params = { 'account_sid' => account_sid ,'call_sid' => call_sid || @properties['call_sid'] ,'sid' => sid || @properties['sid'] , }
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
##
|
|
477
|
+
# Generate an instance context for the instance, the context is capable of
|
|
478
|
+
# performing various actions. All instance actions are proxied to the context
|
|
479
|
+
# @return [PaymentContext] CallContext for this CallInstance
|
|
480
|
+
def context
|
|
481
|
+
unless @instance_context
|
|
482
|
+
@instance_context = PaymentContext.new(@version , @params['account_sid'], @params['call_sid'], @params['sid'])
|
|
483
|
+
end
|
|
484
|
+
@instance_context
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
##
|
|
488
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
|
|
489
|
+
def account_sid
|
|
490
|
+
@properties['account_sid']
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
##
|
|
494
|
+
# @return [String] The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Payments resource is associated with. This will refer to the call sid that is producing the payment card (credit/ACH) information thru DTMF.
|
|
495
|
+
def call_sid
|
|
496
|
+
@properties['call_sid']
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
##
|
|
500
|
+
# @return [String] The SID of the Payments resource.
|
|
501
|
+
def sid
|
|
502
|
+
@properties['sid']
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
##
|
|
506
|
+
# @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
507
|
+
def date_created
|
|
508
|
+
@properties['date_created']
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
##
|
|
512
|
+
# @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
513
|
+
def date_updated
|
|
514
|
+
@properties['date_updated']
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
##
|
|
518
|
+
# @return [String] The URI of the resource, relative to `https://api.twilio.com`.
|
|
519
|
+
def uri
|
|
520
|
+
@properties['uri']
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
##
|
|
524
|
+
# Update the PaymentInstance
|
|
525
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.
|
|
526
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.
|
|
527
|
+
# @param [Capture] capture
|
|
528
|
+
# @param [Status] status
|
|
529
|
+
# @return [PaymentInstance] Updated PaymentInstance
|
|
530
|
+
def update(
|
|
531
|
+
idempotency_key: nil,
|
|
532
|
+
status_callback: nil,
|
|
533
|
+
capture: :unset,
|
|
534
|
+
status: :unset
|
|
535
|
+
)
|
|
536
|
+
|
|
537
|
+
context.update(
|
|
538
|
+
idempotency_key: idempotency_key,
|
|
539
|
+
status_callback: status_callback,
|
|
540
|
+
capture: capture,
|
|
541
|
+
status: status,
|
|
542
|
+
)
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
##
|
|
546
|
+
# Provide a user friendly representation
|
|
547
|
+
def to_s
|
|
548
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
549
|
+
"<Twilio.Api.V2010.PaymentInstance #{values}>"
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
##
|
|
553
|
+
# Provide a detailed, user friendly representation
|
|
554
|
+
def inspect
|
|
555
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
556
|
+
"<Twilio.Api.V2010.PaymentInstance #{values}>"
|
|
557
|
+
end
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
end
|
|
561
|
+
end
|
|
369
562
|
end
|
|
370
|
-
end
|
|
371
563
|
end
|
|
372
|
-
end
|
|
373
564
|
end
|
|
374
|
-
|
|
375
|
-
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
|