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
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; } } }
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).