DeleteCustomerAddress
Implements DeleteCustomerAddress Unified Method.
Source
import "./extended";
import { assertAuthorized, defineApi } from "@vsf-enterprise/unified-api-sapcc";
export const deleteCustomerAddress = defineApi.deleteCustomerAddress(async (context, args) => {
const { api } = await context.getApiClient();
assertAuthorized(context);
const { id } = args;
await api.removeAddress({ addressId: id });
});