Commit Graph

598 Commits

Author SHA1 Message Date
Florian Schlegel
4ed9734ff0 fix: add check to prevent overwriting of final fraud states 2020-11-05 11:54:16 +01:00
Florian Schlegel
4ef3605738 Merge branch 'develop' into feature/fraud-investigation-state 2020-10-16 08:43:24 +02:00
Florian Schlegel
a1fa04040f watchlists: sort query results by _id descending 2020-10-08 13:56:42 +02:00
Florian Schlegel
15a2a4c466 watchlists: remove customerID and email from data structure 2020-10-07 16:46:26 +02:00
Florian Schlegel
01fa04cf2f feat: add FraudInvestigationState to order 2020-09-22 14:35:01 +02:00
Florian Schlegel
1105d4a4d0 Outcomment unique and background options for order.
Must be migrated first
2020-07-28 23:54:25 +02:00
Florian Schlegel
3c2254c023 Merge branch 'feature/address-key' 2020-07-28 23:07:16 +02:00
Florian Schlegel
e46ec90f50 move Person VO to fix code generation 2020-07-23 11:55:40 +02:00
Florian Schlegel
e26e15ae66 migrate watchlists to addrKeys 2020-07-23 10:57:34 +02:00
Florian Schlegel
f900b01140 fix mssing return in customer.IsComplete 2020-07-22 15:05:47 +02:00
Florian Schlegel
ed667a49ef fix error message for incomplete person in customer.IsComplete 2020-07-22 14:47:07 +02:00
Florian Schlegel
e0a8d84925 fix: rename IsCustomerComplete to IsComplete() 2020-07-22 13:02:08 +02:00
Florian Schlegel
9e4d49d9b0 Improve validation for address, person and customer. Add IsComlete() functions for each and TrimSpace() for address and person // update tests 2020-07-22 12:56:11 +02:00
Florian Schlegel
99f2489ea8 fix update of addrKey on order 2020-07-06 17:08:47 +02:00
Florian Schlegel
4f14b4c521 add field "AddrKey" to CustomerData 2020-07-06 11:02:14 +02:00
Cyrill Schumacher
5e17e81a7f
customer: NewCustomer has optional email address, update pkg/errors (#19)
If the email address is set on NewCustomer, it must be a valid one.
updating pkg/errors keeps the error pkg in sync with other projects.
2020-07-01 15:54:41 +02:00
Frederik Löffert
e9c774b013 new customer: duplicate key handling 2020-06-15 16:29:24 +02:00
Frederik Löffert
ebdd0e529f customer soft lock improved
customer version history dropped
2020-06-15 14:42:01 +02:00
Cyrill Schumacher
d4c84c5721
customer: Export MapDecode function (#18)
for usage in other packages
2020-06-08 16:10:54 +02:00
Cyrill Schumacher
8e064b74ab
customer: Improve validation to show multiple errors at once (#17)
the error that a require field is missing, isn't helpful at all.
2020-06-03 23:00:40 +02:00
Frederik Löffert
3dcc13822c
temp. disable order id index
with next release we will ensure the uniqueness of order id index. to make migration a bit easier we will disable it for the moment.
2020-05-25 16:16:58 +02:00
Florian Schlegel
7f4a7c41b9 refactor SetCustomerIdAndTypeAndPriceOverrideGroup: add addrKey and rename to SetBasicCustomerData 2020-05-18 15:43:45 +02:00
Florian Schlegel
2b81fab1dc Merge branch 'develop' into feature/address-key 2020-05-05 11:53:54 +02:00
Cyrill Schumacher
63dcc0336b
chore: go mod update, remove outdated tests (#16) 2020-05-05 10:41:45 +02:00
Vladan Marsenic
4caca84ec1 ECOMDEV-6187 feat: remove address validation 2020-04-27 13:33:27 +02:00
Vladan Marsenic
9032a05d4e ECOMDEV-6187 feat: add address validation 2020-04-26 19:51:40 +02:00
Frederik Löffert
d3fac74e64 customer is complete boolean 2020-04-15 16:48:27 +02:00
Frederik Löffert
fc89a17ee8 remove login state from customer 2020-04-15 13:19:38 +02:00
Frederik Löffert
c8bd713fad fix: customer tests 2020-04-15 12:42:14 +02:00
Frederik Löffert
3f7e9b731b customer tracking removed, addrkey hash added 2020-04-14 18:42:30 +02:00
Frederik Löffert
16ca401db4 NewCustomer with mailContact 2020-04-14 18:08:07 +02:00
Frederik Löffert
76f2a13423 BREAKING CHANGE - customer collection renamed
switch UUID dependency from snoflake to satori
NewCustomer enriched
2020-04-14 17:58:28 +02:00
Frederik Löffert
a8785878ab getCustomer: improved error handling if customer not found 2020-04-14 16:53:52 +02:00
Vladan Marsenic
f730fd67af ECOMDEV-6770 feat: add flag that indicates if customer profile is complete 2020-03-25 15:02:27 +01:00
Florian Schlegel
f84b9f91f1 fix: set AddrKey non-unique until migration is complete 2020-03-04 15:25:51 +01:00
Florian Schlegel
f5775bfd7d fix: make GetCustomerByQuery() public 2020-03-04 11:58:22 +01:00
Florian Schlegel
6a0a9e31d6 refactor: rename AddressKey to AddrKey 2020-03-04 11:47:28 +01:00
Florian Schlegel
c5973157dc feat: add addresskey to customer and order vo 2020-03-04 09:59:18 +01:00
Vladan Marsenic
1d53a6eb92 BSICRM-5927 feat: add custom.storeid to index and renaming it. 2020-02-21 16:14:30 +01:00
Vladan Marsenic
3602f1ff28 BSICRM-5927 feat: add index for query optimization on orders collection 2020-02-21 15:40:55 +01:00
florianschlegel
18e788cf8d Feature: voucher cumulation (#14)
* enable optional cumulation of multiple regular vouchers (overruling best option rule) //  fix bug where vouchers could falsely be cumulated when pricerule is identical // add unit tests

* fix pre-filtering of vouchers

* minor cleanup

* refactor: remove access to global test data from promo cumulation tests // add test for employee disscount

* feat: ExcludeAlreadyDiscountedItemsForVoucher does no longer apply to discounts with TypePromotionCustomer

* update unit tests for promo cumulation

* update unit tests for promo cumulation

* update pricerule cumulation tests

* pricerules: reimplement test for BuyXPayY

* add more tests for pricerules
2020-01-27 12:20:15 +01:00
Frederik Löffert
dc4811e002
private sale (#13)
* add field PriceOverrideGroup to CustomerData

* extend SetCustomerIdAndType() for priceOverrideGroup
2019-12-09 15:35:53 +01:00
Florian Schlegel
0f347c57e6 extend test TestForceUpsert 2019-11-20 15:13:51 +01:00
Florian Schlegel
85df315608 add TestForceUpsert 2019-11-20 15:01:45 +01:00
Frederik Löffert
fb95cc5cf0 chore: test dependencies 2019-11-20 13:53:37 +01:00
Frederik Löffert
3acf1ba092 chore: travis env debugging 2019-11-20 13:45:48 +01:00
Frederik Löffert
8637e35bf1 chrore: travis config tuning 2019-11-20 13:40:34 +01:00
Frederik Löffert
ac04154946 chore: travis shell environment 2019-11-20 13:37:45 +01:00
Florian Schlegel
ae34c3290e add function SetForceUpsert() 2019-11-20 12:05:35 +01:00
Frederik Löffert
baa2a21e0c
dependency management with go mod instead of glide (#10)
* dependency management with go mod instead of glide

* travis: pin go to version 1.13.x
2019-09-18 14:03:10 +02:00