Skip to content

Commit

Permalink
Add OTHER option to oaeType (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbiang888 authored Dec 28, 2020
1 parent 2e5bc7b commit 4871c4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/models/entity/Contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export enum OaeType {
PUBLICMATCHING = 'public_matching_contribution',
QUALIFYING = 'qualifying',
ALLOWABLE = 'allowable',
INKIND = 'inkind'
INKIND = 'inkind',
OTHER = 'other'
}

export enum PaymentMethod {
Expand Down
3 changes: 3 additions & 0 deletions app/src/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export const OaeTypeEnum = Object.freeze({
QUALIFYING: 'qualifying',
ALLOWABLE: 'allowable',
INKIND: 'inkind',
OTHER: 'other',
});

export const OaeTypeFieldEnum = Object.freeze({
Expand All @@ -222,6 +223,7 @@ export const OaeTypeFieldEnum = Object.freeze({
QUALIFYING: 'Qualifying',
ALLOWABLE: 'Allowable',
INKIND: 'In-Kind',
OTHER: 'Other',
});

export const DataToOaeTypeTypeFieldMap = new Map([
Expand All @@ -234,6 +236,7 @@ export const DataToOaeTypeTypeFieldMap = new Map([
[OaeTypeEnum.QUALIFYING, OaeTypeFieldEnum.QUALIFYING],
[OaeTypeEnum.ALLOWABLE, OaeTypeFieldEnum.ALLOWABLE],
[OaeTypeEnum.INKIND, OaeTypeFieldEnum.INKIND],
[OaeTypeEnum.OTHER, OaeTypeFieldEnum.OTHER],
]);

export const OaeTypeFieldToDataMap = new Map([
Expand Down

0 comments on commit 4871c4f

Please sign in to comment.