Show / Hide Table of Contents

    Extending the address entity

    The address entity can be extended in Mercury by extending:

    • Commerce entities
    • Commerce Connect entities
    • Pipeline processors

    There are two types of addresses: profile and order.

    In this article the steps for extending the address entity in general are described. At the end of this article links are provided to the articles describing how to extend the order address and profile address.

    Extend the Commerce Connect Party

    1. Create a new class that derives from the MercuryCommerceParty class and extend the class.

      Example

      namespace MyOrders
      {
       public class MyCommerceParty : MercuryCommerceParty
       {
           public string POBox { get; set; }
       }
      }
      
    2. See the related articles how to configure the MyCommerceParty type for an order address and a profile address.

    Extend the PartyDetails View model

    This is possible through the dictionary Extra which will be available as property in the JSON object in the frontend (e.g. React, Web API response).

    See also

    • Extend the order address
    • Extend the profile address
    Advanced
    • Improve this Doc
    Back to top Copyright © 2015-2018 Aviva Solutions
    Generated by DocFX