lib/plivo/resources/numbers.rb in plivo-4.51.0 vs lib/plivo/resources/numbers.rb in plivo-4.52.0

- old
+ new

@@ -35,11 +35,13 @@ sms_rate: @sms_rate, voice_enabled: @voice_enabled, voice_rate: @voice_rate, tendlc_campaign_id: @tendlc_campaign_id, tendlc_registration_status: @tendlc_registration_status, - toll_free_sms_verification: @toll_free_sms_verification + toll_free_sms_verification: @toll_free_sms_verification, + toll_free_sms_verification_id: @toll_free_sms_verification_id, + toll_free_sms_verification_order_status: @toll_free_sms_verification_order_status }.to_s end end class PhoneNumberInterface < Base::ResourceInterface @@ -183,11 +185,13 @@ voice_rate: @voice_rate, tendlc_campaign_id: @tendlc_campaign_id, tendlc_registration_status: @tendlc_registration_status, toll_free_sms_verification: @toll_free_sms_verification, renewal_date: @renewal_date, - cnam_lookup: @cnam_lookup + cnam_lookup: @cnam_lookup, + toll_free_sms_verification_id: @toll_free_sms_verification_id, + toll_free_sms_verification_order_status: @toll_free_sms_verification_order_status }.to_s end end class NumberInterface < Base::ResourceInterface @@ -229,17 +233,19 @@ # @option options [String] :renewal_date__gt Returns phone numbers that will be renewed after the specified date. Format: YYYY-MM-DD # @option options [String] :renewal_date__gte Returns phone numbers that will be renewed on or after the specified date. Format: YYYY-MM-DD # @option options [String] :cnam_lookup The Cnam Lookup Configuration associated with that number. The following values are valid: # - enabled - Returns the list of numbers for which Cnam Lookup configuration is enabled # - disabled - Returns the list of numbers for which Cnam Lookup configuration is disabled + # @option options [String] :toll_free_sms_verification_id The id of tollfree verification that the number is currently linked with. + # @option options [String] :toll_free_sms_verification_order_status Indicates the tollfree verification status of a number. def list(options = nil) return perform_list if options.nil? valid_param?(:options, options, Hash, true) params = {} - %i[number_startswith subaccount alias tendlc_campaign_id tendlc_registration_status toll_free_sms_verification renewal_date renewal_date__lt renewal_date__lte renewal_date__gt renewal_date__gte cnam_lookup].each do |param| + %i[number_startswith subaccount alias tendlc_campaign_id tendlc_registration_status toll_free_sms_verification renewal_date renewal_date__lt renewal_date__lte renewal_date__gt renewal_date__gte cnam_lookup toll_free_sms_verification_order_status].each do |param| if options.key?(param) && valid_param?(param, options[param], [String, Symbol], true) params[param] = options[param] end end