pingram 1.0.43 → 1.0.45
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 +4 -4
- data/lib/pingram/api/logs_api.rb +126 -0
- data/lib/pingram/api/numbers_api.rb +14 -2
- data/lib/pingram/api/sms_api.rb +68 -0
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/broadcast_response.rb +1 -1
- data/lib/pingram/models/create_broadcast_request.rb +1 -1
- data/lib/pingram/models/get_group_text_log_response.rb +168 -0
- data/lib/pingram/models/get_group_text_log_response_logs_inner.rb +431 -0
- data/lib/pingram/models/get_voice_call_response_call_setup.rb +10 -30
- data/lib/pingram/models/list_broadcasts_response_broadcasts_inner.rb +1 -1
- data/lib/pingram/models/list_group_texts_response.rb +178 -0
- data/lib/pingram/models/logs_get_response_logs_inner.rb +4 -4
- data/lib/pingram/models/script_privacy.rb +1 -1
- data/lib/pingram/models/script_stream.rb +1 -1
- data/lib/pingram/models/send_group_text_request.rb +237 -0
- data/lib/pingram/models/send_sms_response_any_of.rb +1 -0
- data/lib/pingram/models/sms_registration_a2p10dlc.rb +2 -2
- data/lib/pingram/models/sms_registration_create_request_a2p10dlc.rb +2 -2
- data/lib/pingram/models/sms_registration_update_request_a2p10dlc.rb +2 -2
- data/lib/pingram/models/ten_dlc_campaign_admin_update_request.rb +2 -2
- data/lib/pingram/models/ten_dlc_campaign_registration.rb +2 -2
- data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +16 -6
- data/lib/pingram/models/ten_dlc_campaign_update_request.rb +2 -2
- data/lib/pingram/models/update_broadcast_request.rb +1 -1
- data/lib/pingram/models/webhook_event.rb +2 -2
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +4 -1
- data/vendor/bundle/ruby/3.2.0/cache/parser-3.3.14.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/typhoeus-1.8.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/current.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/CHANGELOG.md +69 -2
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/README.md +77 -18
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/UPGRADE.md +17 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/adapters/faraday.rb +53 -2
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/config.rb +19 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/hydra.rb +66 -4
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.8.0/lib/typhoeus/multipart.rb +32 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/pool.rb +86 -1
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/request.rb +9 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/response/informations.rb +15 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus.rb +1 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/typhoeus.gemspec +1 -1
- data/vendor/bundle/ruby/3.2.0/specifications/{parser-3.3.13.0.gemspec → parser-3.3.14.0.gemspec} +4 -4
- data/vendor/bundle/ruby/3.2.0/specifications/{typhoeus-1.7.1.gemspec → typhoeus-1.8.0.gemspec} +5 -5
- metadata +128 -124
- data/lib/pingram/models/get_voice_call_response_call_setup_transcript.rb +0 -41
- data/vendor/bundle/ruby/3.2.0/cache/parser-3.3.13.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/typhoeus-1.7.1.gem +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/bin/ruby-parse +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/bin/ruby-rewrite +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/gauntlet_parser.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/all.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ast/node.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ast/processor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/base.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/builders/default.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/clobbering_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/color.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/context.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/current_arg_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/deprecation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/diagnostic/engine.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/diagnostic.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/lexer/dedenter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/lexer/explanation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/lexer/literal.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/lexer/stack_state.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/lexer-F0.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/lexer-F1.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/lexer-strings.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/macruby.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/max_numparam_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/meta.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby18.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby19.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby20.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby21.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby22.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby23.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby24.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby25.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby26.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby27.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby30.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby31.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby32.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby33.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/ruby34.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/rubymotion.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/runner/ruby_parse.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/runner/ruby_rewrite.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/runner.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/buffer.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/comment/associator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/comment.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/collection.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/condition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/constant.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/definition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/for.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/heredoc.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/index.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/keyword.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/operator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/rescue_body.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/send.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/ternary.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map/variable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/map.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/range.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/tree_rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/source/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/static_environment.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/syntax_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/unknown_encoding_in_magic_comment_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser/variables_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/lib/parser.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.13.0 → parser-3.3.14.0}/parser.gemspec +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/CONTRIBUTING.md +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/rack/typhoeus/middleware/params_decoder/helper.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/rack/typhoeus/middleware/params_decoder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/rack/typhoeus.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/cache/dalli.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/cache/rails.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/cache/redis.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/easy_factory.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/errors/invalid_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/errors/no_response.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/errors/no_stub.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/errors/typhoeus_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/errors.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/expectation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/hydra/queueable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/railtie.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/request/actions.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/request/callbacks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/request/marshal.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/request/streamable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/response/cacheable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/response/header.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/response/status.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.7.1 → typhoeus-1.8.0}/lib/typhoeus/response.rb +0 -0
|
@@ -0,0 +1,431 @@
|
|
|
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
|
+
# One group text, outbound or inbound. Times are facts. A later failure does not erase a delivery.
|
|
18
|
+
class GetGroupTextLogResponseLogsInner < ApiModelBase
|
|
19
|
+
# Tracking id of this group text.
|
|
20
|
+
attr_accessor :tracking_id
|
|
21
|
+
|
|
22
|
+
# Whether this row is a send or a message someone typed.
|
|
23
|
+
attr_accessor :direction
|
|
24
|
+
|
|
25
|
+
# Sending number, or the number that typed an inbound message.
|
|
26
|
+
attr_accessor :from
|
|
27
|
+
|
|
28
|
+
# The other numbers, in the order they were sent.
|
|
29
|
+
attr_accessor :participants
|
|
30
|
+
|
|
31
|
+
# Text that was sent or received.
|
|
32
|
+
attr_accessor :text
|
|
33
|
+
|
|
34
|
+
# Subject shown with an outbound group text.
|
|
35
|
+
attr_accessor :subject
|
|
36
|
+
|
|
37
|
+
# Pictures or files attached to this group text.
|
|
38
|
+
attr_accessor :media
|
|
39
|
+
|
|
40
|
+
# Sum of the per-recipient multimedia message price.
|
|
41
|
+
attr_accessor :cost
|
|
42
|
+
|
|
43
|
+
# Notification type from the send.
|
|
44
|
+
attr_accessor :type
|
|
45
|
+
|
|
46
|
+
# When the send was accepted.
|
|
47
|
+
attr_accessor :sent_at
|
|
48
|
+
|
|
49
|
+
# When the first number was delivered.
|
|
50
|
+
attr_accessor :delivered_at
|
|
51
|
+
|
|
52
|
+
# When the send was rejected.
|
|
53
|
+
attr_accessor :failed_at
|
|
54
|
+
|
|
55
|
+
# Why the send was rejected.
|
|
56
|
+
attr_accessor :failure_code
|
|
57
|
+
|
|
58
|
+
# Extra detail for support. Omitted for other callers.
|
|
59
|
+
attr_accessor :failure_internal
|
|
60
|
+
|
|
61
|
+
# When each number was delivered.
|
|
62
|
+
attr_accessor :recipient_delivered_at
|
|
63
|
+
|
|
64
|
+
# When each number failed.
|
|
65
|
+
attr_accessor :recipient_failed_at
|
|
66
|
+
|
|
67
|
+
# Why each number failed.
|
|
68
|
+
attr_accessor :recipient_failure_code
|
|
69
|
+
|
|
70
|
+
# Number on your account that is in an inbound group text.
|
|
71
|
+
attr_accessor :our_number
|
|
72
|
+
|
|
73
|
+
# When an inbound message arrived.
|
|
74
|
+
attr_accessor :received_at
|
|
75
|
+
|
|
76
|
+
class EnumAttributeValidator
|
|
77
|
+
attr_reader :datatype
|
|
78
|
+
attr_reader :allowable_values
|
|
79
|
+
|
|
80
|
+
def initialize(datatype, allowable_values)
|
|
81
|
+
@allowable_values = allowable_values.map do |value|
|
|
82
|
+
case datatype.to_s
|
|
83
|
+
when /Integer/i
|
|
84
|
+
value.to_i
|
|
85
|
+
when /Float/i
|
|
86
|
+
value.to_f
|
|
87
|
+
else
|
|
88
|
+
value
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def valid?(value)
|
|
94
|
+
!value || allowable_values.include?(value)
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
99
|
+
def self.attribute_map
|
|
100
|
+
{
|
|
101
|
+
:'tracking_id' => :'trackingId',
|
|
102
|
+
:'direction' => :'direction',
|
|
103
|
+
:'from' => :'from',
|
|
104
|
+
:'participants' => :'participants',
|
|
105
|
+
:'text' => :'text',
|
|
106
|
+
:'subject' => :'subject',
|
|
107
|
+
:'media' => :'media',
|
|
108
|
+
:'cost' => :'cost',
|
|
109
|
+
:'type' => :'type',
|
|
110
|
+
:'sent_at' => :'sentAt',
|
|
111
|
+
:'delivered_at' => :'deliveredAt',
|
|
112
|
+
:'failed_at' => :'failedAt',
|
|
113
|
+
:'failure_code' => :'failureCode',
|
|
114
|
+
:'failure_internal' => :'failure_internal',
|
|
115
|
+
:'recipient_delivered_at' => :'recipientDeliveredAt',
|
|
116
|
+
:'recipient_failed_at' => :'recipientFailedAt',
|
|
117
|
+
:'recipient_failure_code' => :'recipientFailureCode',
|
|
118
|
+
:'our_number' => :'ourNumber',
|
|
119
|
+
:'received_at' => :'receivedAt'
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Returns attribute mapping this model knows about
|
|
124
|
+
def self.acceptable_attribute_map
|
|
125
|
+
attribute_map
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Returns all the JSON keys this model knows about
|
|
129
|
+
def self.acceptable_attributes
|
|
130
|
+
acceptable_attribute_map.values
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Attribute type mapping.
|
|
134
|
+
def self.openapi_types
|
|
135
|
+
{
|
|
136
|
+
:'tracking_id' => :'String',
|
|
137
|
+
:'direction' => :'String',
|
|
138
|
+
:'from' => :'String',
|
|
139
|
+
:'participants' => :'Array<String>',
|
|
140
|
+
:'text' => :'String',
|
|
141
|
+
:'subject' => :'String',
|
|
142
|
+
:'media' => :'Array<String>',
|
|
143
|
+
:'cost' => :'Float',
|
|
144
|
+
:'type' => :'String',
|
|
145
|
+
:'sent_at' => :'String',
|
|
146
|
+
:'delivered_at' => :'String',
|
|
147
|
+
:'failed_at' => :'String',
|
|
148
|
+
:'failure_code' => :'String',
|
|
149
|
+
:'failure_internal' => :'String',
|
|
150
|
+
:'recipient_delivered_at' => :'Hash<String, String>',
|
|
151
|
+
:'recipient_failed_at' => :'Hash<String, String>',
|
|
152
|
+
:'recipient_failure_code' => :'Hash<String, String>',
|
|
153
|
+
:'our_number' => :'String',
|
|
154
|
+
:'received_at' => :'String'
|
|
155
|
+
}
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# List of attributes with nullable: true
|
|
159
|
+
def self.openapi_nullable
|
|
160
|
+
Set.new([
|
|
161
|
+
])
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Initializes the object
|
|
165
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
166
|
+
def initialize(attributes = {})
|
|
167
|
+
if (!attributes.is_a?(Hash))
|
|
168
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetGroupTextLogResponseLogsInner` initialize method"
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
172
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
173
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
174
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
175
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetGroupTextLogResponseLogsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
176
|
+
end
|
|
177
|
+
h[k.to_sym] = v
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'tracking_id')
|
|
181
|
+
self.tracking_id = attributes[:'tracking_id']
|
|
182
|
+
else
|
|
183
|
+
self.tracking_id = nil
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'direction')
|
|
187
|
+
self.direction = attributes[:'direction']
|
|
188
|
+
else
|
|
189
|
+
self.direction = nil
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'from')
|
|
193
|
+
self.from = attributes[:'from']
|
|
194
|
+
else
|
|
195
|
+
self.from = nil
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'participants')
|
|
199
|
+
if (value = attributes[:'participants']).is_a?(Array)
|
|
200
|
+
self.participants = value
|
|
201
|
+
end
|
|
202
|
+
else
|
|
203
|
+
self.participants = nil
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.key?(:'text')
|
|
207
|
+
self.text = attributes[:'text']
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'subject')
|
|
211
|
+
self.subject = attributes[:'subject']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'media')
|
|
215
|
+
if (value = attributes[:'media']).is_a?(Array)
|
|
216
|
+
self.media = value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'cost')
|
|
221
|
+
self.cost = attributes[:'cost']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'type')
|
|
225
|
+
self.type = attributes[:'type']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'sent_at')
|
|
229
|
+
self.sent_at = attributes[:'sent_at']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'delivered_at')
|
|
233
|
+
self.delivered_at = attributes[:'delivered_at']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'failed_at')
|
|
237
|
+
self.failed_at = attributes[:'failed_at']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'failure_code')
|
|
241
|
+
self.failure_code = attributes[:'failure_code']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'failure_internal')
|
|
245
|
+
self.failure_internal = attributes[:'failure_internal']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'recipient_delivered_at')
|
|
249
|
+
if (value = attributes[:'recipient_delivered_at']).is_a?(Hash)
|
|
250
|
+
self.recipient_delivered_at = value
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'recipient_failed_at')
|
|
255
|
+
if (value = attributes[:'recipient_failed_at']).is_a?(Hash)
|
|
256
|
+
self.recipient_failed_at = value
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if attributes.key?(:'recipient_failure_code')
|
|
261
|
+
if (value = attributes[:'recipient_failure_code']).is_a?(Hash)
|
|
262
|
+
self.recipient_failure_code = value
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'our_number')
|
|
267
|
+
self.our_number = attributes[:'our_number']
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if attributes.key?(:'received_at')
|
|
271
|
+
self.received_at = attributes[:'received_at']
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
276
|
+
# @return Array for valid properties with the reasons
|
|
277
|
+
def list_invalid_properties
|
|
278
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
279
|
+
invalid_properties = Array.new
|
|
280
|
+
if @tracking_id.nil?
|
|
281
|
+
invalid_properties.push('invalid value for "tracking_id", tracking_id cannot be nil.')
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if @direction.nil?
|
|
285
|
+
invalid_properties.push('invalid value for "direction", direction cannot be nil.')
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if @from.nil?
|
|
289
|
+
invalid_properties.push('invalid value for "from", from cannot be nil.')
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if @participants.nil?
|
|
293
|
+
invalid_properties.push('invalid value for "participants", participants cannot be nil.')
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
invalid_properties
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# Check to see if the all the properties in the model are valid
|
|
300
|
+
# @return true if the model is valid
|
|
301
|
+
def valid?
|
|
302
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
303
|
+
return false if @tracking_id.nil?
|
|
304
|
+
return false if @direction.nil?
|
|
305
|
+
direction_validator = EnumAttributeValidator.new('String', ["outbound", "inbound"])
|
|
306
|
+
return false unless direction_validator.valid?(@direction)
|
|
307
|
+
return false if @from.nil?
|
|
308
|
+
return false if @participants.nil?
|
|
309
|
+
true
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Custom attribute writer method with validation
|
|
313
|
+
# @param [Object] tracking_id Value to be assigned
|
|
314
|
+
def tracking_id=(tracking_id)
|
|
315
|
+
if tracking_id.nil?
|
|
316
|
+
fail ArgumentError, 'tracking_id cannot be nil'
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
@tracking_id = tracking_id
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
323
|
+
# @param [Object] direction Object to be assigned
|
|
324
|
+
def direction=(direction)
|
|
325
|
+
validator = EnumAttributeValidator.new('String', ["outbound", "inbound"])
|
|
326
|
+
unless validator.valid?(direction)
|
|
327
|
+
fail ArgumentError, "invalid value for \"direction\", must be one of #{validator.allowable_values}."
|
|
328
|
+
end
|
|
329
|
+
@direction = direction
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Custom attribute writer method with validation
|
|
333
|
+
# @param [Object] from Value to be assigned
|
|
334
|
+
def from=(from)
|
|
335
|
+
if from.nil?
|
|
336
|
+
fail ArgumentError, 'from cannot be nil'
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
@from = from
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Custom attribute writer method with validation
|
|
343
|
+
# @param [Object] participants Value to be assigned
|
|
344
|
+
def participants=(participants)
|
|
345
|
+
if participants.nil?
|
|
346
|
+
fail ArgumentError, 'participants cannot be nil'
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
@participants = participants
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Checks equality by comparing each attribute.
|
|
353
|
+
# @param [Object] Object to be compared
|
|
354
|
+
def ==(o)
|
|
355
|
+
return true if self.equal?(o)
|
|
356
|
+
self.class == o.class &&
|
|
357
|
+
tracking_id == o.tracking_id &&
|
|
358
|
+
direction == o.direction &&
|
|
359
|
+
from == o.from &&
|
|
360
|
+
participants == o.participants &&
|
|
361
|
+
text == o.text &&
|
|
362
|
+
subject == o.subject &&
|
|
363
|
+
media == o.media &&
|
|
364
|
+
cost == o.cost &&
|
|
365
|
+
type == o.type &&
|
|
366
|
+
sent_at == o.sent_at &&
|
|
367
|
+
delivered_at == o.delivered_at &&
|
|
368
|
+
failed_at == o.failed_at &&
|
|
369
|
+
failure_code == o.failure_code &&
|
|
370
|
+
failure_internal == o.failure_internal &&
|
|
371
|
+
recipient_delivered_at == o.recipient_delivered_at &&
|
|
372
|
+
recipient_failed_at == o.recipient_failed_at &&
|
|
373
|
+
recipient_failure_code == o.recipient_failure_code &&
|
|
374
|
+
our_number == o.our_number &&
|
|
375
|
+
received_at == o.received_at
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# @see the `==` method
|
|
379
|
+
# @param [Object] Object to be compared
|
|
380
|
+
def eql?(o)
|
|
381
|
+
self == o
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Calculates hash code according to all attributes.
|
|
385
|
+
# @return [Integer] Hash code
|
|
386
|
+
def hash
|
|
387
|
+
[tracking_id, direction, from, participants, text, subject, media, cost, type, sent_at, delivered_at, failed_at, failure_code, failure_internal, recipient_delivered_at, recipient_failed_at, recipient_failure_code, our_number, received_at].hash
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Builds the object from hash
|
|
391
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
392
|
+
# @return [Object] Returns the model itself
|
|
393
|
+
def self.build_from_hash(attributes)
|
|
394
|
+
return nil unless attributes.is_a?(Hash)
|
|
395
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
396
|
+
transformed_hash = {}
|
|
397
|
+
openapi_types.each_pair do |key, type|
|
|
398
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
399
|
+
transformed_hash["#{key}"] = nil
|
|
400
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
401
|
+
# check to ensure the input is an array given that the attribute
|
|
402
|
+
# is documented as an array but the input is not
|
|
403
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
404
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
405
|
+
end
|
|
406
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
407
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
408
|
+
end
|
|
409
|
+
end
|
|
410
|
+
new(transformed_hash)
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Returns the object in the form of hash
|
|
414
|
+
# @return [Hash] Returns the object in the form of hash
|
|
415
|
+
def to_hash
|
|
416
|
+
hash = {}
|
|
417
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
418
|
+
value = self.send(attr)
|
|
419
|
+
if value.nil?
|
|
420
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
421
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
hash[param] = _to_hash(value)
|
|
425
|
+
end
|
|
426
|
+
hash
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
end
|
|
@@ -20,8 +20,10 @@ module Pingram
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :script
|
|
22
22
|
|
|
23
|
+
# Call recording. Omitted means off.
|
|
23
24
|
attr_accessor :record
|
|
24
25
|
|
|
26
|
+
# single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
|
|
25
27
|
attr_accessor :transcript
|
|
26
28
|
|
|
27
29
|
attr_accessor :stream
|
|
@@ -81,7 +83,7 @@ module Pingram
|
|
|
81
83
|
:'mode' => :'String',
|
|
82
84
|
:'script' => :'Array<ScriptStepsInner>',
|
|
83
85
|
:'record' => :'Boolean',
|
|
84
|
-
:'transcript' => :'
|
|
86
|
+
:'transcript' => :'String',
|
|
85
87
|
:'stream' => :'GetVoiceCallResponseCallSetupStream',
|
|
86
88
|
:'voicemail_action' => :'String',
|
|
87
89
|
:'voicemail_message' => :'String'
|
|
@@ -122,14 +124,10 @@ module Pingram
|
|
|
122
124
|
|
|
123
125
|
if attributes.key?(:'record')
|
|
124
126
|
self.record = attributes[:'record']
|
|
125
|
-
else
|
|
126
|
-
self.record = nil
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
if attributes.key?(:'transcript')
|
|
130
130
|
self.transcript = attributes[:'transcript']
|
|
131
|
-
else
|
|
132
|
-
self.transcript = nil
|
|
133
131
|
end
|
|
134
132
|
|
|
135
133
|
if attributes.key?(:'stream')
|
|
@@ -150,14 +148,6 @@ module Pingram
|
|
|
150
148
|
def list_invalid_properties
|
|
151
149
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
152
150
|
invalid_properties = Array.new
|
|
153
|
-
if @record.nil?
|
|
154
|
-
invalid_properties.push('invalid value for "record", record cannot be nil.')
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if @transcript.nil?
|
|
158
|
-
invalid_properties.push('invalid value for "transcript", transcript cannot be nil.')
|
|
159
|
-
end
|
|
160
|
-
|
|
161
151
|
invalid_properties
|
|
162
152
|
end
|
|
163
153
|
|
|
@@ -165,30 +155,20 @@ module Pingram
|
|
|
165
155
|
# @return true if the model is valid
|
|
166
156
|
def valid?
|
|
167
157
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
168
|
-
|
|
169
|
-
return false
|
|
158
|
+
transcript_validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
159
|
+
return false unless transcript_validator.valid?(@transcript)
|
|
170
160
|
voicemail_action_validator = EnumAttributeValidator.new('String', ["hangup", "message", "continue"])
|
|
171
161
|
return false unless voicemail_action_validator.valid?(@voicemail_action)
|
|
172
162
|
true
|
|
173
163
|
end
|
|
174
164
|
|
|
175
|
-
# Custom attribute writer method
|
|
176
|
-
# @param [Object]
|
|
177
|
-
def record=(record)
|
|
178
|
-
if record.nil?
|
|
179
|
-
fail ArgumentError, 'record cannot be nil'
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
@record = record
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
# Custom attribute writer method with validation
|
|
186
|
-
# @param [Object] transcript Value to be assigned
|
|
165
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
166
|
+
# @param [Object] transcript Object to be assigned
|
|
187
167
|
def transcript=(transcript)
|
|
188
|
-
|
|
189
|
-
|
|
168
|
+
validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
169
|
+
unless validator.valid?(transcript)
|
|
170
|
+
fail ArgumentError, "invalid value for \"transcript\", must be one of #{validator.allowable_values}."
|
|
190
171
|
end
|
|
191
|
-
|
|
192
172
|
@transcript = transcript
|
|
193
173
|
end
|
|
194
174
|
|
|
@@ -35,7 +35,7 @@ module Pingram
|
|
|
35
35
|
|
|
36
36
|
attr_accessor :from_name
|
|
37
37
|
|
|
38
|
-
# From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.
|
|
38
|
+
# From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.email` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience.
|
|
39
39
|
attr_accessor :from_address
|
|
40
40
|
|
|
41
41
|
attr_accessor :reply_to_address
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
# Response for GET /logs/group-texts.
|
|
18
|
+
class ListGroupTextsResponse < ApiModelBase
|
|
19
|
+
# Group texts, newest first.
|
|
20
|
+
attr_accessor :logs
|
|
21
|
+
|
|
22
|
+
# Pass this as cursor to load the next page.
|
|
23
|
+
attr_accessor :next_cursor
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'logs' => :'logs',
|
|
29
|
+
:'next_cursor' => :'nextCursor'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'logs' => :'Array<GetGroupTextLogResponseLogsInner>',
|
|
47
|
+
:'next_cursor' => :'String'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ListGroupTextsResponse` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ListGroupTextsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
69
|
+
end
|
|
70
|
+
h[k.to_sym] = v
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'logs')
|
|
74
|
+
if (value = attributes[:'logs']).is_a?(Array)
|
|
75
|
+
self.logs = value
|
|
76
|
+
end
|
|
77
|
+
else
|
|
78
|
+
self.logs = nil
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'next_cursor')
|
|
82
|
+
self.next_cursor = attributes[:'next_cursor']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
90
|
+
invalid_properties = Array.new
|
|
91
|
+
if @logs.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "logs", logs cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
invalid_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Check to see if the all the properties in the model are valid
|
|
99
|
+
# @return true if the model is valid
|
|
100
|
+
def valid?
|
|
101
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
|
+
return false if @logs.nil?
|
|
103
|
+
true
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Custom attribute writer method with validation
|
|
107
|
+
# @param [Object] logs Value to be assigned
|
|
108
|
+
def logs=(logs)
|
|
109
|
+
if logs.nil?
|
|
110
|
+
fail ArgumentError, 'logs cannot be nil'
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
@logs = logs
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Checks equality by comparing each attribute.
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def ==(o)
|
|
119
|
+
return true if self.equal?(o)
|
|
120
|
+
self.class == o.class &&
|
|
121
|
+
logs == o.logs &&
|
|
122
|
+
next_cursor == o.next_cursor
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# @see the `==` method
|
|
126
|
+
# @param [Object] Object to be compared
|
|
127
|
+
def eql?(o)
|
|
128
|
+
self == o
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Calculates hash code according to all attributes.
|
|
132
|
+
# @return [Integer] Hash code
|
|
133
|
+
def hash
|
|
134
|
+
[logs, next_cursor].hash
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Builds the object from hash
|
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
139
|
+
# @return [Object] Returns the model itself
|
|
140
|
+
def self.build_from_hash(attributes)
|
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
143
|
+
transformed_hash = {}
|
|
144
|
+
openapi_types.each_pair do |key, type|
|
|
145
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
146
|
+
transformed_hash["#{key}"] = nil
|
|
147
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
148
|
+
# check to ensure the input is an array given that the attribute
|
|
149
|
+
# is documented as an array but the input is not
|
|
150
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
151
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
152
|
+
end
|
|
153
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
154
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
new(transformed_hash)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Returns the object in the form of hash
|
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
|
162
|
+
def to_hash
|
|
163
|
+
hash = {}
|
|
164
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
165
|
+
value = self.send(attr)
|
|
166
|
+
if value.nil?
|
|
167
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
168
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
hash[param] = _to_hash(value)
|
|
172
|
+
end
|
|
173
|
+
hash
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
end
|