Add support for Rattail -> CORE export/sync for Member data
also refactor CORE -> Rattail logic to use `api.set_member()` etc.
This commit is contained in:
parent
8d47a1449c
commit
cb63644c7d
6 changed files with 326 additions and 79 deletions
|
@ -86,7 +86,7 @@ class FromCOREAPIToRattail(NewDataSyncImportConsumer):
|
|||
|
||||
def get_host_object(self, session, change):
|
||||
if change.payload_type == 'Customer':
|
||||
return self.api.get_customer(change.payload_key)
|
||||
return self.api.get_member(change.payload_key)
|
||||
if change.payload_type == 'Department':
|
||||
return self.api.get_department(change.payload_key)
|
||||
if change.payload_type == 'Subdepartment':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue