Hello, all.
For my application I allow an end user to dynamically create a Customer in my own activity. I have the Activity's layout set up with all of the correct data fields (EditTexts in Android) so the user can type in:
- first name
- last name
- phone number
- email address
- Addresses (all 3)
- City, State, Zip
The problem that seems to be occurring is that the Addresses are not saving to the Customer so that, when this customer has an order created for him/her, and a receipt is printed, the Customer's address is not showing up on the receipt. Here is the code I am using to save the Customer's address:
customerConnector.addAddress(customer.getId(), addressOne, addressTwo, addressThree, city, state, zipCode);
Note*: each of the variables are String data types that are extracted from the EditText widgets.
*Also, the Phone Number and Email Address appear on the receipt, just not the Addresses. Likewise, I use their customerConnector().set... counterpart methods as well.
Any information would be helpful to me with this problem. Does the internal mechanism of customerConnector.setAddress() act differently than the other 'customerConnector().setEmailAddress(), etc' methods? Am I using it correctly?
Thanks!