use of com.forgerock.openbanking.common.model.data.FRCustomerInfoAddress in project openbanking-aspsp by OpenBankingToolkit.
the class FakeDataApiController method generateCustomerInfo.
private void generateCustomerInfo(String userId) {
DateTime birthdate = DateTime.now().minusYears(19);
FRCustomerInfoAddress address = FRCustomerInfoAddress.builder().streetAddress(List.of("999", "Letsbe Avenue", "Hull")).country("UK").postalCode("HU11 3FU").addressType(FRAddressTypeCode.RESIDENTIAL).build();
FRCustomerInfo customerInfo = FRCustomerInfo.builder().address(address).birthdate(birthdate).email("fred.blogs@acme.com").phoneNumber("07123123123").familyName("blogs").givenName("fred").partyId("r9082345kjf").initials("F. R.").title("Mr").userID(userId).build();
this.customerInfoRepository.save(customerInfo);
}
use of com.forgerock.openbanking.common.model.data.FRCustomerInfoAddress in project openbanking-aspsp by OpenBankingToolkit.
the class FRCustomerInfoConverter method toCustomerInfoAddress.
private static CustomerInfoAddress toCustomerInfoAddress(FRCustomerInfoAddress address) {
CustomerInfoAddress customerInfoAddress = new CustomerInfoAddress();
customerInfoAddress.setStreetAddress(address.getStreetAddress());
customerInfoAddress.setAddressType(AddressTypeCode.fromValue(address.getAddressType().getValue()));
customerInfoAddress.setCountry(address.getCountry());
customerInfoAddress.setPostalCode(address.getPostalCode());
return customerInfoAddress;
}
Aggregations