Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. async function updateAddress(customerId) {
  2. const updateAddressRoute = new UpdateAddressRoute(customerId);
  3. const UpdateAddressRequest = RequestBuilder.build(updateAddressRoute);
  4. try {
  5. return await RequestDispatcher.dispatch(UpdateAddressRequest);
  6. } catch(error) {
  7. throw new ApiRequestError(`Failed to update address for customer ${customerId}`, error);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement