-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/fjerne fnutter rundt fnr i xml (#3475)
Rette feil med fnutter rundt FNR ved XML-spoerring mot TPS
- Loading branch information
Showing
5 changed files
with
31 additions
and
41 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
14 changes: 5 additions & 9 deletions
14
apps/dolly-frontend/src/main/js/src/service/services/tpsmessaging/TpsMessagingService.tsx
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,22 +1,18 @@ | ||
import Request from '@/service/services/Request' | ||
|
||
const TPS_MESSAGING_URL_V1 = `/testnav-tps-messaging-service/api/v1/personer` | ||
const TPS_MESSAGING_URL_V2 = `/testnav-tps-messaging-service/api/v2/personer` | ||
|
||
const getTpsMessagingUrl_V2 = (miljoe) => `${TPS_MESSAGING_URL_V2}/ident?miljoer=${miljoe}` | ||
const getTpsMessagingUrlAllEnvs_V2 = () => `${TPS_MESSAGING_URL_V2}/ident` | ||
const TPS_MESSAGING_URL = `/testnav-tps-messaging-service/api/v1/personer` | ||
|
||
export default { | ||
getTpsPersonInfo(ident, miljoe) { | ||
return Request.post(getTpsMessagingUrl_V2(miljoe), ident) | ||
return Request.post(`${TPS_MESSAGING_URL}/ident?miljoer=${miljoe}`, { ident: ident }) | ||
}, | ||
getTpsPersonInfoAllEnvs(ident) { | ||
return Request.post(getTpsMessagingUrlAllEnvs_V2(), ident) | ||
return Request.post(`${TPS_MESSAGING_URL}/ident`, { ident: ident }) | ||
}, | ||
deleteBankkontoNorsk(ident) { | ||
return Request.delete(`${TPS_MESSAGING_URL_V1}/${ident}/bankkonto-norsk`) | ||
return Request.delete(`${TPS_MESSAGING_URL}/${ident}/bankkonto-norsk`) | ||
}, | ||
deleteBankkontoUtenlandsk(ident) { | ||
return Request.delete(`${TPS_MESSAGING_URL_V1}/${ident}/bankkonto-utenlandsk`) | ||
return Request.delete(`${TPS_MESSAGING_URL}/${ident}/bankkonto-utenlandsk`) | ||
}, | ||
} |
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
31 changes: 0 additions & 31 deletions
31
...e/src/main/java/no/nav/testnav/apps/tpsmessagingservice/provider/v2/PersonController.java
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...jects/src/main/java/no/nav/testnav/libs/data/tpsmessagingservice/v1/PersonRequestDTO.java
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package no.nav.testnav.libs.data.tpsmessagingservice.v1; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class PersonRequestDTO { | ||
|
||
private String ident; | ||
} |