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