-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert virtus models to vets models
- Loading branch information
1 parent
25c62e4
commit db3f9b9
Showing
11 changed files
with
51 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
lib/disability_compensation/responses/claims_service_response.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'vets/model' | ||
|
||
module DisabilityCompensation | ||
module ApiProvider | ||
# Used in conjunction with the PPIU/Direct Deposit Provider | ||
class ClaimPhaseDates | ||
include ActiveModel::Serialization | ||
include Virtus.model | ||
include Vets::Model | ||
|
||
attribute :phase_change_date, String | ||
end | ||
|
||
class Claim | ||
include ActiveModel::Serialization | ||
include Virtus.model | ||
include Vets::Model | ||
|
||
attribute :id, String | ||
attribute :base_end_product_code, String | ||
attribute :development_letter_sent, Boolean | ||
attribute :development_letter_sent, Bool | ||
attribute :status, String | ||
attribute :claim_date, String | ||
attribute :claim_phase_dates, ClaimPhaseDates | ||
end | ||
|
||
class ClaimsServiceResponse | ||
include ActiveModel::Serialization | ||
include Virtus.model | ||
include Vets::Model | ||
|
||
attribute :open_claims, Array[DisabilityCompensation::ApiProvider::Claim] | ||
attribute :open_claims, DisabilityCompensation::ApiProvider::Claim, array: true | ||
end | ||
end | ||
end |
10 changes: 5 additions & 5 deletions
10
lib/disability_compensation/responses/intake_sites_response.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters