diff --git a/modules/claims_api/lib/bgs_service/local_bgs.rb b/modules/claims_api/lib/bgs_service/local_bgs.rb index 29b43c075af..9e99d25c9cb 100644 --- a/modules/claims_api/lib/bgs_service/local_bgs.rb +++ b/modules/claims_api/lib/bgs_service/local_bgs.rb @@ -337,11 +337,4 @@ def to_camelcase(claim:) claim.deep_transform_keys { |k| k.to_s.camelize(:lower) } end end - - def validate_required_keys(required_keys, provided_hash, call) - required_keys.each do |key| - raise(ArgumentError, "#{key} is a required key in #{call}") unless provided_hash.key?(key) - raise(ArgumentError, "#{key} cannot be empty or nil") if provided_hash[key].blank? - end - end end diff --git a/modules/claims_api/lib/bgs_service/vnp_ptcpnt_service.rb b/modules/claims_api/lib/bgs_service/vnp_ptcpnt_service.rb index b43c2754161..24f4eb04694 100644 --- a/modules/claims_api/lib/bgs_service/vnp_ptcpnt_service.rb +++ b/modules/claims_api/lib/bgs_service/vnp_ptcpnt_service.rb @@ -4,9 +4,7 @@ module ClaimsApi class VnpPtcpntService < ClaimsApi::LocalBGS # vnpPtcpntCreate - This service is used to create VONAPP participant information def vnp_ptcpnt_create(options) - # validate_required_keys(vnp_ptcpnt_create_required_keys, options, __method__.to_s) convert_nil_values(options) - # ptcpnt_clmant_id = options[:vnp_ptcpnt_id].present? ? options[:vnpPtcpntId] : xsi:nil="true" body = Nokogiri::XML::DocumentFragment.parse <<~EOXML # {arg_strg} EOXML @@ -20,7 +18,7 @@ def vnp_ptcpnt_create(options) def convert_nil_values(options) arg_strg = '' options.each do |option| - arg = option[0].to_s.camelize(:lower) # option[0].to_s.titleize(keep_id_suffix: true).gsub(/\s+/, '') + arg = option[0].to_s.camelize(:lower) arg_strg += (option[1].nil? ? "<#{arg} xsi:nil=true/>" : "<#{arg}>#{option[1]}") end arg_strg += '' diff --git a/spec/support/vcr_cassettes/bgs/vnp_proc_service_v2/vnp_ptcpnt_service.yml b/spec/support/vcr_cassettes/bgs/vnp_proc_service_v2/vnp_ptcpnt_service.yml index 35e8840f13e..a905e90eb8e 100644 --- a/spec/support/vcr_cassettes/bgs/vnp_proc_service_v2/vnp_ptcpnt_service.yml +++ b/spec/support/vcr_cassettes/bgs/vnp_proc_service_v2/vnp_ptcpnt_service.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://internal-dsva-vagov-staging-fwdproxy-1893365470.us-gov-west-1.elb.amazonaws.com:4447/VnpPtcpntWebServiceBean/VnpPtcpntService?WSDL + uri: https://internal-dsva-vagov-dev-fwdproxy-1893365470.us-gov-west-1.elb.amazonaws.com:4447/VnpPtcpntWebServiceBean/VnpPtcpntService?WSDL body: encoding: US-ASCII string: '' @@ -171,7 +171,7 @@ http_interactions: recorded_at: Tue, 26 Mar 2024 19:13:14 GMT - request: method: post - uri: https://internal-dsva-vagov-staging-fwdproxy-1893365470.us-gov-west-1.elb.amazonaws.com:4447/VnpPtcpntWebServiceBean/VnpPtcpntService + uri: https://internal-dsva-vagov-dev-fwdproxy-1893365470.us-gov-west-1.elb.amazonaws.com:4447/VnpPtcpntWebServiceBean/VnpPtcpntService body: encoding: UTF-8 string: |