Package no.fintlabs.adapter.models
Class AdapterContract.AdapterContractBuilder
- java.lang.Object
-
- no.fintlabs.adapter.models.AdapterContract.AdapterContractBuilder
-
- Enclosing class:
- AdapterContract
public static class AdapterContract.AdapterContractBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdapterContract.AdapterContractBuilder
adapterId(java.lang.String adapterId)
A persistent uniq id for the adapter.AdapterContract
build()
AdapterContract.AdapterContractBuilder
capabilities(java.util.Set<AdapterCapability> capabilities)
List of capablilities for the adapter.AdapterContract.AdapterContractBuilder
heartbeatIntervalInMinutes(int heartbeatIntervalInMinutes)
Interval the adapter should send heartbeats to FINT in minutes.AdapterContract.AdapterContractBuilder
orgId(java.lang.String orgId)
OrgId for the customer this contract represent.AdapterContract.AdapterContractBuilder
time(long time)
The registration time for the contract in Unix timestamp.java.lang.String
toString()
AdapterContract.AdapterContractBuilder
username(java.lang.String username)
Username used for authentication to FINT.
-
-
-
Method Detail
-
adapterId
public AdapterContract.AdapterContractBuilder adapterId(java.lang.String adapterId)
A persistent uniq id for the adapter. It should be in the format:
https://<company domain>/<customer domain>/<FINT domain>/<FINT package (optional)>/<UUID (optional)>
E.g.
https://visma.com/rogfk.no/utdanning
https://visma.com/rogfk.no/utdanning/elev
https://visma.com/rogfk.no/utdanning/elev/b93ffb1e-2b86-4709-aa5d-03453152d9a4
- Returns:
this
.
-
orgId
public AdapterContract.AdapterContractBuilder orgId(java.lang.String orgId)
OrgId for the customer this contract represent.
E.g.
rogfk.no
- Returns:
this
.
-
username
public AdapterContract.AdapterContractBuilder username(java.lang.String username)
Username used for authentication to FINT.
E.g. `vis@adapter.rogfk.no`
- Returns:
this
.
-
heartbeatIntervalInMinutes
public AdapterContract.AdapterContractBuilder heartbeatIntervalInMinutes(int heartbeatIntervalInMinutes)
Interval the adapter should send heartbeats to FINT in minutes.- Returns:
this
.
-
capabilities
public AdapterContract.AdapterContractBuilder capabilities(java.util.Set<AdapterCapability> capabilities)
List of capablilities for the adapter.
- Returns:
this
.- See Also:
AdapterCapability
-
time
public AdapterContract.AdapterContractBuilder time(long time)
The registration time for the contract in Unix timestamp.- Returns:
this
.
-
build
public AdapterContract build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-