# ReactivatePartnerAddress

## Permission Scope

partnerDetail

## Overview

reactivatePartnerAddress sets an address's `active` flag back to `true`, making it available for new CustomerAccount and SupplierAccount usages.

## Business Rules

- Address must exist
- Address must currently be inactive

## Process Flow

```mermaid
flowchart TD
    A[Receive address ID] --> B{Address exists and is inactive?}
    B -->|No| C[Return domain error]
    B -->|Yes| D[Set active to true]
    D --> E[Save BusinessPartner aggregate]
```

## External Dependencies

- None

## Error Scenarios

- **ADDRESS_NOT_FOUND**: Specified address ID does not exist
- **INVALID_STATE_TRANSITION**: Requested state transition is not allowed from the current status

## Test Cases

- reactivates an inactive address
