Add support for Customer address fields in CORE -> Rattail

This commit is contained in:
Lance Edgar 2023-06-10 20:27:12 -05:00
parent f4384f8b1d
commit 76b0791831

View file

@ -139,11 +139,11 @@ class CustomerImporter(FromCOREPOSAPI, corepos_importing.model.CustomerImporter)
'corepos_account_id',
'number',
'name',
# 'address_street',
# 'address_street2',
# 'address_city',
# 'address_state',
# 'address_zipcode',
'address_street',
'address_street2',
'address_city',
'address_state',
'address_zipcode',
]
def get_host_objects(self):
@ -177,11 +177,11 @@ class CustomerImporter(FromCOREPOSAPI, corepos_importing.model.CustomerImporter)
'name': normalize_full_name(customer['firstName'],
customer['lastName']),
# 'address_street': member['addressFirstLine'] or None,
# 'address_street2': member['addressSecondLine'] or None,
# 'address_city': member['city'] or None,
# 'address_state': member['state'] or None,
# 'address_zipcode': member['zip'] or None,
'address_street': member['addressFirstLine'] or None,
'address_street2': member['addressSecondLine'] or None,
'address_city': member['city'] or None,
'address_state': member['state'] or None,
'address_zipcode': member['zip'] or None,
}