From 628f984ae6a8b1b95200e7628bd9565a4ef0fcda Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Fri, 15 Nov 2024 14:39:11 +0100 Subject: [PATCH] add M- in front of memberNumber for API --- .../HsOfficeMembershipController.java | 2 +- .../membership/HsOfficeMembershipEntity.java | 5 +++++ .../hs-office-membership-schemas.yaml | 7 ++++--- ...ficeMembershipControllerAcceptanceTest.java | 18 +++++++++--------- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipController.java b/src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipController.java index 62dcd1c2..de8cc01a 100644 --- a/src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipController.java +++ b/src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipController.java @@ -125,7 +125,7 @@ public class HsOfficeMembershipController implements HsOfficeMembershipsApi { } final BiConsumer SEPA_MANDATE_ENTITY_TO_RESOURCE_POSTMAPPER = (entity, resource) -> { - // TODO.refa: this should be possible via ModelMapper config + resource.setMemberNumber(entity.getTaggedMemberNumber()); resource.setValidFrom(entity.getValidity().lower()); if (entity.getValidity().hasUpperBound()) { resource.setValidTo(entity.getValidity().upper().minusDays(1)); diff --git a/src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipEntity.java b/src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipEntity.java index a0740b8b..1b05a90c 100644 --- a/src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipEntity.java +++ b/src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipEntity.java @@ -130,6 +130,7 @@ public class HsOfficeMembershipEntity implements BaseEntity