Fix CNAM creation

Stephen Paul Weber created

Change summary

lib/bandwidth_tn_repo.rb   | 2 +-
test/test_customer_repo.rb | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)

Detailed changes

lib/bandwidth_tn_repo.rb 🔗

@@ -10,7 +10,7 @@ class BandwidthTnRepo
 	def put_lidb_name(tel, lidb_name)
 		BandwidthIris::Lidb.create(
 			lidb_tn_groups: { lidb_tn_group: {
-				telephone_numbers: [tel.sub(/\A\+1/, "")],
+				telephone_numbers: { telephone_number: tel.sub(/\A\+1/, "") },
 				subscriber_information: lidb_name,
 				use_type: "RESIDENTIAL", visibility: "PUBLIC"
 			} }

test/test_customer_repo.rb 🔗

@@ -155,7 +155,9 @@ class CustomerRepoTest < Minitest::Test
 		).with(body: {
 			LidbTnGroups: {
 				LidbTnGroup: {
-					TelephoneNumbers: "5556667777",
+					TelephoneNumbers: {
+						TelephoneNumber: "5556667777"
+					},
 					SubscriberInformation: "Hank",
 					UseType: "RESIDENTIAL",
 					Visibility: "PUBLIC"