diff --git a/lib/bandwidth_tn_repo.rb b/lib/bandwidth_tn_repo.rb index b272ee0d7d2839ffad06a05668f13574ee253f1d..daf76a4334efdd45ecad690c99347de7afaabfee 100644 --- a/lib/bandwidth_tn_repo.rb +++ b/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" } } diff --git a/test/test_customer_repo.rb b/test/test_customer_repo.rb index 332573fe9ccbe819ce883e181a2e499c5ae0e526..d4d812725ba50c1f98a51282c43882acee814fb6 100644 --- a/test/test_customer_repo.rb +++ b/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"