pingram 1.0.44 → 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/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/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/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 -0
- 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 -123
- 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,237 @@
|
|
|
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
|
+
# Send one text to several numbers at once. Phones keep a later text to the same numbers in the same chat.
|
|
18
|
+
class SendGroupTextRequest < ApiModelBase
|
|
19
|
+
# Notification type you can use later for filtering, analytics, and more. For example, \"onboarding\" or \"threshold_alert\".
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
# Two to eight mobile numbers in the US or Canada. Each number is billed at the multimedia message rate, including a text with no attachment.
|
|
23
|
+
attr_accessor :to
|
|
24
|
+
|
|
25
|
+
# Text to send. Required when mediaUrls is omitted.
|
|
26
|
+
attr_accessor :message
|
|
27
|
+
|
|
28
|
+
# Subject shown with the group text. Optional.
|
|
29
|
+
attr_accessor :subject
|
|
30
|
+
|
|
31
|
+
# Public HTTPS URLs of pictures or files to attach.
|
|
32
|
+
attr_accessor :media_urls
|
|
33
|
+
|
|
34
|
+
# Number the group text is sent from. When omitted, a number on this account is used.
|
|
35
|
+
attr_accessor :from
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'type' => :'type',
|
|
41
|
+
:'to' => :'to',
|
|
42
|
+
:'message' => :'message',
|
|
43
|
+
:'subject' => :'subject',
|
|
44
|
+
:'media_urls' => :'mediaUrls',
|
|
45
|
+
:'from' => :'from'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Returns attribute mapping this model knows about
|
|
50
|
+
def self.acceptable_attribute_map
|
|
51
|
+
attribute_map
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Returns all the JSON keys this model knows about
|
|
55
|
+
def self.acceptable_attributes
|
|
56
|
+
acceptable_attribute_map.values
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Attribute type mapping.
|
|
60
|
+
def self.openapi_types
|
|
61
|
+
{
|
|
62
|
+
:'type' => :'String',
|
|
63
|
+
:'to' => :'Array<String>',
|
|
64
|
+
:'message' => :'String',
|
|
65
|
+
:'subject' => :'String',
|
|
66
|
+
:'media_urls' => :'Array<String>',
|
|
67
|
+
:'from' => :'String'
|
|
68
|
+
}
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# List of attributes with nullable: true
|
|
72
|
+
def self.openapi_nullable
|
|
73
|
+
Set.new([
|
|
74
|
+
])
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Initializes the object
|
|
78
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
79
|
+
def initialize(attributes = {})
|
|
80
|
+
if (!attributes.is_a?(Hash))
|
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::SendGroupTextRequest` initialize method"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
85
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
87
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::SendGroupTextRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
89
|
+
end
|
|
90
|
+
h[k.to_sym] = v
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'type')
|
|
94
|
+
self.type = attributes[:'type']
|
|
95
|
+
else
|
|
96
|
+
self.type = nil
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'to')
|
|
100
|
+
if (value = attributes[:'to']).is_a?(Array)
|
|
101
|
+
self.to = value
|
|
102
|
+
end
|
|
103
|
+
else
|
|
104
|
+
self.to = nil
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'message')
|
|
108
|
+
self.message = attributes[:'message']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'subject')
|
|
112
|
+
self.subject = attributes[:'subject']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'media_urls')
|
|
116
|
+
if (value = attributes[:'media_urls']).is_a?(Array)
|
|
117
|
+
self.media_urls = value
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'from')
|
|
122
|
+
self.from = attributes[:'from']
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
127
|
+
# @return Array for valid properties with the reasons
|
|
128
|
+
def list_invalid_properties
|
|
129
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
130
|
+
invalid_properties = Array.new
|
|
131
|
+
if @type.nil?
|
|
132
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if @to.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
invalid_properties
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Check to see if the all the properties in the model are valid
|
|
143
|
+
# @return true if the model is valid
|
|
144
|
+
def valid?
|
|
145
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
+
return false if @type.nil?
|
|
147
|
+
return false if @to.nil?
|
|
148
|
+
true
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Custom attribute writer method with validation
|
|
152
|
+
# @param [Object] type Value to be assigned
|
|
153
|
+
def type=(type)
|
|
154
|
+
if type.nil?
|
|
155
|
+
fail ArgumentError, 'type cannot be nil'
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
@type = type
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Custom attribute writer method with validation
|
|
162
|
+
# @param [Object] to Value to be assigned
|
|
163
|
+
def to=(to)
|
|
164
|
+
if to.nil?
|
|
165
|
+
fail ArgumentError, 'to cannot be nil'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
@to = to
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Checks equality by comparing each attribute.
|
|
172
|
+
# @param [Object] Object to be compared
|
|
173
|
+
def ==(o)
|
|
174
|
+
return true if self.equal?(o)
|
|
175
|
+
self.class == o.class &&
|
|
176
|
+
type == o.type &&
|
|
177
|
+
to == o.to &&
|
|
178
|
+
message == o.message &&
|
|
179
|
+
subject == o.subject &&
|
|
180
|
+
media_urls == o.media_urls &&
|
|
181
|
+
from == o.from
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# @see the `==` method
|
|
185
|
+
# @param [Object] Object to be compared
|
|
186
|
+
def eql?(o)
|
|
187
|
+
self == o
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Calculates hash code according to all attributes.
|
|
191
|
+
# @return [Integer] Hash code
|
|
192
|
+
def hash
|
|
193
|
+
[type, to, message, subject, media_urls, from].hash
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Builds the object from hash
|
|
197
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
198
|
+
# @return [Object] Returns the model itself
|
|
199
|
+
def self.build_from_hash(attributes)
|
|
200
|
+
return nil unless attributes.is_a?(Hash)
|
|
201
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
202
|
+
transformed_hash = {}
|
|
203
|
+
openapi_types.each_pair do |key, type|
|
|
204
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
205
|
+
transformed_hash["#{key}"] = nil
|
|
206
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
207
|
+
# check to ensure the input is an array given that the attribute
|
|
208
|
+
# is documented as an array but the input is not
|
|
209
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
210
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
211
|
+
end
|
|
212
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
213
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
new(transformed_hash)
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Returns the object in the form of hash
|
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
|
221
|
+
def to_hash
|
|
222
|
+
hash = {}
|
|
223
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
224
|
+
value = self.send(attr)
|
|
225
|
+
if value.nil?
|
|
226
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
227
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
hash[param] = _to_hash(value)
|
|
231
|
+
end
|
|
232
|
+
hash
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
end
|
|
@@ -22,7 +22,7 @@ module Pingram
|
|
|
22
22
|
# Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language.
|
|
23
23
|
attr_accessor :campaign_sample1
|
|
24
24
|
|
|
25
|
-
# Second example SMS. Required before carrier submission. Required for MARKETING and
|
|
25
|
+
# Second example SMS. Required before carrier submission. Required for MARKETING, MIXED, and LOW_VOLUME use cases.
|
|
26
26
|
attr_accessor :campaign_sample2
|
|
27
27
|
|
|
28
28
|
# Optional third example SMS.
|
|
@@ -73,7 +73,7 @@ module Pingram
|
|
|
73
73
|
# Public URL of the terms and conditions that cover this SMS program.
|
|
74
74
|
attr_accessor :campaign_terms_and_conditions_link
|
|
75
75
|
|
|
76
|
-
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases
|
|
76
|
+
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, LOW_VOLUME, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append 2 to 5 comma-separated sub-use cases after MIXED, for example MIXED,2FA,ACCOUNT_NOTIFICATION. For LOW_VOLUME (low volume mixed), append 2 to 5 comma-separated sub-use cases after LOW_VOLUME, for example LOW_VOLUME,ACCOUNT_NOTIFICATION,CUSTOMER_CARE.
|
|
77
77
|
attr_accessor :campaign_usecase
|
|
78
78
|
|
|
79
79
|
attr_accessor :account_id
|
|
@@ -22,7 +22,7 @@ module Pingram
|
|
|
22
22
|
# Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language.
|
|
23
23
|
attr_accessor :campaign_sample1
|
|
24
24
|
|
|
25
|
-
# Second example SMS. Required before carrier submission. Required for MARKETING and
|
|
25
|
+
# Second example SMS. Required before carrier submission. Required for MARKETING, MIXED, and LOW_VOLUME use cases.
|
|
26
26
|
attr_accessor :campaign_sample2
|
|
27
27
|
|
|
28
28
|
# Optional third example SMS.
|
|
@@ -73,7 +73,7 @@ module Pingram
|
|
|
73
73
|
# Public URL of the terms and conditions that cover this SMS program.
|
|
74
74
|
attr_accessor :campaign_terms_and_conditions_link
|
|
75
75
|
|
|
76
|
-
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases
|
|
76
|
+
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, LOW_VOLUME, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append 2 to 5 comma-separated sub-use cases after MIXED, for example MIXED,2FA,ACCOUNT_NOTIFICATION. For LOW_VOLUME (low volume mixed), append 2 to 5 comma-separated sub-use cases after LOW_VOLUME, for example LOW_VOLUME,ACCOUNT_NOTIFICATION,CUSTOMER_CARE.
|
|
77
77
|
attr_accessor :campaign_usecase
|
|
78
78
|
|
|
79
79
|
# Who the 10DLC brand is registered for. - own_brand: personal or company project - client_brand: agency or contractor
|
|
@@ -22,7 +22,7 @@ module Pingram
|
|
|
22
22
|
# Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language.
|
|
23
23
|
attr_accessor :campaign_sample1
|
|
24
24
|
|
|
25
|
-
# Second example SMS. Required before carrier submission. Required for MARKETING and
|
|
25
|
+
# Second example SMS. Required before carrier submission. Required for MARKETING, MIXED, and LOW_VOLUME use cases.
|
|
26
26
|
attr_accessor :campaign_sample2
|
|
27
27
|
|
|
28
28
|
# Optional third example SMS.
|
|
@@ -73,7 +73,7 @@ module Pingram
|
|
|
73
73
|
# Public URL of the terms and conditions that cover this SMS program.
|
|
74
74
|
attr_accessor :campaign_terms_and_conditions_link
|
|
75
75
|
|
|
76
|
-
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases
|
|
76
|
+
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, LOW_VOLUME, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append 2 to 5 comma-separated sub-use cases after MIXED, for example MIXED,2FA,ACCOUNT_NOTIFICATION. For LOW_VOLUME (low volume mixed), append 2 to 5 comma-separated sub-use cases after LOW_VOLUME, for example LOW_VOLUME,ACCOUNT_NOTIFICATION,CUSTOMER_CARE.
|
|
77
77
|
attr_accessor :campaign_usecase
|
|
78
78
|
|
|
79
79
|
# Who the 10DLC brand is registered for. - own_brand: personal or company project - client_brand: agency or contractor
|
|
@@ -22,7 +22,7 @@ module Pingram
|
|
|
22
22
|
# Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language.
|
|
23
23
|
attr_accessor :campaign_sample1
|
|
24
24
|
|
|
25
|
-
# Second example SMS. Required before carrier submission. Required for MARKETING and
|
|
25
|
+
# Second example SMS. Required before carrier submission. Required for MARKETING, MIXED, and LOW_VOLUME use cases.
|
|
26
26
|
attr_accessor :campaign_sample2
|
|
27
27
|
|
|
28
28
|
# Optional third example SMS.
|
|
@@ -73,7 +73,7 @@ module Pingram
|
|
|
73
73
|
# Public URL of the terms and conditions that cover this SMS program.
|
|
74
74
|
attr_accessor :campaign_terms_and_conditions_link
|
|
75
75
|
|
|
76
|
-
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases
|
|
76
|
+
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, LOW_VOLUME, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append 2 to 5 comma-separated sub-use cases after MIXED, for example MIXED,2FA,ACCOUNT_NOTIFICATION. For LOW_VOLUME (low volume mixed), append 2 to 5 comma-separated sub-use cases after LOW_VOLUME, for example LOW_VOLUME,ACCOUNT_NOTIFICATION,CUSTOMER_CARE.
|
|
77
77
|
attr_accessor :campaign_usecase
|
|
78
78
|
|
|
79
79
|
# Pingram-side 10DLC registration workflow status (brand or campaign). - not_started: no customer submission yet - pending_review: customer submitted; Pingram has not submitted to carriers - in_progress: submitted for carrier review - approved | rejected | info_needed: review outcome
|
|
@@ -27,7 +27,7 @@ module Pingram
|
|
|
27
27
|
# Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language.
|
|
28
28
|
attr_accessor :campaign_sample1
|
|
29
29
|
|
|
30
|
-
# Second example SMS. Required before carrier submission. Required for MARKETING and
|
|
30
|
+
# Second example SMS. Required before carrier submission. Required for MARKETING, MIXED, and LOW_VOLUME use cases.
|
|
31
31
|
attr_accessor :campaign_sample2
|
|
32
32
|
|
|
33
33
|
# Optional third example SMS.
|
|
@@ -78,7 +78,7 @@ module Pingram
|
|
|
78
78
|
# Public URL of the terms and conditions that cover this SMS program.
|
|
79
79
|
attr_accessor :campaign_terms_and_conditions_link
|
|
80
80
|
|
|
81
|
-
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases
|
|
81
|
+
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, LOW_VOLUME, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append 2 to 5 comma-separated sub-use cases after MIXED, for example MIXED,2FA,ACCOUNT_NOTIFICATION. For LOW_VOLUME (low volume mixed), append 2 to 5 comma-separated sub-use cases after LOW_VOLUME, for example LOW_VOLUME,ACCOUNT_NOTIFICATION,CUSTOMER_CARE.
|
|
82
82
|
attr_accessor :campaign_usecase
|
|
83
83
|
|
|
84
84
|
attr_accessor :created_at
|
|
@@ -27,7 +27,7 @@ module Pingram
|
|
|
27
27
|
# Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language.
|
|
28
28
|
attr_accessor :campaign_sample1
|
|
29
29
|
|
|
30
|
-
# Second example SMS. Required before carrier submission. Required for MARKETING and
|
|
30
|
+
# Second example SMS. Required before carrier submission. Required for MARKETING, MIXED, and LOW_VOLUME use cases.
|
|
31
31
|
attr_accessor :campaign_sample2
|
|
32
32
|
|
|
33
33
|
# Optional third example SMS.
|
|
@@ -78,7 +78,7 @@ module Pingram
|
|
|
78
78
|
# Public URL of the terms and conditions that cover this SMS program.
|
|
79
79
|
attr_accessor :campaign_terms_and_conditions_link
|
|
80
80
|
|
|
81
|
-
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases
|
|
81
|
+
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, LOW_VOLUME, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append 2 to 5 comma-separated sub-use cases after MIXED, for example MIXED,2FA,ACCOUNT_NOTIFICATION. For LOW_VOLUME (low volume mixed), append 2 to 5 comma-separated sub-use cases after LOW_VOLUME, for example LOW_VOLUME,ACCOUNT_NOTIFICATION,CUSTOMER_CARE.
|
|
82
82
|
attr_accessor :campaign_usecase
|
|
83
83
|
|
|
84
84
|
attr_accessor :created_at
|
|
@@ -87,6 +87,9 @@ module Pingram
|
|
|
87
87
|
|
|
88
88
|
attr_accessor :campaign_id
|
|
89
89
|
|
|
90
|
+
# Carrier explanation of the current campaign status.
|
|
91
|
+
attr_accessor :campaign_status_description
|
|
92
|
+
|
|
90
93
|
class EnumAttributeValidator
|
|
91
94
|
attr_reader :datatype
|
|
92
95
|
attr_reader :allowable_values
|
|
@@ -136,7 +139,8 @@ module Pingram
|
|
|
136
139
|
:'campaign_usecase' => :'campaignUsecase',
|
|
137
140
|
:'created_at' => :'createdAt',
|
|
138
141
|
:'updated_at' => :'updatedAt',
|
|
139
|
-
:'campaign_id' => :'campaignId'
|
|
142
|
+
:'campaign_id' => :'campaignId',
|
|
143
|
+
:'campaign_status_description' => :'campaignStatusDescription'
|
|
140
144
|
}
|
|
141
145
|
end
|
|
142
146
|
|
|
@@ -177,7 +181,8 @@ module Pingram
|
|
|
177
181
|
:'campaign_usecase' => :'String',
|
|
178
182
|
:'created_at' => :'String',
|
|
179
183
|
:'updated_at' => :'String',
|
|
180
|
-
:'campaign_id' => :'String'
|
|
184
|
+
:'campaign_id' => :'String',
|
|
185
|
+
:'campaign_status_description' => :'String'
|
|
181
186
|
}
|
|
182
187
|
end
|
|
183
188
|
|
|
@@ -310,6 +315,10 @@ module Pingram
|
|
|
310
315
|
if attributes.key?(:'campaign_id')
|
|
311
316
|
self.campaign_id = attributes[:'campaign_id']
|
|
312
317
|
end
|
|
318
|
+
|
|
319
|
+
if attributes.key?(:'campaign_status_description')
|
|
320
|
+
self.campaign_status_description = attributes[:'campaign_status_description']
|
|
321
|
+
end
|
|
313
322
|
end
|
|
314
323
|
|
|
315
324
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -418,7 +427,8 @@ module Pingram
|
|
|
418
427
|
campaign_usecase == o.campaign_usecase &&
|
|
419
428
|
created_at == o.created_at &&
|
|
420
429
|
updated_at == o.updated_at &&
|
|
421
|
-
campaign_id == o.campaign_id
|
|
430
|
+
campaign_id == o.campaign_id &&
|
|
431
|
+
campaign_status_description == o.campaign_status_description
|
|
422
432
|
end
|
|
423
433
|
|
|
424
434
|
# @see the `==` method
|
|
@@ -430,7 +440,7 @@ module Pingram
|
|
|
430
440
|
# Calculates hash code according to all attributes.
|
|
431
441
|
# @return [Integer] Hash code
|
|
432
442
|
def hash
|
|
433
|
-
[account_id, campaign_status, campaign_description, campaign_sample1, campaign_sample2, campaign_sample3, campaign_sample4, campaign_message_flow, campaign_optin_keywords, campaign_optin_message, campaign_optout_keywords, campaign_optout_message, campaign_help_keywords, campaign_help_message, campaign_embedded_link, campaign_embedded_link_url, campaign_embedded_phone, campaign_age_gated, campaign_direct_lending, campaign_privacy_policy_link, campaign_terms_and_conditions_link, campaign_usecase, created_at, updated_at, campaign_id].hash
|
|
443
|
+
[account_id, campaign_status, campaign_description, campaign_sample1, campaign_sample2, campaign_sample3, campaign_sample4, campaign_message_flow, campaign_optin_keywords, campaign_optin_message, campaign_optout_keywords, campaign_optout_message, campaign_help_keywords, campaign_help_message, campaign_embedded_link, campaign_embedded_link_url, campaign_embedded_phone, campaign_age_gated, campaign_direct_lending, campaign_privacy_policy_link, campaign_terms_and_conditions_link, campaign_usecase, created_at, updated_at, campaign_id, campaign_status_description].hash
|
|
434
444
|
end
|
|
435
445
|
|
|
436
446
|
# Builds the object from hash
|
|
@@ -22,7 +22,7 @@ module Pingram
|
|
|
22
22
|
# Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language.
|
|
23
23
|
attr_accessor :campaign_sample1
|
|
24
24
|
|
|
25
|
-
# Second example SMS. Required before carrier submission. Required for MARKETING and
|
|
25
|
+
# Second example SMS. Required before carrier submission. Required for MARKETING, MIXED, and LOW_VOLUME use cases.
|
|
26
26
|
attr_accessor :campaign_sample2
|
|
27
27
|
|
|
28
28
|
# Optional third example SMS.
|
|
@@ -73,7 +73,7 @@ module Pingram
|
|
|
73
73
|
# Public URL of the terms and conditions that cover this SMS program.
|
|
74
74
|
attr_accessor :campaign_terms_and_conditions_link
|
|
75
75
|
|
|
76
|
-
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases
|
|
76
|
+
# 10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, LOW_VOLUME, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append 2 to 5 comma-separated sub-use cases after MIXED, for example MIXED,2FA,ACCOUNT_NOTIFICATION. For LOW_VOLUME (low volume mixed), append 2 to 5 comma-separated sub-use cases after LOW_VOLUME, for example LOW_VOLUME,ACCOUNT_NOTIFICATION,CUSTOMER_CARE.
|
|
77
77
|
attr_accessor :campaign_usecase
|
|
78
78
|
|
|
79
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -25,7 +25,7 @@ module Pingram
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :from_name
|
|
27
27
|
|
|
28
|
-
# From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.
|
|
28
|
+
# 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.
|
|
29
29
|
attr_accessor :from_address
|
|
30
30
|
|
|
31
31
|
# Omit to leave unchanged. Empty string clears Reply-To.
|
|
@@ -272,7 +272,7 @@ module Pingram
|
|
|
272
272
|
def valid?
|
|
273
273
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
274
274
|
return false if @event_type.nil?
|
|
275
|
-
event_type_validator = EnumAttributeValidator.new('String', ["EMAIL_OPEN", "EMAIL_CLICK", "EMAIL_FAILED", "EMAIL_DELIVERED", "EMAIL_UNSUBSCRIBE", "EMAIL_INBOUND", "INAPP_WEB_FAILED", "INAPP_WEB_UNSUBSCRIBE", "SMS_DELIVERED", "SMS_FAILED", "SMS_UNSUBSCRIBE", "SMS_SUBSCRIBE", "SMS_INBOUND", "VOICE_INBOUND", "VOICE_CONNECTED", "VOICE_ENDED", "PUSH_FAILED", "PUSH_UNSUBSCRIBE", "CALL_FAILED", "CALL_UNSUBSCRIBE", "WEB_PUSH_FAILED", "WEB_PUSH_UNSUBSCRIBE", "SLACK_FAILED", "SLACK_UNSUBSCRIBE", "ACCOUNT_USAGE"])
|
|
275
|
+
event_type_validator = EnumAttributeValidator.new('String', ["EMAIL_OPEN", "EMAIL_CLICK", "EMAIL_FAILED", "EMAIL_DELIVERED", "EMAIL_UNSUBSCRIBE", "EMAIL_INBOUND", "INAPP_WEB_FAILED", "INAPP_WEB_UNSUBSCRIBE", "SMS_DELIVERED", "SMS_FAILED", "SMS_UNSUBSCRIBE", "SMS_SUBSCRIBE", "SMS_INBOUND", "GROUP_TEXT_DELIVERED", "GROUP_TEXT_FAILED", "GROUP_TEXT_INBOUND", "VOICE_INBOUND", "VOICE_CONNECTED", "VOICE_ENDED", "PUSH_FAILED", "PUSH_UNSUBSCRIBE", "CALL_FAILED", "CALL_UNSUBSCRIBE", "WEB_PUSH_FAILED", "WEB_PUSH_UNSUBSCRIBE", "SLACK_FAILED", "SLACK_UNSUBSCRIBE", "ACCOUNT_USAGE"])
|
|
276
276
|
return false unless event_type_validator.valid?(@event_type)
|
|
277
277
|
return false if @channel.nil?
|
|
278
278
|
return false if @user_id.nil?
|
|
@@ -284,7 +284,7 @@ module Pingram
|
|
|
284
284
|
# Custom attribute writer method checking allowed values (enum).
|
|
285
285
|
# @param [Object] event_type Object to be assigned
|
|
286
286
|
def event_type=(event_type)
|
|
287
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_OPEN", "EMAIL_CLICK", "EMAIL_FAILED", "EMAIL_DELIVERED", "EMAIL_UNSUBSCRIBE", "EMAIL_INBOUND", "INAPP_WEB_FAILED", "INAPP_WEB_UNSUBSCRIBE", "SMS_DELIVERED", "SMS_FAILED", "SMS_UNSUBSCRIBE", "SMS_SUBSCRIBE", "SMS_INBOUND", "VOICE_INBOUND", "VOICE_CONNECTED", "VOICE_ENDED", "PUSH_FAILED", "PUSH_UNSUBSCRIBE", "CALL_FAILED", "CALL_UNSUBSCRIBE", "WEB_PUSH_FAILED", "WEB_PUSH_UNSUBSCRIBE", "SLACK_FAILED", "SLACK_UNSUBSCRIBE", "ACCOUNT_USAGE"])
|
|
287
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_OPEN", "EMAIL_CLICK", "EMAIL_FAILED", "EMAIL_DELIVERED", "EMAIL_UNSUBSCRIBE", "EMAIL_INBOUND", "INAPP_WEB_FAILED", "INAPP_WEB_UNSUBSCRIBE", "SMS_DELIVERED", "SMS_FAILED", "SMS_UNSUBSCRIBE", "SMS_SUBSCRIBE", "SMS_INBOUND", "GROUP_TEXT_DELIVERED", "GROUP_TEXT_FAILED", "GROUP_TEXT_INBOUND", "VOICE_INBOUND", "VOICE_CONNECTED", "VOICE_ENDED", "PUSH_FAILED", "PUSH_UNSUBSCRIBE", "CALL_FAILED", "CALL_UNSUBSCRIBE", "WEB_PUSH_FAILED", "WEB_PUSH_UNSUBSCRIBE", "SLACK_FAILED", "SLACK_UNSUBSCRIBE", "ACCOUNT_USAGE"])
|
|
288
288
|
unless validator.valid?(event_type)
|
|
289
289
|
fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
|
|
290
290
|
end
|
data/lib/pingram/version.rb
CHANGED
data/lib/pingram.rb
CHANGED
|
@@ -97,6 +97,8 @@ require 'pingram/models/get_account_metadata_response'
|
|
|
97
97
|
require 'pingram/models/get_account_metadata_response_user_account_metadata'
|
|
98
98
|
require 'pingram/models/get_email_components_response_inner'
|
|
99
99
|
require 'pingram/models/get_environments_response_inner'
|
|
100
|
+
require 'pingram/models/get_group_text_log_response'
|
|
101
|
+
require 'pingram/models/get_group_text_log_response_logs_inner'
|
|
100
102
|
require 'pingram/models/get_inapp_notifications_response'
|
|
101
103
|
require 'pingram/models/get_inapp_notifications_response_notifications_inner'
|
|
102
104
|
require 'pingram/models/get_inapp_notifications_response_notifications_inner_delivery_options'
|
|
@@ -202,6 +204,7 @@ require 'pingram/models/list_broadcast_recipients_response_recipients_inner'
|
|
|
202
204
|
require 'pingram/models/list_broadcasts_response'
|
|
203
205
|
require 'pingram/models/list_broadcasts_response_broadcasts_inner'
|
|
204
206
|
require 'pingram/models/list_broadcasts_response_broadcasts_inner_audience'
|
|
207
|
+
require 'pingram/models/list_group_texts_response'
|
|
205
208
|
require 'pingram/models/list_invoices_response'
|
|
206
209
|
require 'pingram/models/list_invoices_response_invoices_inner'
|
|
207
210
|
require 'pingram/models/list_library_response'
|
|
@@ -271,6 +274,7 @@ require 'pingram/models/send_email_api_response_any_of1'
|
|
|
271
274
|
require 'pingram/models/send_email_api_response_any_of1_error'
|
|
272
275
|
require 'pingram/models/send_email_request'
|
|
273
276
|
require 'pingram/models/send_email_request_attachments_inner'
|
|
277
|
+
require 'pingram/models/send_group_text_request'
|
|
274
278
|
require 'pingram/models/send_sms_request'
|
|
275
279
|
require 'pingram/models/send_sms_response'
|
|
276
280
|
require 'pingram/models/send_sms_response_any_of'
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,75 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 1.8.0
|
|
4
4
|
|
|
5
|
-
[Full Changelog](http://github.com/typhoeus/typhoeus/compare/v1.7.1...
|
|
5
|
+
[Full Changelog](http://github.com/typhoeus/typhoeus/compare/v1.7.1...v1.8.0)
|
|
6
|
+
|
|
7
|
+
This release adds response streaming to the Faraday adapter, multipart parts
|
|
8
|
+
with their own content type, reusable multi handles, `Response#certinfo` and
|
|
9
|
+
fork-safe hydra memoization. It requires Ethon 0.19.2 or newer.
|
|
10
|
+
|
|
11
|
+
### Breaking changes
|
|
12
|
+
|
|
13
|
+
* Require Ethon >= 0.19.2. `Ethon::Multipart::Part` and the `certinfo` mirror
|
|
14
|
+
need it, and so does the fork opt-in the README describes. Ethon is still
|
|
15
|
+
constrained to `< 0.20`.
|
|
16
|
+
|
|
17
|
+
### Behavior changes
|
|
18
|
+
|
|
19
|
+
* Stream response bodies through Faraday's `on_data` callback. On Faraday
|
|
20
|
+
2.5+, the callback receives `env` as a third argument with the status and
|
|
21
|
+
headers already set, like with Faraday's `net_http` adapter. A request with
|
|
22
|
+
`on_data` set now gets an empty `response.body`; it used to get the full
|
|
23
|
+
body, the callback being ignored.
|
|
24
|
+
([#834](https://github.com/typhoeus/typhoeus/pull/834))
|
|
25
|
+
|
|
26
|
+
### Enhancements
|
|
27
|
+
|
|
28
|
+
* Add `Typhoeus::Multipart::Part` for setting the content type and, optionally,
|
|
29
|
+
the filename of a single `multipart/form-data` part. This makes it possible
|
|
30
|
+
to send a JSON field with `Content-Type: application/json` or to override the
|
|
31
|
+
detected content type and filename of an uploaded file.
|
|
32
|
+
([#494](https://github.com/typhoeus/typhoeus/issues/494))
|
|
33
|
+
|
|
34
|
+
* Add `Hydra#release`, which returns the native multi handle to a pool so the
|
|
35
|
+
next hydra reuses its connection cache instead of paying for a new TLS
|
|
36
|
+
handshake. `Typhoeus::Config.max_idle_multis` controls the pool (default 5,
|
|
37
|
+
`0` disables it). In a forked child, a hydra drops a handle it built before
|
|
38
|
+
the fork instead of pooling it, since Ethon rejects the parent's handle there.
|
|
39
|
+
([#832](https://github.com/typhoeus/typhoeus/issues/832))
|
|
40
|
+
|
|
41
|
+
* Add `Response#certinfo`, the server's certificate chain when the request is
|
|
42
|
+
made with `certinfo: true`.
|
|
43
|
+
([#427](https://github.com/typhoeus/typhoeus/issues/427))
|
|
44
|
+
|
|
45
|
+
* Return a new hydra from `Typhoeus::Hydra.hydra` in a forked child instead of
|
|
46
|
+
the one it memoized in the parent. The child no longer inherits requests
|
|
47
|
+
queued on that hydra, so the parent and child no longer both send them, and it
|
|
48
|
+
no longer uses the parent's multi handle, which Ethon 0.19 rejects in the
|
|
49
|
+
child. A server that forks workers after using libcurl can opt in with
|
|
50
|
+
`Ethon::Curl.allow_handles_after_fork!` in each worker before it creates a
|
|
51
|
+
handle (not supported on macOS).
|
|
52
|
+
([ethon#462](https://github.com/typhoeus/ethon/issues/462))
|
|
53
|
+
|
|
54
|
+
### Fixes and hardening
|
|
55
|
+
|
|
56
|
+
* Keep a discarded easy in the pool when its cleanup fails. A cleanup error
|
|
57
|
+
raised from an `on_complete` callback aborted the hydra run and left the
|
|
58
|
+
remaining requests without a response, which made CocoaPods' CDN source wait
|
|
59
|
+
forever.
|
|
60
|
+
([#825](https://github.com/typhoeus/typhoeus/issues/825))
|
|
61
|
+
|
|
62
|
+
### Documentation and maintenance
|
|
63
|
+
|
|
64
|
+
* Update the macOS fork advice for Ethon 0.19: initializing libcurl in the
|
|
65
|
+
parent now makes the child raise, so create handles after the fork or use
|
|
66
|
+
`fork` followed by `exec`.
|
|
67
|
+
([#836](https://github.com/typhoeus/typhoeus/pull/836))
|
|
68
|
+
* Run the suite against Faraday 1.x as well.
|
|
69
|
+
([#834](https://github.com/typhoeus/typhoeus/pull/834))
|
|
70
|
+
* Skip the memory-usage and leader-change specs on JRuby, where they cannot
|
|
71
|
+
assert the same thing.
|
|
72
|
+
([#831](https://github.com/typhoeus/typhoeus/pull/831))
|
|
6
73
|
|
|
7
74
|
## 1.7.1
|
|
8
75
|
|