Scenario #4090: Cancel Membership Of Partner

Given Properties

name value
memberNumber M-3101000
validTo 2025-12-30
newStatus CANCELLED

Membership: M-3101000

GET /api/hs/office/memberships/M-3101000
=> status: 200 OK 
{
  "uuid" : "783383c3-c4fa-493b-9eeb-745f844edb87", // Membership: M-3101000 - Test AG
  "partner" : {
    "uuid" : "3cf280a0-2655-4c0e-9f4d-c876e7c7dd6c", // Partner: P-31010 - Test AG
    "partnerNumber" : "P-31010",
    "partnerRel" : {
      "uuid" : "be6a226c-e9c5-4e78-a14e-1bab1a277862", // partnerRelationUuid
      "anchor" : {
        "uuid" : "3942a4d1-2f44-46d3-8afa-c06fc758a30f", // Person: Hostsharing eG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Hostsharing eG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "df6e401c-fb8c-4998-82f2-88be4a522d98", // partnerPersonUuid
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "PARTNER",
      "mark" : null,
      "contact" : {
        "uuid" : "36a207bd-6785-462a-a4ac-44c38c69437b", // Contact: Test AG - China
        "caption" : "Test AG - China",
        "postalAddress" : {
          "city" : "Dongguan City",
          "firm" : "Test AG",
          "name" : "Fi Zhong-Kha",
          "street" : "No.2 Commercial Second Street",
          "country" : "China",
          "building" : "Thi Chi Koh Building",
          "district" : "Niushan Wei Wu",
          "province" : "Guangdong Province"
        },
        "emailAddresses" : {
          "main" : "norden@test-ag.example.org"
        },
        "phoneNumbers" : {
          "phone" : "++15 999 654321"
        }
      }
    },
    "details" : {
      "uuid" : "11f936f4-ee55-4c42-a344-2f1de48f2f55",
      "registrationOffice" : "Registergericht Hamburg",
      "registrationNumber" : "1234567",
      "birthName" : null,
      "birthPlace" : null,
      "birthday" : null,
      "dateOfDeath" : null
    }
  },
  "mainDebitor" : null,
  "memberNumber" : "M-3101000",
  "memberNumberSuffix" : "00",
  "validFrom" : "2024-10-15",
  "validTo" : null,
  "status" : "ACTIVE",
  "membershipFeeBillable" : true
}

Patch the New Status Into the Membership

PATCH /api/hs/office/memberships/783383c3-c4fa-493b-9eeb-745f844edb87 // Membership: M-3101000 - Test AG
{
  "validTo" : "2025-12-30",
  "status" : "CANCELLED"
}
=> status: 200 OK 

Verify That the Membership Got Cancelled

GET /api/hs/office/memberships/783383c3-c4fa-493b-9eeb-745f844edb87 // Membership: M-3101000 - Test AG
=> status: 200 OK 
{
  "uuid" : "783383c3-c4fa-493b-9eeb-745f844edb87", // Membership: M-3101000 - Test AG
  "partner" : {
    "uuid" : "3cf280a0-2655-4c0e-9f4d-c876e7c7dd6c", // Partner: P-31010 - Test AG
    "partnerNumber" : "P-31010",
    "partnerRel" : {
      "uuid" : "be6a226c-e9c5-4e78-a14e-1bab1a277862", // partnerRelationUuid
      "anchor" : {
        "uuid" : "3942a4d1-2f44-46d3-8afa-c06fc758a30f", // Person: Hostsharing eG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Hostsharing eG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "df6e401c-fb8c-4998-82f2-88be4a522d98", // partnerPersonUuid
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "PARTNER",
      "mark" : null,
      "contact" : {
        "uuid" : "36a207bd-6785-462a-a4ac-44c38c69437b", // Contact: Test AG - China
        "caption" : "Test AG - China",
        "postalAddress" : {
          "city" : "Dongguan City",
          "firm" : "Test AG",
          "name" : "Fi Zhong-Kha",
          "street" : "No.2 Commercial Second Street",
          "country" : "China",
          "building" : "Thi Chi Koh Building",
          "district" : "Niushan Wei Wu",
          "province" : "Guangdong Province"
        },
        "emailAddresses" : {
          "main" : "norden@test-ag.example.org"
        },
        "phoneNumbers" : {
          "phone" : "++15 999 654321"
        }
      }
    },
    "details" : {
      "uuid" : "11f936f4-ee55-4c42-a344-2f1de48f2f55",
      "registrationOffice" : "Registergericht Hamburg",
      "registrationNumber" : "1234567",
      "birthName" : null,
      "birthPlace" : null,
      "birthday" : null,
      "dateOfDeath" : null
    }
  },
  "mainDebitor" : null,
  "memberNumber" : "M-3101000",
  "memberNumberSuffix" : "00",
  "validFrom" : "2024-10-15",
  "validTo" : "2025-12-30",
  "status" : "CANCELLED",
  "membershipFeeBillable" : true
}

generated on 02-18-2025 01:34:29 for branch feature/add-scenario-test-for-deceased-partner-with-community-of-heirs