department-of-veterans-affairs / connect_vbms

VBMS SOAP API client
Other
17 stars 9 forks source link

Add contention endpoints #166

Closed shanear closed 6 years ago

shanear commented 6 years ago

Added ListContentions and CreateContentions as new requests.

Tested locally connected to VBMS.

To test:

> irb -Ilib

require "vbms"
c = VBMS::Client.from_env_vars(env_name: ENV["CONNECT_VBMS_ENV"])

r =  VBMS::Requests::CreateContentions.new(
      veteran_file_number: "241573462",
      claim_id: "600118427",
      contentions: ["Billy One", "Billy Two", "Billy Three"]
)
c.send_request(r)

r =  VBMS::Requests::ListContentions.new(
      claim_id: "600118427"
)
c.send_request(r)
anyakhvost commented 6 years ago

Hey @shanear, do you think you could add some unit tests?