FodDelivery

A comprehensive delivery address management component integrating PostOffice address validation and MDelivery courier selection. Supports conditional wizard steps, error recovery, and multi-language interfaces.

Interactive Demo

Try the component with different configuration options. Toggle the checkboxes to see how the component adapts to various settings.

Date de contact

Curierul contactează această persoană înainte de livrarea coletului.

Introduceți adresa de livrare. Folosiți butonul de validare pentru a verifica cu Poșta Moldovei.

Adresa de livrare

Livrare peste hotareBifați dacă coletul trebuie livrat în afara Republicii Moldova
Selectați mai întâi raionul
Selectați mai întâi localitatea

Configuration

Show Submit Button Enable Address Validation Enable MDelivery Integration Allow Skip Validation Allow Retry Apply Configuration

Current Data

Real-time view of the delivery data model as you interact with the component.

DeliveryRequest:
  Id: fbf491c0-fa1d-48b3-ae93-7dc95b783a3e
  State: EnteringAddress
  Address:
    Street: Strada Ștefan cel Mare
    HouseNumber: 154
    ApartmentNumber: 12
    City: Chișinău
    PostalCode: MD-2012
    AdditionalInfo: 
    IsValidated: False
  SelectedCourier: None
  DeliveryCost: 

Event Log

Monitor events emitted by the component during interaction.

No events yet. Interact with the component above.

Wizard Integration

How to integrate FodDelivery as a wizard step:

razor
<FodWizardComponent
    Steps="@_steps"
    ServiceRequestContext="@_context">
</FodWizardComponent>

@code {
    private List<WizardStep> _steps =
    [
        new WizardStep
        {
            StepId = "fod-delivery",
            Title = "Delivery Address",
            ComponentType = typeof(FodDelivery),
            Order = 1
        }
        .WithConfiguration(_deliveryConfig)
    ];
}

Basic Standalone Usage

Simple FodDelivery component with mock services. Shows basic address entry form and event logging for delivery registration.

razor
<FodDelivery
    Configuration="@_configuration"
    ShowSubmitButton="true"
    OnDeliveryRegistered="@HandleDeliveryRegistered"
    OnDeliveryChanged="@HandleDeliveryChanged" />

@code {
    private FodDeliveryConfiguration _configuration = new()
    {
        ServiceCode = "MY-SERVICE",
        EnableAddressValidation = true,
        EnableMDeliveryIntegration = true,
        AllowSkipValidation = true,
        MaxRetryAttempts = 3
    };

    private void HandleDeliveryRegistered(DeliveryRequest request)
    {
        Console.WriteLine($"Delivery registered: {request.Id}");
    }
}

API Reference - FodDelivery

Properties and events available on the FodDelivery component.

No properties defined.

Event Arguments Reference

Event argument types and their properties.

No properties defined.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

Retry

The session has been paused by the server.

Resume

Failed to resume the session.
Please reload the page.