140 Commits

Author SHA1 Message Date
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
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
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
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
Frederik Löffert
a077cfbb58 ensure mongo collection index on customer persistor
index id not unique
2018-07-18 01:07:17 +02:00
Frederik Löffert
c4b70e25fa correct usage of customer vs. credentials persistor 2018-07-10 12:30:54 +02:00
Frederik Löffert
620e065857 ensure indices on order, customer and price rule collections when getting a mongo persistor 2018-07-09 17:40:12 +02:00
Frederik Löffert
29e6701600 DeleteCustomer: error handling improved in case of customer not found 2018-05-22 17:48:15 +02:00
Frederik Löffert
0b02171d77 fix test for breaking change: email is no longer unique (due to guest accounts) 2018-05-22 17:30:47 +02:00
Frederik Löffert
d9247d3a04 - breaking change: email is no longer unique (due to guest accounts)
- checkLoginAvailable ignores guest accounts
2018-05-17 15:47:05 +02:00
Frederik Löffert
33658e02d9 log cleanup on creating customer 2018-04-24 17:36:45 +02:00
Frederik Löffert
7a1aa1a5ac adds externalID on customer, address and contact
improved / better contacts handling
2018-03-27 22:30:06 +02:00
Frederik Löffert
4b378a4d06 fix customer to support contact slice on personVo 2018-03-23 23:27:05 +01:00
Frederik Löffert
109c0fdbba migrate customer to support []*Contact 2018-03-23 23:20:31 +01:00
Florian Schlegel
c4f5f65244 BSICRM-2765: add country codes for AT and IT 2018-02-05 12:54:40 +01:00
Stefan Martinov
97afc4d1a2 Update integration tests to function correctly 2017-11-08 13:55:39 +01:00
Stefan Martinov
0f79b26134 Update all persistors to use session connection pool 2017-11-07 15:35:47 +01:00
Predrag Čičić
68de38ff04 Update customer.go 2017-10-24 18:35:19 +02:00
Florian Schlegel
c08b57d676 Made sync of customer.Person more robust // added debug logs 2017-09-14 11:05:56 +02:00
Florian Schlegel
9390d4c82e Merge branch 'hotfix/newcustomer' 2017-04-13 17:55:03 +02:00
Florian Schlegel
c98ea25ed4 hotfix to prevent nil pointer in AddAddres line 261 2017-04-13 15:32:30 +02:00
Florian Schlegel
cb53043037 added CountryCode for Liechtenstein 2017-03-24 15:11:33 +01:00
Florian Schlegel
b080c6ed00 removed event_log package and some more clean-ups 2017-02-10 14:21:54 +01:00
Florian Schlegel
09b0353b3f added LanguageCode 2017-01-27 16:45:19 +01:00
Florian Schlegel
a70b213909 added count functions for order and customer persistor 2017-01-04 09:50:28 +01:00
Florian Schlegel
14af617bf3 minor clean up 2016-12-01 21:57:49 +01:00
Florian Schlegel
3716700ed1 removed obsolete checks in NewCustomer 2016-12-01 21:20:18 +01:00
Florian Schlegel
df14d398ac all methods modifying position now initialize PositionCustom 2016-10-31 19:34:47 +01:00
Florian Schlegel
687ced76ed Moved Watchlist to separate package with its own persistor. Implemented new tests for API. 2016-09-20 13:45:28 +02:00
Florian Schlegel
5ab04ca763 refactored Wishlist to Watchlist 2016-09-20 09:17:24 +02:00
Florian Schlegel
3bae56d14f fixed GetSecondaryAddresses() 2016-09-13 17:01:28 +02:00
Florian Schlegel
f58efc4780 Change Email does no longer chnage credentials. (foomo shop credentials are no longer used for now) 2016-09-13 14:55:58 +02:00
Florian Schlegel
26b5a4cb56 added GetSecondaryAddresses 2016-09-13 14:54:56 +02:00
Florian Schlegel
1de39beda3 implemented wishlists and added them to customer 2016-09-09 12:15:30 +02:00