예제 #1
0
        public void AddCustomerTokens(LiquidObject liquidObject, Customer customer, CustomerNote customerNote = null)
        {
            var liquidCustomer = new LiquidCustomer(customer, customerNote);

            liquidObject.Customer = liquidCustomer;

            _eventPublisher.EntityTokensAdded(customer, liquidCustomer, liquidObject);
            _eventPublisher.EntityTokensAdded(customerNote, liquidCustomer, liquidObject);
        }
        public async Task AddCustomerTokens(LiquidObject liquidObject, Customer customer, Store store, Language language, CustomerNote customerNote = null)
        {
            var liquidCustomer = new LiquidCustomer(customer, store, language, customerNote);

            liquidObject.Customer = liquidCustomer;

            await _mediator.EntityTokensAdded(customer, liquidCustomer, liquidObject);

            await _mediator.EntityTokensAdded(customerNote, liquidCustomer, liquidObject);
        }