We expect it to be response.customer but customer is in an extra result object like response.result.customer.id. I guess that is an API issue itself but not sure where is the best place to log the issue.
I'm just doing this in the meantime
((response as any).result as Result).customer.id
When I call
We expect it to be
response.customer
butcustomer
is in an extraresult
object likeresponse.result.customer.id
. I guess that is an API issue itself but not sure where is the best place to log the issue.I'm just doing this in the meantime
((response as any).result as Result).customer.id