wavix-ruby-sdk 1.0.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +5 -4
- data/.fern/replay.lock +22 -0
- data/.fernignore +4 -0
- data/lib/wavix/api_keys/client.rb +1 -1
- data/lib/wavix/billing/invoices/client.rb +2 -2
- data/lib/wavix/billing/transactions/client.rb +2 -2
- data/lib/wavix/buy/cities/client.rb +2 -2
- data/lib/wavix/buy/countries/client.rb +2 -2
- data/lib/wavix/buy/numbers/client.rb +2 -2
- data/lib/wavix/buy/region_cities/client.rb +2 -2
- data/lib/wavix/buy/regions/client.rb +2 -2
- data/lib/wavix/call_control/audio/client.rb +2 -1
- data/lib/wavix/call_control/client.rb +4 -3
- data/lib/wavix/call_control/streams/client.rb +3 -2
- data/lib/wavix/call_control/types/call_dtmf_collect_request_prompt_say.rb +3 -1
- data/lib/wavix/call_recording/client.rb +1 -1
- data/lib/wavix/call_webhooks/client.rb +15 -1
- data/lib/wavix/call_webhooks/types/call_webhooks_create_request.rb +2 -0
- data/lib/wavix/call_webhooks/types/delete_call_webhooks_request.rb +2 -0
- data/lib/wavix/cart/client.rb +9 -9
- data/lib/wavix/cdrs/client.rb +3 -1
- data/lib/wavix/cdrs/types/cdr_search_request.rb +3 -3
- data/lib/wavix/client.rb +1 -1
- data/lib/wavix/number_validator/client.rb +6 -3
- data/lib/wavix/number_validator/types/phone_validation_request.rb +2 -2
- data/lib/wavix/numbers/client.rb +9 -2
- data/lib/wavix/numbers/types/number_update_request.rb +2 -0
- data/lib/wavix/profile/config/client.rb +2 -2
- data/lib/wavix/sip_trunks/client.rb +9 -7
- data/lib/wavix/sip_trunks/types/sip_trunk_create_request.rb +53 -0
- data/lib/wavix/sip_trunks/types/sip_trunk_create_request_allowed_ips_item.rb +11 -0
- data/lib/wavix/sip_trunks/types/sip_trunk_create_request_host_request.rb +13 -0
- data/lib/wavix/sip_trunks/types/sip_trunk_update_request.rb +55 -0
- data/lib/wavix/sip_trunks/types/sip_trunk_update_request_allowed_ips_item.rb +11 -0
- data/lib/wavix/sip_trunks/types/sip_trunk_update_request_host_request.rb +14 -0
- data/lib/wavix/sms_and_mms/messages/client.rb +6 -6
- data/lib/wavix/sms_and_mms/opt_outs/client.rb +2 -2
- data/lib/wavix/sms_and_mms/sender_ids/client.rb +4 -3
- data/lib/wavix/speech_analytics/client.rb +4 -4
- data/lib/wavix/sub_accounts/client.rb +5 -1
- data/lib/wavix/sub_accounts/types/list_sub_accounts_request.rb +4 -0
- data/lib/wavix/sub_accounts/types/sub_accounts_update_request.rb +1 -1
- data/lib/wavix/ten_dlc/brand_appeals/client.rb +2 -2
- data/lib/wavix/ten_dlc/brand_appeals/types/create_brand_appeals_request.rb +1 -1
- data/lib/wavix/ten_dlc/brand_appeals/types/create_brand_appeals_request_appeal_categories_item.rb +17 -0
- data/lib/wavix/ten_dlc/brand_evidence/client.rb +4 -4
- data/lib/wavix/ten_dlc/brand_vetting_appeals/client.rb +2 -2
- data/lib/wavix/ten_dlc/brand_vetting_appeals/types/ten_dlc_brand_vetting_appeal_create_request.rb +1 -1
- data/lib/wavix/ten_dlc/brand_vetting_appeals/types/ten_dlc_brand_vetting_appeal_create_request_appeal_categories_item.rb +18 -0
- data/lib/wavix/ten_dlc/brand_vettings/client.rb +2 -1
- data/lib/wavix/ten_dlc/brands/client.rb +16 -14
- data/lib/wavix/ten_dlc/campaign_numbers/client.rb +6 -6
- data/lib/wavix/ten_dlc/campaigns/client.rb +12 -12
- data/lib/wavix/ten_dlc/campaigns/types/ten_dlc_campaign_create_request.rb +6 -6
- data/lib/wavix/ten_dlc/subscriptions/client.rb +4 -4
- data/lib/wavix/two_fa/verification/client.rb +11 -9
- data/lib/wavix/types/{document_type_id.rb → api_key_with_secret.rb} +2 -2
- data/lib/wavix/types/available_number.rb +1 -1
- data/lib/wavix/types/cart_response.rb +1 -1
- data/lib/wavix/types/cdr_transcription_response.rb +1 -1
- data/lib/wavix/types/document_type.rb +5 -5
- data/lib/wavix/types/document_type_info.rb +14 -0
- data/lib/wavix/types/file_transcription_response.rb +2 -2
- data/lib/wavix/types/message_body.rb +1 -1
- data/lib/wavix/types/number.rb +1 -1
- data/lib/wavix/types/number_document.rb +1 -1
- data/lib/wavix/types/number_list_response.rb +1 -1
- data/lib/wavix/types/ten_dlc_brand.rb +1 -1
- data/lib/wavix/types/ten_dlc_brand_appeal_create_request.rb +1 -1
- data/lib/wavix/types/ten_dlc_brand_appeal_create_request_appeal_categories_item.rb +13 -0
- data/lib/wavix/types/ten_dlc_brand_appeal_outcome.rb +1 -1
- data/lib/wavix/types/{not_found_error_body.rb → too_many_requests_error_response.rb} +1 -1
- data/lib/wavix/types/transcription_filter.rb +3 -3
- data/lib/wavix/types/unprocessable_entity_error_body.rb +2 -2
- data/lib/wavix/types/webhook_in_use_error_response.rb +14 -0
- data/lib/wavix/types/whats_app_business_account.rb +16 -0
- data/lib/wavix/types/whats_app_business_account_messaging_limit.rb +15 -0
- data/lib/wavix/types/whats_app_message.rb +20 -0
- data/lib/wavix/types/whats_app_message_get_response.rb +10 -0
- data/lib/wavix/types/whats_app_message_list_item.rb +23 -0
- data/lib/wavix/types/whats_app_message_list_item_direction.rb +12 -0
- data/lib/wavix/types/whats_app_message_list_item_status.rb +16 -0
- data/lib/wavix/types/whats_app_message_list_response.rb +12 -0
- data/lib/wavix/types/whats_app_message_send_request.rb +16 -0
- data/lib/wavix/types/whats_app_message_send_response.rb +10 -0
- data/lib/wavix/types/whats_app_message_status.rb +16 -0
- data/lib/wavix/types/whats_app_message_template.rb +12 -0
- data/lib/wavix/types/whats_app_problem.rb +23 -0
- data/lib/wavix/types/whats_app_problem_error_class.rb +14 -0
- data/lib/wavix/types/whats_app_send_template.rb +18 -0
- data/lib/wavix/types/whats_app_send_template_button.rb +27 -0
- data/lib/wavix/types/whats_app_send_template_button_type.rb +18 -0
- data/lib/wavix/types/whats_app_send_template_header.rb +26 -0
- data/lib/wavix/types/whats_app_send_template_header_type.rb +16 -0
- data/lib/wavix/types/whats_app_sender.rb +19 -0
- data/lib/wavix/types/whats_app_sender_list_response.rb +12 -0
- data/lib/wavix/types/whats_app_sender_quality_rating.rb +14 -0
- data/lib/wavix/types/whats_app_sender_status.rb +21 -0
- data/lib/wavix/types/whats_app_template.rb +29 -0
- data/lib/wavix/types/whats_app_template_body_component_request.rb +12 -0
- data/lib/wavix/types/whats_app_template_body_component_request_example.rb +10 -0
- data/lib/wavix/types/whats_app_template_button_request.rb +21 -0
- data/lib/wavix/types/whats_app_template_buttons_component_request.rb +10 -0
- data/lib/wavix/types/whats_app_template_category.rb +13 -0
- data/lib/wavix/types/whats_app_template_component_request.rb +21 -0
- data/lib/wavix/types/whats_app_template_copy_code_button_request.rb +10 -0
- data/lib/wavix/types/whats_app_template_create_request.rb +20 -0
- data/lib/wavix/types/whats_app_template_create_request_category.rb +13 -0
- data/lib/wavix/types/whats_app_template_footer_component_request.rb +10 -0
- data/lib/wavix/types/whats_app_template_header_component_request.rb +23 -0
- data/lib/wavix/types/whats_app_template_location_header_component_request.rb +11 -0
- data/lib/wavix/types/{file_transcription_response_status.rb → whats_app_template_location_header_component_request_type.rb} +2 -3
- data/lib/wavix/types/whats_app_template_media_header_component_request.rb +12 -0
- data/lib/wavix/types/whats_app_template_media_header_component_request_example.rb +10 -0
- data/lib/wavix/types/whats_app_template_media_header_component_request_type.rb +11 -0
- data/lib/wavix/types/whats_app_template_page_response.rb +12 -0
- data/lib/wavix/types/whats_app_template_phone_number_button_request.rb +12 -0
- data/lib/wavix/types/whats_app_template_quality_rating.rb +14 -0
- data/lib/wavix/types/whats_app_template_quick_reply_button_request.rb +10 -0
- data/lib/wavix/types/whats_app_template_response.rb +10 -0
- data/lib/wavix/types/whats_app_template_response_component.rb +20 -0
- data/lib/wavix/types/whats_app_template_response_component_format.rb +15 -0
- data/lib/wavix/types/whats_app_template_status.rb +21 -0
- data/lib/wavix/types/whats_app_template_text_header_component_request.rb +14 -0
- data/lib/wavix/types/whats_app_template_text_header_component_request_example.rb +10 -0
- data/lib/wavix/types/whats_app_template_text_header_component_request_type.rb +11 -0
- data/lib/wavix/types/whats_app_template_url_button_request.rb +14 -0
- data/lib/wavix/types/whats_app_waba.rb +12 -0
- data/lib/wavix/types/whats_app_waba_list_response.rb +12 -0
- data/lib/wavix/version.rb +1 -1
- data/lib/wavix/voice_campaigns/client.rb +2 -2
- data/lib/wavix/webrtc/tokens/client.rb +11 -3
- data/lib/wavix/webrtc/tokens/types/list_tokens_request.rb +15 -0
- data/lib/wavix/webrtc/tokens/types/web_rtc_token_create_request.rb +1 -1
- data/lib/wavix.rb +89 -87
- data/reference.md +512 -116
- metadata +71 -68
- data/lib/wavix/billing/invoices/types/list_invoices_response.rb +0 -17
- data/lib/wavix/billing/transactions/types/list_transactions_response.rb +0 -17
- data/lib/wavix/buy/cities/types/list_cities_response.rb +0 -13
- data/lib/wavix/buy/countries/types/list_countries_response.rb +0 -13
- data/lib/wavix/buy/numbers/types/list_numbers_response.rb +0 -15
- data/lib/wavix/buy/region_cities/types/list_region_cities_response.rb +0 -13
- data/lib/wavix/buy/regions/types/list_regions_response.rb +0 -13
- data/lib/wavix/cart/types/checkout_cart_response.rb +0 -11
- data/lib/wavix/cart/types/get_cart_response.rb +0 -13
- data/lib/wavix/cart/types/remove_cart_response.rb +0 -11
- data/lib/wavix/cdrs/types/cdr_search_request_disposition.rb +0 -17
- data/lib/wavix/number_validator/types/get_number_validator_response.rb +0 -43
- data/lib/wavix/numbers/types/delete_numbers_response.rb +0 -11
- data/lib/wavix/profile/config/types/get_config_response.rb +0 -15
- data/lib/wavix/sip_trunks/types/update_sip_trunks_request.rb +0 -13
- data/lib/wavix/sms_and_mms/messages/types/get_messages_response.rb +0 -45
- data/lib/wavix/sms_and_mms/messages/types/list_messages_response.rb +0 -15
- data/lib/wavix/sms_and_mms/opt_outs/types/create_opt_outs_response.rb +0 -13
- data/lib/wavix/sms_and_mms/sender_ids/types/delete_sender_ids_response.rb +0 -13
- data/lib/wavix/speech_analytics/types/create_speech_analytics_response.rb +0 -15
- data/lib/wavix/speech_analytics/types/get_speech_analytics_response.rb +0 -31
- data/lib/wavix/speech_analytics/types/get_speech_analytics_response_language.rb +0 -17
- data/lib/wavix/speech_analytics/types/get_speech_analytics_response_status.rb +0 -14
- data/lib/wavix/ten_dlc/brand_appeals/types/create_brand_appeals_response.rb +0 -13
- data/lib/wavix/ten_dlc/brand_evidence/types/delete_brand_evidence_response.rb +0 -13
- data/lib/wavix/ten_dlc/brand_evidence/types/upload_brand_evidence_response.rb +0 -19
- data/lib/wavix/ten_dlc/brand_vetting_appeals/types/create_brand_vetting_appeals_response.rb +0 -13
- data/lib/wavix/ten_dlc/brands/types/create_brands_response.rb +0 -61
- data/lib/wavix/ten_dlc/brands/types/create_brands_response_entity_type.rb +0 -18
- data/lib/wavix/ten_dlc/brands/types/create_brands_response_status.rb +0 -19
- data/lib/wavix/ten_dlc/brands/types/delete_brands_response.rb +0 -13
- data/lib/wavix/ten_dlc/brands/types/get_brands_response.rb +0 -61
- data/lib/wavix/ten_dlc/brands/types/get_brands_response_entity_type.rb +0 -18
- data/lib/wavix/ten_dlc/brands/types/get_brands_response_status.rb +0 -19
- data/lib/wavix/ten_dlc/brands/types/list_brands_response.rb +0 -16
- data/lib/wavix/ten_dlc/brands/types/list_brands_response_pagination.rb +0 -20
- data/lib/wavix/ten_dlc/brands/types/qualify_usecase_brands_response.rb +0 -17
- data/lib/wavix/ten_dlc/brands/types/update_brands_response.rb +0 -61
- data/lib/wavix/ten_dlc/brands/types/update_brands_response_entity_type.rb +0 -18
- data/lib/wavix/ten_dlc/brands/types/update_brands_response_status.rb +0 -19
- data/lib/wavix/ten_dlc/campaign_numbers/types/link_campaign_numbers_response.rb +0 -13
- data/lib/wavix/ten_dlc/campaign_numbers/types/list_campaign_numbers_response.rb +0 -17
- data/lib/wavix/ten_dlc/campaign_numbers/types/unlink_campaign_numbers_response.rb +0 -13
- data/lib/wavix/ten_dlc/campaigns/types/create_campaigns_response.rb +0 -89
- data/lib/wavix/ten_dlc/campaigns/types/delete_campaigns_response.rb +0 -13
- data/lib/wavix/ten_dlc/campaigns/types/get_campaigns_response.rb +0 -89
- data/lib/wavix/ten_dlc/campaigns/types/list_by_brand_campaigns_response.rb +0 -16
- data/lib/wavix/ten_dlc/campaigns/types/list_by_brand_campaigns_response_pagination.rb +0 -20
- data/lib/wavix/ten_dlc/campaigns/types/list_campaigns_response.rb +0 -16
- data/lib/wavix/ten_dlc/campaigns/types/list_campaigns_response_pagination.rb +0 -20
- data/lib/wavix/ten_dlc/campaigns/types/update_campaigns_response.rb +0 -89
- data/lib/wavix/ten_dlc/subscriptions/types/create_subscriptions_response.rb +0 -16
- data/lib/wavix/ten_dlc/subscriptions/types/delete_subscriptions_response.rb +0 -13
- data/lib/wavix/two_fa/verification/types/check_verification_response.rb +0 -13
- data/lib/wavix/two_fa/verification/types/create_verification_response.rb +0 -25
- data/lib/wavix/two_fa/verification/types/resend_verification_response.rb +0 -19
- data/lib/wavix/types/bad_request_error_body.rb +0 -11
- data/lib/wavix/types/file_transcription_response_language.rb +0 -15
- data/lib/wavix/types/sip_trunk_create_request.rb +0 -51
- data/lib/wavix/types/sip_trunk_create_request_allowed_ips_item.rb +0 -9
- data/lib/wavix/types/sip_trunk_create_request_host_request.rb +0 -11
- data/lib/wavix/types/ten_dlc_brand_appeal_outcome_vetting_status.rb +0 -15
- data/lib/wavix/types/ten_dlc_brand_status.rb +0 -15
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Wavix
|
|
4
|
+
module SipTrunks
|
|
5
|
+
module Types
|
|
6
|
+
class SipTrunkCreateRequest < Internal::Types::Model
|
|
7
|
+
field :label, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :password, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :host_request, -> { Wavix::SipTrunks::Types::SipTrunkCreateRequestHostRequest }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :callerid, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :multiple_numbers, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :ip_restrict, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :allowed_ips, -> { Internal::Types::Array[Wavix::SipTrunks::Types::SipTrunkCreateRequestAllowedIpsItem] }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :didinfo_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
22
|
+
|
|
23
|
+
field :call_restrict, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
24
|
+
|
|
25
|
+
field :call_limit, -> { Integer }, optional: true, nullable: false
|
|
26
|
+
|
|
27
|
+
field :cost_limit, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
28
|
+
|
|
29
|
+
field :max_call_cost, -> { Integer }, optional: true, nullable: false
|
|
30
|
+
|
|
31
|
+
field :channels_restrict, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
32
|
+
|
|
33
|
+
field :max_channels, -> { Integer }, optional: true, nullable: false
|
|
34
|
+
|
|
35
|
+
field :rewrite_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
36
|
+
|
|
37
|
+
field :rewrite_prefix, -> { String }, optional: true, nullable: false
|
|
38
|
+
|
|
39
|
+
field :rewrite_cond, -> { String }, optional: true, nullable: false
|
|
40
|
+
|
|
41
|
+
field :call_recording_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
42
|
+
|
|
43
|
+
field :transcription_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
44
|
+
|
|
45
|
+
field :transcription_threshold, -> { Integer }, optional: false, nullable: false
|
|
46
|
+
|
|
47
|
+
field :machine_detection_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
48
|
+
|
|
49
|
+
field :encrypted_media, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Wavix
|
|
4
|
+
module SipTrunks
|
|
5
|
+
module Types
|
|
6
|
+
# For SIP trunks with IP authentication, includes the SIP endpoint public static IP address and the status of the
|
|
7
|
+
# authentication request. Wavix authenticates all SIP traffic originating from this IP address.
|
|
8
|
+
class SipTrunkCreateRequestHostRequest < Internal::Types::Model
|
|
9
|
+
field :host, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Wavix
|
|
4
|
+
module SipTrunks
|
|
5
|
+
module Types
|
|
6
|
+
class SipTrunkUpdateRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { Integer }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :label, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :password, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :host_request, -> { Wavix::SipTrunks::Types::SipTrunkUpdateRequestHostRequest }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :callerid, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :multiple_numbers, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :ip_restrict, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :allowed_ips, -> { Internal::Types::Array[Wavix::SipTrunks::Types::SipTrunkUpdateRequestAllowedIpsItem] }, optional: true, nullable: false
|
|
22
|
+
|
|
23
|
+
field :didinfo_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
24
|
+
|
|
25
|
+
field :call_restrict, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
26
|
+
|
|
27
|
+
field :call_limit, -> { Integer }, optional: true, nullable: false
|
|
28
|
+
|
|
29
|
+
field :cost_limit, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
30
|
+
|
|
31
|
+
field :max_call_cost, -> { Integer }, optional: true, nullable: false
|
|
32
|
+
|
|
33
|
+
field :channels_restrict, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
34
|
+
|
|
35
|
+
field :max_channels, -> { Integer }, optional: true, nullable: false
|
|
36
|
+
|
|
37
|
+
field :rewrite_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
38
|
+
|
|
39
|
+
field :rewrite_prefix, -> { String }, optional: true, nullable: false
|
|
40
|
+
|
|
41
|
+
field :rewrite_cond, -> { String }, optional: true, nullable: false
|
|
42
|
+
|
|
43
|
+
field :call_recording_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
44
|
+
|
|
45
|
+
field :transcription_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
46
|
+
|
|
47
|
+
field :transcription_threshold, -> { Integer }, optional: true, nullable: false
|
|
48
|
+
|
|
49
|
+
field :machine_detection_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
50
|
+
|
|
51
|
+
field :encrypted_media, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Wavix
|
|
4
|
+
module SipTrunks
|
|
5
|
+
module Types
|
|
6
|
+
# For SIP trunks with IP authentication, the SIP endpoint public static IP address. Wavix authenticates all SIP
|
|
7
|
+
# traffic originating from this IP address. Ignored when the trunk already has a host request that is pending or
|
|
8
|
+
# approved. Not supported on trial accounts.
|
|
9
|
+
class SipTrunkUpdateRequestHostRequest < Internal::Types::Model
|
|
10
|
+
field :host, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -32,7 +32,7 @@ module Wavix
|
|
|
32
32
|
# @option params [Integer, nil] :page
|
|
33
33
|
# @option params [Integer, nil] :per_page
|
|
34
34
|
#
|
|
35
|
-
# @return [Wavix::
|
|
35
|
+
# @return [Wavix::Types::MessageListResponse]
|
|
36
36
|
def list(request_options: {}, **params)
|
|
37
37
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
38
38
|
query_params = {}
|
|
@@ -61,7 +61,7 @@ module Wavix
|
|
|
61
61
|
end
|
|
62
62
|
code = response.code.to_i
|
|
63
63
|
if code.between?(200, 299)
|
|
64
|
-
Wavix::
|
|
64
|
+
Wavix::Types::MessageListResponse.load(response.body)
|
|
65
65
|
else
|
|
66
66
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
67
67
|
raise error_class.new(response.body, code: code)
|
|
@@ -69,8 +69,8 @@ module Wavix
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# Sends an SMS or MMS message. MMS is supported for U.S. numbers only. Track delivery using the returned
|
|
72
|
-
# `message_id` and the message status callback.
|
|
73
|
-
#
|
|
72
|
+
# `message_id` and the message status callback. The recipient must be opted in to receive messages from the
|
|
73
|
+
# account; sending to an opted-out number fails.
|
|
74
74
|
#
|
|
75
75
|
# @param request_options [Hash]
|
|
76
76
|
# @param params [Wavix::SmsAndMms::Messages::Types::SendMessagesRequest]
|
|
@@ -115,7 +115,7 @@ module Wavix
|
|
|
115
115
|
# @option request_options [Integer] :timeout_in_seconds
|
|
116
116
|
# @option params [String] :id
|
|
117
117
|
#
|
|
118
|
-
# @return [Wavix::
|
|
118
|
+
# @return [Wavix::Types::MessageResponse]
|
|
119
119
|
def get(request_options: {}, **params)
|
|
120
120
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
121
121
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -131,7 +131,7 @@ module Wavix
|
|
|
131
131
|
end
|
|
132
132
|
code = response.code.to_i
|
|
133
133
|
if code.between?(200, 299)
|
|
134
|
-
Wavix::
|
|
134
|
+
Wavix::Types::MessageResponse.load(response.body)
|
|
135
135
|
else
|
|
136
136
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
137
137
|
raise error_class.new(response.body, code: code)
|
|
@@ -70,7 +70,7 @@ module Wavix
|
|
|
70
70
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
71
71
|
# @option request_options [Integer] :timeout_in_seconds
|
|
72
72
|
#
|
|
73
|
-
# @return [Wavix::
|
|
73
|
+
# @return [Wavix::Types::SuccessResponse]
|
|
74
74
|
def create(request_options: {}, **params)
|
|
75
75
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
76
76
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -87,7 +87,7 @@ module Wavix
|
|
|
87
87
|
end
|
|
88
88
|
code = response.code.to_i
|
|
89
89
|
if code.between?(200, 299)
|
|
90
|
-
Wavix::
|
|
90
|
+
Wavix::Types::SuccessResponse.load(response.body)
|
|
91
91
|
else
|
|
92
92
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
93
93
|
raise error_class.new(response.body, code: code)
|
|
@@ -43,7 +43,8 @@ module Wavix
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
# Creates a Sender ID. Use the 10DLC API to create Sender IDs in the US.
|
|
46
|
+
# Creates a Sender ID. Use the 10DLC API to create Sender IDs in the US. Registering a Sender ID incurs a
|
|
47
|
+
# recurring monthly fee, billed to the account balance.
|
|
47
48
|
#
|
|
48
49
|
# @param request_options [Hash]
|
|
49
50
|
# @param params [Wavix::SmsAndMms::SenderIDs::Types::SenderIDCreateRequest]
|
|
@@ -122,7 +123,7 @@ module Wavix
|
|
|
122
123
|
# @option request_options [Integer] :timeout_in_seconds
|
|
123
124
|
# @option params [String] :id
|
|
124
125
|
#
|
|
125
|
-
# @return [Wavix::
|
|
126
|
+
# @return [Wavix::Types::SuccessResponse]
|
|
126
127
|
def delete(request_options: {}, **params)
|
|
127
128
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
128
129
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -138,7 +139,7 @@ module Wavix
|
|
|
138
139
|
end
|
|
139
140
|
code = response.code.to_i
|
|
140
141
|
if code.between?(200, 299)
|
|
141
|
-
Wavix::
|
|
142
|
+
Wavix::Types::SuccessResponse.load(response.body)
|
|
142
143
|
else
|
|
143
144
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
144
145
|
raise error_class.new(response.body, code: code)
|
|
@@ -34,7 +34,7 @@ module Wavix
|
|
|
34
34
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
35
35
|
# @option request_options [Integer] :timeout_in_seconds
|
|
36
36
|
#
|
|
37
|
-
# @return [Wavix::
|
|
37
|
+
# @return [Wavix::Types::SubmitFileTranscriptionResponse]
|
|
38
38
|
def create(request_options: {}, **params)
|
|
39
39
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
40
40
|
body = Internal::Multipart::FormData.new
|
|
@@ -67,7 +67,7 @@ module Wavix
|
|
|
67
67
|
end
|
|
68
68
|
code = response.code.to_i
|
|
69
69
|
if code.between?(200, 299)
|
|
70
|
-
Wavix::
|
|
70
|
+
Wavix::Types::SubmitFileTranscriptionResponse.load(response.body)
|
|
71
71
|
else
|
|
72
72
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
73
73
|
raise error_class.new(response.body, code: code)
|
|
@@ -86,7 +86,7 @@ module Wavix
|
|
|
86
86
|
# @option request_options [Integer] :timeout_in_seconds
|
|
87
87
|
# @option params [String] :request_id
|
|
88
88
|
#
|
|
89
|
-
# @return [Wavix::
|
|
89
|
+
# @return [Wavix::Types::FileTranscriptionResponse]
|
|
90
90
|
def get(request_options: {}, **params)
|
|
91
91
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
92
92
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -102,7 +102,7 @@ module Wavix
|
|
|
102
102
|
end
|
|
103
103
|
code = response.code.to_i
|
|
104
104
|
if code.between?(200, 299)
|
|
105
|
-
Wavix::
|
|
105
|
+
Wavix::Types::FileTranscriptionResponse.load(response.body)
|
|
106
106
|
else
|
|
107
107
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
108
108
|
raise error_class.new(response.body, code: code)
|
|
@@ -20,12 +20,16 @@ module Wavix
|
|
|
20
20
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
21
21
|
# @option request_options [Integer] :timeout_in_seconds
|
|
22
22
|
# @option params [Wavix::SubAccounts::Types::ListSubAccountsRequestStatus, nil] :status
|
|
23
|
+
# @option params [Integer, nil] :page
|
|
24
|
+
# @option params [Integer, nil] :per_page
|
|
23
25
|
#
|
|
24
26
|
# @return [Wavix::Types::SubAccountsListResponse]
|
|
25
27
|
def list(request_options: {}, **params)
|
|
26
28
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
27
29
|
query_params = {}
|
|
28
30
|
query_params["status"] = params[:status] if params.key?(:status)
|
|
31
|
+
query_params["page"] = params[:page] if params.key?(:page)
|
|
32
|
+
query_params["per_page"] = params[:per_page] if params.key?(:per_page)
|
|
29
33
|
|
|
30
34
|
request = Wavix::Internal::JSON::Request.new(
|
|
31
35
|
base_url: request_options[:base_url],
|
|
@@ -117,7 +121,7 @@ module Wavix
|
|
|
117
121
|
end
|
|
118
122
|
end
|
|
119
123
|
|
|
120
|
-
#
|
|
124
|
+
# Updates the sub-account identified by `id`. Only the provided fields are changed.
|
|
121
125
|
#
|
|
122
126
|
# @param request_options [Hash]
|
|
123
127
|
# @param params [Wavix::SubAccounts::Types::SubAccountsUpdateRequest]
|
|
@@ -5,6 +5,10 @@ module Wavix
|
|
|
5
5
|
module Types
|
|
6
6
|
class ListSubAccountsRequest < Internal::Types::Model
|
|
7
7
|
field :status, -> { Wavix::SubAccounts::Types::ListSubAccountsRequestStatus }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :page, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :per_page, -> { Integer }, optional: true, nullable: false
|
|
8
12
|
end
|
|
9
13
|
end
|
|
10
14
|
end
|
|
@@ -6,7 +6,7 @@ module Wavix
|
|
|
6
6
|
class SubAccountsUpdateRequest < Internal::Types::Model
|
|
7
7
|
field :id, -> { Integer }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
-
field :name, -> { String }, optional:
|
|
9
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
10
10
|
|
|
11
11
|
field :status, -> { Wavix::SubAccounts::Types::SubAccountsUpdateRequestStatus }, optional: true, nullable: false
|
|
12
12
|
|
|
@@ -60,7 +60,7 @@ module Wavix
|
|
|
60
60
|
# @option request_options [Integer] :timeout_in_seconds
|
|
61
61
|
# @option params [String] :brand_id
|
|
62
62
|
#
|
|
63
|
-
# @return [Wavix::
|
|
63
|
+
# @return [Wavix::Types::SuccessResponse]
|
|
64
64
|
def create(request_options: {}, **params)
|
|
65
65
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
66
66
|
request_data = Wavix::TenDlc::BrandAppeals::Types::CreateBrandAppealsRequest.new(params).to_h
|
|
@@ -81,7 +81,7 @@ module Wavix
|
|
|
81
81
|
end
|
|
82
82
|
code = response.code.to_i
|
|
83
83
|
if code.between?(200, 299)
|
|
84
|
-
Wavix::
|
|
84
|
+
Wavix::Types::SuccessResponse.load(response.body)
|
|
85
85
|
else
|
|
86
86
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
87
87
|
raise error_class.new(response.body, code: code)
|
|
@@ -7,7 +7,7 @@ module Wavix
|
|
|
7
7
|
class CreateBrandAppealsRequest < Internal::Types::Model
|
|
8
8
|
field :brand_id, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :appeal_categories, -> { Internal::Types::Array[
|
|
10
|
+
field :appeal_categories, -> { Internal::Types::Array[Wavix::TenDlc::BrandAppeals::Types::CreateBrandAppealsRequestAppealCategoriesItem] }, optional: false, nullable: false
|
|
11
11
|
|
|
12
12
|
field :evidence, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
13
13
|
|
data/lib/wavix/ten_dlc/brand_appeals/types/create_brand_appeals_request_appeal_categories_item.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Wavix
|
|
4
|
+
module TenDlc
|
|
5
|
+
module BrandAppeals
|
|
6
|
+
module Types
|
|
7
|
+
module CreateBrandAppealsRequestAppealCategoriesItem
|
|
8
|
+
extend Wavix::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
VERIFY_TAX_ID = "VERIFY_TAX_ID"
|
|
11
|
+
VERIFY_NON_PROFIT = "VERIFY_NON_PROFIT"
|
|
12
|
+
VERIFY_GOVERNMENT = "VERIFY_GOVERNMENT"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -57,7 +57,7 @@ module Wavix
|
|
|
57
57
|
# @option request_options [Integer] :timeout_in_seconds
|
|
58
58
|
# @option params [String] :brand_id
|
|
59
59
|
#
|
|
60
|
-
# @return [Wavix::
|
|
60
|
+
# @return [Wavix::Types::TenDlcBrandEvidence]
|
|
61
61
|
def upload(request_options: {}, **params)
|
|
62
62
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
63
63
|
body = Internal::Multipart::FormData.new
|
|
@@ -78,7 +78,7 @@ module Wavix
|
|
|
78
78
|
end
|
|
79
79
|
code = response.code.to_i
|
|
80
80
|
if code.between?(200, 299)
|
|
81
|
-
Wavix::
|
|
81
|
+
Wavix::Types::TenDlcBrandEvidence.load(response.body)
|
|
82
82
|
else
|
|
83
83
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
84
84
|
raise error_class.new(response.body, code: code)
|
|
@@ -130,7 +130,7 @@ module Wavix
|
|
|
130
130
|
# @option params [String] :brand_id
|
|
131
131
|
# @option params [String] :id
|
|
132
132
|
#
|
|
133
|
-
# @return [Wavix::
|
|
133
|
+
# @return [Wavix::Types::SuccessResponse]
|
|
134
134
|
def delete(request_options: {}, **params)
|
|
135
135
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
136
136
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -146,7 +146,7 @@ module Wavix
|
|
|
146
146
|
end
|
|
147
147
|
code = response.code.to_i
|
|
148
148
|
if code.between?(200, 299)
|
|
149
|
-
Wavix::
|
|
149
|
+
Wavix::Types::SuccessResponse.load(response.body)
|
|
150
150
|
else
|
|
151
151
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
152
152
|
raise error_class.new(response.body, code: code)
|
|
@@ -54,7 +54,7 @@ module Wavix
|
|
|
54
54
|
# @option request_options [Integer] :timeout_in_seconds
|
|
55
55
|
# @option params [String] :brand_id
|
|
56
56
|
#
|
|
57
|
-
# @return [Wavix::
|
|
57
|
+
# @return [Wavix::Types::SuccessResponse]
|
|
58
58
|
def create(request_options: {}, **params)
|
|
59
59
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
60
60
|
request_data = Wavix::TenDlc::BrandVettingAppeals::Types::TenDlcBrandVettingAppealCreateRequest.new(params).to_h
|
|
@@ -75,7 +75,7 @@ module Wavix
|
|
|
75
75
|
end
|
|
76
76
|
code = response.code.to_i
|
|
77
77
|
if code.between?(200, 299)
|
|
78
|
-
Wavix::
|
|
78
|
+
Wavix::Types::SuccessResponse.load(response.body)
|
|
79
79
|
else
|
|
80
80
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
81
81
|
raise error_class.new(response.body, code: code)
|
data/lib/wavix/ten_dlc/brand_vetting_appeals/types/ten_dlc_brand_vetting_appeal_create_request.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Wavix
|
|
|
7
7
|
class TenDlcBrandVettingAppealCreateRequest < Internal::Types::Model
|
|
8
8
|
field :brand_id, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :appeal_categories, -> { Internal::Types::Array[
|
|
10
|
+
field :appeal_categories, -> { Internal::Types::Array[Wavix::TenDlc::BrandVettingAppeals::Types::TenDlcBrandVettingAppealCreateRequestAppealCategoriesItem] }, optional: false, nullable: false
|
|
11
11
|
|
|
12
12
|
field :evidence, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
13
13
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Wavix
|
|
4
|
+
module TenDlc
|
|
5
|
+
module BrandVettingAppeals
|
|
6
|
+
module Types
|
|
7
|
+
module TenDlcBrandVettingAppealCreateRequestAppealCategoriesItem
|
|
8
|
+
extend Wavix::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
VERIFY_TAX_ID = "VERIFY_TAX_ID"
|
|
11
|
+
VERIFY_NON_PROFIT = "VERIFY_NON_PROFIT"
|
|
12
|
+
VERIFY_GOVERNMENT = "VERIFY_GOVERNMENT"
|
|
13
|
+
LOW_SCORE = "LOW_SCORE"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -44,7 +44,8 @@ module Wavix
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
# Requests external vetting for a 10DLC Brand. Supported providers: `AEGIS`, `CV`, `WMC`. Supported classes:
|
|
47
|
-
# `STANDARD`, `ENHANCED`.
|
|
47
|
+
# `STANDARD`, `ENHANCED`. Charges a 10DLC brand vetting fee (Standard or Enhanced); fails with an
|
|
48
|
+
# insufficient-funds error when the balance cannot cover it.
|
|
48
49
|
#
|
|
49
50
|
# @param request_options [Hash]
|
|
50
51
|
# @param params [Wavix::TenDlc::BrandVettings::Types::TenDlcBrandVettingCreateRequest]
|
|
@@ -34,7 +34,7 @@ module Wavix
|
|
|
34
34
|
# @option params [Integer, nil] :page
|
|
35
35
|
# @option params [Integer, nil] :per_page
|
|
36
36
|
#
|
|
37
|
-
# @return [Wavix::
|
|
37
|
+
# @return [Wavix::Types::TenDlcBrandListResponse]
|
|
38
38
|
def list(request_options: {}, **params)
|
|
39
39
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
40
40
|
query_params = {}
|
|
@@ -65,15 +65,17 @@ module Wavix
|
|
|
65
65
|
end
|
|
66
66
|
code = response.code.to_i
|
|
67
67
|
if code.between?(200, 299)
|
|
68
|
-
Wavix::
|
|
68
|
+
Wavix::Types::TenDlcBrandListResponse.load(response.body)
|
|
69
69
|
else
|
|
70
70
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
71
71
|
raise error_class.new(response.body, code: code)
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
# Registers a 10DLC Brand.
|
|
76
|
-
#
|
|
75
|
+
# Registers a 10DLC Brand. Submits the company's legal identity data (EIN/Tax ID, legal company name, contact
|
|
76
|
+
# and address) to The Campaign Registry (TCR), which verifies the brand identity. Charges a 10DLC brand
|
|
77
|
+
# registration fee on successful submission; fails with an insufficient-funds error when the balance cannot
|
|
78
|
+
# cover it. Only brands with `VERIFIED` or `VETTED_VERIFIED` identity status can register 10DLC Campaigns.
|
|
77
79
|
#
|
|
78
80
|
# @param request_options [Hash]
|
|
79
81
|
# @param params [Wavix::Types::TenDlcBrandCreateRequest]
|
|
@@ -83,7 +85,7 @@ module Wavix
|
|
|
83
85
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
84
86
|
# @option request_options [Integer] :timeout_in_seconds
|
|
85
87
|
#
|
|
86
|
-
# @return [Wavix::
|
|
88
|
+
# @return [Wavix::Types::TenDlcBrand]
|
|
87
89
|
def create(request_options: {}, **params)
|
|
88
90
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
89
91
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -100,7 +102,7 @@ module Wavix
|
|
|
100
102
|
end
|
|
101
103
|
code = response.code.to_i
|
|
102
104
|
if code.between?(200, 299)
|
|
103
|
-
Wavix::
|
|
105
|
+
Wavix::Types::TenDlcBrand.load(response.body)
|
|
104
106
|
else
|
|
105
107
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
106
108
|
raise error_class.new(response.body, code: code)
|
|
@@ -118,7 +120,7 @@ module Wavix
|
|
|
118
120
|
# @option request_options [Integer] :timeout_in_seconds
|
|
119
121
|
# @option params [String] :brand_id
|
|
120
122
|
#
|
|
121
|
-
# @return [Wavix::
|
|
123
|
+
# @return [Wavix::Types::TenDlcBrand]
|
|
122
124
|
def get(request_options: {}, **params)
|
|
123
125
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
124
126
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -134,7 +136,7 @@ module Wavix
|
|
|
134
136
|
end
|
|
135
137
|
code = response.code.to_i
|
|
136
138
|
if code.between?(200, 299)
|
|
137
|
-
Wavix::
|
|
139
|
+
Wavix::Types::TenDlcBrand.load(response.body)
|
|
138
140
|
else
|
|
139
141
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
140
142
|
raise error_class.new(response.body, code: code)
|
|
@@ -154,7 +156,7 @@ module Wavix
|
|
|
154
156
|
# @option request_options [Integer] :timeout_in_seconds
|
|
155
157
|
# @option params [String] :brand_id
|
|
156
158
|
#
|
|
157
|
-
# @return [Wavix::
|
|
159
|
+
# @return [Wavix::Types::TenDlcBrand]
|
|
158
160
|
def update(request_options: {}, **params)
|
|
159
161
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
160
162
|
request_data = Wavix::TenDlc::Brands::Types::TenDlcBrandUpdateRequest.new(params).to_h
|
|
@@ -175,7 +177,7 @@ module Wavix
|
|
|
175
177
|
end
|
|
176
178
|
code = response.code.to_i
|
|
177
179
|
if code.between?(200, 299)
|
|
178
|
-
Wavix::
|
|
180
|
+
Wavix::Types::TenDlcBrand.load(response.body)
|
|
179
181
|
else
|
|
180
182
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
181
183
|
raise error_class.new(response.body, code: code)
|
|
@@ -193,7 +195,7 @@ module Wavix
|
|
|
193
195
|
# @option request_options [Integer] :timeout_in_seconds
|
|
194
196
|
# @option params [String] :brand_id
|
|
195
197
|
#
|
|
196
|
-
# @return [Wavix::
|
|
198
|
+
# @return [Wavix::Types::SuccessResponse]
|
|
197
199
|
def delete(request_options: {}, **params)
|
|
198
200
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
199
201
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -209,7 +211,7 @@ module Wavix
|
|
|
209
211
|
end
|
|
210
212
|
code = response.code.to_i
|
|
211
213
|
if code.between?(200, 299)
|
|
212
|
-
Wavix::
|
|
214
|
+
Wavix::Types::SuccessResponse.load(response.body)
|
|
213
215
|
else
|
|
214
216
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
215
217
|
raise error_class.new(response.body, code: code)
|
|
@@ -229,7 +231,7 @@ module Wavix
|
|
|
229
231
|
# @option params [String] :brand_id
|
|
230
232
|
# @option params [Wavix::TenDlc::Brands::Types::QualifyUsecaseBrandsRequestUseCase] :use_case
|
|
231
233
|
#
|
|
232
|
-
# @return [Wavix::
|
|
234
|
+
# @return [Wavix::Types::TenDlcBrandQualificationResult]
|
|
233
235
|
def qualify_usecase(request_options: {}, **params)
|
|
234
236
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
235
237
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -245,7 +247,7 @@ module Wavix
|
|
|
245
247
|
end
|
|
246
248
|
code = response.code.to_i
|
|
247
249
|
if code.between?(200, 299)
|
|
248
|
-
Wavix::
|
|
250
|
+
Wavix::Types::TenDlcBrandQualificationResult.load(response.body)
|
|
249
251
|
else
|
|
250
252
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
251
253
|
raise error_class.new(response.body, code: code)
|
|
@@ -24,7 +24,7 @@ module Wavix
|
|
|
24
24
|
# @option params [String] :campaign_id
|
|
25
25
|
# @option params [String] :number
|
|
26
26
|
#
|
|
27
|
-
# @return [Wavix::
|
|
27
|
+
# @return [Wavix::Types::SuccessResponse]
|
|
28
28
|
def link(request_options: {}, **params)
|
|
29
29
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
30
30
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -40,7 +40,7 @@ module Wavix
|
|
|
40
40
|
end
|
|
41
41
|
code = response.code.to_i
|
|
42
42
|
if code.between?(200, 299)
|
|
43
|
-
Wavix::
|
|
43
|
+
Wavix::Types::SuccessResponse.load(response.body)
|
|
44
44
|
else
|
|
45
45
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
46
46
|
raise error_class.new(response.body, code: code)
|
|
@@ -60,7 +60,7 @@ module Wavix
|
|
|
60
60
|
# @option params [String] :campaign_id
|
|
61
61
|
# @option params [String] :number
|
|
62
62
|
#
|
|
63
|
-
# @return [Wavix::
|
|
63
|
+
# @return [Wavix::Types::SuccessResponse]
|
|
64
64
|
def unlink(request_options: {}, **params)
|
|
65
65
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
66
66
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -76,7 +76,7 @@ module Wavix
|
|
|
76
76
|
end
|
|
77
77
|
code = response.code.to_i
|
|
78
78
|
if code.between?(200, 299)
|
|
79
|
-
Wavix::
|
|
79
|
+
Wavix::Types::SuccessResponse.load(response.body)
|
|
80
80
|
else
|
|
81
81
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
82
82
|
raise error_class.new(response.body, code: code)
|
|
@@ -95,7 +95,7 @@ module Wavix
|
|
|
95
95
|
# @option params [String] :brand_id
|
|
96
96
|
# @option params [String] :campaign_id
|
|
97
97
|
#
|
|
98
|
-
# @return [Wavix::
|
|
98
|
+
# @return [Wavix::Types::TenDlcCampaignNumberListResponse]
|
|
99
99
|
def list(request_options: {}, **params)
|
|
100
100
|
params = Wavix::Internal::Types::Utils.normalize_keys(params)
|
|
101
101
|
request = Wavix::Internal::JSON::Request.new(
|
|
@@ -111,7 +111,7 @@ module Wavix
|
|
|
111
111
|
end
|
|
112
112
|
code = response.code.to_i
|
|
113
113
|
if code.between?(200, 299)
|
|
114
|
-
Wavix::
|
|
114
|
+
Wavix::Types::TenDlcCampaignNumberListResponse.load(response.body)
|
|
115
115
|
else
|
|
116
116
|
error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
|
|
117
117
|
raise error_class.new(response.body, code: code)
|