Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function updateAddress(customerId) {
- const updateAddressRoute = new UpdateAddressRoute(customerId);
- const UpdateAddressRequest = RequestBuilder.build(updateAddressRoute);
- try {
- return await RequestDispatcher.dispatch(UpdateAddressRequest);
- } catch(error) {
- throw new ApiRequestError(`Failed to update address for customer ${customerId}`, error);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement