pingram 1.0.42 → 1.0.43
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/Gemfile.lock +2 -2
- data/lib/pingram/api/account_api.rb +26 -0
- data/lib/pingram/api/accounts_api.rb +76 -0
- data/lib/pingram/api/broadcasts_api.rb +28 -0
- data/lib/pingram/api/default_api.rb +2 -0
- data/lib/pingram/api/domains_api.rb +12 -4
- data/lib/pingram/api/editor_api.rb +2 -0
- data/lib/pingram/api/email_api.rb +4 -0
- data/lib/pingram/api/environments_api.rb +2 -0
- data/lib/pingram/api/health_api.rb +2 -0
- data/lib/pingram/api/library_api.rb +4 -0
- data/lib/pingram/api/logs_api.rb +12 -0
- data/lib/pingram/api/members_api.rb +2 -0
- data/lib/pingram/api/numbers_api.rb +10 -0
- data/lib/pingram/api/registrations_api.rb +10 -0
- data/lib/pingram/api/sender_api.rb +2 -0
- data/lib/pingram/api/sms_api.rb +2 -0
- data/lib/pingram/api/sub_notifications_api.rb +4 -0
- data/lib/pingram/api/user_api.rb +6 -0
- data/lib/pingram/api/users_api.rb +2 -0
- data/lib/pingram/api/voice_api.rb +80 -0
- data/lib/pingram/api/webhooks_api.rb +8 -0
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/account_summary.rb +304 -0
- data/lib/pingram/models/agent.rb +10 -1
- data/lib/pingram/models/agent1.rb +10 -1
- data/lib/pingram/models/agent_agent_model.rb +2 -0
- data/lib/pingram/models/arm_voice_inbound_claim_request_inbound.rb +2 -0
- data/lib/pingram/models/brand_webhook_response.rb +1 -1
- data/lib/pingram/models/campaign_webhook_response.rb +1 -1
- data/lib/pingram/models/check_domain_dns_request.rb +148 -0
- data/lib/pingram/models/domain_dns_check_records_inner.rb +2 -2
- data/lib/pingram/models/elevenlabs.rb +207 -0
- data/lib/pingram/models/elevenlabs1.rb +207 -0
- data/lib/pingram/models/elevenlabs_eleven_realtime_v1_max.rb +251 -0
- data/lib/pingram/models/elevenlabs_eleven_realtime_v1_mini.rb +251 -0
- data/lib/pingram/models/get_senders_response_inner.rb +68 -4
- data/lib/pingram/models/get_senders_response_inner_verification_records.rb +13 -4
- data/lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb +2 -2
- data/lib/pingram/models/get_voice_call_response_call.rb +30 -1
- data/lib/pingram/models/get_voice_call_response_call_setup.rb +272 -0
- data/lib/pingram/models/get_voice_call_response_call_setup_stream.rb +190 -0
- data/lib/pingram/models/get_voice_call_response_call_setup_transcript.rb +41 -0
- data/lib/pingram/models/google_gemini31_flash_live_preview.rb +22 -1
- data/lib/pingram/models/inbound_config.rb +2 -0
- data/lib/pingram/models/intercom_webhook.rb +1 -1
- data/lib/pingram/models/internal_transfer_body.rb +254 -0
- data/lib/pingram/models/internal_transfer_body_agent_meters_inner.rb +328 -0
- data/lib/pingram/models/list_voice_calls_response_calls_inner.rb +24 -4
- data/lib/pingram/models/member_update_request.rb +1 -1
- data/lib/pingram/models/openai_gpt_live1.rb +22 -1
- data/lib/pingram/models/openai_gpt_realtime21.rb +22 -1
- data/lib/pingram/models/openai_gpt_realtime21_mini.rb +22 -1
- data/lib/pingram/models/script.rb +10 -1
- data/lib/pingram/models/script1.rb +10 -1
- data/lib/pingram/models/script_privacy.rb +43 -8
- data/lib/pingram/models/script_stream.rb +193 -0
- data/lib/pingram/models/sign_in_username_response.rb +1 -1
- data/lib/pingram/models/sign_out_request.rb +1 -1
- data/lib/pingram/models/sms_compliance_countries_response_countries_inner.rb +1 -1
- data/lib/pingram/models/sms_compliance_country.rb +1 -1
- data/lib/pingram/models/stream.rb +207 -0
- data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +1 -1
- data/lib/pingram/models/transfer1.rb +40 -1
- data/lib/pingram/models/transfer_call_request.rb +196 -0
- data/lib/pingram/models/transfer_destinations_inner.rb +25 -56
- data/lib/pingram/models/update_account_request.rb +184 -0
- data/lib/pingram/models/voice_browser_call_request_config_any_of.rb +3 -1
- data/lib/pingram/models/voice_call_response.rb +32 -5
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +15 -0
- data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/CHANGELOG.md +45 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/README.md +55 -8
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curl.rb +44 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/easy/form.rb +261 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/informations.rb +30 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/mirror.rb +7 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/options.rb +11 -7
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/queryable.rb +5 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/errors/fork_safety.rb +10 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/libc.rb +5 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/multipart.rb +115 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon.rb +1 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{ethon-0.19.1.gemspec → ethon-0.19.2.gemspec} +4 -4
- metadata +104 -88
- data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.1.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/form.rb +0 -166
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/fork_safety.rb +0 -10
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/ethon.gemspec +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/classes.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/codes.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/form_options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/functions.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/infos.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/introspection.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/introspection_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/optional.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/settings.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/share_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/url_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/callbacks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/debug_info.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/features.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/files.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/header.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/headers_api.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/actionable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/custom.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/delete.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/get.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/head.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/patch.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/post.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/postable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/put.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/putable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/params.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/response_callbacks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/util.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/ethon_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/form_add.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/global_init.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/header.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/invalid_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/invalid_value.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_add.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_assign.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_fdset.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_perform.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_poll.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_remove.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_timeout.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_wait.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_wakeup.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/select.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/set_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/unsupported_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/loggable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi.rb +0 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pingram
|
|
3
|
+
|
|
4
|
+
#Internal API for notification delivery and management
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Pingram
|
|
17
|
+
# The customer's websocket is the application side. No script and no agent.
|
|
18
|
+
class Stream < ApiModelBase
|
|
19
|
+
attr_accessor :type
|
|
20
|
+
|
|
21
|
+
attr_accessor :stream
|
|
22
|
+
|
|
23
|
+
attr_accessor :privacy
|
|
24
|
+
|
|
25
|
+
class EnumAttributeValidator
|
|
26
|
+
attr_reader :datatype
|
|
27
|
+
attr_reader :allowable_values
|
|
28
|
+
|
|
29
|
+
def initialize(datatype, allowable_values)
|
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
|
31
|
+
case datatype.to_s
|
|
32
|
+
when /Integer/i
|
|
33
|
+
value.to_i
|
|
34
|
+
when /Float/i
|
|
35
|
+
value.to_f
|
|
36
|
+
else
|
|
37
|
+
value
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def valid?(value)
|
|
43
|
+
!value || allowable_values.include?(value)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
|
+
def self.attribute_map
|
|
49
|
+
{
|
|
50
|
+
:'type' => :'type',
|
|
51
|
+
:'stream' => :'stream',
|
|
52
|
+
:'privacy' => :'privacy'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns attribute mapping this model knows about
|
|
57
|
+
def self.acceptable_attribute_map
|
|
58
|
+
attribute_map
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Returns all the JSON keys this model knows about
|
|
62
|
+
def self.acceptable_attributes
|
|
63
|
+
acceptable_attribute_map.values
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Attribute type mapping.
|
|
67
|
+
def self.openapi_types
|
|
68
|
+
{
|
|
69
|
+
:'type' => :'String',
|
|
70
|
+
:'stream' => :'ScriptStream',
|
|
71
|
+
:'privacy' => :'ScriptPrivacy'
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# List of attributes with nullable: true
|
|
76
|
+
def self.openapi_nullable
|
|
77
|
+
Set.new([
|
|
78
|
+
])
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Initializes the object
|
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
+
def initialize(attributes = {})
|
|
84
|
+
if (!attributes.is_a?(Hash))
|
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::Stream` initialize method"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::Stream`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
93
|
+
end
|
|
94
|
+
h[k.to_sym] = v
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'type')
|
|
98
|
+
self.type = attributes[:'type']
|
|
99
|
+
else
|
|
100
|
+
self.type = nil
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'stream')
|
|
104
|
+
self.stream = attributes[:'stream']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'privacy')
|
|
108
|
+
self.privacy = attributes[:'privacy']
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
113
|
+
# @return Array for valid properties with the reasons
|
|
114
|
+
def list_invalid_properties
|
|
115
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
116
|
+
invalid_properties = Array.new
|
|
117
|
+
if @type.nil?
|
|
118
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
invalid_properties
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Check to see if the all the properties in the model are valid
|
|
125
|
+
# @return true if the model is valid
|
|
126
|
+
def valid?
|
|
127
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
128
|
+
return false if @type.nil?
|
|
129
|
+
type_validator = EnumAttributeValidator.new('String', ["stream"])
|
|
130
|
+
return false unless type_validator.valid?(@type)
|
|
131
|
+
true
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
135
|
+
# @param [Object] type Object to be assigned
|
|
136
|
+
def type=(type)
|
|
137
|
+
validator = EnumAttributeValidator.new('String', ["stream"])
|
|
138
|
+
unless validator.valid?(type)
|
|
139
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
140
|
+
end
|
|
141
|
+
@type = type
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Checks equality by comparing each attribute.
|
|
145
|
+
# @param [Object] Object to be compared
|
|
146
|
+
def ==(o)
|
|
147
|
+
return true if self.equal?(o)
|
|
148
|
+
self.class == o.class &&
|
|
149
|
+
type == o.type &&
|
|
150
|
+
stream == o.stream &&
|
|
151
|
+
privacy == o.privacy
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# @see the `==` method
|
|
155
|
+
# @param [Object] Object to be compared
|
|
156
|
+
def eql?(o)
|
|
157
|
+
self == o
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Calculates hash code according to all attributes.
|
|
161
|
+
# @return [Integer] Hash code
|
|
162
|
+
def hash
|
|
163
|
+
[type, stream, privacy].hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Builds the object from hash
|
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
168
|
+
# @return [Object] Returns the model itself
|
|
169
|
+
def self.build_from_hash(attributes)
|
|
170
|
+
return nil unless attributes.is_a?(Hash)
|
|
171
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
172
|
+
transformed_hash = {}
|
|
173
|
+
openapi_types.each_pair do |key, type|
|
|
174
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
175
|
+
transformed_hash["#{key}"] = nil
|
|
176
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
177
|
+
# check to ensure the input is an array given that the attribute
|
|
178
|
+
# is documented as an array but the input is not
|
|
179
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
180
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
181
|
+
end
|
|
182
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
183
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
new(transformed_hash)
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Returns the object in the form of hash
|
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
|
191
|
+
def to_hash
|
|
192
|
+
hash = {}
|
|
193
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
194
|
+
value = self.send(attr)
|
|
195
|
+
if value.nil?
|
|
196
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
197
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
hash[param] = _to_hash(value)
|
|
201
|
+
end
|
|
202
|
+
hash
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
end
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Request body for
|
|
17
|
+
# Request body for updating a 10DLC brand during review.
|
|
18
18
|
class TenDlcBrandAdminUpdateRequest < ApiModelBase
|
|
19
19
|
# Who the 10DLC brand is registered for. - own_brand: personal or company project - client_brand: agency or contractor
|
|
20
20
|
attr_accessor :scenario_id
|
|
@@ -19,6 +19,17 @@ module Pingram
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :to
|
|
21
21
|
|
|
22
|
+
# Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio.
|
|
23
|
+
attr_accessor :hold_say
|
|
24
|
+
|
|
25
|
+
# `builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing.
|
|
26
|
+
attr_accessor :hold_audio
|
|
27
|
+
|
|
28
|
+
# Spoken to the person who answers, before the caller is connected.
|
|
29
|
+
attr_accessor :receiver_say
|
|
30
|
+
|
|
31
|
+
attr_accessor :stream
|
|
32
|
+
|
|
22
33
|
attr_accessor :privacy
|
|
23
34
|
|
|
24
35
|
class EnumAttributeValidator
|
|
@@ -48,6 +59,10 @@ module Pingram
|
|
|
48
59
|
{
|
|
49
60
|
:'type' => :'type',
|
|
50
61
|
:'to' => :'to',
|
|
62
|
+
:'hold_say' => :'holdSay',
|
|
63
|
+
:'hold_audio' => :'holdAudio',
|
|
64
|
+
:'receiver_say' => :'receiverSay',
|
|
65
|
+
:'stream' => :'stream',
|
|
51
66
|
:'privacy' => :'privacy'
|
|
52
67
|
}
|
|
53
68
|
end
|
|
@@ -67,6 +82,10 @@ module Pingram
|
|
|
67
82
|
{
|
|
68
83
|
:'type' => :'String',
|
|
69
84
|
:'to' => :'String',
|
|
85
|
+
:'hold_say' => :'String',
|
|
86
|
+
:'hold_audio' => :'String',
|
|
87
|
+
:'receiver_say' => :'String',
|
|
88
|
+
:'stream' => :'ScriptStream',
|
|
70
89
|
:'privacy' => :'ScriptPrivacy'
|
|
71
90
|
}
|
|
72
91
|
end
|
|
@@ -105,6 +124,22 @@ module Pingram
|
|
|
105
124
|
self.to = nil
|
|
106
125
|
end
|
|
107
126
|
|
|
127
|
+
if attributes.key?(:'hold_say')
|
|
128
|
+
self.hold_say = attributes[:'hold_say']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'hold_audio')
|
|
132
|
+
self.hold_audio = attributes[:'hold_audio']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'receiver_say')
|
|
136
|
+
self.receiver_say = attributes[:'receiver_say']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'stream')
|
|
140
|
+
self.stream = attributes[:'stream']
|
|
141
|
+
end
|
|
142
|
+
|
|
108
143
|
if attributes.key?(:'privacy')
|
|
109
144
|
self.privacy = attributes[:'privacy']
|
|
110
145
|
end
|
|
@@ -164,6 +199,10 @@ module Pingram
|
|
|
164
199
|
self.class == o.class &&
|
|
165
200
|
type == o.type &&
|
|
166
201
|
to == o.to &&
|
|
202
|
+
hold_say == o.hold_say &&
|
|
203
|
+
hold_audio == o.hold_audio &&
|
|
204
|
+
receiver_say == o.receiver_say &&
|
|
205
|
+
stream == o.stream &&
|
|
167
206
|
privacy == o.privacy
|
|
168
207
|
end
|
|
169
208
|
|
|
@@ -176,7 +215,7 @@ module Pingram
|
|
|
176
215
|
# Calculates hash code according to all attributes.
|
|
177
216
|
# @return [Integer] Hash code
|
|
178
217
|
def hash
|
|
179
|
-
[type, to, privacy].hash
|
|
218
|
+
[type, to, hold_say, hold_audio, receiver_say, stream, privacy].hash
|
|
180
219
|
end
|
|
181
220
|
|
|
182
221
|
# Builds the object from hash
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pingram
|
|
3
|
+
|
|
4
|
+
#Internal API for notification delivery and management
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Pingram
|
|
17
|
+
# Body for POST /voice/calls/{trackingId}/transfer.
|
|
18
|
+
class TransferCallRequest < ApiModelBase
|
|
19
|
+
# E.164 number to move the caller to.
|
|
20
|
+
attr_accessor :to
|
|
21
|
+
|
|
22
|
+
# Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio.
|
|
23
|
+
attr_accessor :hold_say
|
|
24
|
+
|
|
25
|
+
# `builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing.
|
|
26
|
+
attr_accessor :hold_audio
|
|
27
|
+
|
|
28
|
+
# Spoken to the person who answers, before the caller is connected.
|
|
29
|
+
attr_accessor :receiver_say
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'to' => :'to',
|
|
35
|
+
:'hold_say' => :'holdSay',
|
|
36
|
+
:'hold_audio' => :'holdAudio',
|
|
37
|
+
:'receiver_say' => :'receiverSay'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns attribute mapping this model knows about
|
|
42
|
+
def self.acceptable_attribute_map
|
|
43
|
+
attribute_map
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns all the JSON keys this model knows about
|
|
47
|
+
def self.acceptable_attributes
|
|
48
|
+
acceptable_attribute_map.values
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Attribute type mapping.
|
|
52
|
+
def self.openapi_types
|
|
53
|
+
{
|
|
54
|
+
:'to' => :'String',
|
|
55
|
+
:'hold_say' => :'String',
|
|
56
|
+
:'hold_audio' => :'String',
|
|
57
|
+
:'receiver_say' => :'String'
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# List of attributes with nullable: true
|
|
62
|
+
def self.openapi_nullable
|
|
63
|
+
Set.new([
|
|
64
|
+
])
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Initializes the object
|
|
68
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
|
+
def initialize(attributes = {})
|
|
70
|
+
if (!attributes.is_a?(Hash))
|
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::TransferCallRequest` initialize method"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::TransferCallRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
79
|
+
end
|
|
80
|
+
h[k.to_sym] = v
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'to')
|
|
84
|
+
self.to = attributes[:'to']
|
|
85
|
+
else
|
|
86
|
+
self.to = nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'hold_say')
|
|
90
|
+
self.hold_say = attributes[:'hold_say']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'hold_audio')
|
|
94
|
+
self.hold_audio = attributes[:'hold_audio']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'receiver_say')
|
|
98
|
+
self.receiver_say = attributes[:'receiver_say']
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
103
|
+
# @return Array for valid properties with the reasons
|
|
104
|
+
def list_invalid_properties
|
|
105
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
106
|
+
invalid_properties = Array.new
|
|
107
|
+
if @to.nil?
|
|
108
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
invalid_properties
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Check to see if the all the properties in the model are valid
|
|
115
|
+
# @return true if the model is valid
|
|
116
|
+
def valid?
|
|
117
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
+
return false if @to.nil?
|
|
119
|
+
true
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Custom attribute writer method with validation
|
|
123
|
+
# @param [Object] to Value to be assigned
|
|
124
|
+
def to=(to)
|
|
125
|
+
if to.nil?
|
|
126
|
+
fail ArgumentError, 'to cannot be nil'
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
@to = to
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Checks equality by comparing each attribute.
|
|
133
|
+
# @param [Object] Object to be compared
|
|
134
|
+
def ==(o)
|
|
135
|
+
return true if self.equal?(o)
|
|
136
|
+
self.class == o.class &&
|
|
137
|
+
to == o.to &&
|
|
138
|
+
hold_say == o.hold_say &&
|
|
139
|
+
hold_audio == o.hold_audio &&
|
|
140
|
+
receiver_say == o.receiver_say
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# @see the `==` method
|
|
144
|
+
# @param [Object] Object to be compared
|
|
145
|
+
def eql?(o)
|
|
146
|
+
self == o
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Calculates hash code according to all attributes.
|
|
150
|
+
# @return [Integer] Hash code
|
|
151
|
+
def hash
|
|
152
|
+
[to, hold_say, hold_audio, receiver_say].hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Builds the object from hash
|
|
156
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
157
|
+
# @return [Object] Returns the model itself
|
|
158
|
+
def self.build_from_hash(attributes)
|
|
159
|
+
return nil unless attributes.is_a?(Hash)
|
|
160
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
161
|
+
transformed_hash = {}
|
|
162
|
+
openapi_types.each_pair do |key, type|
|
|
163
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
164
|
+
transformed_hash["#{key}"] = nil
|
|
165
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
166
|
+
# check to ensure the input is an array given that the attribute
|
|
167
|
+
# is documented as an array but the input is not
|
|
168
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
169
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
170
|
+
end
|
|
171
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
172
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
new(transformed_hash)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the object in the form of hash
|
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
|
180
|
+
def to_hash
|
|
181
|
+
hash = {}
|
|
182
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
183
|
+
value = self.send(attr)
|
|
184
|
+
if value.nil?
|
|
185
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
186
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
hash[param] = _to_hash(value)
|
|
190
|
+
end
|
|
191
|
+
hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
end
|
|
@@ -21,41 +21,23 @@ module Pingram
|
|
|
21
21
|
# When the model should choose this number. Required when more than one destination is set.
|
|
22
22
|
attr_accessor :condition
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
26
|
-
|
|
27
|
-
# Spoken to the rep before a warm transfer connects.
|
|
28
|
-
attr_accessor :briefing
|
|
29
|
-
|
|
30
|
-
class EnumAttributeValidator
|
|
31
|
-
attr_reader :datatype
|
|
32
|
-
attr_reader :allowable_values
|
|
33
|
-
|
|
34
|
-
def initialize(datatype, allowable_values)
|
|
35
|
-
@allowable_values = allowable_values.map do |value|
|
|
36
|
-
case datatype.to_s
|
|
37
|
-
when /Integer/i
|
|
38
|
-
value.to_i
|
|
39
|
-
when /Float/i
|
|
40
|
-
value.to_f
|
|
41
|
-
else
|
|
42
|
-
value
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
24
|
+
# Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio.
|
|
25
|
+
attr_accessor :hold_say
|
|
46
26
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
27
|
+
# `builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing.
|
|
28
|
+
attr_accessor :hold_audio
|
|
29
|
+
|
|
30
|
+
# Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why.
|
|
31
|
+
attr_accessor :receiver_instruction
|
|
51
32
|
|
|
52
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
34
|
def self.attribute_map
|
|
54
35
|
{
|
|
55
36
|
:'phone_number' => :'phoneNumber',
|
|
56
37
|
:'condition' => :'condition',
|
|
57
|
-
:'
|
|
58
|
-
:'
|
|
38
|
+
:'hold_say' => :'holdSay',
|
|
39
|
+
:'hold_audio' => :'holdAudio',
|
|
40
|
+
:'receiver_instruction' => :'receiverInstruction'
|
|
59
41
|
}
|
|
60
42
|
end
|
|
61
43
|
|
|
@@ -74,8 +56,9 @@ module Pingram
|
|
|
74
56
|
{
|
|
75
57
|
:'phone_number' => :'String',
|
|
76
58
|
:'condition' => :'String',
|
|
77
|
-
:'
|
|
78
|
-
:'
|
|
59
|
+
:'hold_say' => :'String',
|
|
60
|
+
:'hold_audio' => :'String',
|
|
61
|
+
:'receiver_instruction' => :'String'
|
|
79
62
|
}
|
|
80
63
|
end
|
|
81
64
|
|
|
@@ -113,14 +96,16 @@ module Pingram
|
|
|
113
96
|
self.condition = nil
|
|
114
97
|
end
|
|
115
98
|
|
|
116
|
-
if attributes.key?(:'
|
|
117
|
-
self.
|
|
118
|
-
else
|
|
119
|
-
self.transfer_mode = nil
|
|
99
|
+
if attributes.key?(:'hold_say')
|
|
100
|
+
self.hold_say = attributes[:'hold_say']
|
|
120
101
|
end
|
|
121
102
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
103
|
+
if attributes.key?(:'hold_audio')
|
|
104
|
+
self.hold_audio = attributes[:'hold_audio']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'receiver_instruction')
|
|
108
|
+
self.receiver_instruction = attributes[:'receiver_instruction']
|
|
124
109
|
end
|
|
125
110
|
end
|
|
126
111
|
|
|
@@ -137,10 +122,6 @@ module Pingram
|
|
|
137
122
|
invalid_properties.push('invalid value for "condition", condition cannot be nil.')
|
|
138
123
|
end
|
|
139
124
|
|
|
140
|
-
if @transfer_mode.nil?
|
|
141
|
-
invalid_properties.push('invalid value for "transfer_mode", transfer_mode cannot be nil.')
|
|
142
|
-
end
|
|
143
|
-
|
|
144
125
|
invalid_properties
|
|
145
126
|
end
|
|
146
127
|
|
|
@@ -150,9 +131,6 @@ module Pingram
|
|
|
150
131
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
132
|
return false if @phone_number.nil?
|
|
152
133
|
return false if @condition.nil?
|
|
153
|
-
return false if @transfer_mode.nil?
|
|
154
|
-
transfer_mode_validator = EnumAttributeValidator.new('String', ["warm", "cold"])
|
|
155
|
-
return false unless transfer_mode_validator.valid?(@transfer_mode)
|
|
156
134
|
true
|
|
157
135
|
end
|
|
158
136
|
|
|
@@ -176,16 +154,6 @@ module Pingram
|
|
|
176
154
|
@condition = condition
|
|
177
155
|
end
|
|
178
156
|
|
|
179
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
180
|
-
# @param [Object] transfer_mode Object to be assigned
|
|
181
|
-
def transfer_mode=(transfer_mode)
|
|
182
|
-
validator = EnumAttributeValidator.new('String', ["warm", "cold"])
|
|
183
|
-
unless validator.valid?(transfer_mode)
|
|
184
|
-
fail ArgumentError, "invalid value for \"transfer_mode\", must be one of #{validator.allowable_values}."
|
|
185
|
-
end
|
|
186
|
-
@transfer_mode = transfer_mode
|
|
187
|
-
end
|
|
188
|
-
|
|
189
157
|
# Checks equality by comparing each attribute.
|
|
190
158
|
# @param [Object] Object to be compared
|
|
191
159
|
def ==(o)
|
|
@@ -193,8 +161,9 @@ module Pingram
|
|
|
193
161
|
self.class == o.class &&
|
|
194
162
|
phone_number == o.phone_number &&
|
|
195
163
|
condition == o.condition &&
|
|
196
|
-
|
|
197
|
-
|
|
164
|
+
hold_say == o.hold_say &&
|
|
165
|
+
hold_audio == o.hold_audio &&
|
|
166
|
+
receiver_instruction == o.receiver_instruction
|
|
198
167
|
end
|
|
199
168
|
|
|
200
169
|
# @see the `==` method
|
|
@@ -206,7 +175,7 @@ module Pingram
|
|
|
206
175
|
# Calculates hash code according to all attributes.
|
|
207
176
|
# @return [Integer] Hash code
|
|
208
177
|
def hash
|
|
209
|
-
[phone_number, condition,
|
|
178
|
+
[phone_number, condition, hold_say, hold_audio, receiver_instruction].hash
|
|
210
179
|
end
|
|
211
180
|
|
|
212
181
|
# Builds the object from hash
|