twilio-ruby 5.4.2 → 5.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +7 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +3 -11
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +12 -44
- data/lib/twilio-ruby/rest/api/v2010/account.rb +52 -226
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +9 -41
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +4 -14
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +11 -50
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -67
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +8 -33
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +6 -26
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +4 -17
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +4 -17
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +11 -48
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -23
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +10 -43
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +11 -47
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +3 -10
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +12 -49
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +13 -58
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +3 -12
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +7 -30
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +8 -30
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +16 -71
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +7 -27
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -42
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +5 -19
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +3 -10
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +5 -19
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +9 -41
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +12 -49
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +8 -35
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +13 -51
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +8 -29
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +13 -60
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +13 -51
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +7 -26
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +8 -31
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +5 -21
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +11 -43
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +9 -41
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +3 -13
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +10 -38
- data/lib/twilio-ruby/rest/chat/v1/service.rb +17 -68
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +15 -73
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +6 -25
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +7 -29
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +8 -34
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +13 -54
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +12 -53
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +4 -14
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +10 -38
- data/lib/twilio-ruby/rest/chat/v2/service.rb +43 -68
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +344 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +14 -68
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +6 -25
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +5 -21
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +5 -21
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +13 -54
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +42 -53
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +361 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +4 -14
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -46
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +9 -37
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +10 -38
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +17 -68
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +15 -73
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +6 -25
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +7 -29
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +8 -34
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +13 -54
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +12 -53
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +4 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +10 -38
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +43 -68
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +344 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +14 -68
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +6 -25
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +5 -21
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +5 -21
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +13 -54
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +42 -53
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +361 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +4 -14
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -30
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +16 -65
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +11 -45
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +11 -45
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +11 -45
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +6 -22
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +6 -22
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +10 -38
- data/lib/twilio-ruby/rest/notify/v1/service.rb +16 -66
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -35
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -13
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +5 -18
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +12 -56
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +3 -12
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +5 -23
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +15 -58
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +4 -18
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +4 -17
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +6 -23
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +5 -18
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -29
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +20 -81
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +13 -58
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +14 -60
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +11 -50
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +14 -62
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -38
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -31
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +10 -38
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +6 -21
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +13 -51
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +8 -27
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +17 -70
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +11 -45
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +14 -70
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +3 -12
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +3 -12
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +5 -19
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +11 -45
- data/lib/twilio-ruby/rest/preview/sync/service.rb +16 -65
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +15 -64
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +7 -29
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +13 -57
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +8 -34
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +7 -29
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +13 -57
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +9 -40
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +7 -29
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -26
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +12 -46
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +8 -31
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +8 -31
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +4 -16
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +8 -29
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +4 -16
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +8 -29
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +6 -23
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +8 -29
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -19
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +17 -70
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +11 -45
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +13 -64
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +3 -12
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +3 -12
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +5 -19
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +11 -45
- data/lib/twilio-ruby/rest/sync/v1/service.rb +18 -74
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +15 -64
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +7 -29
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +13 -57
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +8 -34
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +7 -29
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +13 -57
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +9 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +7 -29
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +11 -45
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +3 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +27 -115
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +13 -56
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +7 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +10 -47
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +5 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +8 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +11 -48
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +3 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +3 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +3 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +17 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +5 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +7 -27
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +4 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +7 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +8 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +14 -65
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +3 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +5 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +3 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +6 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +8 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -23
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +18 -74
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +11 -45
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +10 -39
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +11 -48
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +11 -45
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -22
- data/lib/twilio-ruby/rest/video/v1/room.rb +12 -46
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -30
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +9 -39
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +12 -46
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +9 -35
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -22
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +4 -17
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +1 -3
- data/spec/integration/api/v2010/account/application_spec.rb +1 -3
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -6
- data/spec/integration/api/v2010/account/call_spec.rb +4 -11
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +1 -4
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +1 -3
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +1 -3
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +1 -3
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +1 -3
- data/spec/integration/api/v2010/account/message_spec.rb +2 -6
- data/spec/integration/api/v2010/account/queue/member_spec.rb +1 -4
- data/spec/integration/api/v2010/account/queue_spec.rb +1 -3
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +1 -4
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -6
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +1 -3
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +1 -3
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +1 -3
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +1 -4
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -6
- data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -3
- data/spec/integration/chat/v1/credential_spec.rb +1 -3
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +1 -3
- data/spec/integration/chat/v1/service/channel/member_spec.rb +1 -3
- data/spec/integration/chat/v1/service/channel/message_spec.rb +1 -3
- data/spec/integration/chat/v1/service/role_spec.rb +2 -8
- data/spec/integration/chat/v1/service/user_spec.rb +1 -3
- data/spec/integration/chat/v1/service_spec.rb +1 -3
- data/spec/integration/chat/v2/credential_spec.rb +1 -3
- data/spec/integration/chat/v2/service/binding_spec.rb +175 -0
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +1 -3
- data/spec/integration/chat/v2/service/channel/member_spec.rb +1 -3
- data/spec/integration/chat/v2/service/role_spec.rb +2 -8
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +178 -0
- data/spec/integration/chat/v2/service/user_spec.rb +9 -7
- data/spec/integration/chat/v2/service_spec.rb +9 -7
- data/spec/integration/fax/v1/fax_spec.rb +1 -4
- data/spec/integration/ip_messaging/v1/credential_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -8
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service_spec.rb +1 -3
- data/spec/integration/ip_messaging/v2/credential_spec.rb +1 -3
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +175 -0
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +1 -3
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +1 -3
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +2 -8
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +178 -0
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +9 -7
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -7
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +1 -3
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +1 -3
- data/spec/integration/messaging/v1/service/short_code_spec.rb +1 -3
- data/spec/integration/messaging/v1/service_spec.rb +1 -3
- data/spec/integration/notify/v1/credential_spec.rb +1 -3
- data/spec/integration/notify/v1/service/binding_spec.rb +1 -5
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +1 -3
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +1 -4
- data/spec/integration/notify/v1/service/user_spec.rb +1 -3
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +1 -3
- data/spec/integration/preview/acc_security/service/verification_spec.rb +1 -4
- data/spec/integration/preview/acc_security/service_spec.rb +1 -3
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +1 -3
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +1 -5
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +1 -3
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +1 -3
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +1 -3
- data/spec/integration/preview/proxy/service/short_code_spec.rb +1 -3
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +1 -5
- data/spec/integration/preview/sync/service/document_spec.rb +1 -3
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -6
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +1 -5
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -7
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +1 -5
- data/spec/integration/preview/wireless/command_spec.rb +1 -3
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +1 -3
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +1 -3
- data/spec/integration/proxy/v1/service/short_code_spec.rb +1 -3
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +1 -5
- data/spec/integration/sync/v1/service/document_spec.rb +1 -3
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -6
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +1 -5
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -7
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +1 -5
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +1 -3
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +1 -3
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +1 -3
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +1 -4
- data/spec/integration/taskrouter/v1/workspace_spec.rb +1 -3
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +1 -3
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +1 -3
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +1 -3
- data/spec/integration/video/v1/room_spec.rb +1 -3
- data/spec/integration/wireless/v1/command_spec.rb +1 -3
- metadata +14 -2
@@ -20,9 +20,7 @@ module Twilio
|
|
20
20
|
super(version)
|
21
21
|
|
22
22
|
# Path Solution
|
23
|
-
@solution = {
|
24
|
-
account_sid: account_sid
|
25
|
-
}
|
23
|
+
@solution = {account_sid: account_sid}
|
26
24
|
@uri = "/Accounts/#{@solution[:account_sid]}/Tokens.json"
|
27
25
|
end
|
28
26
|
|
@@ -33,9 +31,7 @@ module Twilio
|
|
33
31
|
# are valid
|
34
32
|
# @return [TokenInstance] Newly created TokenInstance
|
35
33
|
def create(ttl: :unset)
|
36
|
-
data = Twilio::Values.of({
|
37
|
-
'Ttl' => ttl,
|
38
|
-
})
|
34
|
+
data = Twilio::Values.of({'Ttl' => ttl,})
|
39
35
|
|
40
36
|
payload = @version.create(
|
41
37
|
'POST',
|
@@ -43,11 +39,7 @@ module Twilio
|
|
43
39
|
data: data
|
44
40
|
)
|
45
41
|
|
46
|
-
TokenInstance.new(
|
47
|
-
@version,
|
48
|
-
payload,
|
49
|
-
account_sid: @solution[:account_sid],
|
50
|
-
)
|
42
|
+
TokenInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
51
43
|
end
|
52
44
|
|
53
45
|
##
|
@@ -76,11 +68,7 @@ module Twilio
|
|
76
68
|
# @param [Hash] payload Payload response from the API
|
77
69
|
# @return [TokenInstance] TokenInstance
|
78
70
|
def get_instance(payload)
|
79
|
-
TokenInstance.new(
|
80
|
-
@version,
|
81
|
-
payload,
|
82
|
-
account_sid: @solution[:account_sid],
|
83
|
-
)
|
71
|
+
TokenInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
84
72
|
end
|
85
73
|
|
86
74
|
##
|
@@ -20,9 +20,7 @@ module Twilio
|
|
20
20
|
super(version)
|
21
21
|
|
22
22
|
# Path Solution
|
23
|
-
@solution = {
|
24
|
-
account_sid: account_sid
|
25
|
-
}
|
23
|
+
@solution = {account_sid: account_sid}
|
26
24
|
@uri = "/Accounts/#{@solution[:account_sid]}/Transcriptions.json"
|
27
25
|
end
|
28
26
|
|
@@ -38,10 +36,7 @@ module Twilio
|
|
38
36
|
# efficient page size, i.e. min(limit, 1000)
|
39
37
|
# @return [Array] Array of up to limit results
|
40
38
|
def list(limit: nil, page_size: nil)
|
41
|
-
self.stream(
|
42
|
-
limit: limit,
|
43
|
-
page_size: page_size
|
44
|
-
).entries
|
39
|
+
self.stream(limit: limit, page_size: page_size).entries
|
45
40
|
end
|
46
41
|
|
47
42
|
##
|
@@ -58,9 +53,7 @@ module Twilio
|
|
58
53
|
def stream(limit: nil, page_size: nil)
|
59
54
|
limits = @version.read_limits(limit, page_size)
|
60
55
|
|
61
|
-
page = self.page(
|
62
|
-
page_size: limits[:page_size],
|
63
|
-
)
|
56
|
+
page = self.page(page_size: limits[:page_size],)
|
64
57
|
|
65
58
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
66
59
|
end
|
@@ -72,9 +65,7 @@ module Twilio
|
|
72
65
|
def each
|
73
66
|
limits = @version.read_limits
|
74
67
|
|
75
|
-
page = self.page(
|
76
|
-
page_size: limits[:page_size],
|
77
|
-
)
|
68
|
+
page = self.page(page_size: limits[:page_size],)
|
78
69
|
|
79
70
|
@version.stream(page,
|
80
71
|
limit: limits[:limit],
|
@@ -141,11 +132,7 @@ module Twilio
|
|
141
132
|
# @param [Hash] payload Payload response from the API
|
142
133
|
# @return [TranscriptionInstance] TranscriptionInstance
|
143
134
|
def get_instance(payload)
|
144
|
-
TranscriptionInstance.new(
|
145
|
-
@version,
|
146
|
-
payload,
|
147
|
-
account_sid: @solution[:account_sid],
|
148
|
-
)
|
135
|
+
TranscriptionInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
149
136
|
end
|
150
137
|
|
151
138
|
##
|
@@ -166,10 +153,7 @@ module Twilio
|
|
166
153
|
super(version)
|
167
154
|
|
168
155
|
# Path Solution
|
169
|
-
@solution = {
|
170
|
-
account_sid: account_sid,
|
171
|
-
sid: sid,
|
172
|
-
}
|
156
|
+
@solution = {account_sid: account_sid, sid: sid,}
|
173
157
|
@uri = "/Accounts/#{@solution[:account_sid]}/Transcriptions/#{@solution[:sid]}.json"
|
174
158
|
end
|
175
159
|
|
@@ -239,10 +223,7 @@ module Twilio
|
|
239
223
|
|
240
224
|
# Context
|
241
225
|
@instance_context = nil
|
242
|
-
@params = {
|
243
|
-
'account_sid' => account_sid,
|
244
|
-
'sid' => sid || @properties['sid'],
|
245
|
-
}
|
226
|
+
@params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'],}
|
246
227
|
end
|
247
228
|
|
248
229
|
##
|
@@ -251,11 +232,7 @@ module Twilio
|
|
251
232
|
# @return [TranscriptionContext] TranscriptionContext for this TranscriptionInstance
|
252
233
|
def context
|
253
234
|
unless @instance_context
|
254
|
-
@instance_context = TranscriptionContext.new(
|
255
|
-
@version,
|
256
|
-
@params['account_sid'],
|
257
|
-
@params['sid'],
|
258
|
-
)
|
235
|
+
@instance_context = TranscriptionContext.new(@version, @params['account_sid'], @params['sid'],)
|
259
236
|
end
|
260
237
|
@instance_context
|
261
238
|
end
|
@@ -20,9 +20,7 @@ module Twilio
|
|
20
20
|
super(version)
|
21
21
|
|
22
22
|
# Path Solution
|
23
|
-
@solution = {
|
24
|
-
account_sid: account_sid
|
25
|
-
}
|
23
|
+
@solution = {account_sid: account_sid}
|
26
24
|
|
27
25
|
# Components
|
28
26
|
@records = nil
|
@@ -34,10 +32,7 @@ module Twilio
|
|
34
32
|
# @return [RecordList]
|
35
33
|
# @return [RecordContext]
|
36
34
|
def records
|
37
|
-
@records ||= RecordList.new(
|
38
|
-
@version,
|
39
|
-
account_sid: @solution[:account_sid],
|
40
|
-
)
|
35
|
+
@records ||= RecordList.new(@version, account_sid: @solution[:account_sid],)
|
41
36
|
end
|
42
37
|
|
43
38
|
##
|
@@ -49,17 +44,10 @@ module Twilio
|
|
49
44
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
50
45
|
|
51
46
|
if sid != :unset
|
52
|
-
return TriggerContext.new(
|
53
|
-
@version,
|
54
|
-
@solution[:account_sid],
|
55
|
-
sid,
|
56
|
-
)
|
47
|
+
return TriggerContext.new(@version, @solution[:account_sid], sid,)
|
57
48
|
end
|
58
49
|
|
59
|
-
@triggers ||= TriggerList.new(
|
60
|
-
@version,
|
61
|
-
account_sid: @solution[:account_sid],
|
62
|
-
)
|
50
|
+
@triggers ||= TriggerList.new(@version, account_sid: @solution[:account_sid],)
|
63
51
|
end
|
64
52
|
|
65
53
|
##
|
@@ -88,11 +76,7 @@ module Twilio
|
|
88
76
|
# @param [Hash] payload Payload response from the API
|
89
77
|
# @return [UsageInstance] UsageInstance
|
90
78
|
def get_instance(payload)
|
91
|
-
UsageInstance.new(
|
92
|
-
@version,
|
93
|
-
payload,
|
94
|
-
account_sid: @solution[:account_sid],
|
95
|
-
)
|
79
|
+
UsageInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
96
80
|
end
|
97
81
|
|
98
82
|
##
|
@@ -21,9 +21,7 @@ module Twilio
|
|
21
21
|
super(version)
|
22
22
|
|
23
23
|
# Path Solution
|
24
|
-
@solution = {
|
25
|
-
account_sid: account_sid
|
26
|
-
}
|
24
|
+
@solution = {account_sid: account_sid}
|
27
25
|
@uri = "/Accounts/#{@solution[:account_sid]}/Usage/Records.json"
|
28
26
|
|
29
27
|
# Components
|
@@ -107,9 +105,7 @@ module Twilio
|
|
107
105
|
def each
|
108
106
|
limits = @version.read_limits
|
109
107
|
|
110
|
-
page = self.page(
|
111
|
-
page_size: limits[:page_size],
|
112
|
-
)
|
108
|
+
page = self.page(page_size: limits[:page_size],)
|
113
109
|
|
114
110
|
@version.stream(page,
|
115
111
|
limit: limits[:limit],
|
@@ -167,10 +163,7 @@ module Twilio
|
|
167
163
|
# @return [AllTimeList]
|
168
164
|
# @return [AllTimeContext]
|
169
165
|
def all_time
|
170
|
-
@all_time ||= AllTimeList.new(
|
171
|
-
@version,
|
172
|
-
account_sid: @solution[:account_sid],
|
173
|
-
)
|
166
|
+
@all_time ||= AllTimeList.new(@version, account_sid: @solution[:account_sid],)
|
174
167
|
end
|
175
168
|
|
176
169
|
##
|
@@ -178,10 +171,7 @@ module Twilio
|
|
178
171
|
# @return [DailyList]
|
179
172
|
# @return [DailyContext]
|
180
173
|
def daily
|
181
|
-
@daily ||= DailyList.new(
|
182
|
-
@version,
|
183
|
-
account_sid: @solution[:account_sid],
|
184
|
-
)
|
174
|
+
@daily ||= DailyList.new(@version, account_sid: @solution[:account_sid],)
|
185
175
|
end
|
186
176
|
|
187
177
|
##
|
@@ -189,10 +179,7 @@ module Twilio
|
|
189
179
|
# @return [LastMonthList]
|
190
180
|
# @return [LastMonthContext]
|
191
181
|
def last_month
|
192
|
-
@last_month ||= LastMonthList.new(
|
193
|
-
@version,
|
194
|
-
account_sid: @solution[:account_sid],
|
195
|
-
)
|
182
|
+
@last_month ||= LastMonthList.new(@version, account_sid: @solution[:account_sid],)
|
196
183
|
end
|
197
184
|
|
198
185
|
##
|
@@ -200,10 +187,7 @@ module Twilio
|
|
200
187
|
# @return [MonthlyList]
|
201
188
|
# @return [MonthlyContext]
|
202
189
|
def monthly
|
203
|
-
@monthly ||= MonthlyList.new(
|
204
|
-
@version,
|
205
|
-
account_sid: @solution[:account_sid],
|
206
|
-
)
|
190
|
+
@monthly ||= MonthlyList.new(@version, account_sid: @solution[:account_sid],)
|
207
191
|
end
|
208
192
|
|
209
193
|
##
|
@@ -211,10 +195,7 @@ module Twilio
|
|
211
195
|
# @return [ThisMonthList]
|
212
196
|
# @return [ThisMonthContext]
|
213
197
|
def this_month
|
214
|
-
@this_month ||= ThisMonthList.new(
|
215
|
-
@version,
|
216
|
-
account_sid: @solution[:account_sid],
|
217
|
-
)
|
198
|
+
@this_month ||= ThisMonthList.new(@version, account_sid: @solution[:account_sid],)
|
218
199
|
end
|
219
200
|
|
220
201
|
##
|
@@ -222,10 +203,7 @@ module Twilio
|
|
222
203
|
# @return [TodayList]
|
223
204
|
# @return [TodayContext]
|
224
205
|
def today
|
225
|
-
@today ||= TodayList.new(
|
226
|
-
@version,
|
227
|
-
account_sid: @solution[:account_sid],
|
228
|
-
)
|
206
|
+
@today ||= TodayList.new(@version, account_sid: @solution[:account_sid],)
|
229
207
|
end
|
230
208
|
|
231
209
|
##
|
@@ -233,10 +211,7 @@ module Twilio
|
|
233
211
|
# @return [YearlyList]
|
234
212
|
# @return [YearlyContext]
|
235
213
|
def yearly
|
236
|
-
@yearly ||= YearlyList.new(
|
237
|
-
@version,
|
238
|
-
account_sid: @solution[:account_sid],
|
239
|
-
)
|
214
|
+
@yearly ||= YearlyList.new(@version, account_sid: @solution[:account_sid],)
|
240
215
|
end
|
241
216
|
|
242
217
|
##
|
@@ -244,10 +219,7 @@ module Twilio
|
|
244
219
|
# @return [YesterdayList]
|
245
220
|
# @return [YesterdayContext]
|
246
221
|
def yesterday
|
247
|
-
@yesterday ||= YesterdayList.new(
|
248
|
-
@version,
|
249
|
-
account_sid: @solution[:account_sid],
|
250
|
-
)
|
222
|
+
@yesterday ||= YesterdayList.new(@version, account_sid: @solution[:account_sid],)
|
251
223
|
end
|
252
224
|
|
253
225
|
##
|
@@ -276,11 +248,7 @@ module Twilio
|
|
276
248
|
# @param [Hash] payload Payload response from the API
|
277
249
|
# @return [RecordInstance] RecordInstance
|
278
250
|
def get_instance(payload)
|
279
|
-
RecordInstance.new(
|
280
|
-
@version,
|
281
|
-
payload,
|
282
|
-
account_sid: @solution[:account_sid],
|
283
|
-
)
|
251
|
+
RecordInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
284
252
|
end
|
285
253
|
|
286
254
|
##
|
@@ -22,9 +22,7 @@ module Twilio
|
|
22
22
|
super(version)
|
23
23
|
|
24
24
|
# Path Solution
|
25
|
-
@solution = {
|
26
|
-
account_sid: account_sid
|
27
|
-
}
|
25
|
+
@solution = {account_sid: account_sid}
|
28
26
|
@uri = "/Accounts/#{@solution[:account_sid]}/Usage/Records/AllTime.json"
|
29
27
|
end
|
30
28
|
|
@@ -86,9 +84,7 @@ module Twilio
|
|
86
84
|
def each
|
87
85
|
limits = @version.read_limits
|
88
86
|
|
89
|
-
page = self.page(
|
90
|
-
page_size: limits[:page_size],
|
91
|
-
)
|
87
|
+
page = self.page(page_size: limits[:page_size],)
|
92
88
|
|
93
89
|
@version.stream(page,
|
94
90
|
limit: limits[:limit],
|
@@ -161,11 +157,7 @@ module Twilio
|
|
161
157
|
# @param [Hash] payload Payload response from the API
|
162
158
|
# @return [AllTimeInstance] AllTimeInstance
|
163
159
|
def get_instance(payload)
|
164
|
-
AllTimeInstance.new(
|
165
|
-
@version,
|
166
|
-
payload,
|
167
|
-
account_sid: @solution[:account_sid],
|
168
|
-
)
|
160
|
+
AllTimeInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
169
161
|
end
|
170
162
|
|
171
163
|
##
|
@@ -22,9 +22,7 @@ module Twilio
|
|
22
22
|
super(version)
|
23
23
|
|
24
24
|
# Path Solution
|
25
|
-
@solution = {
|
26
|
-
account_sid: account_sid
|
27
|
-
}
|
25
|
+
@solution = {account_sid: account_sid}
|
28
26
|
@uri = "/Accounts/#{@solution[:account_sid]}/Usage/Records/Daily.json"
|
29
27
|
end
|
30
28
|
|
@@ -86,9 +84,7 @@ module Twilio
|
|
86
84
|
def each
|
87
85
|
limits = @version.read_limits
|
88
86
|
|
89
|
-
page = self.page(
|
90
|
-
page_size: limits[:page_size],
|
91
|
-
)
|
87
|
+
page = self.page(page_size: limits[:page_size],)
|
92
88
|
|
93
89
|
@version.stream(page,
|
94
90
|
limit: limits[:limit],
|
@@ -161,11 +157,7 @@ module Twilio
|
|
161
157
|
# @param [Hash] payload Payload response from the API
|
162
158
|
# @return [DailyInstance] DailyInstance
|
163
159
|
def get_instance(payload)
|
164
|
-
DailyInstance.new(
|
165
|
-
@version,
|
166
|
-
payload,
|
167
|
-
account_sid: @solution[:account_sid],
|
168
|
-
)
|
160
|
+
DailyInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
169
161
|
end
|
170
162
|
|
171
163
|
##
|
@@ -22,9 +22,7 @@ module Twilio
|
|
22
22
|
super(version)
|
23
23
|
|
24
24
|
# Path Solution
|
25
|
-
@solution = {
|
26
|
-
account_sid: account_sid
|
27
|
-
}
|
25
|
+
@solution = {account_sid: account_sid}
|
28
26
|
@uri = "/Accounts/#{@solution[:account_sid]}/Usage/Records/LastMonth.json"
|
29
27
|
end
|
30
28
|
|
@@ -86,9 +84,7 @@ module Twilio
|
|
86
84
|
def each
|
87
85
|
limits = @version.read_limits
|
88
86
|
|
89
|
-
page = self.page(
|
90
|
-
page_size: limits[:page_size],
|
91
|
-
)
|
87
|
+
page = self.page(page_size: limits[:page_size],)
|
92
88
|
|
93
89
|
@version.stream(page,
|
94
90
|
limit: limits[:limit],
|
@@ -161,11 +157,7 @@ module Twilio
|
|
161
157
|
# @param [Hash] payload Payload response from the API
|
162
158
|
# @return [LastMonthInstance] LastMonthInstance
|
163
159
|
def get_instance(payload)
|
164
|
-
LastMonthInstance.new(
|
165
|
-
@version,
|
166
|
-
payload,
|
167
|
-
account_sid: @solution[:account_sid],
|
168
|
-
)
|
160
|
+
LastMonthInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
169
161
|
end
|
170
162
|
|
171
163
|
##
|
@@ -22,9 +22,7 @@ module Twilio
|
|
22
22
|
super(version)
|
23
23
|
|
24
24
|
# Path Solution
|
25
|
-
@solution = {
|
26
|
-
account_sid: account_sid
|
27
|
-
}
|
25
|
+
@solution = {account_sid: account_sid}
|
28
26
|
@uri = "/Accounts/#{@solution[:account_sid]}/Usage/Records/Monthly.json"
|
29
27
|
end
|
30
28
|
|
@@ -86,9 +84,7 @@ module Twilio
|
|
86
84
|
def each
|
87
85
|
limits = @version.read_limits
|
88
86
|
|
89
|
-
page = self.page(
|
90
|
-
page_size: limits[:page_size],
|
91
|
-
)
|
87
|
+
page = self.page(page_size: limits[:page_size],)
|
92
88
|
|
93
89
|
@version.stream(page,
|
94
90
|
limit: limits[:limit],
|
@@ -161,11 +157,7 @@ module Twilio
|
|
161
157
|
# @param [Hash] payload Payload response from the API
|
162
158
|
# @return [MonthlyInstance] MonthlyInstance
|
163
159
|
def get_instance(payload)
|
164
|
-
MonthlyInstance.new(
|
165
|
-
@version,
|
166
|
-
payload,
|
167
|
-
account_sid: @solution[:account_sid],
|
168
|
-
)
|
160
|
+
MonthlyInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
169
161
|
end
|
170
162
|
|
171
163
|
##
|