pingram 1.0.16 → 1.0.17
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/numbers_api.rb +2 -2
- data/lib/pingram/api/organization_api.rb +15 -4
- data/lib/pingram/api/profile_api.rb +66 -0
- data/lib/pingram/api/voice_api.rb +733 -0
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/client_wrapper.rb +10 -0
- data/lib/pingram/models/api_error_body.rb +4 -24
- data/lib/pingram/models/billing_post_request_body.rb +2 -12
- data/lib/pingram/models/billing_post_response_body.rb +22 -1
- data/lib/pingram/models/bind_number_request.rb +164 -0
- data/lib/pingram/models/bind_number_response.rb +164 -0
- data/lib/pingram/models/bind_number_response_agent.rb +342 -0
- data/lib/pingram/models/bind_number_response_agent_spec.rb +376 -0
- data/lib/pingram/models/bind_number_response_agent_spec_compliance.rb +164 -0
- data/lib/pingram/models/bind_number_response_agent_spec_conversation.rb +328 -0
- data/lib/pingram/models/bind_number_response_agent_spec_inbound.rb +214 -0
- data/lib/pingram/models/bind_number_response_agent_spec_model.rb +105 -0
- data/lib/pingram/models/bind_number_response_agent_spec_outbound.rb +251 -0
- data/lib/pingram/models/bind_number_response_agent_spec_tools_inner.rb +107 -0
- data/lib/pingram/models/bind_number_response_agent_spec_variables_inner.rb +182 -0
- data/lib/pingram/models/chained.rb +401 -0
- data/lib/pingram/models/channels_enum.rb +2 -1
- data/lib/pingram/models/create_organization_request.rb +150 -0
- data/lib/pingram/models/create_voice_agent_request.rb +164 -0
- data/lib/pingram/models/create_voice_agent_response.rb +164 -0
- data/lib/pingram/models/custom.rb +278 -0
- data/lib/pingram/models/delete_account_request.rb +147 -0
- data/lib/pingram/models/delete_voice_agent_response.rb +164 -0
- data/lib/pingram/models/dtmf.rb +188 -0
- data/lib/pingram/models/get_notifications_response_inner_options.rb +10 -1
- data/lib/pingram/models/get_senders_response_inner.rb +13 -4
- data/lib/pingram/models/get_senders_response_inner_verification_records.rb +184 -0
- data/lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb +287 -0
- data/lib/pingram/models/get_voice_agent_response.rb +164 -0
- data/lib/pingram/models/get_voice_call_response.rb +164 -0
- data/lib/pingram/models/get_voice_call_response_call.rb +521 -0
- data/lib/pingram/models/get_voice_call_response_call_cost.rb +193 -0
- data/lib/pingram/models/get_voice_call_response_call_cost_lines_inner.rb +245 -0
- data/lib/pingram/models/get_voice_call_response_call_timeline_inner.rb +247 -0
- data/lib/pingram/models/get_voice_call_response_call_timeline_inner_latency.rb +191 -0
- data/lib/pingram/models/inbound_response_body_results_inner.rb +4 -4
- data/lib/pingram/models/knowledge.rb +216 -0
- data/lib/pingram/models/knowledge_documents_inner.rb +217 -0
- data/lib/pingram/models/list_phone_numbers_response_numbers_inner.rb +14 -4
- data/lib/pingram/models/list_voice_agents_response.rb +166 -0
- data/lib/pingram/models/list_voice_calls_response.rb +176 -0
- data/lib/pingram/models/list_voice_calls_response_calls_inner.rb +463 -0
- data/lib/pingram/models/logs_get_response_logs_inner.rb +4 -4
- data/lib/pingram/models/mcp.rb +223 -0
- data/lib/pingram/models/organization.rb +22 -1
- data/lib/pingram/models/organization_usage.rb +13 -159
- data/lib/pingram/models/organization_usage_costs.rb +148 -0
- data/lib/pingram/models/organization_usage_counts.rb +347 -0
- data/lib/pingram/models/organization_usage_history_items_inner.rb +16 -154
- data/lib/pingram/models/organization_usage_history_items_inner_counts.rb +346 -0
- data/lib/pingram/models/phone_verify_confirm_request.rb +16 -4
- data/lib/pingram/models/s2s.rb +295 -0
- data/lib/pingram/models/send_email_api_response_any_of1_error.rb +4 -24
- data/lib/pingram/models/send_email_request.rb +1 -1
- data/lib/pingram/models/send_sms_response_any_of1_error.rb +4 -24
- data/lib/pingram/models/sender_post_body_options_email.rb +1 -1
- data/lib/pingram/models/{a2p_registration_create_request.rb → ten_dlc_brand_create_request.rb} +38 -28
- data/lib/pingram/models/{a2p_registration.rb → ten_dlc_brand_registration.rb} +54 -22
- data/lib/pingram/models/{a2p_registration_update_request.rb → ten_dlc_brand_update_request.rb} +38 -11
- data/lib/pingram/models/transfer.rb +251 -0
- data/lib/pingram/models/unbind_number_response.rb +164 -0
- data/lib/pingram/models/update_voice_agent_request.rb +164 -0
- data/lib/pingram/models/update_voice_agent_response.rb +164 -0
- data/lib/pingram/models/voice_browser_call_request.rb +186 -0
- data/lib/pingram/models/voice_browser_call_response.rb +216 -0
- data/lib/pingram/models/voice_call_request.rb +212 -0
- data/lib/pingram/models/voice_call_response.rb +217 -0
- data/lib/pingram/models/webhook_event.rb +2 -2
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +50 -3
- data/vendor/bundle/ruby/3.2.0/cache/parser-3.3.12.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/mkmf.log +3 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/current.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/specifications/{parser-3.3.11.1.gemspec → parser-3.3.12.0.gemspec} +4 -4
- metadata +134 -87
- data/vendor/bundle/ruby/3.2.0/cache/parser-3.3.11.1.gem +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/bin/ruby-parse +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/bin/ruby-rewrite +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/gauntlet_parser.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/all.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ast/node.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ast/processor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/base.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/builders/default.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/clobbering_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/color.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/context.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/current_arg_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/deprecation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/diagnostic/engine.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/diagnostic.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer/dedenter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer/explanation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer/literal.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer/stack_state.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer-F0.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer-F1.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer-strings.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/macruby.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/max_numparam_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/meta.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby18.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby19.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby20.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby21.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby22.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby23.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby24.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby25.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby26.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby27.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby30.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby31.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby32.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby33.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby34.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/rubymotion.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/runner/ruby_parse.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/runner/ruby_rewrite.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/runner.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/buffer.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/comment/associator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/comment.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/collection.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/condition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/constant.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/definition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/for.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/heredoc.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/index.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/keyword.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/operator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/rescue_body.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/send.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/ternary.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/variable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/range.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/tree_rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/static_environment.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/syntax_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/unknown_encoding_in_magic_comment_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/variables_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/parser.gemspec +0 -0
|
@@ -25,20 +25,12 @@ module Pingram
|
|
|
25
25
|
# Actionable hint for fixing the error.
|
|
26
26
|
attr_accessor :fix
|
|
27
27
|
|
|
28
|
-
# Provider that rejected the message (e.g. 'ses').
|
|
29
|
-
attr_accessor :provider
|
|
30
|
-
|
|
31
|
-
# Provider-specific error code.
|
|
32
|
-
attr_accessor :provider_code
|
|
33
|
-
|
|
34
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
29
|
def self.attribute_map
|
|
36
30
|
{
|
|
37
31
|
:'code' => :'code',
|
|
38
32
|
:'message' => :'message',
|
|
39
|
-
:'fix' => :'fix'
|
|
40
|
-
:'provider' => :'provider',
|
|
41
|
-
:'provider_code' => :'providerCode'
|
|
33
|
+
:'fix' => :'fix'
|
|
42
34
|
}
|
|
43
35
|
end
|
|
44
36
|
|
|
@@ -57,9 +49,7 @@ module Pingram
|
|
|
57
49
|
{
|
|
58
50
|
:'code' => :'String',
|
|
59
51
|
:'message' => :'String',
|
|
60
|
-
:'fix' => :'String'
|
|
61
|
-
:'provider' => :'String',
|
|
62
|
-
:'provider_code' => :'String'
|
|
52
|
+
:'fix' => :'String'
|
|
63
53
|
}
|
|
64
54
|
end
|
|
65
55
|
|
|
@@ -100,14 +90,6 @@ module Pingram
|
|
|
100
90
|
if attributes.key?(:'fix')
|
|
101
91
|
self.fix = attributes[:'fix']
|
|
102
92
|
end
|
|
103
|
-
|
|
104
|
-
if attributes.key?(:'provider')
|
|
105
|
-
self.provider = attributes[:'provider']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if attributes.key?(:'provider_code')
|
|
109
|
-
self.provider_code = attributes[:'provider_code']
|
|
110
|
-
end
|
|
111
93
|
end
|
|
112
94
|
|
|
113
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -162,9 +144,7 @@ module Pingram
|
|
|
162
144
|
self.class == o.class &&
|
|
163
145
|
code == o.code &&
|
|
164
146
|
message == o.message &&
|
|
165
|
-
fix == o.fix
|
|
166
|
-
provider == o.provider &&
|
|
167
|
-
provider_code == o.provider_code
|
|
147
|
+
fix == o.fix
|
|
168
148
|
end
|
|
169
149
|
|
|
170
150
|
# @see the `==` method
|
|
@@ -176,7 +156,7 @@ module Pingram
|
|
|
176
156
|
# Calculates hash code according to all attributes.
|
|
177
157
|
# @return [Integer] Hash code
|
|
178
158
|
def hash
|
|
179
|
-
[code, message, fix
|
|
159
|
+
[code, message, fix].hash
|
|
180
160
|
end
|
|
181
161
|
|
|
182
162
|
# Builds the object from hash
|
|
@@ -25,20 +25,12 @@ module Pingram
|
|
|
25
25
|
# Actionable hint for fixing the error.
|
|
26
26
|
attr_accessor :fix
|
|
27
27
|
|
|
28
|
-
# Provider that rejected the message (e.g. 'telnyx').
|
|
29
|
-
attr_accessor :provider
|
|
30
|
-
|
|
31
|
-
# Provider-specific error code.
|
|
32
|
-
attr_accessor :provider_code
|
|
33
|
-
|
|
34
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
29
|
def self.attribute_map
|
|
36
30
|
{
|
|
37
31
|
:'code' => :'code',
|
|
38
32
|
:'message' => :'message',
|
|
39
|
-
:'fix' => :'fix'
|
|
40
|
-
:'provider' => :'provider',
|
|
41
|
-
:'provider_code' => :'providerCode'
|
|
33
|
+
:'fix' => :'fix'
|
|
42
34
|
}
|
|
43
35
|
end
|
|
44
36
|
|
|
@@ -57,9 +49,7 @@ module Pingram
|
|
|
57
49
|
{
|
|
58
50
|
:'code' => :'String',
|
|
59
51
|
:'message' => :'String',
|
|
60
|
-
:'fix' => :'String'
|
|
61
|
-
:'provider' => :'String',
|
|
62
|
-
:'provider_code' => :'String'
|
|
52
|
+
:'fix' => :'String'
|
|
63
53
|
}
|
|
64
54
|
end
|
|
65
55
|
|
|
@@ -100,14 +90,6 @@ module Pingram
|
|
|
100
90
|
if attributes.key?(:'fix')
|
|
101
91
|
self.fix = attributes[:'fix']
|
|
102
92
|
end
|
|
103
|
-
|
|
104
|
-
if attributes.key?(:'provider')
|
|
105
|
-
self.provider = attributes[:'provider']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if attributes.key?(:'provider_code')
|
|
109
|
-
self.provider_code = attributes[:'provider_code']
|
|
110
|
-
end
|
|
111
93
|
end
|
|
112
94
|
|
|
113
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -162,9 +144,7 @@ module Pingram
|
|
|
162
144
|
self.class == o.class &&
|
|
163
145
|
code == o.code &&
|
|
164
146
|
message == o.message &&
|
|
165
|
-
fix == o.fix
|
|
166
|
-
provider == o.provider &&
|
|
167
|
-
provider_code == o.provider_code
|
|
147
|
+
fix == o.fix
|
|
168
148
|
end
|
|
169
149
|
|
|
170
150
|
# @see the `==` method
|
|
@@ -176,7 +156,7 @@ module Pingram
|
|
|
176
156
|
# Calculates hash code according to all attributes.
|
|
177
157
|
# @return [Integer] Hash code
|
|
178
158
|
def hash
|
|
179
|
-
[code, message, fix
|
|
159
|
+
[code, message, fix].hash
|
|
180
160
|
end
|
|
181
161
|
|
|
182
162
|
# Builds the object from hash
|
|
@@ -31,7 +31,7 @@ module Pingram
|
|
|
31
31
|
# Override sender display name.
|
|
32
32
|
attr_accessor :from_name
|
|
33
33
|
|
|
34
|
-
# File attachments (by URL or inline base64 content).
|
|
34
|
+
# File attachments (by URL or inline base64 content). Inline `content`: ~4 MB raw per file (413 if exceeded). URL `url`: up to 20 MB per file.
|
|
35
35
|
attr_accessor :attachments
|
|
36
36
|
|
|
37
37
|
# Conditional expression for when to send (e.g. merge tag logic).
|
data/lib/pingram/models/{a2p_registration_create_request.rb → ten_dlc_brand_create_request.rb}
RENAMED
|
@@ -14,8 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Request body for POST /registrations/
|
|
18
|
-
class
|
|
17
|
+
# Request body for POST /registrations/us/10dlc/brand
|
|
18
|
+
class TenDlcBrandCreateRequest < ApiModelBase
|
|
19
19
|
attr_accessor :scenario_id
|
|
20
20
|
|
|
21
21
|
attr_accessor :business_type
|
|
@@ -28,7 +28,13 @@ module Pingram
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :country
|
|
30
30
|
|
|
31
|
-
attr_accessor :
|
|
31
|
+
attr_accessor :street
|
|
32
|
+
|
|
33
|
+
attr_accessor :city
|
|
34
|
+
|
|
35
|
+
attr_accessor :state
|
|
36
|
+
|
|
37
|
+
attr_accessor :postal_code
|
|
32
38
|
|
|
33
39
|
attr_accessor :compliance_contact_email
|
|
34
40
|
|
|
@@ -43,7 +49,10 @@ module Pingram
|
|
|
43
49
|
:'tax_id' => :'taxId',
|
|
44
50
|
:'website' => :'website',
|
|
45
51
|
:'country' => :'country',
|
|
46
|
-
:'
|
|
52
|
+
:'street' => :'street',
|
|
53
|
+
:'city' => :'city',
|
|
54
|
+
:'state' => :'state',
|
|
55
|
+
:'postal_code' => :'postalCode',
|
|
47
56
|
:'compliance_contact_email' => :'complianceContactEmail',
|
|
48
57
|
:'compliance_contact_phone' => :'complianceContactPhone'
|
|
49
58
|
}
|
|
@@ -68,7 +77,10 @@ module Pingram
|
|
|
68
77
|
:'tax_id' => :'String',
|
|
69
78
|
:'website' => :'String',
|
|
70
79
|
:'country' => :'String',
|
|
71
|
-
:'
|
|
80
|
+
:'street' => :'String',
|
|
81
|
+
:'city' => :'String',
|
|
82
|
+
:'state' => :'String',
|
|
83
|
+
:'postal_code' => :'String',
|
|
72
84
|
:'compliance_contact_email' => :'String',
|
|
73
85
|
:'compliance_contact_phone' => :'String'
|
|
74
86
|
}
|
|
@@ -84,14 +96,14 @@ module Pingram
|
|
|
84
96
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
85
97
|
def initialize(attributes = {})
|
|
86
98
|
if (!attributes.is_a?(Hash))
|
|
87
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
99
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::TenDlcBrandCreateRequest` initialize method"
|
|
88
100
|
end
|
|
89
101
|
|
|
90
102
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
91
103
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
92
104
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
93
105
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
94
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
106
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::TenDlcBrandCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
95
107
|
end
|
|
96
108
|
h[k.to_sym] = v
|
|
97
109
|
}
|
|
@@ -130,10 +142,20 @@ module Pingram
|
|
|
130
142
|
self.country = nil
|
|
131
143
|
end
|
|
132
144
|
|
|
133
|
-
if attributes.key?(:'
|
|
134
|
-
self.
|
|
135
|
-
|
|
136
|
-
|
|
145
|
+
if attributes.key?(:'street')
|
|
146
|
+
self.street = attributes[:'street']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'city')
|
|
150
|
+
self.city = attributes[:'city']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'state')
|
|
154
|
+
self.state = attributes[:'state']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'postal_code')
|
|
158
|
+
self.postal_code = attributes[:'postal_code']
|
|
137
159
|
end
|
|
138
160
|
|
|
139
161
|
if attributes.key?(:'compliance_contact_email')
|
|
@@ -174,10 +196,6 @@ module Pingram
|
|
|
174
196
|
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
|
175
197
|
end
|
|
176
198
|
|
|
177
|
-
if @full_address.nil?
|
|
178
|
-
invalid_properties.push('invalid value for "full_address", full_address cannot be nil.')
|
|
179
|
-
end
|
|
180
|
-
|
|
181
199
|
if @compliance_contact_email.nil?
|
|
182
200
|
invalid_properties.push('invalid value for "compliance_contact_email", compliance_contact_email cannot be nil.')
|
|
183
201
|
end
|
|
@@ -198,7 +216,6 @@ module Pingram
|
|
|
198
216
|
return false if @legal_name.nil?
|
|
199
217
|
return false if @website.nil?
|
|
200
218
|
return false if @country.nil?
|
|
201
|
-
return false if @full_address.nil?
|
|
202
219
|
return false if @compliance_contact_email.nil?
|
|
203
220
|
return false if @compliance_contact_phone.nil?
|
|
204
221
|
true
|
|
@@ -254,16 +271,6 @@ module Pingram
|
|
|
254
271
|
@country = country
|
|
255
272
|
end
|
|
256
273
|
|
|
257
|
-
# Custom attribute writer method with validation
|
|
258
|
-
# @param [Object] full_address Value to be assigned
|
|
259
|
-
def full_address=(full_address)
|
|
260
|
-
if full_address.nil?
|
|
261
|
-
fail ArgumentError, 'full_address cannot be nil'
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
@full_address = full_address
|
|
265
|
-
end
|
|
266
|
-
|
|
267
274
|
# Custom attribute writer method with validation
|
|
268
275
|
# @param [Object] compliance_contact_email Value to be assigned
|
|
269
276
|
def compliance_contact_email=(compliance_contact_email)
|
|
@@ -295,7 +302,10 @@ module Pingram
|
|
|
295
302
|
tax_id == o.tax_id &&
|
|
296
303
|
website == o.website &&
|
|
297
304
|
country == o.country &&
|
|
298
|
-
|
|
305
|
+
street == o.street &&
|
|
306
|
+
city == o.city &&
|
|
307
|
+
state == o.state &&
|
|
308
|
+
postal_code == o.postal_code &&
|
|
299
309
|
compliance_contact_email == o.compliance_contact_email &&
|
|
300
310
|
compliance_contact_phone == o.compliance_contact_phone
|
|
301
311
|
end
|
|
@@ -309,7 +319,7 @@ module Pingram
|
|
|
309
319
|
# Calculates hash code according to all attributes.
|
|
310
320
|
# @return [Integer] Hash code
|
|
311
321
|
def hash
|
|
312
|
-
[scenario_id, business_type, legal_name, tax_id, website, country,
|
|
322
|
+
[scenario_id, business_type, legal_name, tax_id, website, country, street, city, state, postal_code, compliance_contact_email, compliance_contact_phone].hash
|
|
313
323
|
end
|
|
314
324
|
|
|
315
325
|
# Builds the object from hash
|
|
@@ -14,8 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Public response type for
|
|
18
|
-
class
|
|
17
|
+
# Public response type for 10DLC brand registration
|
|
18
|
+
class TenDlcBrandRegistration < ApiModelBase
|
|
19
19
|
attr_accessor :account_id
|
|
20
20
|
|
|
21
21
|
attr_accessor :scenario_id
|
|
@@ -24,20 +24,34 @@ module Pingram
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :legal_name
|
|
26
26
|
|
|
27
|
+
# Brand display name (marketing/DBA); defaults to legalName on customer submit.
|
|
28
|
+
attr_accessor :display_name
|
|
29
|
+
|
|
27
30
|
attr_accessor :tax_id
|
|
28
31
|
|
|
29
32
|
attr_accessor :website
|
|
30
33
|
|
|
31
34
|
attr_accessor :country
|
|
32
35
|
|
|
36
|
+
attr_accessor :street
|
|
37
|
+
|
|
38
|
+
attr_accessor :city
|
|
39
|
+
|
|
40
|
+
attr_accessor :state
|
|
41
|
+
|
|
42
|
+
attr_accessor :postal_code
|
|
43
|
+
|
|
44
|
+
# Legacy records only; new submissions use structured address fields.
|
|
33
45
|
attr_accessor :full_address
|
|
34
46
|
|
|
35
47
|
attr_accessor :compliance_contact_email
|
|
36
48
|
|
|
37
49
|
attr_accessor :compliance_contact_phone
|
|
38
50
|
|
|
51
|
+
# Pingram-side brand registration workflow status. - 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
|
|
39
52
|
attr_accessor :brand_status
|
|
40
53
|
|
|
54
|
+
# Pingram-side brand registration workflow status. - 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
|
|
41
55
|
attr_accessor :campaign_status
|
|
42
56
|
|
|
43
57
|
attr_accessor :created_at
|
|
@@ -73,9 +87,14 @@ module Pingram
|
|
|
73
87
|
:'scenario_id' => :'scenarioId',
|
|
74
88
|
:'business_type' => :'businessType',
|
|
75
89
|
:'legal_name' => :'legalName',
|
|
90
|
+
:'display_name' => :'displayName',
|
|
76
91
|
:'tax_id' => :'taxId',
|
|
77
92
|
:'website' => :'website',
|
|
78
93
|
:'country' => :'country',
|
|
94
|
+
:'street' => :'street',
|
|
95
|
+
:'city' => :'city',
|
|
96
|
+
:'state' => :'state',
|
|
97
|
+
:'postal_code' => :'postalCode',
|
|
79
98
|
:'full_address' => :'fullAddress',
|
|
80
99
|
:'compliance_contact_email' => :'complianceContactEmail',
|
|
81
100
|
:'compliance_contact_phone' => :'complianceContactPhone',
|
|
@@ -103,9 +122,14 @@ module Pingram
|
|
|
103
122
|
:'scenario_id' => :'String',
|
|
104
123
|
:'business_type' => :'String',
|
|
105
124
|
:'legal_name' => :'String',
|
|
125
|
+
:'display_name' => :'String',
|
|
106
126
|
:'tax_id' => :'String',
|
|
107
127
|
:'website' => :'String',
|
|
108
128
|
:'country' => :'String',
|
|
129
|
+
:'street' => :'String',
|
|
130
|
+
:'city' => :'String',
|
|
131
|
+
:'state' => :'String',
|
|
132
|
+
:'postal_code' => :'String',
|
|
109
133
|
:'full_address' => :'String',
|
|
110
134
|
:'compliance_contact_email' => :'String',
|
|
111
135
|
:'compliance_contact_phone' => :'String',
|
|
@@ -126,14 +150,14 @@ module Pingram
|
|
|
126
150
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
151
|
def initialize(attributes = {})
|
|
128
152
|
if (!attributes.is_a?(Hash))
|
|
129
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
153
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::TenDlcBrandRegistration` initialize method"
|
|
130
154
|
end
|
|
131
155
|
|
|
132
156
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
133
157
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
134
158
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
135
159
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
136
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
160
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::TenDlcBrandRegistration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
137
161
|
end
|
|
138
162
|
h[k.to_sym] = v
|
|
139
163
|
}
|
|
@@ -162,6 +186,10 @@ module Pingram
|
|
|
162
186
|
self.legal_name = nil
|
|
163
187
|
end
|
|
164
188
|
|
|
189
|
+
if attributes.key?(:'display_name')
|
|
190
|
+
self.display_name = attributes[:'display_name']
|
|
191
|
+
end
|
|
192
|
+
|
|
165
193
|
if attributes.key?(:'tax_id')
|
|
166
194
|
self.tax_id = attributes[:'tax_id']
|
|
167
195
|
end
|
|
@@ -178,10 +206,24 @@ module Pingram
|
|
|
178
206
|
self.country = nil
|
|
179
207
|
end
|
|
180
208
|
|
|
209
|
+
if attributes.key?(:'street')
|
|
210
|
+
self.street = attributes[:'street']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'city')
|
|
214
|
+
self.city = attributes[:'city']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'state')
|
|
218
|
+
self.state = attributes[:'state']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'postal_code')
|
|
222
|
+
self.postal_code = attributes[:'postal_code']
|
|
223
|
+
end
|
|
224
|
+
|
|
181
225
|
if attributes.key?(:'full_address')
|
|
182
226
|
self.full_address = attributes[:'full_address']
|
|
183
|
-
else
|
|
184
|
-
self.full_address = nil
|
|
185
227
|
end
|
|
186
228
|
|
|
187
229
|
if attributes.key?(:'compliance_contact_email')
|
|
@@ -250,10 +292,6 @@ module Pingram
|
|
|
250
292
|
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
|
251
293
|
end
|
|
252
294
|
|
|
253
|
-
if @full_address.nil?
|
|
254
|
-
invalid_properties.push('invalid value for "full_address", full_address cannot be nil.')
|
|
255
|
-
end
|
|
256
|
-
|
|
257
295
|
if @compliance_contact_email.nil?
|
|
258
296
|
invalid_properties.push('invalid value for "compliance_contact_email", compliance_contact_email cannot be nil.')
|
|
259
297
|
end
|
|
@@ -291,7 +329,6 @@ module Pingram
|
|
|
291
329
|
return false if @legal_name.nil?
|
|
292
330
|
return false if @website.nil?
|
|
293
331
|
return false if @country.nil?
|
|
294
|
-
return false if @full_address.nil?
|
|
295
332
|
return false if @compliance_contact_email.nil?
|
|
296
333
|
return false if @compliance_contact_phone.nil?
|
|
297
334
|
return false if @brand_status.nil?
|
|
@@ -365,16 +402,6 @@ module Pingram
|
|
|
365
402
|
@country = country
|
|
366
403
|
end
|
|
367
404
|
|
|
368
|
-
# Custom attribute writer method with validation
|
|
369
|
-
# @param [Object] full_address Value to be assigned
|
|
370
|
-
def full_address=(full_address)
|
|
371
|
-
if full_address.nil?
|
|
372
|
-
fail ArgumentError, 'full_address cannot be nil'
|
|
373
|
-
end
|
|
374
|
-
|
|
375
|
-
@full_address = full_address
|
|
376
|
-
end
|
|
377
|
-
|
|
378
405
|
# Custom attribute writer method with validation
|
|
379
406
|
# @param [Object] compliance_contact_email Value to be assigned
|
|
380
407
|
def compliance_contact_email=(compliance_contact_email)
|
|
@@ -444,9 +471,14 @@ module Pingram
|
|
|
444
471
|
scenario_id == o.scenario_id &&
|
|
445
472
|
business_type == o.business_type &&
|
|
446
473
|
legal_name == o.legal_name &&
|
|
474
|
+
display_name == o.display_name &&
|
|
447
475
|
tax_id == o.tax_id &&
|
|
448
476
|
website == o.website &&
|
|
449
477
|
country == o.country &&
|
|
478
|
+
street == o.street &&
|
|
479
|
+
city == o.city &&
|
|
480
|
+
state == o.state &&
|
|
481
|
+
postal_code == o.postal_code &&
|
|
450
482
|
full_address == o.full_address &&
|
|
451
483
|
compliance_contact_email == o.compliance_contact_email &&
|
|
452
484
|
compliance_contact_phone == o.compliance_contact_phone &&
|
|
@@ -465,7 +497,7 @@ module Pingram
|
|
|
465
497
|
# Calculates hash code according to all attributes.
|
|
466
498
|
# @return [Integer] Hash code
|
|
467
499
|
def hash
|
|
468
|
-
[account_id, scenario_id, business_type, legal_name, tax_id, website, country, full_address, compliance_contact_email, compliance_contact_phone, brand_status, campaign_status, created_at, updated_at].hash
|
|
500
|
+
[account_id, scenario_id, business_type, legal_name, display_name, tax_id, website, country, street, city, state, postal_code, full_address, compliance_contact_email, compliance_contact_phone, brand_status, campaign_status, created_at, updated_at].hash
|
|
469
501
|
end
|
|
470
502
|
|
|
471
503
|
# Builds the object from hash
|
data/lib/pingram/models/{a2p_registration_update_request.rb → ten_dlc_brand_update_request.rb}
RENAMED
|
@@ -14,8 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Request body for
|
|
18
|
-
class
|
|
17
|
+
# Request body for PATCH /registrations/us/10dlc/brand
|
|
18
|
+
class TenDlcBrandUpdateRequest < ApiModelBase
|
|
19
19
|
attr_accessor :scenario_id
|
|
20
20
|
|
|
21
21
|
attr_accessor :business_type
|
|
@@ -28,7 +28,13 @@ module Pingram
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :country
|
|
30
30
|
|
|
31
|
-
attr_accessor :
|
|
31
|
+
attr_accessor :street
|
|
32
|
+
|
|
33
|
+
attr_accessor :city
|
|
34
|
+
|
|
35
|
+
attr_accessor :state
|
|
36
|
+
|
|
37
|
+
attr_accessor :postal_code
|
|
32
38
|
|
|
33
39
|
attr_accessor :compliance_contact_email
|
|
34
40
|
|
|
@@ -43,7 +49,10 @@ module Pingram
|
|
|
43
49
|
:'tax_id' => :'taxId',
|
|
44
50
|
:'website' => :'website',
|
|
45
51
|
:'country' => :'country',
|
|
46
|
-
:'
|
|
52
|
+
:'street' => :'street',
|
|
53
|
+
:'city' => :'city',
|
|
54
|
+
:'state' => :'state',
|
|
55
|
+
:'postal_code' => :'postalCode',
|
|
47
56
|
:'compliance_contact_email' => :'complianceContactEmail',
|
|
48
57
|
:'compliance_contact_phone' => :'complianceContactPhone'
|
|
49
58
|
}
|
|
@@ -68,7 +77,10 @@ module Pingram
|
|
|
68
77
|
:'tax_id' => :'String',
|
|
69
78
|
:'website' => :'String',
|
|
70
79
|
:'country' => :'String',
|
|
71
|
-
:'
|
|
80
|
+
:'street' => :'String',
|
|
81
|
+
:'city' => :'String',
|
|
82
|
+
:'state' => :'String',
|
|
83
|
+
:'postal_code' => :'String',
|
|
72
84
|
:'compliance_contact_email' => :'String',
|
|
73
85
|
:'compliance_contact_phone' => :'String'
|
|
74
86
|
}
|
|
@@ -84,14 +96,14 @@ module Pingram
|
|
|
84
96
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
85
97
|
def initialize(attributes = {})
|
|
86
98
|
if (!attributes.is_a?(Hash))
|
|
87
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
99
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::TenDlcBrandUpdateRequest` initialize method"
|
|
88
100
|
end
|
|
89
101
|
|
|
90
102
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
91
103
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
92
104
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
93
105
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
94
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
106
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::TenDlcBrandUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
95
107
|
end
|
|
96
108
|
h[k.to_sym] = v
|
|
97
109
|
}
|
|
@@ -120,8 +132,20 @@ module Pingram
|
|
|
120
132
|
self.country = attributes[:'country']
|
|
121
133
|
end
|
|
122
134
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
135
|
+
if attributes.key?(:'street')
|
|
136
|
+
self.street = attributes[:'street']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'city')
|
|
140
|
+
self.city = attributes[:'city']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'state')
|
|
144
|
+
self.state = attributes[:'state']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'postal_code')
|
|
148
|
+
self.postal_code = attributes[:'postal_code']
|
|
125
149
|
end
|
|
126
150
|
|
|
127
151
|
if attributes.key?(:'compliance_contact_email')
|
|
@@ -159,7 +183,10 @@ module Pingram
|
|
|
159
183
|
tax_id == o.tax_id &&
|
|
160
184
|
website == o.website &&
|
|
161
185
|
country == o.country &&
|
|
162
|
-
|
|
186
|
+
street == o.street &&
|
|
187
|
+
city == o.city &&
|
|
188
|
+
state == o.state &&
|
|
189
|
+
postal_code == o.postal_code &&
|
|
163
190
|
compliance_contact_email == o.compliance_contact_email &&
|
|
164
191
|
compliance_contact_phone == o.compliance_contact_phone
|
|
165
192
|
end
|
|
@@ -173,7 +200,7 @@ module Pingram
|
|
|
173
200
|
# Calculates hash code according to all attributes.
|
|
174
201
|
# @return [Integer] Hash code
|
|
175
202
|
def hash
|
|
176
|
-
[scenario_id, business_type, legal_name, tax_id, website, country,
|
|
203
|
+
[scenario_id, business_type, legal_name, tax_id, website, country, street, city, state, postal_code, compliance_contact_email, compliance_contact_phone].hash
|
|
177
204
|
end
|
|
178
205
|
|
|
179
206
|
# Builds the object from hash
|