Class: Freeclimb::SMSTenDLCPartnerCampaign
- Inherits:
-
Object
- Object
- Freeclimb::SMSTenDLCPartnerCampaign
- Defined in:
- lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#account_id ⇒ Object
ID of the account that created this Queue.
-
#affiliate_marketing ⇒ Object
Does message content controlled by affiliate marketing other than the brand?.
-
#age_gated ⇒ Object
Age gated content in campaign.
-
#brand ⇒ Object
Returns the value of attribute brand.
-
#brand_id ⇒ Object
Alphanumeric identifier of the brand associated with this campaign.
-
#campaign_id ⇒ Object
Alphanumeric identifier assigned by the registry for a campaign.
-
#create_date ⇒ Object
Unix timestamp when campaign was created.
-
#description ⇒ Object
Summary description of this campaign.
-
#direct_lending ⇒ Object
Returns the value of attribute direct_lending.
-
#embedded_link ⇒ Object
Does message generated by the campaign include URL link in SMS?.
-
#embedded_phone ⇒ Object
Does message generated by the campaign include phone number in SMS?.
-
#help_keywords ⇒ Object
Subscriber help keywords.
-
#help_message ⇒ Object
Help message of the campaign.
-
#message_flow ⇒ Object
Message flow description.
-
#number_pool ⇒ Object
Does campaign utilize pool of phone nubers?.
-
#optin_keywords ⇒ Object
Subscriber opt-in keywords.
-
#optin_message ⇒ Object
Subscriber opt-in message.
-
#optout_keywords ⇒ Object
Subscriber opt-out keywords.
-
#optout_message ⇒ Object
Subscriber opt-out message.
-
#sample1 ⇒ Object
Message sample.
-
#sample2 ⇒ Object
Message sample.
-
#sample3 ⇒ Object
Message sample.
-
#sample4 ⇒ Object
Message sample.
-
#sample5 ⇒ Object
Message sample.
-
#status ⇒ Object
Current campaign status.
-
#subscriber_help ⇒ Object
Does campaign responds to help keyword(s)?.
-
#subscriber_optin ⇒ Object
Does campaign require subscriber to opt-in before SMS is sent to subscriber?.
-
#subscriber_optout ⇒ Object
Does campaign support subscriber opt-out keyword(s)?.
-
#usecase ⇒ Object
Campaign usecase.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ SMSTenDLCPartnerCampaign
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ SMSTenDLCPartnerCampaign
Initializes the object
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 215 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::SMSTenDLCPartnerCampaign` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::SMSTenDLCPartnerCampaign`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'account_id') self.account_id = attributes[:'account_id'] end if attributes.key?(:'campaign_id') self.campaign_id = attributes[:'campaign_id'] end if attributes.key?(:'status') self.status = attributes[:'status'] end if attributes.key?(:'create_date') self.create_date = attributes[:'create_date'] end if attributes.key?(:'brand_id') self.brand_id = attributes[:'brand_id'] end if attributes.key?(:'usecase') self.usecase = attributes[:'usecase'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'embedded_link') self. = attributes[:'embedded_link'] else self. = false end if attributes.key?(:'embedded_phone') self. = attributes[:'embedded_phone'] else self. = false end if attributes.key?(:'affiliate_marketing') self.affiliate_marketing = attributes[:'affiliate_marketing'] end if attributes.key?(:'number_pool') self.number_pool = attributes[:'number_pool'] else self.number_pool = false end if attributes.key?(:'age_gated') self.age_gated = attributes[:'age_gated'] end if attributes.key?(:'direct_lending') self.direct_lending = attributes[:'direct_lending'] end if attributes.key?(:'subscriber_optin') self.subscriber_optin = attributes[:'subscriber_optin'] else self.subscriber_optin = false end if attributes.key?(:'subscriber_optout') self.subscriber_optout = attributes[:'subscriber_optout'] else self.subscriber_optout = false end if attributes.key?(:'subscriber_help') self.subscriber_help = attributes[:'subscriber_help'] else self.subscriber_help = false end if attributes.key?(:'sample1') self.sample1 = attributes[:'sample1'] end if attributes.key?(:'sample2') self.sample2 = attributes[:'sample2'] end if attributes.key?(:'sample3') self.sample3 = attributes[:'sample3'] end if attributes.key?(:'sample4') self.sample4 = attributes[:'sample4'] end if attributes.key?(:'sample5') self.sample5 = attributes[:'sample5'] end if attributes.key?(:'message_flow') self. = attributes[:'message_flow'] end if attributes.key?(:'help_message') self. = attributes[:'help_message'] end if attributes.key?(:'optin_keywords') self.optin_keywords = attributes[:'optin_keywords'] end if attributes.key?(:'optout_keywords') self.optout_keywords = attributes[:'optout_keywords'] end if attributes.key?(:'help_keywords') self.help_keywords = attributes[:'help_keywords'] end if attributes.key?(:'optin_message') self. = attributes[:'optin_message'] end if attributes.key?(:'optout_message') self. = attributes[:'optout_message'] end if attributes.key?(:'brand') self.brand = attributes[:'brand'] end end |
Instance Attribute Details
#account_id ⇒ Object
ID of the account that created this Queue.
19 20 21 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 19 def account_id @account_id end |
#affiliate_marketing ⇒ Object
Does message content controlled by affiliate marketing other than the brand?
46 47 48 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 46 def affiliate_marketing @affiliate_marketing end |
#age_gated ⇒ Object
Age gated content in campaign.
52 53 54 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 52 def age_gated @age_gated end |
#brand ⇒ Object
Returns the value of attribute brand.
101 102 103 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 101 def brand @brand end |
#brand_id ⇒ Object
Alphanumeric identifier of the brand associated with this campaign.
31 32 33 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 31 def brand_id @brand_id end |
#campaign_id ⇒ Object
Alphanumeric identifier assigned by the registry for a campaign. This identifier is required by the NetNumber OSR SMS enabling process of 10DLC.
22 23 24 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 22 def campaign_id @campaign_id end |
#create_date ⇒ Object
Unix timestamp when campaign was created.
28 29 30 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 28 def create_date @create_date end |
#description ⇒ Object
Summary description of this campaign.
37 38 39 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 37 def description @description end |
#direct_lending ⇒ Object
Returns the value of attribute direct_lending.
54 55 56 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 54 def direct_lending @direct_lending end |
#embedded_link ⇒ Object
Does message generated by the campaign include URL link in SMS?
40 41 42 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 40 def @embedded_link end |
#embedded_phone ⇒ Object
Does message generated by the campaign include phone number in SMS?
43 44 45 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 43 def @embedded_phone end |
#help_keywords ⇒ Object
Subscriber help keywords. Multiple keywords are comma separated without space.
93 94 95 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 93 def help_keywords @help_keywords end |
#help_message ⇒ Object
Help message of the campaign.
84 85 86 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 84 def @help_message end |
#message_flow ⇒ Object
Message flow description.
81 82 83 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 81 def @message_flow end |
#number_pool ⇒ Object
Does campaign utilize pool of phone nubers?
49 50 51 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 49 def number_pool @number_pool end |
#optin_keywords ⇒ Object
Subscriber opt-in keywords. Multiple keywords are comma separated without space.
87 88 89 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 87 def optin_keywords @optin_keywords end |
#optin_message ⇒ Object
Subscriber opt-in message.
96 97 98 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 96 def @optin_message end |
#optout_keywords ⇒ Object
Subscriber opt-out keywords. Multiple keywords are comma separated without space.
90 91 92 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 90 def optout_keywords @optout_keywords end |
#optout_message ⇒ Object
Subscriber opt-out message.
99 100 101 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 99 def @optout_message end |
#sample1 ⇒ Object
Message sample. Some campaign tiers require 1 or more message samples.
66 67 68 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 66 def sample1 @sample1 end |
#sample2 ⇒ Object
Message sample. Some campaign tiers require 2 or more message samples.
69 70 71 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 69 def sample2 @sample2 end |
#sample3 ⇒ Object
Message sample. Some campaign tiers require 3 or more message samples.
72 73 74 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 72 def sample3 @sample3 end |
#sample4 ⇒ Object
Message sample. Some campaign tiers require 4 or more message samples.
75 76 77 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 75 def sample4 @sample4 end |
#sample5 ⇒ Object
Message sample. Some campaign tiers require 5 or more message samples.
78 79 80 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 78 def sample5 @sample5 end |
#status ⇒ Object
Current campaign status. Possible values: ACTIVE, EXPIRED. A newly created campaign defaults to ACTIVE status.
25 26 27 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 25 def status @status end |
#subscriber_help ⇒ Object
Does campaign responds to help keyword(s)?
63 64 65 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 63 def subscriber_help @subscriber_help end |
#subscriber_optin ⇒ Object
Does campaign require subscriber to opt-in before SMS is sent to subscriber?
57 58 59 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 57 def subscriber_optin @subscriber_optin end |
#subscriber_optout ⇒ Object
Does campaign support subscriber opt-out keyword(s)?
60 61 62 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 60 def subscriber_optout @subscriber_optout end |
#usecase ⇒ Object
Campaign usecase. Must be of defined valid types. Use ‘/registry/enum/usecase` operation to retrieve usecases available for given brand.
34 35 36 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 34 def usecase @usecase end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
161 162 163 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 161 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 126 def self.attribute_map { :'account_id' => :'accountId', :'campaign_id' => :'campaignId', :'status' => :'status', :'create_date' => :'createDate', :'brand_id' => :'brandId', :'usecase' => :'usecase', :'description' => :'description', :'embedded_link' => :'embeddedLink', :'embedded_phone' => :'embeddedPhone', :'affiliate_marketing' => :'affiliateMarketing', :'number_pool' => :'numberPool', :'age_gated' => :'ageGated', :'direct_lending' => :'directLending', :'subscriber_optin' => :'subscriberOptin', :'subscriber_optout' => :'subscriberOptout', :'subscriber_help' => :'subscriberHelp', :'sample1' => :'sample1', :'sample2' => :'sample2', :'sample3' => :'sample3', :'sample4' => :'sample4', :'sample5' => :'sample5', :'message_flow' => :'messageFlow', :'help_message' => :'helpMessage', :'optin_keywords' => :'optinKeywords', :'optout_keywords' => :'optoutKeywords', :'help_keywords' => :'helpKeywords', :'optin_message' => :'optinMessage', :'optout_message' => :'optoutMessage', :'brand' => :'brand' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
674 675 676 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 674 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 201 def self.openapi_nullable Set.new([ :'account_id', :'sample2', :'sample3', :'sample4', :'sample5', :'message_flow', :'help_message', ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 166 def self.openapi_types { :'account_id' => :'String', :'campaign_id' => :'String', :'status' => :'String', :'create_date' => :'Time', :'brand_id' => :'String', :'usecase' => :'String', :'description' => :'String', :'embedded_link' => :'Boolean', :'embedded_phone' => :'Boolean', :'affiliate_marketing' => :'Boolean', :'number_pool' => :'Boolean', :'age_gated' => :'Boolean', :'direct_lending' => :'Boolean', :'subscriber_optin' => :'Boolean', :'subscriber_optout' => :'Boolean', :'subscriber_help' => :'Boolean', :'sample1' => :'String', :'sample2' => :'String', :'sample3' => :'String', :'sample4' => :'String', :'sample5' => :'String', :'message_flow' => :'String', :'help_message' => :'String', :'optin_keywords' => :'String', :'optout_keywords' => :'String', :'help_keywords' => :'String', :'optin_message' => :'String', :'optout_message' => :'String', :'brand' => :'SMSTenDLCPartnerCampaignBrand' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 625 def ==(o) return true if self.equal?(o) self.class == o.class && account_id == o.account_id && campaign_id == o.campaign_id && status == o.status && create_date == o.create_date && brand_id == o.brand_id && usecase == o.usecase && description == o.description && == o. && == o. && affiliate_marketing == o.affiliate_marketing && number_pool == o.number_pool && age_gated == o.age_gated && direct_lending == o.direct_lending && subscriber_optin == o.subscriber_optin && subscriber_optout == o.subscriber_optout && subscriber_help == o.subscriber_help && sample1 == o.sample1 && sample2 == o.sample2 && sample3 == o.sample3 && sample4 == o.sample4 && sample5 == o.sample5 && == o. && == o. && optin_keywords == o.optin_keywords && optout_keywords == o.optout_keywords && help_keywords == o.help_keywords && == o. && == o. && brand == o.brand end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 704 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = Freeclimb.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
775 776 777 778 779 780 781 782 783 784 785 786 787 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 775 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 681 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
661 662 663 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 661 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
667 668 669 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 667 def hash [account_id, campaign_id, status, create_date, brand_id, usecase, description, , , affiliate_marketing, number_pool, age_gated, direct_lending, subscriber_optin, subscriber_optout, subscriber_help, sample1, sample2, sample3, sample4, sample5, , , optin_keywords, optout_keywords, help_keywords, , , brand].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 359 def list_invalid_properties invalid_properties = Array.new if @campaign_id.nil? invalid_properties.push('invalid value for "campaign_id", campaign_id cannot be nil.') end if @brand_id.nil? invalid_properties.push('invalid value for "brand_id", brand_id cannot be nil.') end if @brand_id.to_s.length > 8 invalid_properties.push('invalid value for "brand_id", the character length must be smaller than or equal to 8.') end if @usecase.nil? invalid_properties.push('invalid value for "usecase", usecase cannot be nil.') end if @usecase.to_s.length > 20 invalid_properties.push('invalid value for "usecase", the character length must be smaller than or equal to 20.') end if @description.nil? invalid_properties.push('invalid value for "description", description cannot be nil.') end if @description.to_s.length > 4096 invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 4096.') end if !@sample1.nil? && @sample1.to_s.length > 1024 invalid_properties.push('invalid value for "sample1", the character length must be smaller than or equal to 1024.') end if !@sample2.nil? && @sample2.to_s.length > 1024 invalid_properties.push('invalid value for "sample2", the character length must be smaller than or equal to 1024.') end if !@sample3.nil? && @sample3.to_s.length > 1024 invalid_properties.push('invalid value for "sample3", the character length must be smaller than or equal to 1024.') end if !@sample4.nil? && @sample4.to_s.length > 1024 invalid_properties.push('invalid value for "sample4", the character length must be smaller than or equal to 1024.') end if !@sample5.nil? && @sample5.to_s.length > 1024 invalid_properties.push('invalid value for "sample5", the character length must be smaller than or equal to 1024.') end if !@message_flow.nil? && @message_flow.to_s.length > 2048 invalid_properties.push('invalid value for "message_flow", the character length must be smaller than or equal to 2048.') end if !@help_message.nil? && @help_message.to_s.length > 255 invalid_properties.push('invalid value for "help_message", the character length must be smaller than or equal to 255.') end if !@optin_keywords.nil? && @optin_keywords.to_s.length > 255 invalid_properties.push('invalid value for "optin_keywords", the character length must be smaller than or equal to 255.') end if !@optout_keywords.nil? && @optout_keywords.to_s.length > 255 invalid_properties.push('invalid value for "optout_keywords", the character length must be smaller than or equal to 255.') end if !@help_keywords.nil? && @help_keywords.to_s.length > 255 invalid_properties.push('invalid value for "help_keywords", the character length must be smaller than or equal to 255.') end if !@optin_message.nil? && @optin_message.to_s.length > 255 invalid_properties.push('invalid value for "optin_message", the character length must be smaller than or equal to 255.') end if !@optout_message.nil? && @optout_message.to_s.length > 255 invalid_properties.push('invalid value for "optout_message", the character length must be smaller than or equal to 255.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
751 752 753 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 751 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
757 758 759 760 761 762 763 764 765 766 767 768 769 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 757 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
745 746 747 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 745 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
442 443 444 445 446 447 448 449 |
# File 'lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb', line 442 def valid? if @account_id.nil? false else list_invalid_properties.length() == 0 end end |