moov-io / customers

Customer registry supporting Know Your Customer (KYC), Customer Identification Program (CIP), and OFAC checks
https://moov.io
Apache License 2.0
69 stars 19 forks source link

Customer Birthdate is not being saved/returned #255

Closed DylanAllen closed 4 years ago

DylanAllen commented 4 years ago

Customers Version: 0.5.0-dev25

What were you trying to do? Update a customer's birthdate

What did you expect to see? The birthdate passed in a POST would be returned in a GET for that customer

What did you see? Posting a birthDate value to the customers/{customerID} did not add the birthdate for that customer.

How can we reproduce the problem? For an existing customer, POST an updated customer object with birthDate: "1980-07-13" included. The response does not include that property, and subsequent GET requests for that customer will not include the birthDate property.

Example POST:

{
   "type":"individual",
   "firstName":"Bob",
   "middleName":"B",
   "lastName":"Dole",
   "suffix":"",
   "email":"bob@dole.com",
   "birthDate":"1990-12-10",
   "phones":[
      {
         "number":"9998887777",
         "valid":false,
         "type":"Work"
      }
   ],
   "customerID":"92c874b97cy349yb94b9292c479c2b92"
}

Example response:

{
   "customerID":"92c874b97cy349yb94b9292c479c2b92",
   "firstName":"Bob",
   "middleName":"B",
   "lastName":"Dole",
   "type":"individual",
   "status":"Unknown",
   "email":"bob@dole.com",
   "phones":[
      {
         "number":"9998887777",
         "valid":false,
         "type":"Work"
      }
   ],
   "createdAt":"2020-10-20T11:09:12.5910131Z",
   "lastModified":"2020-10-20T11:13:27.3060055Z"
}