freeclimb 4.4.3 → 4.4.4

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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +4 -4
  5. data/lib/freeclimb/version.rb +1 -1
  6. data/openapi.json +1 -8
  7. data/spec/models/account_request_spec.rb +1 -0
  8. data/spec/models/account_result_spec.rb +3 -0
  9. data/spec/models/account_status_spec.rb +1 -0
  10. data/spec/models/account_type_spec.rb +1 -0
  11. data/spec/models/add_to_conference_spec.rb +1 -0
  12. data/spec/models/answered_by_spec.rb +1 -0
  13. data/spec/models/application_list_spec.rb +1 -0
  14. data/spec/models/application_request_spec.rb +1 -0
  15. data/spec/models/application_result_spec.rb +1 -0
  16. data/spec/models/available_number_list_spec.rb +1 -0
  17. data/spec/models/available_number_spec.rb +1 -0
  18. data/spec/models/buy_incoming_number_request_spec.rb +1 -0
  19. data/spec/models/call_direction_spec.rb +1 -0
  20. data/spec/models/call_list_spec.rb +1 -0
  21. data/spec/models/call_result_spec.rb +4 -0
  22. data/spec/models/call_status_spec.rb +1 -0
  23. data/spec/models/capabilities_spec.rb +1 -0
  24. data/spec/models/conference_list_spec.rb +1 -0
  25. data/spec/models/conference_participant_list_spec.rb +1 -0
  26. data/spec/models/conference_participant_result_spec.rb +1 -0
  27. data/spec/models/conference_result_spec.rb +3 -0
  28. data/spec/models/conference_status_spec.rb +1 -0
  29. data/spec/models/create_conference_request_spec.rb +2 -0
  30. data/spec/models/create_conference_spec.rb +2 -0
  31. data/spec/models/dequeue_spec.rb +1 -0
  32. data/spec/models/enqueue_spec.rb +1 -0
  33. data/spec/models/filter_logs_request_spec.rb +1 -0
  34. data/spec/models/get_digits_spec.rb +1 -0
  35. data/spec/models/get_speech_reason_spec.rb +1 -0
  36. data/spec/models/get_speech_spec.rb +2 -0
  37. data/spec/models/grammar_file_built_in_spec.rb +1 -0
  38. data/spec/models/grammar_type_spec.rb +1 -0
  39. data/spec/models/hangup_spec.rb +1 -0
  40. data/spec/models/if_machine_spec.rb +1 -0
  41. data/spec/models/incoming_number_list_spec.rb +1 -0
  42. data/spec/models/incoming_number_request_spec.rb +1 -0
  43. data/spec/models/incoming_number_result_spec.rb +1 -0
  44. data/spec/models/language_spec.rb +1 -0
  45. data/spec/models/log_level_spec.rb +1 -0
  46. data/spec/models/log_list_spec.rb +1 -0
  47. data/spec/models/log_result_spec.rb +2 -0
  48. data/spec/models/machine_type_spec.rb +1 -0
  49. data/spec/models/make_call_request_spec.rb +1 -0
  50. data/spec/models/message_direction_spec.rb +1 -0
  51. data/spec/models/message_request_spec.rb +1 -0
  52. data/spec/models/message_result_spec.rb +2 -0
  53. data/spec/models/message_status_spec.rb +1 -0
  54. data/spec/models/messages_list_spec.rb +1 -0
  55. data/spec/models/mutable_resource_model_spec.rb +1 -0
  56. data/spec/models/out_dial_spec.rb +2 -0
  57. data/spec/models/pagination_model_spec.rb +1 -0
  58. data/spec/models/park_spec.rb +1 -0
  59. data/spec/models/pause_spec.rb +1 -0
  60. data/spec/models/percl_command_spec.rb +1 -0
  61. data/spec/models/percl_script_spec.rb +1 -0
  62. data/spec/models/play_beep_spec.rb +1 -0
  63. data/spec/models/play_early_media_spec.rb +1 -0
  64. data/spec/models/play_spec.rb +1 -0
  65. data/spec/models/queue_list_spec.rb +1 -0
  66. data/spec/models/queue_member_list_spec.rb +1 -0
  67. data/spec/models/queue_member_spec.rb +1 -0
  68. data/spec/models/queue_request_spec.rb +1 -0
  69. data/spec/models/queue_result_spec.rb +1 -0
  70. data/spec/models/queue_result_status_spec.rb +1 -0
  71. data/spec/models/record_utterance_spec.rb +1 -0
  72. data/spec/models/record_utterance_term_reason_spec.rb +1 -0
  73. data/spec/models/recording_list_spec.rb +1 -0
  74. data/spec/models/recording_result_spec.rb +1 -0
  75. data/spec/models/redirect_spec.rb +1 -0
  76. data/spec/models/reject_spec.rb +1 -0
  77. data/spec/models/remove_from_conference_spec.rb +1 -0
  78. data/spec/models/request_type_spec.rb +1 -0
  79. data/spec/models/say_spec.rb +1 -0
  80. data/spec/models/send_digits_spec.rb +1 -0
  81. data/spec/models/set_listen_spec.rb +1 -0
  82. data/spec/models/set_talk_spec.rb +1 -0
  83. data/spec/models/sms_spec.rb +1 -0
  84. data/spec/models/sms_ten_dlc_brand_spec.rb +120 -73
  85. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +1 -0
  86. data/spec/models/sms_ten_dlc_campaign_spec.rb +72 -42
  87. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +1 -0
  88. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +43 -21
  89. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +91 -48
  90. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +1 -0
  91. data/spec/models/start_record_call_spec.rb +1 -0
  92. data/spec/models/terminate_conference_spec.rb +1 -0
  93. data/spec/models/unpark_spec.rb +1 -0
  94. data/spec/models/update_call_request_spec.rb +2 -0
  95. data/spec/models/update_call_request_status_spec.rb +1 -0
  96. data/spec/models/update_conference_participant_request_spec.rb +1 -0
  97. data/spec/models/update_conference_request_spec.rb +3 -0
  98. data/spec/models/update_conference_request_status_spec.rb +1 -0
  99. metadata +2 -2
@@ -25,6 +25,7 @@ describe Freeclimb::MessageStatus do
25
25
  expect(instance).to be_instance_of(Freeclimb::MessageStatus)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "NEW"' do
29
30
  it 'should work' do
30
31
  expect { Freeclimb::MessageStatus::NEW = "new" }.not_to raise_error
@@ -25,6 +25,7 @@ describe Freeclimb::MessagesList do
25
25
  expect(instance).to be_instance_of(Freeclimb::MessagesList)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "total"' do
29
30
  it 'should work' do
30
31
  instance.total = 1
@@ -25,6 +25,7 @@ describe Freeclimb::MutableResourceModel do
25
25
  expect(instance).to be_instance_of(Freeclimb::MutableResourceModel)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "uri"' do
29
30
  it 'should work' do
30
31
  instance.uri = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::OutDial do
25
25
  expect(instance).to be_instance_of(Freeclimb::OutDial)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "action_url"' do
29
30
  it 'should work' do
30
31
  instance.action_url = "TEST_STRING"
@@ -53,6 +54,7 @@ describe Freeclimb::OutDial do
53
54
  end
54
55
  end
55
56
 
57
+
56
58
  describe 'test attribute "if_machine"' do
57
59
  it 'assigns value REDIRECT' do
58
60
  instance.if_machine = Freeclimb::IfMachine::REDIRECT
@@ -25,6 +25,7 @@ describe Freeclimb::PaginationModel do
25
25
  expect(instance).to be_instance_of(Freeclimb::PaginationModel)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "total"' do
29
30
  it 'should work' do
30
31
  instance.total = 1
@@ -25,6 +25,7 @@ describe Freeclimb::Park do
25
25
  expect(instance).to be_instance_of(Freeclimb::Park)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "wait_url"' do
29
30
  it 'should work' do
30
31
  instance.wait_url = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::Pause do
25
25
  expect(instance).to be_instance_of(Freeclimb::Pause)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "length"' do
29
30
  it 'should work' do
30
31
  instance.length = 1
@@ -25,6 +25,7 @@ describe Freeclimb::PerclCommand do
25
25
  expect(instance).to be_instance_of(Freeclimb::PerclCommand)
26
26
  end
27
27
  end
28
+
28
29
 
29
30
  describe 'test method "initialize"' do
30
31
  it 'properly initializes with values' do
@@ -25,6 +25,7 @@ describe Freeclimb::PerclScript do
25
25
  expect(instance).to be_instance_of(Freeclimb::PerclScript)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "commands"' do
29
30
  it 'should work' do
30
31
  instance.commands = ["ELEMENT_1", "ELEMENT_2"]
@@ -25,6 +25,7 @@ describe Freeclimb::PlayBeep do
25
25
  expect(instance).to be_instance_of(Freeclimb::PlayBeep)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "ALWAYS"' do
29
30
  it 'should work' do
30
31
  expect { Freeclimb::PlayBeep::ALWAYS = "always" }.not_to raise_error
@@ -25,6 +25,7 @@ describe Freeclimb::PlayEarlyMedia do
25
25
  expect(instance).to be_instance_of(Freeclimb::PlayEarlyMedia)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "file"' do
29
30
  it 'should work' do
30
31
  instance.file = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::Play do
25
25
  expect(instance).to be_instance_of(Freeclimb::Play)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "file"' do
29
30
  it 'should work' do
30
31
  instance.file = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::QueueList do
25
25
  expect(instance).to be_instance_of(Freeclimb::QueueList)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "total"' do
29
30
  it 'should work' do
30
31
  instance.total = 1
@@ -25,6 +25,7 @@ describe Freeclimb::QueueMemberList do
25
25
  expect(instance).to be_instance_of(Freeclimb::QueueMemberList)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "total"' do
29
30
  it 'should work' do
30
31
  instance.total = 1
@@ -25,6 +25,7 @@ describe Freeclimb::QueueMember do
25
25
  expect(instance).to be_instance_of(Freeclimb::QueueMember)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "uri"' do
29
30
  it 'should work' do
30
31
  instance.uri = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::QueueRequest do
25
25
  expect(instance).to be_instance_of(Freeclimb::QueueRequest)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "_alias"' do
29
30
  it 'should work' do
30
31
  instance._alias = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::QueueResult do
25
25
  expect(instance).to be_instance_of(Freeclimb::QueueResult)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "uri"' do
29
30
  it 'should work' do
30
31
  instance.uri = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::QueueResultStatus do
25
25
  expect(instance).to be_instance_of(Freeclimb::QueueResultStatus)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "QUEUE_FULL"' do
29
30
  it 'should work' do
30
31
  expect { Freeclimb::QueueResultStatus::QUEUE_FULL = "queueFull" }.not_to raise_error
@@ -25,6 +25,7 @@ describe Freeclimb::RecordUtterance do
25
25
  expect(instance).to be_instance_of(Freeclimb::RecordUtterance)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "action_url"' do
29
30
  it 'should work' do
30
31
  instance.action_url = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::RecordUtteranceTermReason do
25
25
  expect(instance).to be_instance_of(Freeclimb::RecordUtteranceTermReason)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "FINISH_KEY"' do
29
30
  it 'should work' do
30
31
  expect { Freeclimb::RecordUtteranceTermReason::FINISH_KEY = "finishKey" }.not_to raise_error
@@ -25,6 +25,7 @@ describe Freeclimb::RecordingList do
25
25
  expect(instance).to be_instance_of(Freeclimb::RecordingList)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "total"' do
29
30
  it 'should work' do
30
31
  instance.total = 1
@@ -25,6 +25,7 @@ describe Freeclimb::RecordingResult do
25
25
  expect(instance).to be_instance_of(Freeclimb::RecordingResult)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "uri"' do
29
30
  it 'should work' do
30
31
  instance.uri = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::Redirect do
25
25
  expect(instance).to be_instance_of(Freeclimb::Redirect)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "action_url"' do
29
30
  it 'should work' do
30
31
  instance.action_url = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::Reject do
25
25
  expect(instance).to be_instance_of(Freeclimb::Reject)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "reason"' do
29
30
  it 'should work' do
30
31
  instance.reason = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::RemoveFromConference do
25
25
  expect(instance).to be_instance_of(Freeclimb::RemoveFromConference)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "call_id"' do
29
30
  it 'should work' do
30
31
  instance.call_id = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::RequestType do
25
25
  expect(instance).to be_instance_of(Freeclimb::RequestType)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "INBOUND_CALL"' do
29
30
  it 'should work' do
30
31
  expect { Freeclimb::RequestType::INBOUND_CALL = "inboundCall" }.not_to raise_error
@@ -25,6 +25,7 @@ describe Freeclimb::Say do
25
25
  expect(instance).to be_instance_of(Freeclimb::Say)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "text"' do
29
30
  it 'should work' do
30
31
  instance.text = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::SendDigits do
25
25
  expect(instance).to be_instance_of(Freeclimb::SendDigits)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "digits"' do
29
30
  it 'should work' do
30
31
  instance.digits = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::SetListen do
25
25
  expect(instance).to be_instance_of(Freeclimb::SetListen)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "call_id"' do
29
30
  it 'should work' do
30
31
  instance.call_id = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::SetTalk do
25
25
  expect(instance).to be_instance_of(Freeclimb::SetTalk)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "call_id"' do
29
30
  it 'should work' do
30
31
  instance.call_id = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::Sms do
25
25
  expect(instance).to be_instance_of(Freeclimb::Sms)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "to"' do
29
30
  it 'should work' do
30
31
  instance.to = "TEST_STRING"
@@ -25,6 +25,7 @@ describe Freeclimb::SMSTenDLCBrand do
25
25
  expect(instance).to be_instance_of(Freeclimb::SMSTenDLCBrand)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "account_id"' do
29
30
  it 'should work' do
30
31
  instance.account_id = "TEST_STRING"
@@ -32,6 +33,7 @@ describe Freeclimb::SMSTenDLCBrand do
32
33
  end
33
34
  end
34
35
 
36
+
35
37
  describe 'test attribute "entity_type"' do
36
38
  it 'assigns value PRIVATE_PROFIT' do
37
39
  instance.entity_type = "PRIVATE_PROFIT"
@@ -74,118 +76,145 @@ describe Freeclimb::SMSTenDLCBrand do
74
76
  end
75
77
 
76
78
  describe 'test attribute "first_name"' do
77
- it 'should work' do
78
- instance.first_name = "TEST_STRING"
79
- expect(instance.first_name).to eq("TEST_STRING")
79
+ it 'should assign a value of maxLength' do
80
+ instance.first_name = "T" * 100
81
+ expect(instance.first_name).to eq("T" * 100)
82
+ end
83
+ it 'should not assign a value over maxLength' do
84
+ expect{instance.first_name = "T" * (100 + 1)}.to raise_error(ArgumentError)
80
85
  end
81
86
  end
82
87
 
83
88
  describe 'test attribute "last_name"' do
84
- it 'should work' do
85
- instance.last_name = "TEST_STRING"
86
- expect(instance.last_name).to eq("TEST_STRING")
89
+ it 'should assign a value of maxLength' do
90
+ instance.last_name = "T" * 100
91
+ expect(instance.last_name).to eq("T" * 100)
92
+ end
93
+ it 'should not assign a value over maxLength' do
94
+ expect{instance.last_name = "T" * (100 + 1)}.to raise_error(ArgumentError)
87
95
  end
88
96
  end
89
97
 
90
98
  describe 'test attribute "display_name"' do
91
- it 'should work' do
92
- instance.display_name = "TEST_STRING"
93
- expect(instance.display_name).to eq("TEST_STRING")
99
+ it 'should assign a value of maxLength' do
100
+ instance.display_name = "T" * 255
101
+ expect(instance.display_name).to eq("T" * 255)
102
+ end
103
+ it 'should not assign a value over maxLength' do
104
+ expect{instance.display_name = "T" * (255 + 1)}.to raise_error(ArgumentError)
94
105
  end
95
106
  end
96
107
 
97
108
  describe 'test attribute "company_name"' do
98
- it 'should work' do
99
- instance.company_name = "TEST_STRING"
100
- expect(instance.company_name).to eq("TEST_STRING")
109
+ it 'should assign a value of maxLength' do
110
+ instance.company_name = "T" * 255
111
+ expect(instance.company_name).to eq("T" * 255)
112
+ end
113
+ it 'should not assign a value over maxLength' do
114
+ expect{instance.company_name = "T" * (255 + 1)}.to raise_error(ArgumentError)
101
115
  end
102
116
  end
103
117
 
104
118
  describe 'test attribute "ein"' do
105
- it 'should work' do
106
- instance.ein = "TEST_STRING"
107
- expect(instance.ein).to eq("TEST_STRING")
119
+ it 'should assign a value of maxLength' do
120
+ instance.ein = "T" * 21
121
+ expect(instance.ein).to eq("T" * 21)
122
+ end
123
+ it 'should not assign a value over maxLength' do
124
+ expect{instance.ein = "T" * (21 + 1)}.to raise_error(ArgumentError)
108
125
  end
109
126
  end
110
127
 
111
-
112
128
  describe 'test attribute "ein_issuing_country"' do
113
- it 'should work with length 2' do
114
- instance.ein_issuing_country = "TS"
115
- expect(instance.ein_issuing_country).to eq("TS")
129
+ it 'should assign a value of maxLength' do
130
+ instance.ein_issuing_country = "T" * 2
131
+ expect(instance.ein_issuing_country).to eq("T" * 2)
116
132
  end
117
- it 'should not work with length > 2' do
118
- expect{instance.ein_issuing_country = "TEST_STRING"}.to raise_error(ArgumentError)
133
+ it 'should not assign a value over maxLength' do
134
+ expect{instance.ein_issuing_country = "T" * (2 + 1)}.to raise_error(ArgumentError)
119
135
  end
120
- end
136
+ end
121
137
 
122
138
  describe 'test attribute "phone"' do
123
- it 'should work' do
124
- instance.phone = "TEST_STRING"
125
- expect(instance.phone).to eq("TEST_STRING")
139
+ it 'should assign a value of maxLength' do
140
+ instance.phone = "T" * 20
141
+ expect(instance.phone).to eq("T" * 20)
142
+ end
143
+ it 'should not assign a value over maxLength' do
144
+ expect{instance.phone = "T" * (20 + 1)}.to raise_error(ArgumentError)
126
145
  end
127
146
  end
128
147
 
129
148
  describe 'test attribute "street"' do
130
- it 'should work' do
131
- instance.street = "TEST_STRING"
132
- expect(instance.street).to eq("TEST_STRING")
149
+ it 'should assign a value of maxLength' do
150
+ instance.street = "T" * 100
151
+ expect(instance.street).to eq("T" * 100)
152
+ end
153
+ it 'should not assign a value over maxLength' do
154
+ expect{instance.street = "T" * (100 + 1)}.to raise_error(ArgumentError)
133
155
  end
134
156
  end
135
157
 
136
158
  describe 'test attribute "city"' do
137
- it 'should work' do
138
- instance.city = "TEST_STRING"
139
- expect(instance.city).to eq("TEST_STRING")
159
+ it 'should assign a value of maxLength' do
160
+ instance.city = "T" * 100
161
+ expect(instance.city).to eq("T" * 100)
162
+ end
163
+ it 'should not assign a value over maxLength' do
164
+ expect{instance.city = "T" * (100 + 1)}.to raise_error(ArgumentError)
140
165
  end
141
166
  end
142
167
 
143
168
  describe 'test attribute "state"' do
144
- it 'should work' do
145
- instance.state = "TEST_STRING"
146
- expect(instance.state).to eq("TEST_STRING")
169
+ it 'should assign a value of maxLength' do
170
+ instance.state = "T" * 20
171
+ expect(instance.state).to eq("T" * 20)
172
+ end
173
+ it 'should not assign a value over maxLength' do
174
+ expect{instance.state = "T" * (20 + 1)}.to raise_error(ArgumentError)
147
175
  end
148
176
  end
149
177
 
150
-
151
178
  describe 'test attribute "postal_code"' do
152
- it 'should work with length 10' do
153
- instance.postal_code = "TEST_STRIN"
154
- expect(instance.postal_code).to eq("TEST_STRIN")
179
+ it 'should assign a value of maxLength' do
180
+ instance.postal_code = "T" * 10
181
+ expect(instance.postal_code).to eq("T" * 10)
155
182
  end
156
- it 'should not work with length > 10' do
157
- expect{instance.postal_code = "TEST_STRING"}.to raise_error(ArgumentError)
183
+ it 'should not assign a value over maxLength' do
184
+ expect{instance.postal_code = "T" * (10 + 1)}.to raise_error(ArgumentError)
158
185
  end
159
- end
160
-
186
+ end
161
187
 
162
188
  describe 'test attribute "country"' do
163
- it 'should work with length 2' do
164
- instance.country = "TS"
165
- expect(instance.country).to eq("TS")
189
+ it 'should assign a value of maxLength' do
190
+ instance.country = "T" * 2
191
+ expect(instance.country).to eq("T" * 2)
166
192
  end
167
- it 'should not work with length > 2' do
168
- expect{instance.country = "TEST_STRING"}.to raise_error(ArgumentError)
193
+ it 'should not assign a value over maxLength' do
194
+ expect{instance.country = "T" * (2 + 1)}.to raise_error(ArgumentError)
169
195
  end
170
- end
196
+ end
171
197
 
172
198
  describe 'test attribute "email"' do
173
- it 'should work' do
174
- instance.email = "TEST_STRING"
175
- expect(instance.email).to eq("TEST_STRING")
199
+ it 'should assign a value of maxLength' do
200
+ instance.email = "T" * 100
201
+ expect(instance.email).to eq("T" * 100)
202
+ end
203
+ it 'should not assign a value over maxLength' do
204
+ expect{instance.email = "T" * (100 + 1)}.to raise_error(ArgumentError)
176
205
  end
177
206
  end
178
207
 
179
-
180
208
  describe 'test attribute "stock_symbol"' do
181
- it 'should work with length 10' do
182
- instance.stock_symbol = "TEST_STRIN"
183
- expect(instance.stock_symbol).to eq("TEST_STRIN")
209
+ it 'should assign a value of maxLength' do
210
+ instance.stock_symbol = "T" * 10
211
+ expect(instance.stock_symbol).to eq("T" * 10)
184
212
  end
185
- it 'should not work with length > 10' do
186
- expect{instance.stock_symbol = "TEST_STRING"}.to raise_error(ArgumentError)
213
+ it 'should not assign a value over maxLength' do
214
+ expect{instance.stock_symbol = "T" * (10 + 1)}.to raise_error(ArgumentError)
187
215
  end
188
- end
216
+ end
217
+
189
218
 
190
219
  describe 'test attribute "stock_exchange"' do
191
220
  it 'assigns value NONE' do
@@ -303,19 +332,26 @@ describe Freeclimb::SMSTenDLCBrand do
303
332
  end
304
333
 
305
334
  describe 'test attribute "ip_address"' do
306
- it 'should work' do
307
- instance.ip_address = "TEST_STRING"
308
- expect(instance.ip_address).to eq("TEST_STRING")
335
+ it 'should assign a value of maxLength' do
336
+ instance.ip_address = "T" * 50
337
+ expect(instance.ip_address).to eq("T" * 50)
338
+ end
339
+ it 'should not assign a value over maxLength' do
340
+ expect{instance.ip_address = "T" * (50 + 1)}.to raise_error(ArgumentError)
309
341
  end
310
342
  end
311
343
 
312
344
  describe 'test attribute "website"' do
313
- it 'should work' do
314
- instance.website = "TEST_STRING"
315
- expect(instance.website).to eq("TEST_STRING")
345
+ it 'should assign a value of maxLength' do
346
+ instance.website = "T" * 100
347
+ expect(instance.website).to eq("T" * 100)
348
+ end
349
+ it 'should not assign a value over maxLength' do
350
+ expect{instance.website = "T" * (100 + 1)}.to raise_error(ArgumentError)
316
351
  end
317
352
  end
318
353
 
354
+
319
355
  describe 'test attribute "brand_relationship"' do
320
356
  it 'assigns value BASIC_ACCOUNT' do
321
357
  instance.brand_relationship = "BASIC_ACCOUNT"
@@ -344,19 +380,26 @@ describe Freeclimb::SMSTenDLCBrand do
344
380
  end
345
381
 
346
382
  describe 'test attribute "vertical"' do
347
- it 'should work' do
348
- instance.vertical = "TEST_STRING"
349
- expect(instance.vertical).to eq("TEST_STRING")
383
+ it 'should assign a value of maxLength' do
384
+ instance.vertical = "T" * 50
385
+ expect(instance.vertical).to eq("T" * 50)
386
+ end
387
+ it 'should not assign a value over maxLength' do
388
+ expect{instance.vertical = "T" * (50 + 1)}.to raise_error(ArgumentError)
350
389
  end
351
390
  end
352
391
 
353
392
  describe 'test attribute "alt_business_id"' do
354
- it 'should work' do
355
- instance.alt_business_id = "TEST_STRING"
356
- expect(instance.alt_business_id).to eq("TEST_STRING")
393
+ it 'should assign a value of maxLength' do
394
+ instance.alt_business_id = "T" * 50
395
+ expect(instance.alt_business_id).to eq("T" * 50)
396
+ end
397
+ it 'should not assign a value over maxLength' do
398
+ expect{instance.alt_business_id = "T" * (50 + 1)}.to raise_error(ArgumentError)
357
399
  end
358
400
  end
359
401
 
402
+
360
403
  describe 'test attribute "alt_business_id_type"' do
361
404
  it 'assigns value NONE' do
362
405
  instance.alt_business_id_type = "NONE"
@@ -388,9 +431,12 @@ describe Freeclimb::SMSTenDLCBrand do
388
431
  end
389
432
 
390
433
  describe 'test attribute "reference_id"' do
391
- it 'should work' do
392
- instance.reference_id = "TEST_STRING"
393
- expect(instance.reference_id).to eq("TEST_STRING")
434
+ it 'should assign a value of maxLength' do
435
+ instance.reference_id = "T" * 50
436
+ expect(instance.reference_id).to eq("T" * 50)
437
+ end
438
+ it 'should not assign a value over maxLength' do
439
+ expect{instance.reference_id = "T" * (50 + 1)}.to raise_error(ArgumentError)
394
440
  end
395
441
  end
396
442
 
@@ -409,6 +455,7 @@ describe Freeclimb::SMSTenDLCBrand do
409
455
  end
410
456
  end
411
457
 
458
+
412
459
  describe 'test attribute "identity_status"' do
413
460
  it 'assigns value SELF_DECLARED' do
414
461
  instance.identity_status = "SELF_DECLARED"
@@ -25,6 +25,7 @@ describe Freeclimb::SMSTenDLCBrandsListResult do
25
25
  expect(instance).to be_instance_of(Freeclimb::SMSTenDLCBrandsListResult)
26
26
  end
27
27
  end
28
+
28
29
  describe 'test attribute "total"' do
29
30
  it 'should work' do
30
31
  instance.total = 1