diff --git a/app/services/integrations/aggregator/contacts/payloads/netsuite.rb b/app/services/integrations/aggregator/contacts/payloads/netsuite.rb index 93cae465aa3..d294040f9a2 100644 --- a/app/services/integrations/aggregator/contacts/payloads/netsuite.rb +++ b/app/services/integrations/aggregator/contacts/payloads/netsuite.rb @@ -28,7 +28,7 @@ def update_body { 'type' => 'customer', 'recordId' => integration_customer.external_customer_id, - 'values' => { + 'columns' => { 'isperson' => isperson, 'subsidiary' => integration_customer.subsidiary_id, 'custentity_lago_sf_id' => customer.external_salesforce_id, diff --git a/spec/services/integrations/aggregator/contacts/payloads/factory_spec.rb b/spec/services/integrations/aggregator/contacts/payloads/factory_spec.rb index 3943f68fa79..5f5b5acca03 100644 --- a/spec/services/integrations/aggregator/contacts/payloads/factory_spec.rb +++ b/spec/services/integrations/aggregator/contacts/payloads/factory_spec.rb @@ -78,7 +78,7 @@ it 'returns payload body' do aggregate_failures do expect(subject['recordId']).to eq(integration_customer.external_customer_id) - expect(subject['values']['companyname']).to eq(customer.name) + expect(subject['columns']['companyname']).to eq(customer.name) end end end diff --git a/spec/services/integrations/aggregator/contacts/payloads/netsuite_spec.rb b/spec/services/integrations/aggregator/contacts/payloads/netsuite_spec.rb index 0d075e26e2c..cb85d9c15ce 100644 --- a/spec/services/integrations/aggregator/contacts/payloads/netsuite_spec.rb +++ b/spec/services/integrations/aggregator/contacts/payloads/netsuite_spec.rb @@ -315,7 +315,7 @@ { 'type' => 'customer', 'recordId' => integration_customer.external_customer_id, - 'values' => { + 'columns' => { 'isperson' => isperson, 'subsidiary' => integration_customer.subsidiary_id, 'custentity_lago_sf_id' => customer.external_salesforce_id, diff --git a/spec/services/integrations/aggregator/contacts/update_service_spec.rb b/spec/services/integrations/aggregator/contacts/update_service_spec.rb index 2633cde72d4..d072c346246 100644 --- a/spec/services/integrations/aggregator/contacts/update_service_spec.rb +++ b/spec/services/integrations/aggregator/contacts/update_service_spec.rb @@ -43,7 +43,7 @@ { 'type' => 'customer', 'recordId' => integration_customer.external_customer_id, - 'values' => { + 'columns' => { 'companyname' => customer.name, 'isperson' => 'F', 'subsidiary' => integration_customer.subsidiary_id, @@ -132,7 +132,7 @@ { 'type' => 'customer', 'recordId' => integration_customer.external_customer_id, - 'values' => { + 'columns' => { 'companyname' => customer.name, 'isperson' => 'F', 'subsidiary' => integration_customer.subsidiary_id,