public SalesOrderTransformation(RequestContext context)
     : base(context, SupportedResourceKinds.salesOrders)
 {
     _salesOrderLineTransformation =
         TransformationFactory.GetTransformation <SalesOrderLineTransformation>(
             SupportedResourceKinds.salesOrderLines, context);
 }
Exemplo n.º 2
0
 public PostalAddressWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.postalAddresses)
 {
     _entity         = new Account();
     _transformation = TransformationFactory.GetTransformation <ITransformation <AddressDocument, PostalAddressPayload> >
                           (SupportedResourceKinds.postalAddresses, context);
     _tradingAccountUuidPayloadPath = _resourceKind.ToString() + "/" + SupportedResourceKinds.tradingAccounts.ToString();
 }
Exemplo n.º 3
0
 public PriceWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.prices)
 {
     _entity         = new Price();
     _transformation = TransformationFactory.GetTransformation
                       <ITransformation <PriceDocument, PricePayload> >
                           (SupportedResourceKinds.prices, context);
 }
 public PhoneNumberWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.phoneNumbers)
 {
     _entity         = new Account();
     _transformation = TransformationFactory.GetTransformation <ITransformation <PhoneDocument, PhoneNumberPayload> >
                           (SupportedResourceKinds.phoneNumbers, context);
     _tradingAccountUuidPayloadPath = _resourceKind.ToString() + "/" + SupportedResourceKinds.tradingAccounts.ToString();
 }
Exemplo n.º 5
0
 public CommodityGroupWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.commodityGroups)
 {
     _entity         = new ProductFamily();
     _transformation = TransformationFactory.GetTransformation
                       <ITransformation <ProductFamilyDocument, CommodityGroupPayload> >
                           (SupportedResourceKinds.commodityGroups, context);
 }
Exemplo n.º 6
0
 public UnitOfMeasureWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.unitsOfMeasure)
 {
     _entity         = new UnitOfMeasure();
     _transformation = TransformationFactory.GetTransformation
                       <ITransformation <UnitOfMeasureDocument, UnitOfMeasurePayload> >
                           (SupportedResourceKinds.unitsOfMeasure, context);
 }
 public EmailWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.emails)
 {
     _entity         = new Email();
     _transformation = TransformationFactory.GetTransformation
                       <ITransformation <EmailDocument, EmailPayload> >
                           (SupportedResourceKinds.emails, context);
 }
Exemplo n.º 8
0
 public ContactWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.contacts)
 {
     _entity         = new Account();
     _transformation = TransformationFactory.GetTransformation <ITransformation <PersonDocument, ContactPayload> >
                           (SupportedResourceKinds.contacts, context);
     _tradingAccountUuidPayloadPath = _resourceKind.ToString() + "/" + SupportedResourceKinds.tradingAccounts.ToString();
 }
Exemplo n.º 9
0
        public TradingAccountTransformation(RequestContext context)
            : base(context, SupportedResourceKinds.tradingAccounts)
        {
            _postalAdressTransformation =
                TransformationFactory.GetTransformation <PostalAdressTransformation>(
                    SupportedResourceKinds.postalAddresses, context);

            _contactTransformation =
                TransformationFactory.GetTransformation <ContactTransformation>(
                    SupportedResourceKinds.contacts, context);

            _emailAdressTransformation =
                TransformationFactory.GetTransformation <EmailAdressTransformation>(
                    SupportedResourceKinds.emails, context);

            _phoneNumberTransformation =
                TransformationFactory.GetTransformation <PhoneNumberTransformation>(
                    SupportedResourceKinds.phoneNumbers, context);
        }
Exemplo n.º 10
0
 public TradingAccountWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.tradingAccounts)
 {
     _entity         = new Account();
     _transformation = TransformationFactory.GetTransformation <ITransformation <AccountDocument, TradingAccountPayload> >(SupportedResourceKinds.tradingAccounts, context);
 }