class Multiwoven::Integrations::Destination::Klaviyo::Client

def parse_response(response)

def parse_response(response)
  if success?(response)
    ConnectionStatus.new(
      status: ConnectionStatusType["succeeded"]
    ).to_multiwoven_message
  else
    message = extract_message(response)
    ConnectionStatus.new(
      status: ConnectionStatusType["failed"], message: message
    ).to_multiwoven_message
  end
end