WEB-605 Change the vNEXT to MIFOS_INTERBANK_TRANSFERS variable and set it true as default (#3016)
This commit is contained in:
@@ -132,7 +132,7 @@ export class AccountTransfersService {
|
||||
const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
|
||||
return this.http
|
||||
.post(
|
||||
`${environment.vNextApiUrl}${environment.vNextApiVersion}${environment.vNextApiProvider}/participant`,
|
||||
`${environment.mifosInterbankTransfersApiUrl}${environment.mifosInterbankTransfersApiVersion}${environment.mifosInterbankTransfersApiProvider}/participant`,
|
||||
JSON.stringify(payload),
|
||||
{ headers }
|
||||
)
|
||||
@@ -140,7 +140,7 @@ export class AccountTransfersService {
|
||||
switchMap((participant: any) => {
|
||||
const body = JSON.stringify({ ...payload, ownerFspId: participant.fspId });
|
||||
return this.http.post(
|
||||
`${environment.vNextApiUrl}${environment.vNextApiVersion}${environment.vNextApiProvider}/partyinfo`,
|
||||
`${environment.mifosInterbankTransfersApiUrl}${environment.mifosInterbankTransfersApiVersion}${environment.mifosInterbankTransfersApiProvider}/partyinfo`,
|
||||
body,
|
||||
{ headers }
|
||||
);
|
||||
@@ -151,7 +151,7 @@ export class AccountTransfersService {
|
||||
sendInterbankTransfer(body: any): Observable<any> {
|
||||
const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
|
||||
return this.http.post(
|
||||
`${environment.vNextApiUrl}${environment.vNextApiVersion}${environment.vNextApiProvider}/executetransfer`,
|
||||
`${environment.mifosInterbankTransfersApiUrl}${environment.mifosInterbankTransfersApiVersion}${environment.mifosInterbankTransfersApiProvider}/executetransfer`,
|
||||
body,
|
||||
{ headers }
|
||||
);
|
||||
|
||||
@@ -136,7 +136,7 @@ export class SavingsAccountViewComponent implements OnInit {
|
||||
taskPermissionName: 'CREATE_ACCOUNTTRANSFER'
|
||||
});
|
||||
}
|
||||
if (this.savingsAccountData.externalId && environment.interbankTransfers) {
|
||||
if (this.savingsAccountData.externalId && environment.mifosInterbankTransfersEnabled) {
|
||||
this.buttonConfig.addOption({
|
||||
name: 'Interbank Transfer',
|
||||
taskPermissionName: 'CREATE_ACCOUNTTRANSFER'
|
||||
|
||||
Reference in New Issue
Block a user